@storm-software/git-tools 2.93.9 → 2.93.11

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.
Files changed (69) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-46TFHLDW.js → chunk-3XGJBJX7.js} +1 -1
  3. package/bin/{chunk-QNJB5IEX.cjs → chunk-5NAEFF2X.cjs} +40 -40
  4. package/bin/{chunk-S6G2S5IS.cjs → chunk-7X6YELWM.cjs} +153 -153
  5. package/bin/{chunk-EVE473WJ.cjs → chunk-AUFQBIWE.cjs} +32 -32
  6. package/bin/{chunk-GW4IGINN.js → chunk-CAWZOVX4.js} +2 -2
  7. package/bin/chunk-GYFNF5FR.js +105 -0
  8. package/bin/{chunk-3ZFT4DK5.cjs → chunk-IAVOT7U5.cjs} +2243 -2884
  9. package/bin/{chunk-OKJAVPW6.js → chunk-IQBMCLX2.js} +2 -2
  10. package/bin/{chunk-ELR4T4D7.cjs → chunk-IZ727EE5.cjs} +388 -388
  11. package/bin/chunk-JECY5M2M.cjs +105 -0
  12. package/bin/{chunk-P7N4P3IF.js → chunk-JNHNMXXI.js} +25 -666
  13. package/bin/{chunk-TUNSEFLU.js → chunk-JO24NWND.js} +1 -1
  14. package/bin/{chunk-RWGUF7UA.cjs → chunk-KMH6DPCE.cjs} +138 -138
  15. package/bin/{chunk-VHCDWDKU.js → chunk-L5ZYUSXB.js} +2 -2
  16. package/bin/{chunk-IITIPRA5.js → chunk-LIMYU7MD.js} +2 -2
  17. package/bin/{chunk-LX4SFOZS.js → chunk-LISBOJRQ.js} +1 -1
  18. package/bin/{chunk-QBG5LGWG.cjs → chunk-PVRLG6TD.cjs} +44 -44
  19. package/bin/{chunk-PNTLVS6C.js → chunk-SVL6A23B.js} +2 -2
  20. package/bin/{chunk-662AMFFX.js → chunk-THX4SGV6.js} +2 -2
  21. package/bin/{chunk-7QTYF5B4.cjs → chunk-VAMJFMK7.cjs} +4 -4
  22. package/bin/{chunk-GI3GYRQC.cjs → chunk-VBCOZ7WP.cjs} +2 -2
  23. package/bin/{chunk-276KKXGZ.cjs → chunk-W6TGSUTT.cjs} +3 -3
  24. package/bin/{chunk-HON2WVYK.js → chunk-XMBE7TLV.js} +2 -2
  25. package/bin/{chunk-DC3SIU7G.cjs → chunk-ZRFKGZ7M.cjs} +11 -11
  26. package/bin/dist-7YI5MCCJ.cjs +34 -0
  27. package/bin/{dist-5TRZOPG4.cjs → dist-KAPJ5VJJ.cjs} +1057 -1054
  28. package/bin/{dist-3Y3T6XGP.js → dist-SYG7V2CR.js} +18 -15
  29. package/bin/dist-UUHJC3OE.js +34 -0
  30. package/bin/{esm-IHPSXCMZ.cjs → esm-MSEBOZ3V.cjs} +46 -46
  31. package/bin/{esm-XOMOWV3G.js → esm-PI4FM4JT.js} +1 -1
  32. package/bin/git.cjs +3932 -3932
  33. package/bin/git.js +91 -91
  34. package/bin/json5-6MHBBLXW.js +10 -0
  35. package/bin/json5-TKO4QKHH.cjs +10 -0
  36. package/bin/{jsonc-LABOISKG.js → jsonc-SC2XDCPU.js} +3 -3
  37. package/bin/jsonc-XOWSF47W.cjs +15 -0
  38. package/bin/{multipart-parser-35HXWNWA.js → multipart-parser-IVYN3ZMH.js} +2 -2
  39. package/bin/{multipart-parser-2W57DTWK.cjs → multipart-parser-ULAHO7P2.cjs} +11 -11
  40. package/bin/post-checkout.cjs +22 -22
  41. package/bin/post-checkout.js +10 -10
  42. package/bin/post-commit.cjs +22 -22
  43. package/bin/post-commit.js +10 -10
  44. package/bin/post-merge.cjs +22 -22
  45. package/bin/post-merge.js +10 -10
  46. package/bin/pre-commit.cjs +20 -20
  47. package/bin/pre-commit.js +9 -9
  48. package/bin/pre-install.cjs +19 -19
  49. package/bin/pre-install.js +9 -9
  50. package/bin/pre-push.cjs +27 -27
  51. package/bin/pre-push.js +10 -10
  52. package/bin/prepare.cjs +17 -17
  53. package/bin/prepare.js +9 -9
  54. package/bin/toml-TZ4D4WHK.js +10 -0
  55. package/bin/toml-UPZWP2BY.cjs +10 -0
  56. package/bin/utils-F2HXLJWN.js +120 -0
  57. package/bin/utils-G3OPFIJE.cjs +120 -0
  58. package/bin/version-warning.cjs +15 -15
  59. package/bin/version-warning.js +9 -9
  60. package/bin/yaml-JFKN57YY.cjs +10 -0
  61. package/bin/yaml-S77IVR7P.js +10 -0
  62. package/package.json +1 -1
  63. package/bin/json5-JKGVA4EU.cjs +0 -10
  64. package/bin/json5-NET3LOJ6.js +0 -10
  65. package/bin/jsonc-AHMTY5TZ.cjs +0 -15
  66. package/bin/toml-HKM2W3Q4.js +0 -10
  67. package/bin/toml-NDDPGF5N.cjs +0 -10
  68. package/bin/yaml-UUCBBN32.js +0 -10
  69. package/bin/yaml-Z3AFMP5Z.cjs +0 -10
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-LX4SFOZS.js";
4
+ } from "./chunk-LISBOJRQ.js";
5
5
  import {
6
6
  exitWithError,
7
7
  exitWithSuccess,
@@ -9,16 +9,16 @@ import {
9
9
  handleProcess,
10
10
  writeFatal,
11
11
  writeInfo
12
- } from "./chunk-P7N4P3IF.js";
13
- import "./chunk-IITIPRA5.js";
14
- import "./chunk-OKJAVPW6.js";
15
- import "./chunk-HON2WVYK.js";
16
- import "./chunk-PNTLVS6C.js";
17
- import "./chunk-GW4IGINN.js";
18
- import "./chunk-46TFHLDW.js";
12
+ } from "./chunk-JNHNMXXI.js";
13
+ import "./chunk-LIMYU7MD.js";
14
+ import "./chunk-IQBMCLX2.js";
15
+ import "./chunk-XMBE7TLV.js";
16
+ import "./chunk-SVL6A23B.js";
17
+ import "./chunk-CAWZOVX4.js";
18
+ import "./chunk-3XGJBJX7.js";
19
19
  import {
20
20
  init_esm_shims
21
- } from "./chunk-662AMFFX.js";
21
+ } from "./chunk-THX4SGV6.js";
22
22
 
