zephyr-xpack-internal 0.0.54 → 0.0.56

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.
@@ -3,10 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.computeVersionStrategy = exports.gitSha = void 0;
4
4
  const node_child_process_1 = require("node:child_process");
5
5
  try {
6
- exports.gitSha = (0, node_child_process_1.execSync)('git rev-parse HEAD').toString().trim();
6
+ exports.gitSha = (0, node_child_process_1.execSync)('git rev-parse HEAD', {
7
+ encoding: 'utf8',
8
+ stdio: ['pipe', 'pipe', 'pipe'], // Prevent stderr from being inherited
9
+ })
10
+ .toString()
11
+ .trim();
7
12
  }
8
- catch (e) {
9
- console.error(e);
13
+ catch {
14
+ // Silently fail - git may not be available or repository may have no commits
15
+ exports.gitSha = undefined;
10
16
  }
11
17
  const computeVersionStrategy = (stats, arg) => {
12
18
  switch (arg) {
@@ -1 +1 @@
1
- {"version":3,"file":"compute-version-strategy.js","sourceRoot":"","sources":["../../../../src/federation-dashboard-legacy/utils/federation-dashboard-plugin/compute-version-strategy.ts"],"names":[],"mappings":";;;AAAA,2DAA8C;AAG9C,IAAI,CAAC;IACH,cAAM,GAAG,IAAA,6BAAQ,EAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC;AAC5D,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC;AAEM,MAAM,sBAAsB,GAAG,CACpC,KAEC,EACD,GAAuB,EACH,EAAE;IACtB,QAAQ,GAAG,EAAE,CAAC;QACZ,KAAK,QAAQ;YACX,OAAO,cAAM,CAAC;QAChB,KAAK,WAAW;YACd,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB;YACE,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,cAAM,CAAC;IACzC,CAAC;AACH,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
1
+ {"version":3,"file":"compute-version-strategy.js","sourceRoot":"","sources":["../../../../src/federation-dashboard-legacy/utils/federation-dashboard-plugin/compute-version-strategy.ts"],"names":[],"mappings":";;;AAAA,2DAA8C;AAG9C,IAAI,CAAC;IACH,cAAM,GAAG,IAAA,6BAAQ,EAAC,oBAAoB,EAAE;QACtC,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sCAAsC;KACxE,CAAC;SACC,QAAQ,EAAE;SACV,IAAI,EAAE,CAAC;AACZ,CAAC;AAAC,MAAM,CAAC;IACP,6EAA6E;IAC7E,cAAM,GAAG,SAAS,CAAC;AACrB,CAAC;AAEM,MAAM,sBAAsB,GAAG,CACpC,KAEC,EACD,GAAuB,EACH,EAAE;IACtB,QAAQ,GAAG,EAAE,CAAC;QACZ,KAAK,QAAQ;YACX,OAAO,cAAM,CAAC;QAChB,KAAK,WAAW;YACd,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB;YACE,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,cAAM,CAAC;IACzC,CAAC;AACH,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-xpack-internal",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "description": "Xpack internals for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-xpack-internal",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "description": "Xpack internals for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,8 +19,8 @@
19
19
  "@module-federation/automatic-vendor-federation": "^1.2.1",
20
20
  "is-ci": "^4.1.0",
21
21
  "tslib": "^2.8.1",
22
- "zephyr-agent": "0.0.54",
23
- "zephyr-edge-contract": "0.0.54"
22
+ "zephyr-agent": "0.0.56",
23
+ "zephyr-edge-contract": "0.0.56"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/is-ci": "3.0.4",