@storm-software/git-tools 2.113.14 → 2.113.17
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/README.md +2 -1
- package/bin/{chunk-TOALWLBQ.js → chunk-54Q5U5WW.js} +2 -8
- package/bin/chunk-AMSZ7DVW.js +17 -0
- package/bin/chunk-CIJVSMK2.cjs +23 -0
- package/bin/chunk-DDGJVTT5.cjs +1622 -0
- package/bin/chunk-NRQQ6RND.js +1581 -0
- package/bin/{chunk-TDO6B2H4.js → chunk-SWXHQXUT.cjs} +3 -8
- package/bin/git.cjs +3013 -81697
- package/bin/git.js +2825 -91795
- package/bin/post-checkout.cjs +16 -36
- package/bin/post-checkout.js +3 -25
- package/bin/post-commit.cjs +16 -36
- package/bin/post-commit.js +3 -25
- package/bin/post-merge.cjs +16 -36
- package/bin/post-merge.js +3 -25
- package/bin/pre-commit.cjs +13 -32
- package/bin/pre-commit.js +2 -23
- package/bin/pre-install.cjs +12 -29
- package/bin/pre-install.js +2 -21
- package/bin/pre-push.cjs +33 -50
- package/bin/pre-push.js +6 -30
- package/bin/prepare.cjs +10 -27
- package/bin/prepare.js +2 -21
- package/bin/version-warning.cjs +8 -23
- package/bin/version-warning.js +2 -19
- package/package.json +7 -10
- package/bin/chunk-2EJN2ZIP.cjs +0 -3631
- package/bin/chunk-2FWQQ2X4.js +0 -35624
- package/bin/chunk-335YPSVH.cjs +0 -111
- package/bin/chunk-5OLGPOTK.js +0 -1003
- package/bin/chunk-5QFXXGFE.js +0 -7427
- package/bin/chunk-D2AN4H4B.js +0 -111
- package/bin/chunk-DTYNP6HG.js +0 -3634
- package/bin/chunk-FMYKTN2Z.cjs +0 -7427
- package/bin/chunk-GSZ2Y7H4.cjs +0 -1003
- package/bin/chunk-GWDOCACN.cjs +0 -27
- package/bin/chunk-H4MEIOPL.cjs +0 -476
- package/bin/chunk-HTVOKCRJ.cjs +0 -25
- package/bin/chunk-IG6EXAQU.cjs +0 -59
- package/bin/chunk-JHBHEVIE.js +0 -55
- package/bin/chunk-MXO7CLUN.cjs +0 -739
- package/bin/chunk-OKG5KNKQ.js +0 -419
- package/bin/chunk-QWTKUQL3.js +0 -739
- package/bin/chunk-R7ZVOQ5D.js +0 -476
- package/bin/chunk-TVPM4C6Y.cjs +0 -419
- package/bin/chunk-UQFYXF6V.cjs +0 -74
- package/bin/chunk-VU7MBHMN.js +0 -74
- package/bin/chunk-WOADGD4X.cjs +0 -35563
- package/bin/dist-GTHSKIW6.cjs +0 -16571
- package/bin/dist-JFDTSOSQ.js +0 -33
- package/bin/dist-JIPEOSES.js +0 -16736
- package/bin/dist-S2SQNR26.cjs +0 -33
- package/bin/esm-MJTK2O7U.js +0 -1708
- package/bin/esm-NOFJXYSW.cjs +0 -1708
- package/bin/json5-PMDKQHWU.js +0 -10
- package/bin/json5-XWK64HEF.cjs +0 -10
- package/bin/jsonc-GWY6R4PV.js +0 -15
- package/bin/jsonc-SBYIKOG2.cjs +0 -15
- package/bin/multipart-parser-HT3QRMAQ.cjs +0 -181
- package/bin/multipart-parser-LDIDKHXR.js +0 -185
- package/bin/toml-CWI7LORJ.cjs +0 -10
- package/bin/toml-KVVESQIU.js +0 -10
- package/bin/utils-EKXINDVD.js +0 -101
- package/bin/utils-P2DNOMLG.cjs +0 -101
- package/bin/yaml-WPTJ2ZU5.cjs +0 -10
- package/bin/yaml-XEVR3LQS.js +0 -10
package/bin/chunk-335YPSVH.cjs
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
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 _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
|
|
6
|
-
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
7
|
-
function serialize(o) {
|
|
8
|
-
return typeof o == "string" ? `'${o}'` : new c().serialize(o);
|
|
9
|
-
}
|
|
10
|
-
var c = /* @__PURE__ */ function() {
|
|
11
|
-
class o {
|
|
12
|
-
#t = /* @__PURE__ */ new Map();
|
|
13
|
-
compare(t, r) {
|
|
14
|
-
const e = typeof t, n = typeof r;
|
|
15
|
-
return e === "string" && n === "string" ? t.localeCompare(r) : e === "number" && n === "number" ? t - r : String.prototype.localeCompare.call(this.serialize(t, true), this.serialize(r, true));
|
|
16
|
-
}
|
|
17
|
-
serialize(t, r) {
|
|
18
|
-
if (t === null) return "null";
|
|
19
|
-
switch (typeof t) {
|
|
20
|
-
case "string":
|
|
21
|
-
return r ? t : `'${t}'`;
|
|
22
|
-
case "bigint":
|
|
23
|
-
return `${t}n`;
|
|
24
|
-
case "object":
|
|
25
|
-
return this.$object(t);
|
|
26
|
-
case "function":
|
|
27
|
-
return this.$function(t);
|
|
28
|
-
}
|
|
29
|
-
return String(t);
|
|
30
|
-
}
|
|
31
|
-
serializeObject(t) {
|
|
32
|
-
const r = Object.prototype.toString.call(t);
|
|
33
|
-
if (r !== "[object Object]") return this.serializeBuiltInType(r.length < 10 ? `unknown:${r}` : r.slice(8, -1), t);
|
|
34
|
-
const e = t.constructor, n = e === Object || e === void 0 ? "" : e.name;
|
|
35
|
-
if (n !== "" && globalThis[n] === e) return this.serializeBuiltInType(n, t);
|
|
36
|
-
if (typeof t.toJSON == "function") {
|
|
37
|
-
const i = t.toJSON();
|
|
38
|
-
return n + (i !== null && typeof i == "object" ? this.$object(i) : `(${this.serialize(i)})`);
|
|
39
|
-
}
|
|
40
|
-
return this.serializeObjectEntries(n, Object.entries(t));
|
|
41
|
-
}
|
|
42
|
-
serializeBuiltInType(t, r) {
|
|
43
|
-
const e = this["$" + t];
|
|
44
|
-
if (e) return e.call(this, r);
|
|
45
|
-
if (typeof _optionalChain([r, 'optionalAccess', _ => _.entries]) == "function") return this.serializeObjectEntries(t, r.entries());
|
|
46
|
-
throw new Error(`Cannot serialize ${t}`);
|
|
47
|
-
}
|
|
48
|
-
serializeObjectEntries(t, r) {
|
|
49
|
-
const e = Array.from(r).sort((i, a) => this.compare(i[0], a[0]));
|
|
50
|
-
let n = `${t}{`;
|
|
51
|
-
for (let i = 0; i < e.length; i++) {
|
|
52
|
-
const [a, l] = e[i];
|
|
53
|
-
n += `${this.serialize(a, true)}:${this.serialize(l)}`, i < e.length - 1 && (n += ",");
|
|
54
|
-
}
|
|
55
|
-
return n + "}";
|
|
56
|
-
}
|
|
57
|
-
$object(t) {
|
|
58
|
-
let r = this.#t.get(t);
|
|
59
|
-
return r === void 0 && (this.#t.set(t, `#${this.#t.size}`), r = this.serializeObject(t), this.#t.set(t, r)), r;
|
|
60
|
-
}
|
|
61
|
-
$function(t) {
|
|
62
|
-
const r = Function.prototype.toString.call(t);
|
|
63
|
-
return r.slice(-15) === "[native code] }" ? `${t.name || ""}()[native]` : `${t.name}(${t.length})${r.replace(/\s*\n\s*/g, "")}`;
|
|
64
|
-
}
|
|
65
|
-
$Array(t) {
|
|
66
|
-
let r = "[";
|
|
67
|
-
for (let e = 0; e < t.length; e++) r += this.serialize(t[e]), e < t.length - 1 && (r += ",");
|
|
68
|
-
return r + "]";
|
|
69
|
-
}
|
|
70
|
-
$Date(t) {
|
|
71
|
-
try {
|
|
72
|
-
return `Date(${t.toISOString()})`;
|
|
73
|
-
} catch (e2) {
|
|
74
|
-
return "Date(null)";
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
$ArrayBuffer(t) {
|
|
78
|
-
return `ArrayBuffer[${new Uint8Array(t).join(",")}]`;
|
|
79
|
-
}
|
|
80
|
-
$Set(t) {
|
|
81
|
-
return `Set${this.$Array(Array.from(t).sort((r, e) => this.compare(r, e)))}`;
|
|
82
|
-
}
|
|
83
|
-
$Map(t) {
|
|
84
|
-
return this.serializeObjectEntries("Map", t.entries());
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
for (const s of ["Error", "RegExp", "URL"]) o.prototype["$" + s] = function(t) {
|
|
88
|
-
return `${s}(${t})`;
|
|
89
|
-
};
|
|
90
|
-
for (const s of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]) o.prototype["$" + s] = function(t) {
|
|
91
|
-
return `${s}[${t.join(",")}]`;
|
|
92
|
-
};
|
|
93
|
-
for (const s of ["BigInt64Array", "BigUint64Array"]) o.prototype["$" + s] = function(t) {
|
|
94
|
-
return `${s}[${t.join("n,")}${t.length > 0 ? "n" : ""}]`;
|
|
95
|
-
};
|
|
96
|
-
return o;
|
|
97
|
-
}();
|
|
98
|
-
function isEqual(object1, object2) {
|
|
99
|
-
if (object1 === object2) {
|
|
100
|
-
return true;
|
|
101
|
-
}
|
|
102
|
-
if (serialize(object1) === serialize(object2)) {
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
exports.serialize = serialize; exports.isEqual = isEqual;
|