@storm-software/git-tools 2.113.15 → 2.113.18

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 (66) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-TOALWLBQ.js → chunk-54Q5U5WW.js} +2 -8
  3. package/bin/chunk-AMSZ7DVW.js +17 -0
  4. package/bin/chunk-CIJVSMK2.cjs +23 -0
  5. package/bin/chunk-DDGJVTT5.cjs +1622 -0
  6. package/bin/chunk-NRQQ6RND.js +1581 -0
  7. package/bin/{chunk-TDO6B2H4.js → chunk-SWXHQXUT.cjs} +3 -8
  8. package/bin/git.cjs +3013 -81697
  9. package/bin/git.js +2825 -91795
  10. package/bin/post-checkout.cjs +16 -36
  11. package/bin/post-checkout.js +3 -25
  12. package/bin/post-commit.cjs +16 -36
  13. package/bin/post-commit.js +3 -25
  14. package/bin/post-merge.cjs +16 -36
  15. package/bin/post-merge.js +3 -25
  16. package/bin/pre-commit.cjs +13 -32
  17. package/bin/pre-commit.js +2 -23
  18. package/bin/pre-install.cjs +12 -29
  19. package/bin/pre-install.js +2 -21
  20. package/bin/pre-push.cjs +33 -50
  21. package/bin/pre-push.js +6 -30
  22. package/bin/prepare.cjs +10 -27
  23. package/bin/prepare.js +2 -21
  24. package/bin/version-warning.cjs +8 -23
  25. package/bin/version-warning.js +2 -19
  26. package/package.json +15 -32
  27. package/bin/chunk-2EJN2ZIP.cjs +0 -3631
  28. package/bin/chunk-2FWQQ2X4.js +0 -35624
  29. package/bin/chunk-335YPSVH.cjs +0 -111
  30. package/bin/chunk-5OLGPOTK.js +0 -1003
  31. package/bin/chunk-5QFXXGFE.js +0 -7427
  32. package/bin/chunk-D2AN4H4B.js +0 -111
  33. package/bin/chunk-DTYNP6HG.js +0 -3634
  34. package/bin/chunk-FMYKTN2Z.cjs +0 -7427
  35. package/bin/chunk-GSZ2Y7H4.cjs +0 -1003
  36. package/bin/chunk-GWDOCACN.cjs +0 -27
  37. package/bin/chunk-H4MEIOPL.cjs +0 -476
  38. package/bin/chunk-HTVOKCRJ.cjs +0 -25
  39. package/bin/chunk-IG6EXAQU.cjs +0 -59
  40. package/bin/chunk-JHBHEVIE.js +0 -55
  41. package/bin/chunk-MXO7CLUN.cjs +0 -739
  42. package/bin/chunk-OKG5KNKQ.js +0 -419
  43. package/bin/chunk-QWTKUQL3.js +0 -739
  44. package/bin/chunk-R7ZVOQ5D.js +0 -476
  45. package/bin/chunk-TVPM4C6Y.cjs +0 -419
  46. package/bin/chunk-UQFYXF6V.cjs +0 -74
  47. package/bin/chunk-VU7MBHMN.js +0 -74
  48. package/bin/chunk-WOADGD4X.cjs +0 -35563
  49. package/bin/dist-GTHSKIW6.cjs +0 -16571
  50. package/bin/dist-JFDTSOSQ.js +0 -33
  51. package/bin/dist-JIPEOSES.js +0 -16736
  52. package/bin/dist-S2SQNR26.cjs +0 -33
  53. package/bin/esm-MJTK2O7U.js +0 -1708
  54. package/bin/esm-NOFJXYSW.cjs +0 -1708
  55. package/bin/json5-PMDKQHWU.js +0 -10
  56. package/bin/json5-XWK64HEF.cjs +0 -10
  57. package/bin/jsonc-GWY6R4PV.js +0 -15
  58. package/bin/jsonc-SBYIKOG2.cjs +0 -15
  59. package/bin/multipart-parser-HT3QRMAQ.cjs +0 -181
  60. package/bin/multipart-parser-LDIDKHXR.js +0 -185
  61. package/bin/toml-CWI7LORJ.cjs +0 -10
  62. package/bin/toml-KVVESQIU.js +0 -10
  63. package/bin/utils-EKXINDVD.js +0 -101
  64. package/bin/utils-P2DNOMLG.cjs +0 -101
  65. package/bin/yaml-WPTJ2ZU5.cjs +0 -10
  66. package/bin/yaml-XEVR3LQS.js +0 -10
