zephyr-xpack-internal 0.0.0-canary-20241223182024 → 0.0.0-canary-20250104043432

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.
@@ -4,6 +4,15 @@ exports.extractFederatedDependencyPairs = void 0;
4
4
  const zephyr_agent_1 = require("zephyr-agent");
5
5
  const iterate_federation_config_1 = require("./iterate-federation-config");
6
6
  function extractFederatedDependencyPairs(config) {
7
+ const { zephyrDependencies } = (0, zephyr_agent_1.readPackageJson)(config.context ?? process.cwd());
8
+ if (zephyrDependencies) {
9
+ return Object.entries(zephyrDependencies).map(([name, version]) => {
10
+ return {
11
+ name,
12
+ version,
13
+ };
14
+ });
15
+ }
7
16
  return (0, iterate_federation_config_1.iterateFederationConfig)(config, (plugin) => {
8
17
  if (!plugin._options.remotes)
9
18
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"extract-federated-dependency-pairs.js","sourceRoot":"","sources":["../../src/xpack-extract/extract-federated-dependency-pairs.ts"],"names":[],"mappings":";;;AAAA,+CAA2E;AAE3E,2EAAsE;AAGtE,SAAgB,+BAA+B,CAC7C,MAA+B;IAE/B,OAAO,IAAA,mDAAuB,EAAC,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QAChD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC1C,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,MAAM,CAAC;YAC7C,OAAO;gBACL,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,cAAc;aACJ,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;SACC,IAAI,EAAE;SACN,MAAM,CAAC,wCAAyB,CAAC,CAAC;AACvC,CAAC;AAfD,0EAeC"}
1
+ {"version":3,"file":"extract-federated-dependency-pairs.js","sourceRoot":"","sources":["../../src/xpack-extract/extract-federated-dependency-pairs.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,2EAAsE;AAGtE,SAAgB,+BAA+B,CAC7C,MAA+B;IAE/B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAA,8BAAe,EAAC,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAChF,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;YAChE,OAAO;gBACL,IAAI;gBACJ,OAAO;aACY,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,IAAA,mDAAuB,EAAC,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QAChD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC1C,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,MAAM,CAAC;YAC7C,OAAO;gBACL,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,cAAc;aACJ,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;SACC,IAAI,EAAE;SACN,MAAM,CAAC,wCAAyB,CAAC,CAAC;AACvC,CAAC;AAxBD,0EAwBC"}
@@ -29,9 +29,9 @@ export interface XStatsModule {
29
29
  identifier?: string;
30
30
  reasons?: XStatsReason[];
31
31
  moduleType?: string;
32
- nameForCondition?: string;
32
+ nameForCondition?: string | null;
33
33
  size?: number;
34
- issuerName?: string;
34
+ issuerName?: string | null;
35
35
  name?: string;
36
36
  }
37
37
  export interface XStatsChunk {
@@ -78,9 +78,9 @@ export interface XChunk {
78
78
  getAllReferencedChunks: () => Iterable<XChunk>;
79
79
  }
80
80
  interface XStatsReason {
81
- module?: string;
82
- userRequest?: string;
83
- resolvedModule?: string;
81
+ module?: string | null;
82
+ userRequest?: string | null;
83
+ resolvedModule?: string | null;
84
84
  }
85
85
  export interface XStats {
86
86
  compilation: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-xpack-internal",
3
- "version": "0.0.0-canary-20241223182024",
3
+ "version": "0.0.0-canary-20250104043432",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,8 +10,8 @@
10
10
  "is-ci": "^3.0.1",
11
11
  "tslib": "^2.3.0",
12
12
  "webpack": "^5.93.0",
13
- "zephyr-agent": "0.0.0-canary-20241223182024",
14
- "zephyr-edge-contract": "0.0.0-canary-20241223182024"
13
+ "zephyr-agent": "0.0.0-canary-20250104043432",
14
+ "zephyr-edge-contract": "0.0.0-canary-20250104043432"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/is-ci": "^3.0.4",