diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0e095252a5..97cc80f4e54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ on: - beta # - alpha disabled to allow push to alpha then merge to master w/o incurring a release - next + - [0-9]+.[0-9]+.x # Dont run if it's just markdown or doc files paths-ignore: - "**.md" diff --git a/package-lock.json b/package-lock.json index bbb6cb8c3e1..222565a3d4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22644,10 +22644,9 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseuniq": { "version": "4.6.0", @@ -22662,24 +22661,21 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "lodash._getnative": "^3.0.0" } @@ -22693,10 +22689,9 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._root": { "version": "3.0.1", @@ -22714,10 +22709,9 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.union": { "version": "4.6.0", @@ -64972,7 +64966,7 @@ }, "packages/common": { "name": "@esri/hub-common", - "version": "13.16.0", + "version": "13.17.3", "license": "Apache-2.0", "dependencies": { "abab": "^2.0.5", @@ -83382,8 +83376,7 @@ "lodash._baseindexof": { "version": "3.1.0", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._baseuniq": { "version": "4.6.0", @@ -83398,20 +83391,17 @@ "lodash._bindcallback": { "version": "3.0.1", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._cacheindexof": { "version": "3.0.2", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._createcache": { "version": "3.1.2", "bundled": true, - "dev": true, - "peer": true, + "extraneous": true, "requires": { "lodash._getnative": "^3.0.0" } @@ -83425,8 +83415,7 @@ "lodash._getnative": { "version": "3.9.1", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._root": { "version": "3.0.1", @@ -83443,8 +83432,7 @@ "lodash.restparam": { "version": "3.6.1", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash.union": { "version": "4.6.0", diff --git a/packages/common/src/sites/HubSite.ts b/packages/common/src/sites/HubSite.ts index 54442ec8baa..64224c5dfeb 100644 --- a/packages/common/src/sites/HubSite.ts +++ b/packages/common/src/sites/HubSite.ts @@ -142,7 +142,7 @@ export class HubSite ): IHubSite { // ensure we have the orgUrlKey if (!partialSite.orgUrlKey) { - partialSite.orgUrlKey = context.portal.urlKey; + partialSite.orgUrlKey = context.portal?.urlKey; } // extend the partial over the defaults const pojo = { ...DEFAULT_SITE, ...partialSite } as IHubSite; diff --git a/packages/common/test/sites/HubSite.test.ts b/packages/common/test/sites/HubSite.test.ts index 66cbb363e83..e583af16407 100644 --- a/packages/common/test/sites/HubSite.test.ts +++ b/packages/common/test/sites/HubSite.test.ts @@ -52,7 +52,10 @@ describe("HubSite Class:", () => { describe("static methods:", () => { it("loads from minimal json", () => { const createSpy = spyOn(HubSitesModule, "createSite"); - const chk = HubSite.fromJson({ name: "Test Site" }, authdCtxMgr.context); + const chk = HubSite.fromJson( + { name: "Test Site" }, + unauthdCtxMgr.context + ); expect(createSpy).not.toHaveBeenCalled(); expect(chk.toJson().name).toEqual("Test Site");