@@ -1,27 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
-
3
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
4
-
5
- // ../config-tools/src/utilities/run.ts
6
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
7
- var _child_process = require('child_process');
8
- var LARGE_BUFFER = 1024 * 1e6;
9
- var run = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
10
- return _child_process.execSync.call(void 0, command, {
11
- cwd,
12
- env: {
13
- ...process.env,
14
- ...env,
15
- CLICOLOR: "true",
16
- FORCE_COLOR: "true"
17
- },
18
- windowsHide: true,
19
- stdio,
20
- maxBuffer: LARGE_BUFFER,
21
- killSignal: "SIGTERM"
22
- });
23
- };
24
-
25
-
26
-
27
- exports.run = run;
@@ -1,476 +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
-
4
- var _chunkUQFYXF6Vcjs = require('./chunk-UQFYXF6V.cjs');
5
-
6
-
7
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
8
-
9
- // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/toml.mjs
10
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
11
- var F = Object.defineProperty;
12
- var V = (e, n, t) => n in e ? F(e, n, { enumerable: true, configurable: true, writable: true, value: t }) : e[n] = t;
13
- var O = (e, n, t) => (V(e, typeof n != "symbol" ? n + "" : n, t), t);
14
- var L = (e, n, t) => {
15
- if (!n.has(e)) throw TypeError("Cannot " + t);
16
- };
17
- var d = (e, n, t) => (L(e, n, "read from private field"), t ? t.call(e) : n.get(e));
18
- var T = (e, n, t) => {
19
- if (n.has(e)) throw TypeError("Cannot add the same private member more than once");
20
- n instanceof WeakSet ? n.add(e) : n.set(e, t);
21
- };
22
- var w = (e, n, t, i) => (L(e, n, "write to private field"), i ? i.call(e, t) : n.set(e, t), t);
23
- var h;
24
- var m;
25
- var s;
26
- function U(e, n) {
27
- let t = e.slice(0, n).split(/\r\n|\n|\r/g);
28
- return [t.length, t.pop().length + 1];
29
- }
30
- function X(e, n, t) {
31
- let i = e.split(/\r\n|\n|\r/g), l = "", r = (Math.log10(n + 1) | 0) + 1;
32
- for (let f = n - 1; f <= n + 1; f++) {
33
- let o = i[f - 1];
34
- o && (l += f.toString().padEnd(r, " "), l += ": ", l += o, l += `
35
- `, f === n && (l += " ".repeat(r + t + 2), l += `^
36
- `));
37
- }
38
- return l;
39
- }
40
- var u = class extends Error {
41
- constructor(t, i) {
42
- const [l, r] = U(i.toml, i.ptr), f = X(i.toml, l, r);
43
- super(`Invalid TOML document: ${t}
44
-
45
- ${f}`, i);
46
- O(this, "line");
47
- O(this, "column");
48
- O(this, "codeblock");
49
- this.line = l, this.column = r, this.codeblock = f;
50
- }
51
- };
52
- function x(e, n = 0, t = e.length) {
53
- let i = e.indexOf(`
54
- `, n);
55
- return e[i - 1] === "\r" && i--, i <= t ? i : -1;
56
- }
57
- function A(e, n) {
58
- for (let t = n; t < e.length; t++) {
59
- let i = e[t];
60
- if (i === `
61
- `) return t;
62
- if (i === "\r" && e[t + 1] === `
63
- `) return t + 1;
64
- if (i < " " && i !== " " || i === "\x7F") throw new u("control characters are not allowed in comments", { toml: e, ptr: n });
65
- }
66
- return e.length;
67
- }
68
- function g(e, n, t, i) {
69
- let l;
70
- for (; (l = e[n]) === " " || l === " " || !t && (l === `
71
- ` || l === "\r" && e[n + 1] === `
72
- `); ) n++;
73
- return i || l !== "#" ? n : g(e, A(e, n), t);
74
- }
75
- function P(e, n, t, i, l = false) {
76
- if (!i) return n = x(e, n), n < 0 ? e.length : n;
77
- for (let r = n; r < e.length; r++) {
78
- let f = e[r];
79
- if (f === "#") r = x(e, r);
80
- else {
81
- if (f === t) return r + 1;
82
- if (f === i) return r;
83
- if (l && (f === `
84
- ` || f === "\r" && e[r + 1] === `
85
- `)) return r;
86
- }
87
- }
88
- throw new u("cannot find end of structure", { toml: e, ptr: n });
89
- }
90
- function v(e, n) {
91
- let t = e[n], i = t === e[n + 1] && e[n + 1] === e[n + 2] ? e.slice(n, n + 3) : t;
92
- n += i.length - 1;
93
- do
94
- n = e.indexOf(i, ++n);
95
- while (n > -1 && t !== "'" && e[n - 1] === "\\" && e[n - 2] !== "\\");
96
- return n > -1 && (n += i.length, i.length > 1 && (e[n] === t && n++, e[n] === t && n++)), n;
97
- }
98
- var B = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
99
- var b = class b2 extends Date {
100
- constructor(t) {
101
- let i = true, l = true, r = "Z";
102
- if (typeof t == "string") {
103
- let f = t.match(B);
104
- f ? (f[1] || (i = false, t = `0000-01-01T${t}`), l = !!f[2], f[2] && +f[2] > 23 ? t = "" : (r = f[3] || null, t = t.toUpperCase(), !r && l && (t += "Z"))) : t = "";
105
- }
106
- super(t);
107
- T(this, h, false);
108
- T(this, m, false);
109
- T(this, s, null);
110
- isNaN(this.getTime()) || (w(this, h, i), w(this, m, l), w(this, s, r));
111
- }
112
- isDateTime() {
113
- return d(this, h) && d(this, m);
114
- }
115
- isLocal() {
116
- return !d(this, h) || !d(this, m) || !d(this, s);
117
- }
118
- isDate() {
119
- return d(this, h) && !d(this, m);
120
- }
121
- isTime() {
122
- return d(this, m) && !d(this, h);
123
- }
124
- isValid() {
125
- return d(this, h) || d(this, m);
126
- }
127
- toISOString() {
128
- let t = super.toISOString();
129
- if (this.isDate()) return t.slice(0, 10);
130
- if (this.isTime()) return t.slice(11, 23);
131
- if (d(this, s) === null) return t.slice(0, -1);
132
- if (d(this, s) === "Z") return t;
133
- let i = +d(this, s).slice(1, 3) * 60 + +d(this, s).slice(4, 6);
134
- return i = d(this, s)[0] === "-" ? i : -i, new Date(this.getTime() - i * 6e4).toISOString().slice(0, -1) + d(this, s);
135
- }
136
- static wrapAsOffsetDateTime(t, i = "Z") {
137
- let l = new b2(t);
138
- return w(l, s, i), l;
139
- }
140
- static wrapAsLocalDateTime(t) {
141
- let i = new b2(t);
142
- return w(i, s, null), i;
143
- }
144
- static wrapAsLocalDate(t) {
145
- let i = new b2(t);
146
- return w(i, m, false), w(i, s, null), i;
147
- }
148
- static wrapAsLocalTime(t) {
149
- let i = new b2(t);
150
- return w(i, h, false), w(i, s, null), i;
151
- }
152
- };
153
- h = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap();
154
- var S = b;
155
- var Y = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
156
- var j = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
157
- var q = /^[+-]?0[0-9_]/;
158
- var J = /^[0-9a-f]{4,8}$/i;
159
- var R = { b: "\b", t: " ", n: `
160
- `, f: "\f", r: "\r", '"': '"', "\\": "\\" };
161
- function C2(e, n = 0, t = e.length) {
162
- let i = e[n] === "'", l = e[n++] === e[n] && e[n] === e[n + 1];
163
- l && (t -= 2, e[n += 2] === "\r" && n++, e[n] === `
164
- ` && n++);
165
- let r = 0, f, o = "", a = n;
166
- for (; n < t - 1; ) {
167
- let c = e[n++];
168
- if (c === `
169
- ` || c === "\r" && e[n] === `
170
- `) {
171
- if (!l) throw new u("newlines are not allowed in strings", { toml: e, ptr: n - 1 });
172
- } else if (c < " " && c !== " " || c === "\x7F") throw new u("control characters are not allowed in strings", { toml: e, ptr: n - 1 });
173
- if (f) {
174
- if (f = false, c === "u" || c === "U") {
175
- let y = e.slice(n, n += c === "u" ? 4 : 8);
176
- if (!J.test(y)) throw new u("invalid unicode escape", { toml: e, ptr: r });
177
- try {
178
- o += String.fromCodePoint(parseInt(y, 16));
179
- } catch (e2) {
180
- throw new u("invalid unicode escape", { toml: e, ptr: r });
181
- }
182
- } else if (l && (c === `
183
- ` || c === " " || c === " " || c === "\r")) {
184
- if (n = g(e, n - 1, true), e[n] !== `
185
- ` && e[n] !== "\r") throw new u("invalid escape: only line-ending whitespace may be escaped", { toml: e, ptr: r });
186
- n = g(e, n);
187
- } else if (c in R) o += R[c];
188
- else throw new u("unrecognized escape sequence", { toml: e, ptr: r });
189
- a = n;
190
- } else !i && c === "\\" && (r = n - 1, f = true, o += e.slice(a, r));
191
- }
192
- return o + e.slice(a, t - 1);
193
- }
194
- function H(e, n, t) {
195
- if (e === "true") return true;
196
- if (e === "false") return false;
197
- if (e === "-inf") return -1 / 0;
198
- if (e === "inf" || e === "+inf") return 1 / 0;
199
- if (e === "nan" || e === "+nan" || e === "-nan") return NaN;
200
- if (e === "-0") return 0;
201
- let i;
202
- if ((i = Y.test(e)) || j.test(e)) {
203
- if (q.test(e)) throw new u("leading zeroes are not allowed", { toml: n, ptr: t });
204
- let r = +e.replace(/_/g, "");
205
- if (isNaN(r)) throw new u("invalid number", { toml: n, ptr: t });
206
- if (i && !Number.isSafeInteger(r)) throw new u("integer value cannot be represented losslessly", { toml: n, ptr: t });
207
- return r;
208
- }
209
- let l = new S(e);
210
- if (!l.isValid()) throw new u("invalid value", { toml: n, ptr: t });
211
- return l;
212
- }
213
- function Q(e, n, t, i) {
214
- let l = e.slice(n, t), r = l.indexOf("#");
215
- r > -1 && (A(e, r), l = l.slice(0, r));
216
- let f = l.trimEnd();
217
- if (!i) {
218
- let o = l.indexOf(`
219
- `, f.length);
220
- if (o > -1) throw new u("newlines are not allowed in inline tables", { toml: e, ptr: n + o });
221
- }
222
- return [f, r];
223
- }
224
- function I(e, n, t) {
225
- let i = e[n];
226
- if (i === "[" || i === "{") {
227
- let [f, o] = i === "[" ? ne(e, n) : ee(e, n), a = P(e, o, ",", t);
228
- if (t === "}") {
229
- let c = x(e, o, a);
230
- if (c > -1) throw new u("newlines are not allowed in inline tables", { toml: e, ptr: c });
231
- }
232
- return [f, a];
233
- }
234
- let l;
235
- if (i === '"' || i === "'") {
236
- l = v(e, n);
237
- let f = C2(e, n, l);
238
- if (t) {
239
- if (l = g(e, l, t !== "]"), e[l] && e[l] !== "," && e[l] !== t && e[l] !== `
240
- ` && e[l] !== "\r") throw new u("unexpected character encountered", { toml: e, ptr: l });
241
- l += +(e[l] === ",");
242
- }
243
- return [f, l];
244
- }
245
- l = P(e, n, ",", t);
246
- let r = Q(e, n, l - +(e[l - 1] === ","), t === "]");
247
- if (!r[0]) throw new u("incomplete key-value declaration: no value specified", { toml: e, ptr: n });
248
- return t && r[1] > -1 && (l = g(e, n + r[1]), l += +(e[l] === ",")), [H(r[0], e, n), l];
249
- }
250
- var W = /^[a-zA-Z0-9-_]+[ \t]*$/;
251
- function p(e, n, t = "=") {
252
- let i = n - 1, l = [], r = e.indexOf(t, n);
253
- if (r < 0) throw new u("incomplete key-value: cannot find end of key", { toml: e, ptr: n });
254
- do {
255
- let f = e[n = ++i];
256
- if (f !== " " && f !== " ") if (f === '"' || f === "'") {
257
- if (f === e[n + 1] && f === e[n + 2]) throw new u("multiline strings are not allowed in keys", { toml: e, ptr: n });
258
- let o = v(e, n);
259
- if (o < 0) throw new u("unfinished string encountered", { toml: e, ptr: n });
260
- i = e.indexOf(".", o);
261
- let a = e.slice(o, i < 0 || i > r ? r : i), c = x(a);
262
- if (c > -1) throw new u("newlines are not allowed in keys", { toml: e, ptr: n + i + c });
263
- if (a.trimStart()) throw new u("found extra tokens after the string part", { toml: e, ptr: o });
264
- if (r < o && (r = e.indexOf(t, o), r < 0)) throw new u("incomplete key-value: cannot find end of key", { toml: e, ptr: n });
265
- l.push(C2(e, n, o));
266
- } else {
267
- i = e.indexOf(".", n);
268
- let o = e.slice(n, i < 0 || i > r ? r : i);
269
- if (!W.test(o)) throw new u("only letter, numbers, dashes and underscores are allowed in keys", { toml: e, ptr: n });
270
- l.push(o.trimEnd());
271
- }
272
- } while (i + 1 && i < r);
273
- return [l, g(e, r + 1, true, true)];
274
- }
275
- function ee(e, n) {
276
- let t = {}, i = /* @__PURE__ */ new Set(), l, r = 0;
277
- for (n++; (l = e[n++]) !== "}" && l; ) {
278
- if (l === `
279
- `) throw new u("newlines are not allowed in inline tables", { toml: e, ptr: n - 1 });
280
- if (l === "#") throw new u("inline tables cannot contain comments", { toml: e, ptr: n - 1 });
281
- if (l === ",") throw new u("expected key-value, found comma", { toml: e, ptr: n - 1 });
282
- if (l !== " " && l !== " ") {
283
- let f, o = t, a = false, [c, y] = p(e, n - 1);
284
- for (let E = 0; E < c.length; E++) {
285
- if (E && (o = a ? o[f] : o[f] = {}), f = c[E], (a = Object.hasOwn(o, f)) && (typeof o[f] != "object" || i.has(o[f]))) throw new u("trying to redefine an already defined value", { toml: e, ptr: n });
286
- !a && f === "__proto__" && Object.defineProperty(o, f, { enumerable: true, configurable: true, writable: true });
287
- }
288
- if (a) throw new u("trying to redefine an already defined value", { toml: e, ptr: n });
289
- let [k, z] = I(e, y, "}");
290
- i.add(k), o[f] = k, n = z, r = e[n - 1] === "," ? n - 1 : 0;
291
- }
292
- }
293
- if (r) throw new u("trailing commas are not allowed in inline tables", { toml: e, ptr: r });
294
- if (!l) throw new u("unfinished table encountered", { toml: e, ptr: n });
295
- return [t, n];
296
- }
297
- function ne(e, n) {
298
- let t = [], i;
299
- for (n++; (i = e[n++]) !== "]" && i; ) {
300
- if (i === ",") throw new u("expected value, found comma", { toml: e, ptr: n - 1 });
301
- if (i === "#") n = A(e, n);
302
- else if (i !== " " && i !== " " && i !== `
303
- ` && i !== "\r") {
304
- let l = I(e, n - 1, "]");
305
- t.push(l[0]), n = l[1];
306
- }
307
- }
308
- if (!i) throw new u("unfinished array encountered", { toml: e, ptr: n });
309
- return [t, n];
310
- }
311
- function M(e, n, t, i) {
312
- let l = n, r = t, f, o = false, a;
313
- for (let c = 0; c < e.length; c++) {
314
- if (c) {
315
- if (l = o ? l[f] : l[f] = {}, r = (a = r[f]).c, i === 0 && (a.t === 1 || a.t === 2)) return null;
316
- if (a.t === 2) {
317
- let y = l.length - 1;
318
- l = l[y], r = r[y].c;
319
- }
320
- }
321
- if (f = e[c], (o = Object.hasOwn(l, f)) && _optionalChain([r, 'access', _2 => _2[f], 'optionalAccess', _3 => _3.t]) === 0 && _optionalChain([r, 'access', _4 => _4[f], 'optionalAccess', _5 => _5.d])) return null;
322
- o || (f === "__proto__" && (Object.defineProperty(l, f, { enumerable: true, configurable: true, writable: true }), Object.defineProperty(r, f, { enumerable: true, configurable: true, writable: true })), r[f] = { t: c < e.length - 1 && i === 2 ? 3 : i, d: false, i: 0, c: {} });
323
- }
324
- if (a = r[f], a.t !== i && !(i === 1 && a.t === 3) || (i === 2 && (a.d || (a.d = true, l[f] = []), l[f].push(l = {}), a.c[a.i++] = a = { t: 1, d: false, i: 0, c: {} }), a.d)) return null;
325
- if (a.d = true, i === 1) l = o ? l[f] : l[f] = {};
326
- else if (i === 0 && o) return null;
327
- return [f, l, a.c];
328
- }
329
- function te(e) {
330
- let n = {}, t = {}, i = n, l = t;
331
- for (let r = g(e, 0); r < e.length; ) {
332
- if (e[r] === "[") {
333
- let f = e[++r] === "[", o = p(e, r += +f, "]");
334
- if (f) {
335
- if (e[o[1] - 1] !== "]") throw new u("expected end of table declaration", { toml: e, ptr: o[1] - 1 });
336
- o[1]++;
337
- }
338
- let a = M(o[0], n, t, f ? 2 : 1);
339
- if (!a) throw new u("trying to redefine an already defined table or value", { toml: e, ptr: r });
340
- l = a[2], i = a[1], r = o[1];
341
- } else {
342
- let f = p(e, r), o = M(f[0], i, l, 0);
343
- if (!o) throw new u("trying to redefine an already defined table or value", { toml: e, ptr: r });
344
- let a = I(e, f[1]);
345
- o[1][o[0]] = a[0], r = a[1];
346
- }
347
- if (r = g(e, r, true), e[r] && e[r] !== `
348
- ` && e[r] !== "\r") throw new u("each key-value declaration must be followed by an end-of-line", { toml: e, ptr: r });
349
- r = g(e, r);
350
- }
351
- return n;
352
- }
353
- var Z = /^[a-z0-9-_]+$/i;
354
- function _(e) {
355
- let n = typeof e;
356
- if (n === "object") {
357
- if (Array.isArray(e)) return "array";
358
- if (e instanceof Date) return "date";
359
- }
360
- return n;
361
- }
362
- function ie(e) {
363
- for (let n = 0; n < e.length; n++) if (_(e[n]) !== "object") return false;
364
- return e.length != 0;
365
- }
366
- function $(e) {
367
- return JSON.stringify(e).replace(/\x7f/g, "\\u007f");
368
- }
369
- function N2(e, n = _(e)) {
370
- if (n === "number") return isNaN(e) ? "nan" : e === 1 / 0 ? "inf" : e === -1 / 0 ? "-inf" : e.toString();
371
- if (n === "bigint" || n === "boolean") return e.toString();
372
- if (n === "string") return $(e);
373
- if (n === "date") {
374
- if (isNaN(e.getTime())) throw new TypeError("cannot serialize invalid date");
375
- return e.toISOString();
376
- }
377
- if (n === "object") return le(e);
378
- if (n === "array") return re(e);
379
- }
380
- function le(e) {
381
- let n = Object.keys(e);
382
- if (n.length === 0) return "{}";
383
- let t = "{ ";
384
- for (let i = 0; i < n.length; i++) {
385
- let l = n[i];
386
- i && (t += ", "), t += Z.test(l) ? l : $(l), t += " = ", t += N2(e[l]);
387
- }
388
- return t + " }";
389
- }
390
- function re(e) {
391
- if (e.length === 0) return "[]";
392
- let n = "[ ";
393
- for (let t = 0; t < e.length; t++) {
394
- if (t && (n += ", "), e[t] === null || e[t] === void 0) throw new TypeError("arrays cannot contain null or undefined values");
395
- n += N2(e[t]);
396
- }
397
- return n + " ]";
398
- }
399
- function fe(e, n) {
400
- let t = "";
401
- for (let i = 0; i < e.length; i++) t += `[[${n}]]
402
- `, t += D(e[i], n), t += `
403
-
404
- `;
405
- return t;
406
- }
407
- function D(e, n = "") {
408
- let t = "", i = "", l = Object.keys(e);
409
- for (let r = 0; r < l.length; r++) {
410
- let f = l[r];
411
- if (e[f] !== null && e[f] !== void 0) {
412
- let o = _(e[f]);
413
- if (o === "symbol" || o === "function") throw new TypeError(`cannot serialize values of type '${o}'`);
414
- let a = Z.test(f) ? f : $(f);
415
- if (o === "array" && ie(e[f])) i += fe(e[f], n ? `${n}.${a}` : a);
416
- else if (o === "object") {
417
- let c = n ? `${n}.${a}` : a;
418
- i += `[${c}]
419
- `, i += D(e[f], c), i += `
420
-
421
- `;
422
- } else t += a, t += " = ", t += N2(e[f], o), t += `
423
- `;
424
- }
425
- }
426
- return `${t}
427
- ${i}`.trim();
428
- }
429
- function oe(e) {
430
- if (_(e) !== "object") throw new TypeError("stringify can only be called with an object");
431
- return D(e);
432
- }
433
- function ae(e) {
434
- const n = te(e);
435
- return _chunkUQFYXF6Vcjs.N.call(void 0, e, n, { preserveIndentation: false }), n;
436
- }
437
- function ue(e) {
438
- const n = _chunkUQFYXF6Vcjs.C.call(void 0, e, { preserveIndentation: false }), t = oe(e);
439
- return n.whitespace.start + t + n.whitespace.end;
440
- }
441
-
442
-
443
-
444
-
445
- exports.ae = ae; exports.ue = ue;
446
- /*! Bundled license information:
447
-
448
- confbox/dist/toml.mjs:
449
- (*!
450
- * Copyright (c) Squirrel Chat et al., All rights reserved.
451
- * SPDX-License-Identifier: BSD-3-Clause
452
- *
453
- * Redistribution and use in source and binary forms, with or without
454
- * modification, are permitted provided that the following conditions are met:
455
- *
456
- * 1. Redistributions of source code must retain the above copyright notice, this
457
- * list of conditions and the following disclaimer.
458
- * 2. Redistributions in binary form must reproduce the above copyright notice,
459
- * this list of conditions and the following disclaimer in the
460
- * documentation and/or other materials provided with the distribution.
461
- * 3. Neither the name of the copyright holder nor the names of its contributors
462
- * may be used to endorse or promote products derived from this software without
463
- * specific prior written permission.
464
- *
465
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
466
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
467
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
468
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
469
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
470
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
471
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
472
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
473
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
474
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
475
- *)
476
- */
@@ -1,25 +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
- // src/utilities/check-package-version.ts
6
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
7
- var isPackageVersionChanged = (fields) => _optionalChain([fields, 'optionalAccess', _ => _.some, 'call', _2 => _2(
8
- (arg) => arg.includes("package-lock.json") || arg.includes("yarn.lock") || arg.includes("pnpm-lock.json") || arg.includes("pnpm-lock.yaml") || arg.includes("pnpm-lock.yml") || arg.includes("bun.lockb")
9
- )]);
10
- var checkPackageVersion = (fields) => {
11
- if (isPackageVersionChanged(fields)) {
12
- console.warn(
13
- [
14
- "\u26A0\uFE0F ----------------------------------------------------------------------------------------- \u26A0\uFE0F",
15
- "\u26A0\uFE0F The pnpm-lock file changed! Please run `pnpm i` to ensure your packages are up to date. \u26A0\uFE0F",
16
- "\u26A0\uFE0F ----------------------------------------------------------------------------------------- \u26A0\uFE0F"
17
- ].join("\n")
18
- );
19
- }
20
- };
21
-
22
-
23
-
24
-
25
- exports.isPackageVersionChanged = isPackageVersionChanged; exports.checkPackageVersion = checkPackageVersion;
@@ -1,59 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __esm = (fn, res) => function __init() {
14
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
- };
16
- var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
- };
19
- var __export = (target, all) => {
20
- for (var name in all)
21
- __defProp(target, name, { get: all[name], enumerable: true });
22
- };
23
- var __copyProps = (to, from, except, desc) => {
24
- if (from && typeof from === "object" || typeof from === "function") {
25
- for (let key of __getOwnPropNames(from))
26
- if (!__hasOwnProp.call(to, key) && key !== except)
27
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
- }
29
- return to;
30
- };
31
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
- // If the importer is in node compatibility mode or this is not an ESM
33
- // file that has been converted to a CommonJS file using a Babel-
34
- // compatible transform (i.e. "__esModule" has not been set), then set
35
- // "default" to the CommonJS "module.exports" for node compatibility.
36
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
- mod
38
- ));
39
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
-
41
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__eee9e0950d5de6bd0e6ebee65aaf68de/node_modules/tsup/assets/cjs_shims.js
42
- var getImportMetaUrl, importMetaUrl;
43
- var init_cjs_shims = __esm({
44
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__eee9e0950d5de6bd0e6ebee65aaf68de/node_modules/tsup/assets/cjs_shims.js"() {
45
- getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
46
- importMetaUrl = exports.importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
47
- }
48
- });
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
- exports.__require = __require; exports.__esm = __esm; exports.__commonJS = __commonJS; exports.__export = __export; exports.__toESM = __toESM; exports.__toCommonJS = __toCommonJS; exports.importMetaUrl = importMetaUrl; exports.init_cjs_shims = init_cjs_shims;
@@ -1,55 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __esm = (fn, res) => function __init() {
14
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
- };
16
- var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
- };
19
- var __export = (target, all) => {
20
- for (var name in all)
21
- __defProp(target, name, { get: all[name], enumerable: true });
22
- };
23
- var __copyProps = (to, from, except, desc) => {
24
- if (from && typeof from === "object" || typeof from === "function") {
25
- for (let key of __getOwnPropNames(from))
26
- if (!__hasOwnProp.call(to, key) && key !== except)
27
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
- }
29
- return to;
30
- };
31
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
- // If the importer is in node compatibility mode or this is not an ESM
33
- // file that has been converted to a CommonJS file using a Babel-
34
- // compatible transform (i.e. "__esModule" has not been set), then set
35
- // "default" to the CommonJS "module.exports" for node compatibility.
36
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
- mod
38
- ));
39
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
-
41
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__eee9e0950d5de6bd0e6ebee65aaf68de/node_modules/tsup/assets/esm_shims.js
42
- var init_esm_shims = __esm({
43
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__eee9e0950d5de6bd0e6ebee65aaf68de/node_modules/tsup/assets/esm_shims.js"() {
44
- }
45
- });
46
-
47
- export {
48
- __require,
49
- __esm,
50
- __commonJS,
51
- __export,
52
- __toESM,
53
- __toCommonJS,
54
- init_esm_shims
55
- };