23
23
  // bin/pre-install.ts
24
24
  init_esm_shims();
package/bin/pre-push.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
3
3
 
4
- var _chunk7QTYF5B4cjs = require('./chunk-7QTYF5B4.cjs');
4
+ var _chunkVAMJFMK7cjs = require('./chunk-VAMJFMK7.cjs');
5
5
 
6
6
 
7
- var _chunk276KKXGZcjs = require('./chunk-276KKXGZ.cjs');
7
+ var _chunkW6TGSUTTcjs = require('./chunk-W6TGSUTT.cjs');
8
8
 
9
9
 
10
10
 
@@ -14,29 +14,29 @@ var _chunk276KKXGZcjs = require('./chunk-276KKXGZ.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunk3ZFT4DK5cjs = require('./chunk-3ZFT4DK5.cjs');
18
- require('./chunk-S6G2S5IS.cjs');
19
- require('./chunk-EVE473WJ.cjs');
20
- require('./chunk-RWGUF7UA.cjs');
21
- require('./chunk-QNJB5IEX.cjs');
22
- require('./chunk-QBG5LGWG.cjs');
23
- require('./chunk-DC3SIU7G.cjs');
17
+ var _chunkIAVOT7U5cjs = require('./chunk-IAVOT7U5.cjs');
18
+ require('./chunk-7X6YELWM.cjs');
19
+ require('./chunk-AUFQBIWE.cjs');
20
+ require('./chunk-KMH6DPCE.cjs');
21
+ require('./chunk-5NAEFF2X.cjs');
22
+ require('./chunk-PVRLG6TD.cjs');
23
+ require('./chunk-ZRFKGZ7M.cjs');
24
24
 
25
25
 
26
- var _chunkGI3GYRQCcjs = require('./chunk-GI3GYRQC.cjs');
26
+ var _chunkVBCOZ7WPcjs = require('./chunk-VBCOZ7WP.cjs');
27
27
 
28
28
  // bin/pre-push.ts
29
- _chunkGI3GYRQCcjs.init_cjs_shims.call(void 0, );
29
+ _chunkVBCOZ7WPcjs.init_cjs_shims.call(void 0, );
30
30
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
31
31
  var _promises = require('fs/promises');
32
32
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
33
33
  void (async () => {
34
- const config = await _chunk3ZFT4DK5cjs.getConfig.call(void 0, );
34
+ const config = await _chunkIAVOT7U5cjs.getConfig.call(void 0, );
35
35
  try {
36
- _chunk3ZFT4DK5cjs.handleProcess.call(void 0, config);
37
- _chunk3ZFT4DK5cjs.writeInfo.call(void 0, "Running pre-push hook...", config);
38
- _chunk7QTYF5B4cjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
39
- _chunk3ZFT4DK5cjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
36
+ _chunkIAVOT7U5cjs.handleProcess.call(void 0, config);
37
+ _chunkIAVOT7U5cjs.writeInfo.call(void 0, "Running pre-push hook...", config);
38
+ _chunkVAMJFMK7cjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
39
+ _chunkIAVOT7U5cjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
40
40
  const errors = [];
41
41
  if (_fs2.default.existsSync(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json"))) {
42
42
  errors.push('Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"');
@@ -58,26 +58,26 @@ void (async () => {
58
58
  errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
59
59
  }
60
60
  if (errors.length > 0) {
61
- _chunk3ZFT4DK5cjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
61
+ _chunkIAVOT7U5cjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
62
62
  for (const error of errors) {
63
63
  console.error(error);
64
64
  }
65
- _chunk3ZFT4DK5cjs.exitWithError.call(void 0, config);
65
+ _chunkIAVOT7U5cjs.exitWithError.call(void 0, config);
66
66
  }
67
- _chunk3ZFT4DK5cjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
68
- _chunk276KKXGZcjs.run.call(void 0, config, "git lfs pre-push origin");
67
+ _chunkIAVOT7U5cjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
68
+ _chunkW6TGSUTTcjs.run.call(void 0, config, "git lfs pre-push origin");
69
69
  try {
70
- _chunk276KKXGZcjs.run.call(void 0, config, "git-lfs version");
70
+ _chunkW6TGSUTTcjs.run.call(void 0, config, "git-lfs version");
71
71
  } catch (error) {
72
- _chunk3ZFT4DK5cjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
72
+ _chunkIAVOT7U5cjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
73
73
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
74
- _chunk3ZFT4DK5cjs.exitWithError.call(void 0, config);
74
+ _chunkIAVOT7U5cjs.exitWithError.call(void 0, config);
75
75
  }
76
- _chunk276KKXGZcjs.run.call(void 0, config, "git lfs pre-push origin");
77
- _chunk3ZFT4DK5cjs.exitWithSuccess.call(void 0, config);
76
+ _chunkW6TGSUTTcjs.run.call(void 0, config, "git lfs pre-push origin");
77
+ _chunkIAVOT7U5cjs.exitWithSuccess.call(void 0, config);
78
78
  } catch (error) {
79
- _chunk3ZFT4DK5cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
- _chunk3ZFT4DK5cjs.exitWithError.call(void 0, config);
79
+ _chunkIAVOT7U5cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
+ _chunkIAVOT7U5cjs.exitWithError.call(void 0, config);
81
81
  process.exit(1);
82
82
  }
83
83
  })();
package/bin/pre-push.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  checkPackageVersion
4
- } from "./chunk-TUNSEFLU.js";
4
+ } from "./chunk-JO24NWND.js";
5
5
  import {
6
6
  run
7
- } from "./chunk-LX4SFOZS.js";
7
+ } from "./chunk-LISBOJRQ.js";
8
8
  import {
9
9
  exitWithError,
10
10
  exitWithSuccess,
@@ -14,16 +14,16 @@ import {
14
14
  writeFatal,
15
15
  writeInfo,
16
16
  writeSuccess
17
- } from "./chunk-P7N4P3IF.js";
18
- import "./chunk-IITIPRA5.js";
19
- import "./chunk-OKJAVPW6.js";
20
- import "./chunk-HON2WVYK.js";
21
- import "./chunk-PNTLVS6C.js";
22
- import "./chunk-GW4IGINN.js";
23
- import "./chunk-46TFHLDW.js";
17
+ } from "./chunk-JNHNMXXI.js";
18
+ import "./chunk-LIMYU7MD.js";
19
+ import "./chunk-IQBMCLX2.js";
20
+ import "./chunk-XMBE7TLV.js";
21
+ import "./chunk-SVL6A23B.js";
22
+ import "./chunk-CAWZOVX4.js";
23
+ import "./chunk-3XGJBJX7.js";
24
24
  import {
25
25
  init_esm_shims
26
- } from "./chunk-662AMFFX.js";
26
+ } from "./chunk-THX4SGV6.js";
27
27
 
