zephyr-edge-contract 0.0.0-canary-20250215130754 → 0.0.0-canary-20250228155632

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export type { ZephyrPluginOptions } from './lib/plugin-options/zephyr-webpack-pl
4
4
  export type { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
5
5
  export { createApplicationUid } from './lib/utils/create-application-uid';
6
6
  export { createSnapshotId, flatCreateSnapshotId } from './lib/utils/create-snapshot-id';
7
+ export { derive_remote_name } from './lib/utils/derive-remote-name';
7
8
  export * as ZeUtils from './lib/promise';
8
9
  export { safe_json_parse } from './lib/utils/safe-json-parse';
9
10
  export type { ZeApplicationList } from './lib/ze-api/app-list';
package/dist/index.js CHANGED
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.stripAnsi = exports.formatString = exports.deferred = exports.PromiseWithResolvers = exports.PromiseLazyLoad = exports.isSuccessTuple = exports.PromiseTuple = exports.forEachLimit = exports.ZE_API_ENDPOINT_HOST = exports.ze_api_gateway = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = exports.safe_json_parse = exports.ZeUtils = exports.flatCreateSnapshotId = exports.createSnapshotId = exports.createApplicationUid = void 0;
4
+ exports.stripAnsi = exports.formatString = exports.deferred = exports.PromiseWithResolvers = exports.PromiseLazyLoad = exports.isSuccessTuple = exports.PromiseTuple = exports.forEachLimit = exports.ZE_API_ENDPOINT_HOST = exports.ze_api_gateway = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = exports.safe_json_parse = exports.ZeUtils = exports.derive_remote_name = exports.flatCreateSnapshotId = exports.createSnapshotId = exports.createApplicationUid = void 0;
5
5
  const tslib_1 = require("tslib");
6
6
  var create_application_uid_1 = require("./lib/utils/create-application-uid");
7
7
  Object.defineProperty(exports, "createApplicationUid", { enumerable: true, get: function () { return create_application_uid_1.createApplicationUid; } });
8
8
  var create_snapshot_id_1 = require("./lib/utils/create-snapshot-id");
9
9
  Object.defineProperty(exports, "createSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.createSnapshotId; } });
10
10
  Object.defineProperty(exports, "flatCreateSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.flatCreateSnapshotId; } });
11
+ var derive_remote_name_1 = require("./lib/utils/derive-remote-name");
12
+ Object.defineProperty(exports, "derive_remote_name", { enumerable: true, get: function () { return derive_remote_name_1.derive_remote_name; } });
11
13
  exports.ZeUtils = tslib_1.__importStar(require("./lib/promise"));
12
14
  var safe_json_parse_1 = require("./lib/utils/safe-json-parse");
13
15
  Object.defineProperty(exports, "safe_json_parse", { enumerable: true, get: function () { return safe_json_parse_1.safe_json_parse; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;AAY1B,6EAA0E;AAAjE,8HAAA,oBAAoB,OAAA;AAC7B,qEAAwF;AAA/E,sHAAA,gBAAgB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AAC/C,iEAAyC;AACzC,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AAgBxB,2BAA2B;AAC3B,oFAMyD;AALvD,uHAAA,mBAAmB,OAAA;AACnB,mHAAA,eAAe,OAAA;AACf,iHAAA,aAAa,OAAA;AACb,kHAAA,cAAc,OAAA;AACd,wHAAA,oBAAoB,OAAA;AAGtB,wBAAwB;AACxB,yCAOuB;AANrB,uGAAA,YAAY,OAAA;AACZ,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AACpB,mGAAA,QAAQ,OAAA;AAGV,uBAAuB;AACvB,8CAAuE;AAA1C,sGAAA,YAAY,OAAA;AACzC,sDAAoD;AAA3C,uGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;AAY1B,6EAA0E;AAAjE,8HAAA,oBAAoB,OAAA;AAC7B,qEAAwF;AAA/E,sHAAA,gBAAgB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AAC/C,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,iEAAyC;AACzC,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AAgBxB,2BAA2B;AAC3B,oFAMyD;AALvD,uHAAA,mBAAmB,OAAA;AACnB,mHAAA,eAAe,OAAA;AACf,iHAAA,aAAa,OAAA;AACb,kHAAA,cAAc,OAAA;AACd,wHAAA,oBAAoB,OAAA;AAGtB,wBAAwB;AACxB,yCAOuB;AANrB,uGAAA,YAAY,OAAA;AACZ,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AACpB,mGAAA,QAAQ,OAAA;AAGV,uBAAuB;AACvB,8CAAuE;AAA1C,sGAAA,YAAY,OAAA;AACzC,sDAAoD;AAA3C,uGAAA,SAAS,OAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Remote_version is the right-hand side of a remote declaration on a host's Module
3
+ * Federation configuration. E.g.:
4
+ *
5
+ * Remotes: { store_b: store_b@http://localhost:3001/remoteEntry.js }
6
+ */
7
+ export declare function derive_remote_name(remote_version: string, fallback_name: string): string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.derive_remote_name = derive_remote_name;
4
+ /**
5
+ * Remote_version is the right-hand side of a remote declaration on a host's Module
6
+ * Federation configuration. E.g.:
7
+ *
8
+ * Remotes: { store_b: store_b@http://localhost:3001/remoteEntry.js }
9
+ */
10
+ function derive_remote_name(remote_version, fallback_name) {
11
+ const [name] = remote_version.includes('@')
12
+ ? remote_version.split('@')
13
+ : [fallback_name];
14
+ return name;
15
+ }
16
+ //# sourceMappingURL=derive-remote-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"derive-remote-name.js","sourceRoot":"","sources":["../../../src/lib/utils/derive-remote-name.ts"],"names":[],"mappings":";;AAMA,gDAKC;AAXD;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,cAAsB,EAAE,aAAqB;IAC9E,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC;QACzC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC;QAC3B,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IACpB,OAAO,IAAI,CAAC;AACd,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-edge-contract",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "license": "Apache-2.0",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-edge-contract",
3
- "version": "0.0.0-canary-20250215130754",
3
+ "version": "0.0.0-canary-20250228155632",
4
4
  "license": "Apache-2.0",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",