28
28
  // bin/pre-push.ts
29
29
  init_esm_shims();
package/bin/prepare.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
 
4
- var _chunk276KKXGZcjs = require('./chunk-276KKXGZ.cjs');
4
+ var _chunkW6TGSUTTcjs = require('./chunk-W6TGSUTT.cjs');
5
5
 
6
6
 
7
7
 
@@ -9,31 +9,31 @@ var _chunk276KKXGZcjs = require('./chunk-276KKXGZ.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunk3ZFT4DK5cjs = require('./chunk-3ZFT4DK5.cjs');
13
- require('./chunk-S6G2S5IS.cjs');
14
- require('./chunk-EVE473WJ.cjs');
15
- require('./chunk-RWGUF7UA.cjs');
16
- require('./chunk-QNJB5IEX.cjs');
17
- require('./chunk-QBG5LGWG.cjs');
18
- require('./chunk-DC3SIU7G.cjs');
12
+ var _chunkIAVOT7U5cjs = require('./chunk-IAVOT7U5.cjs');
13
+ require('./chunk-7X6YELWM.cjs');
14
+ require('./chunk-AUFQBIWE.cjs');
15
+ require('./chunk-KMH6DPCE.cjs');
16
+ require('./chunk-5NAEFF2X.cjs');
17
+ require('./chunk-PVRLG6TD.cjs');
18
+ require('./chunk-ZRFKGZ7M.cjs');
19
19
 
20
20
 
21
- var _chunkGI3GYRQCcjs = require('./chunk-GI3GYRQC.cjs');
21
+ var _chunkVBCOZ7WPcjs = require('./chunk-VBCOZ7WP.cjs');
22
22
 
23
23
  // bin/prepare.ts
24
- _chunkGI3GYRQCcjs.init_cjs_shims.call(void 0, );
24
+ _chunkVBCOZ7WPcjs.init_cjs_shims.call(void 0, );
25
25
  void (async () => {
26
- const config = await _chunk3ZFT4DK5cjs.getConfig.call(void 0, );
26
+ const config = await _chunkIAVOT7U5cjs.getConfig.call(void 0, );
27
27
  try {
28
- _chunk3ZFT4DK5cjs.handleProcess.call(void 0, config);
29
- _chunk3ZFT4DK5cjs.writeInfo.call(void 0, "Running prepare hook...", config);
28
+ _chunkIAVOT7U5cjs.handleProcess.call(void 0, config);
29
+ _chunkIAVOT7U5cjs.writeInfo.call(void 0, "Running prepare hook...", config);
30
30
  if (!process.env.CI && !process.env.STORM_CI) {
31
- _chunk276KKXGZcjs.run.call(void 0, config, "lefthook install");
31
+ _chunkW6TGSUTTcjs.run.call(void 0, config, "lefthook install");
32
32
  }
33
- _chunk3ZFT4DK5cjs.exitWithSuccess.call(void 0, config);
33
+ _chunkIAVOT7U5cjs.exitWithSuccess.call(void 0, config);
34
34
  } catch (error) {
35
- _chunk3ZFT4DK5cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
- _chunk3ZFT4DK5cjs.exitWithError.call(void 0, config);
35
+ _chunkIAVOT7U5cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
+ _chunkIAVOT7U5cjs.exitWithError.call(void 0, config);
37
37
  process.exit(1);
38
38
  }
39
39
  })();
package/bin/prepare.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-LX4SFOZS.js";
4
+ } from "./chunk-LISBOJRQ.js";
5
5
  import {
6
6
  exitWithError,
7
7
  exitWithSuccess,
@@ -9,16 +9,16 @@ import {
9
9
  handleProcess,
10
10
  writeFatal,
11
11
  writeInfo
12
- } from "./chunk-P7N4P3IF.js";
13
- import "./chunk-IITIPRA5.js";
14
- import "./chunk-OKJAVPW6.js";
15
- import "./chunk-HON2WVYK.js";
16
- import "./chunk-PNTLVS6C.js";
17
- import "./chunk-GW4IGINN.js";
18
- import "./chunk-46TFHLDW.js";
12
+ } from "./chunk-JNHNMXXI.js";
13
+ import "./chunk-LIMYU7MD.js";
14
+ import "./chunk-IQBMCLX2.js";
15
+ import "./chunk-XMBE7TLV.js";
16
+ import "./chunk-SVL6A23B.js";
17
+ import "./chunk-CAWZOVX4.js";
18
+ import "./chunk-3XGJBJX7.js";
19
19
  import {
20
20
  init_esm_shims
21
- } from "./chunk-662AMFFX.js";
21
+ } from "./chunk-THX4SGV6.js";
22
22
 
23
23
  // bin/prepare.ts
24
24
  init_esm_shims();
@@ -0,0 +1,10 @@
1
+ import {
2
+ ae,
3
+ ue
4
+ } from "./chunk-SVL6A23B.js";
5
+ import "./chunk-3XGJBJX7.js";
6
+ import "./chunk-THX4SGV6.js";
7
+ export {
8
+ ae as parseTOML,
9
+ ue as stringifyTOML
10
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunk5NAEFF2Xcjs = require('./chunk-5NAEFF2X.cjs');
5
+ require('./chunk-ZRFKGZ7M.cjs');
6
+ require('./chunk-VBCOZ7WP.cjs');
7
+
8
+
9
+
10
+ exports.parseTOML = _chunk5NAEFF2Xcjs.ae; exports.stringifyTOML = _chunk5NAEFF2Xcjs.ue;
@@ -0,0 +1,120 @@
1
+ import {
2
+ serialize
3
+ } from "./chunk-GYFNF5FR.js";
4
+ import {
5
+ __name,
6
+ init_esm_shims
7
+ } from "./chunk-THX4SGV6.js";
8
+
9
+ // ../../node_modules/.pnpm/ohash@2.0.4/node_modules/ohash/dist/utils/index.mjs
10
+ init_esm_shims();
11
+ function isEqual(object1, object2) {
12
+ if (object1 === object2) {
13
+ return true;
14
+ }
15
+ if (serialize(object1) === serialize(object2)) {
16
+ return true;
17
+ }
18
+ return false;
19
+ }
20
+ __name(isEqual, "isEqual");
21
+ function diff(obj1, obj2) {
22
+ const h1 = _toHashedObject(obj1);
23
+ const h2 = _toHashedObject(obj2);
24
+ return _diff(h1, h2);
25
+ }
26
+ __name(diff, "diff");
27
+ function _diff(h1, h2) {
28
+ const diffs = [];
29
+ const allProps = /* @__PURE__ */ new Set([
30
+ ...Object.keys(h1.props || {}),
31
+ ...Object.keys(h2.props || {})
32
+ ]);
33
+ if (h1.props && h2.props) {
34
+ for (const prop of allProps) {
35
+ const p1 = h1.props[prop];
36
+ const p2 = h2.props[prop];
37
+ if (p1 && p2) {
38
+ diffs.push(..._diff(h1.props?.[prop], h2.props?.[prop]));
39
+ } else if (p1 || p2) {
40
+ diffs.push(
41
+ new DiffEntry((p2 || p1).key, p1 ? "removed" : "added", p2, p1)
42
+ );
43
+ }
44
+ }
45
+ }
46
+ if (allProps.size === 0 && h1.hash !== h2.hash) {
47
+ diffs.push(new DiffEntry((h2 || h1).key, "changed", h2, h1));
48
+ }
49
+ return diffs;
50
+ }
51
+ __name(_diff, "_diff");
52
+ function _toHashedObject(obj, key = "") {
53
+ if (obj && typeof obj !== "object") {
54
+ return new DiffHashedObject(key, obj, serialize(obj));
55
+ }
56
+ const props = {};
57
+ const hashes = [];
58
+ for (const _key in obj) {
59
+ props[_key] = _toHashedObject(obj[_key], key ? `${key}.${_key}` : _key);
60
+ hashes.push(props[_key].hash);
61
+ }
62
+ return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
63
+ }
64
+ __name(_toHashedObject, "_toHashedObject");
65
+ var DiffEntry = class {
66
+ static {
67
+ __name(this, "DiffEntry");
68
+ }
69
+ constructor(key, type, newValue, oldValue) {
70
+ this.key = key;
71
+ this.type = type;
72
+ this.newValue = newValue;
73
+ this.oldValue = oldValue;
74
+ }
75
+ toString() {
76
+ return this.toJSON();
77
+ }
78
+ toJSON() {
79
+ switch (this.type) {
80
+ case "added": {
81
+ return `Added \`${this.key}\``;
82
+ }
83
+ case "removed": {
84
+ return `Removed \`${this.key}\``;
85
+ }
86
+ case "changed": {
87
+ return `Changed \`${this.key}\` from \`${this.oldValue?.toString() || "-"}\` to \`${this.newValue.toString()}\``;
88
+ }
89
+ }
90
+ }
91
+ };
92
+ var DiffHashedObject = class {
93
+ static {
94
+ __name(this, "DiffHashedObject");
95
+ }
96
+ constructor(key, value, hash, props) {
97
+ this.key = key;
98
+ this.value = value;
99
+ this.hash = hash;
100
+ this.props = props;
101
+ }
102
+ toString() {
103
+ if (this.props) {
104
+ return `{${Object.keys(this.props).join(",")}}`;
105
+ } else {
106
+ return JSON.stringify(this.value);
107
+ }
108
+ }
109
+ toJSON() {
110
+ const k = this.key || ".";
111
+ if (this.props) {
112
+ return `${k}({${Object.keys(this.props).join(",")}})`;
113
+ }
114
+ return `${k}(${this.value})`;
115
+ }
116
+ };
117
+ export {
118
+ diff,
119
+ isEqual
120
+ };
@@ -0,0 +1,120 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkJECY5M2Mcjs = require('./chunk-JECY5M2M.cjs');
4
+
5
+
6
+
7
+ var _chunkVBCOZ7WPcjs = require('./chunk-VBCOZ7WP.cjs');
8
+
9
+ // ../../node_modules/.pnpm/ohash@2.0.4/node_modules/ohash/dist/utils/index.mjs
10
+ _chunkVBCOZ7WPcjs.init_cjs_shims.call(void 0, );
11
+ function isEqual(object1, object2) {
12
+ if (object1 === object2) {
13
+ return true;
14
+ }
15
+ if (_chunkJECY5M2Mcjs.serialize.call(void 0, object1) === _chunkJECY5M2Mcjs.serialize.call(void 0, object2)) {
16
+ return true;
17
+ }
18
+ return false;
19
+ }
20
+ _chunkVBCOZ7WPcjs.__name.call(void 0, isEqual, "isEqual");
21
+ function diff(obj1, obj2) {
22
+ const h1 = _toHashedObject(obj1);
23
+ const h2 = _toHashedObject(obj2);
24
+ return _diff(h1, h2);
25
+ }
26
+ _chunkVBCOZ7WPcjs.__name.call(void 0, diff, "diff");
27
+ function _diff(h1, h2) {
28
+ const diffs = [];
29
+ const allProps = /* @__PURE__ */ new Set([
30
+ ...Object.keys(h1.props || {}),
31
+ ...Object.keys(h2.props || {})
32
+ ]);
33
+ if (h1.props && h2.props) {
34
+ for (const prop of allProps) {
35
+ const p1 = h1.props[prop];
36
+ const p2 = h2.props[prop];
37
+ if (p1 && p2) {
38
+ diffs.push(..._diff(_optionalChain([h1, 'access', _ => _.props, 'optionalAccess', _2 => _2[prop]]), _optionalChain([h2, 'access', _3 => _3.props, 'optionalAccess', _4 => _4[prop]])));
39
+ } else if (p1 || p2) {
40
+ diffs.push(
41
+ new DiffEntry((p2 || p1).key, p1 ? "removed" : "added", p2, p1)
42
+ );
43
+ }
44
+ }
45
+ }
46
+ if (allProps.size === 0 && h1.hash !== h2.hash) {
47
+ diffs.push(new DiffEntry((h2 || h1).key, "changed", h2, h1));
48
+ }
49
+ return diffs;
50
+ }
51
+ _chunkVBCOZ7WPcjs.__name.call(void 0, _diff, "_diff");
52
+ function _toHashedObject(obj, key = "") {
53
+ if (obj && typeof obj !== "object") {
54
+ return new DiffHashedObject(key, obj, _chunkJECY5M2Mcjs.serialize.call(void 0, obj));
55
+ }
56
+ const props = {};
57
+ const hashes = [];
58
+ for (const _key in obj) {
59
+ props[_key] = _toHashedObject(obj[_key], key ? `${key}.${_key}` : _key);
60
+ hashes.push(props[_key].hash);
61
+ }
62
+ return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
63
+ }
64
+ _chunkVBCOZ7WPcjs.__name.call(void 0, _toHashedObject, "_toHashedObject");
65
+ var DiffEntry = class {
66
+ static {
67
+ _chunkVBCOZ7WPcjs.__name.call(void 0, this, "DiffEntry");
68
+ }
69
+ constructor(key, type, newValue, oldValue) {
70
+ this.key = key;
71
+ this.type = type;
72
+ this.newValue = newValue;
73
+ this.oldValue = oldValue;
74
+ }
75
+ toString() {
76
+ return this.toJSON();
77
+ }
78
+ toJSON() {
79
+ switch (this.type) {
80
+ case "added": {
81
+ return `Added \`${this.key}\``;
82
+ }
83
+ case "removed": {
84
+ return `Removed \`${this.key}\``;
85
+ }
86
+ case "changed": {
87
+ return `Changed \`${this.key}\` from \`${_optionalChain([this, 'access', _5 => _5.oldValue, 'optionalAccess', _6 => _6.toString, 'call', _7 => _7()]) || "-"}\` to \`${this.newValue.toString()}\``;
88
+ }
89
+ }
90
+ }
91
+ };
92
+ var DiffHashedObject = class {
93
+ static {
94
+ _chunkVBCOZ7WPcjs.__name.call(void 0, this, "DiffHashedObject");
95
+ }
96
+ constructor(key, value, hash, props) {
97
+ this.key = key;
98
+ this.value = value;
99
+ this.hash = hash;
100
+ this.props = props;
101
+ }
102
+ toString() {
103
+ if (this.props) {
104
+ return `{${Object.keys(this.props).join(",")}}`;
105
+ } else {
106
+ return JSON.stringify(this.value);
107
+ }
108
+ }
109
+ toJSON() {
110
+ const k = this.key || ".";
111
+ if (this.props) {
112
+ return `${k}({${Object.keys(this.props).join(",")}})`;
113
+ }
114
+ return `${k}(${this.value})`;
115
+ }
116
+ };
117
+
118
+
119
+
120
+ exports.diff = diff; exports.isEqual = isEqual;
@@ -1,33 +1,33 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
 
4
- var _chunk7QTYF5B4cjs = require('./chunk-7QTYF5B4.cjs');
4
+ var _chunkVAMJFMK7cjs = require('./chunk-VAMJFMK7.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunk3ZFT4DK5cjs = require('./chunk-3ZFT4DK5.cjs');
11
- require('./chunk-S6G2S5IS.cjs');
12
- require('./chunk-EVE473WJ.cjs');
13
- require('./chunk-RWGUF7UA.cjs');
14
- require('./chunk-QNJB5IEX.cjs');
15
- require('./chunk-QBG5LGWG.cjs');
16
- require('./chunk-DC3SIU7G.cjs');
10
+ var _chunkIAVOT7U5cjs = require('./chunk-IAVOT7U5.cjs');
11
+ require('./chunk-7X6YELWM.cjs');
12
+ require('./chunk-AUFQBIWE.cjs');
13
+ require('./chunk-KMH6DPCE.cjs');
14
+ require('./chunk-5NAEFF2X.cjs');
15
+ require('./chunk-PVRLG6TD.cjs');
16
+ require('./chunk-ZRFKGZ7M.cjs');
17
17
 
18
18
 
19
- var _chunkGI3GYRQCcjs = require('./chunk-GI3GYRQC.cjs');
19
+ var _chunkVBCOZ7WPcjs = require('./chunk-VBCOZ7WP.cjs');
20
20
 
21
21
  // bin/version-warning.ts
22
- _chunkGI3GYRQCcjs.init_cjs_shims.call(void 0, );
22
+ _chunkVBCOZ7WPcjs.init_cjs_shims.call(void 0, );
23
23
  void (async () => {
24
- const config = await _chunk3ZFT4DK5cjs.getConfig.call(void 0, );
24
+ const config = await _chunkIAVOT7U5cjs.getConfig.call(void 0, );
25
25
  try {
26
- _chunk3ZFT4DK5cjs.handleProcess.call(void 0, config);
27
- _chunk7QTYF5B4cjs.checkPackageVersion.call(void 0, process.argv.slice(1));
26
+ _chunkIAVOT7U5cjs.handleProcess.call(void 0, config);
27
+ _chunkVAMJFMK7cjs.checkPackageVersion.call(void 0, process.argv.slice(1));
28
28
  } catch (error) {
29
- _chunk3ZFT4DK5cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
30
- _chunk3ZFT4DK5cjs.exitWithError.call(void 0, config);
29
+ _chunkIAVOT7U5cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
30
+ _chunkIAVOT7U5cjs.exitWithError.call(void 0, config);
31
31
  process.exit(1);
32
32
  }
33
33
  })();
@@ -1,22 +1,22 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  checkPackageVersion
4
- } from "./chunk-TUNSEFLU.js";
4
+ } from "./chunk-JO24NWND.js";
5
5
  import {
6
6
  exitWithError,
7
7
  getConfig,
8
8
  handleProcess,
9
9
  writeFatal
10
- } from "./chunk-P7N4P3IF.js";
11
- import "./chunk-IITIPRA5.js";
12
- import "./chunk-OKJAVPW6.js";
13
- import "./chunk-HON2WVYK.js";
14
- import "./chunk-PNTLVS6C.js";
15
- import "./chunk-GW4IGINN.js";
16
- import "./chunk-46TFHLDW.js";
10
+ } from "./chunk-JNHNMXXI.js";
11
+ import "./chunk-LIMYU7MD.js";
12
+ import "./chunk-IQBMCLX2.js";
13
+ import "./chunk-XMBE7TLV.js";
14
+ import "./chunk-SVL6A23B.js";
15
+ import "./chunk-CAWZOVX4.js";
16
+ import "./chunk-3XGJBJX7.js";
17
17
  import {
18
18
  init_esm_shims
19
- } from "./chunk-662AMFFX.js";
19
+ } from "./chunk-THX4SGV6.js";
20
20
 
21
21
  // bin/version-warning.ts
22
22
  init_esm_shims();
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkKMH6DPCEcjs = require('./chunk-KMH6DPCE.cjs');
5
+ require('./chunk-ZRFKGZ7M.cjs');
6
+ require('./chunk-VBCOZ7WP.cjs');
7
+
8
+
9
+
10
+ exports.parseYAML = _chunkKMH6DPCEcjs.Ar; exports.stringifyYAML = _chunkKMH6DPCEcjs.vr;
@@ -0,0 +1,10 @@
1
+ import {
2
+ Ar,
3
+ vr
4
+ } from "./chunk-XMBE7TLV.js";
5
+ import "./chunk-3XGJBJX7.js";
6
+ import "./chunk-THX4SGV6.js";
7
+ export {
8
+ Ar as parseYAML,
9
+ vr as stringifyYAML
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.93.9",
3
+ "version": "2.93.11",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkEVE473WJcjs = require('./chunk-EVE473WJ.cjs');
5
- require('./chunk-DC3SIU7G.cjs');
6
- require('./chunk-GI3GYRQC.cjs');
7
-
8
-
9
-
10
- exports.parseJSON5 = _chunkEVE473WJcjs.ou; exports.stringifyJSON5 = _chunkEVE473WJcjs.cu;
@@ -1,10 +0,0 @@
1
- import {
2
- cu,
3
- ou
4
- } from "./chunk-OKJAVPW6.js";
5
- import "./chunk-46TFHLDW.js";
6
- import "./chunk-662AMFFX.js";
7
- export {
8
- ou as parseJSON5,
9
- cu as stringifyJSON5
10
- };