@storm-software/git-tools 2.113.15 → 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.
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 +7 -12
  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,10 +0,0 @@
1
- import {
2
- cu,
3
- ou
4
- } from "./chunk-QWTKUQL3.js";
5
- import "./chunk-VU7MBHMN.js";
6
- import "./chunk-JHBHEVIE.js";
7
- export {
8
- ou as parseJSON5,
9
- cu as stringifyJSON5
10
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkMXO7CLUNcjs = require('./chunk-MXO7CLUN.cjs');
5
- require('./chunk-UQFYXF6V.cjs');
6
- require('./chunk-IG6EXAQU.cjs');
7
-
8
-
9
-
10
- exports.parseJSON5 = _chunkMXO7CLUNcjs.ou; exports.stringifyJSON5 = _chunkMXO7CLUNcjs.cu;
@@ -1,15 +0,0 @@
1
- import {
2
- d,
3
- h
4
- } from "./chunk-OKG5KNKQ.js";
5
- import "./chunk-VU7MBHMN.js";
6
- import {
7
- init_esm_shims
8
- } from "./chunk-JHBHEVIE.js";
9
-
10
- // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/jsonc.mjs
11
- init_esm_shims();
12
- export {
13
- h as parseJSONC,
14
- d as stringifyJSONC
15
- };
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkTVPM4C6Ycjs = require('./chunk-TVPM4C6Y.cjs');
5
- require('./chunk-UQFYXF6V.cjs');
6
-
7
-
8
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
9
-
10
- // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/jsonc.mjs
11
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
12
-
13
-
14
-
15
- exports.parseJSONC = _chunkTVPM4C6Ycjs.h; exports.stringifyJSONC = _chunkTVPM4C6Ycjs.d;
@@ -1,181 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunk2EJN2ZIPcjs = require('./chunk-2EJN2ZIP.cjs');
5
-
6
-
7
-
8
-
9
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
10
-
11
- // ../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
12
- var require_multipart_parser = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
13
- "../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
14
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
15
- var N = Object.defineProperty;
16
- var c = (_, a) => N(_, "name", { value: a, configurable: true });
17
- _chunkIG6EXAQUcjs.__require.call(void 0, "fs"), _chunkIG6EXAQUcjs.__require.call(void 0, "path");
18
- var node = _chunk2EJN2ZIPcjs.require_node.call(void 0, );
19
- _chunkIG6EXAQUcjs.__require.call(void 0, "http"), _chunkIG6EXAQUcjs.__require.call(void 0, "https"), _chunkIG6EXAQUcjs.__require.call(void 0, "zlib"), _chunkIG6EXAQUcjs.__require.call(void 0, "stream"), _chunkIG6EXAQUcjs.__require.call(void 0, "buffer"), _chunkIG6EXAQUcjs.__require.call(void 0, "util"), _chunk2EJN2ZIPcjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunkIG6EXAQUcjs.__require.call(void 0, "url"), _chunkIG6EXAQUcjs.__require.call(void 0, "net");
20
- var s = 0;
21
- var S = { START_BOUNDARY: s++, HEADER_FIELD_START: s++, HEADER_FIELD: s++, HEADER_VALUE_START: s++, HEADER_VALUE: s++, HEADER_VALUE_ALMOST_DONE: s++, HEADERS_ALMOST_DONE: s++, PART_DATA_START: s++, PART_DATA: s++, END: s++ };
22
- var f = 1;
23
- var F = { PART_BOUNDARY: f, LAST_BOUNDARY: f *= 2 };
24
- var LF = 10;
25
- var CR = 13;
26
- var SPACE = 32;
27
- var HYPHEN = 45;
28
- var COLON = 58;
29
- var A = 97;
30
- var Z = 122;
31
- var lower = c((_) => _ | 32, "lower");
32
- var noop = c(() => {
33
- }, "noop");
34
- var MultipartParser = class {
35
- static {
36
- c(this, "MultipartParser");
37
- }
38
- constructor(a) {
39
- this.index = 0, this.flags = 0, this.onHeaderEnd = noop, this.onHeaderField = noop, this.onHeadersEnd = noop, this.onHeaderValue = noop, this.onPartBegin = noop, this.onPartData = noop, this.onPartEnd = noop, this.boundaryChars = {}, a = `\r
40
- --` + a;
41
- const t = new Uint8Array(a.length);
42
- for (let n = 0; n < a.length; n++) t[n] = a.charCodeAt(n), this.boundaryChars[t[n]] = true;
43
- this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
44
- }
45
- write(a) {
46
- let t = 0;
47
- const n = a.length;
48
- let E = this.index, { lookbehind: d, boundary: h, boundaryChars: H, index: e, state: o, flags: l } = this;
49
- const b = this.boundary.length, m = b - 1, O = a.length;
50
- let r, P;
51
- const u = c((D) => {
52
- this[D + "Mark"] = t;
53
- }, "mark"), i = c((D) => {
54
- delete this[D + "Mark"];
55
- }, "clear"), T = c((D, p, R, g) => {
56
- (p === void 0 || p !== R) && this[D](g && g.subarray(p, R));
57
- }, "callback"), L = c((D, p) => {
58
- const R = D + "Mark";
59
- R in this && (p ? (T(D, this[R], t, a), delete this[R]) : (T(D, this[R], a.length, a), this[R] = 0));
60
- }, "dataCallback");
61
- for (t = 0; t < n; t++) switch (r = a[t], o) {
62
- case S.START_BOUNDARY:
63
- if (e === h.length - 2) {
64
- if (r === HYPHEN) l |= F.LAST_BOUNDARY;
65
- else if (r !== CR) return;
66
- e++;
67
- break;
68
- } else if (e - 1 === h.length - 2) {
69
- if (l & F.LAST_BOUNDARY && r === HYPHEN) o = S.END, l = 0;
70
- else if (!(l & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), o = S.HEADER_FIELD_START;
71
- else return;
72
- break;
73
- }
74
- r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
75
- break;
76
- case S.HEADER_FIELD_START:
77
- o = S.HEADER_FIELD, u("onHeaderField"), e = 0;
78
- case S.HEADER_FIELD:
79
- if (r === CR) {
80
- i("onHeaderField"), o = S.HEADERS_ALMOST_DONE;
81
- break;
82
- }
83
- if (e++, r === HYPHEN) break;
84
- if (r === COLON) {
85
- if (e === 1) return;
86
- L("onHeaderField", true), o = S.HEADER_VALUE_START;
87
- break;
88
- }
89
- if (P = lower(r), P < A || P > Z) return;
90
- break;
91
- case S.HEADER_VALUE_START:
92
- if (r === SPACE) break;
93
- u("onHeaderValue"), o = S.HEADER_VALUE;
94
- case S.HEADER_VALUE:
95
- r === CR && (L("onHeaderValue", true), T("onHeaderEnd"), o = S.HEADER_VALUE_ALMOST_DONE);
96
- break;
97
- case S.HEADER_VALUE_ALMOST_DONE:
98
- if (r !== LF) return;
99
- o = S.HEADER_FIELD_START;
100
- break;
101
- case S.HEADERS_ALMOST_DONE:
102
- if (r !== LF) return;
103
- T("onHeadersEnd"), o = S.PART_DATA_START;
104
- break;
105
- case S.PART_DATA_START:
106
- o = S.PART_DATA, u("onPartData");
107
- case S.PART_DATA:
108
- if (E = e, e === 0) {
109
- for (t += m; t < O && !(a[t] in H); ) t += b;
110
- t -= m, r = a[t];
111
- }
112
- if (e < h.length) h[e] === r ? (e === 0 && L("onPartData", true), e++) : e = 0;
113
- else if (e === h.length) e++, r === CR ? l |= F.PART_BOUNDARY : r === HYPHEN ? l |= F.LAST_BOUNDARY : e = 0;
114
- else if (e - 1 === h.length) if (l & F.PART_BOUNDARY) {
115
- if (e = 0, r === LF) {
116
- l &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), o = S.HEADER_FIELD_START;
117
- break;
118
- }
119
- } else l & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), o = S.END, l = 0) : e = 0;
120
- if (e > 0) d[e - 1] = r;
121
- else if (E > 0) {
122
- const D = new Uint8Array(d.buffer, d.byteOffset, d.byteLength);
123
- T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
124
- }
125
- break;
126
- case S.END:
127
- break;
128
- default:
129
- throw new Error(`Unexpected state entered: ${o}`);
130
- }
131
- L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = o, this.flags = l;
132
- }
133
- end() {
134
- if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
135
- else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
136
- }
137
- };
138
- function _fileName(_) {
139
- const a = _.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
140
- if (!a) return;
141
- const t = a[2] || a[3] || "";
142
- let n = t.slice(t.lastIndexOf("\\") + 1);
143
- return n = n.replace(/%22/g, '"'), n = n.replace(/&#(\d{4});/g, (E, d) => String.fromCharCode(d)), n;
144
- }
145
- c(_fileName, "_fileName");
146
- async function toFormData(_, a) {
147
- if (!/multipart/i.test(a)) throw new TypeError("Failed to fetch");
148
- const t = a.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
149
- if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
150
- const n = new MultipartParser(t[1] || t[2]);
151
- let E, d, h, H, e, o;
152
- const l = [], b = new node.FormData(), m = c((i) => {
153
- h += u.decode(i, { stream: true });
154
- }, "onPartData"), O = c((i) => {
155
- l.push(i);
156
- }, "appendToFile"), r = c(() => {
157
- const i = new node.File(l, o, { type: e });
158
- b.append(H, i);
159
- }, "appendFileToFormData"), P = c(() => {
160
- b.append(H, h);
161
- }, "appendEntryToFormData"), u = new TextDecoder("utf-8");
162
- u.decode(), n.onPartBegin = function() {
163
- n.onPartData = m, n.onPartEnd = P, E = "", d = "", h = "", H = "", e = "", o = null, l.length = 0;
164
- }, n.onHeaderField = function(i) {
165
- E += u.decode(i, { stream: true });
166
- }, n.onHeaderValue = function(i) {
167
- d += u.decode(i, { stream: true });
168
- }, n.onHeaderEnd = function() {
169
- if (d += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
170
- const i = d.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
171
- i && (H = i[2] || i[3] || ""), o = _fileName(d), o && (n.onPartData = O, n.onPartEnd = r);
172
- } else E === "content-type" && (e = d);
173
- d = "", E = "";
174
- };
175
- for await (const i of _) n.write(i);
176
- return n.end(), b;
177
- }
178
- c(toFormData, "toFormData"), exports.toFormData = toFormData;
179
- }
180
- });
181
- exports. default = require_multipart_parser();
@@ -1,185 +0,0 @@
1
- import {
2
- Yr,
3
- Zt,
4
- init_node,
5
- init_node_fetch_native_DfbY2q_x
6
- } from "./chunk-DTYNP6HG.js";
7
- import {
8
- __esm,
9
- init_esm_shims
10
- } from "./chunk-JHBHEVIE.js";
11
-
12
- // ../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs
13
- function $(_) {
14
- const o = _.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
15
- if (!o) return;
16
- const n = o[2] || o[3] || "";
17
- let r = n.slice(n.lastIndexOf("\\") + 1);
18
- return r = r.replace(/%22/g, '"'), r = r.replace(/&#(\d{4});/g, (d, l) => String.fromCharCode(l)), r;
19
- }
20
- async function v(_, o) {
21
- if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
22
- const n = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
23
- if (!n) throw new TypeError("no or bad content-type header, no multipart boundary");
24
- const r = new M(n[1] || n[2]);
25
- let d, l, c, m, e, i;
26
- const A = [], H = new Zt(), O = E((s) => {
27
- c += f.decode(s, { stream: true });
28
- }, "onPartData"), y = E((s) => {
29
- A.push(s);
30
- }, "appendToFile"), a = E(() => {
31
- const s = new Yr(A, i, { type: e });
32
- H.append(m, s);
33
- }, "appendFileToFormData"), L = E(() => {
34
- H.append(m, c);
35
- }, "appendEntryToFormData"), f = new TextDecoder("utf-8");
36
- f.decode(), r.onPartBegin = function() {
37
- r.onPartData = O, r.onPartEnd = L, d = "", l = "", c = "", m = "", e = "", i = null, A.length = 0;
38
- }, r.onHeaderField = function(s) {
39
- d += f.decode(s, { stream: true });
40
- }, r.onHeaderValue = function(s) {
41
- l += f.decode(s, { stream: true });
42
- }, r.onHeaderEnd = function() {
43
- if (l += f.decode(), d = d.toLowerCase(), d === "content-disposition") {
44
- const s = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
45
- s && (m = s[2] || s[3] || ""), i = $(l), i && (r.onPartData = y, r.onPartEnd = a);
46
- } else d === "content-type" && (e = l);
47
- l = "", d = "";
48
- };
49
- for await (const s of _) r.write(s);
50
- return r.end(), H;
51
- }
52
- var U, E, D, t, F, u, g, N, V, S, Y, x, C, I, p, M;
53
- var init_multipart_parser = __esm({
54
- "../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs"() {
55
- init_esm_shims();
56
- init_node();
57
- init_node_fetch_native_DfbY2q_x();
58
- U = Object.defineProperty;
59
- E = (_, o) => U(_, "name", { value: o, configurable: true });
60
- D = 0;
61
- t = { START_BOUNDARY: D++, HEADER_FIELD_START: D++, HEADER_FIELD: D++, HEADER_VALUE_START: D++, HEADER_VALUE: D++, HEADER_VALUE_ALMOST_DONE: D++, HEADERS_ALMOST_DONE: D++, PART_DATA_START: D++, PART_DATA: D++, END: D++ };
62
- F = 1;
63
- u = { PART_BOUNDARY: F, LAST_BOUNDARY: F *= 2 };
64
- g = 10;
65
- N = 13;
66
- V = 32;
67
- S = 45;
68
- Y = 58;
69
- x = 97;
70
- C = 122;
71
- I = E((_) => _ | 32, "lower");
72
- p = E(() => {
73
- }, "noop");
74
- M = class {
75
- static {
76
- E(this, "MultipartParser");
77
- }
78
- constructor(o) {
79
- this.index = 0, this.flags = 0, this.onHeaderEnd = p, this.onHeaderField = p, this.onHeadersEnd = p, this.onHeaderValue = p, this.onPartBegin = p, this.onPartData = p, this.onPartEnd = p, this.boundaryChars = {}, o = `\r
80
- --` + o;
81
- const n = new Uint8Array(o.length);
82
- for (let r = 0; r < o.length; r++) n[r] = o.charCodeAt(r), this.boundaryChars[n[r]] = true;
83
- this.boundary = n, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = t.START_BOUNDARY;
84
- }
85
- write(o) {
86
- let n = 0;
87
- const r = o.length;
88
- let d = this.index, { lookbehind: l, boundary: c, boundaryChars: m, index: e, state: i, flags: A } = this;
89
- const H = this.boundary.length, O = H - 1, y = o.length;
90
- let a, L;
91
- const f = E((h) => {
92
- this[h + "Mark"] = n;
93
- }, "mark"), s = E((h) => {
94
- delete this[h + "Mark"];
95
- }, "clear"), T = E((h, P, R, k) => {
96
- (P === void 0 || P !== R) && this[h](k && k.subarray(P, R));
97
- }, "callback"), b = E((h, P) => {
98
- const R = h + "Mark";
99
- R in this && (P ? (T(h, this[R], n, o), delete this[R]) : (T(h, this[R], o.length, o), this[R] = 0));
100
- }, "dataCallback");
101
- for (n = 0; n < r; n++) switch (a = o[n], i) {
102
- case t.START_BOUNDARY:
103
- if (e === c.length - 2) {
104
- if (a === S) A |= u.LAST_BOUNDARY;
105
- else if (a !== N) return;
106
- e++;
107
- break;
108
- } else if (e - 1 === c.length - 2) {
109
- if (A & u.LAST_BOUNDARY && a === S) i = t.END, A = 0;
110
- else if (!(A & u.LAST_BOUNDARY) && a === g) e = 0, T("onPartBegin"), i = t.HEADER_FIELD_START;
111
- else return;
112
- break;
113
- }
114
- a !== c[e + 2] && (e = -2), a === c[e + 2] && e++;
115
- break;
116
- case t.HEADER_FIELD_START:
117
- i = t.HEADER_FIELD, f("onHeaderField"), e = 0;
118
- case t.HEADER_FIELD:
119
- if (a === N) {
120
- s("onHeaderField"), i = t.HEADERS_ALMOST_DONE;
121
- break;
122
- }
123
- if (e++, a === S) break;
124
- if (a === Y) {
125
- if (e === 1) return;
126
- b("onHeaderField", true), i = t.HEADER_VALUE_START;
127
- break;
128
- }
129
- if (L = I(a), L < x || L > C) return;
130
- break;
131
- case t.HEADER_VALUE_START:
132
- if (a === V) break;
133
- f("onHeaderValue"), i = t.HEADER_VALUE;
134
- case t.HEADER_VALUE:
135
- a === N && (b("onHeaderValue", true), T("onHeaderEnd"), i = t.HEADER_VALUE_ALMOST_DONE);
136
- break;
137
- case t.HEADER_VALUE_ALMOST_DONE:
138
- if (a !== g) return;
139
- i = t.HEADER_FIELD_START;
140
- break;
141
- case t.HEADERS_ALMOST_DONE:
142
- if (a !== g) return;
143
- T("onHeadersEnd"), i = t.PART_DATA_START;
144
- break;
145
- case t.PART_DATA_START:
146
- i = t.PART_DATA, f("onPartData");
147
- case t.PART_DATA:
148
- if (d = e, e === 0) {
149
- for (n += O; n < y && !(o[n] in m); ) n += H;
150
- n -= O, a = o[n];
151
- }
152
- if (e < c.length) c[e] === a ? (e === 0 && b("onPartData", true), e++) : e = 0;
153
- else if (e === c.length) e++, a === N ? A |= u.PART_BOUNDARY : a === S ? A |= u.LAST_BOUNDARY : e = 0;
154
- else if (e - 1 === c.length) if (A & u.PART_BOUNDARY) {
155
- if (e = 0, a === g) {
156
- A &= ~u.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), i = t.HEADER_FIELD_START;
157
- break;
158
- }
159
- } else A & u.LAST_BOUNDARY && a === S ? (T("onPartEnd"), i = t.END, A = 0) : e = 0;
160
- if (e > 0) l[e - 1] = a;
161
- else if (d > 0) {
162
- const h = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
163
- T("onPartData", 0, d, h), d = 0, f("onPartData"), n--;
164
- }
165
- break;
166
- case t.END:
167
- break;
168
- default:
169
- throw new Error(`Unexpected state entered: ${i}`);
170
- }
171
- b("onHeaderField"), b("onHeaderValue"), b("onPartData"), this.index = e, this.state = i, this.flags = A;
172
- }
173
- end() {
174
- if (this.state === t.HEADER_FIELD_START && this.index === 0 || this.state === t.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
175
- else if (this.state !== t.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
176
- }
177
- };
178
- E($, "_fileName");
179
- E(v, "toFormData");
180
- }
181
- });
182
- init_multipart_parser();
183
- export {
184
- v as toFormData
185
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkH4MEIOPLcjs = require('./chunk-H4MEIOPL.cjs');
5
- require('./chunk-UQFYXF6V.cjs');
6
- require('./chunk-IG6EXAQU.cjs');
7
-
8
-
9
-
10
- exports.parseTOML = _chunkH4MEIOPLcjs.ae; exports.stringifyTOML = _chunkH4MEIOPLcjs.ue;
@@ -1,10 +0,0 @@
1
- import {
2
- ae,
3
- ue
4
- } from "./chunk-R7ZVOQ5D.js";
5
- import "./chunk-VU7MBHMN.js";
6
- import "./chunk-JHBHEVIE.js";
7
- export {
8
- ae as parseTOML,
9
- ue as stringifyTOML
10
- };
@@ -1,101 +0,0 @@
1
- import {
2
- isEqual,
3
- serialize
4
- } from "./chunk-D2AN4H4B.js";
5
- import {
6
- init_esm_shims
7
- } from "./chunk-JHBHEVIE.js";
8
-
9
- // ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/utils/index.mjs
10
- init_esm_shims();
11
- function diff(obj1, obj2) {
12
- const h1 = _toHashedObject(obj1);
13
- const h2 = _toHashedObject(obj2);
14
- return _diff(h1, h2);
15
- }
16
- function _diff(h1, h2) {
17
- const diffs = [];
18
- const allProps = /* @__PURE__ */ new Set([
19
- ...Object.keys(h1.props || {}),
20
- ...Object.keys(h2.props || {})
21
- ]);
22
- if (h1.props && h2.props) {
23
- for (const prop of allProps) {
24
- const p1 = h1.props[prop];
25
- const p2 = h2.props[prop];
26
- if (p1 && p2) {
27
- diffs.push(..._diff(h1.props?.[prop], h2.props?.[prop]));
28
- } else if (p1 || p2) {
29
- diffs.push(
30
- new DiffEntry((p2 || p1).key, p1 ? "removed" : "added", p2, p1)
31
- );
32
- }
33
- }
34
- }
35
- if (allProps.size === 0 && h1.hash !== h2.hash) {
36
- diffs.push(new DiffEntry((h2 || h1).key, "changed", h2, h1));
37
- }
38
- return diffs;
39
- }
40
- function _toHashedObject(obj, key = "") {
41
- if (obj && typeof obj !== "object") {
42
- return new DiffHashedObject(key, obj, serialize(obj));
43
- }
44
- const props = {};
45
- const hashes = [];
46
- for (const _key in obj) {
47
- props[_key] = _toHashedObject(obj[_key], key ? `${key}.${_key}` : _key);
48
- hashes.push(props[_key].hash);
49
- }
50
- return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
51
- }
52
- var DiffEntry = class {
53
- constructor(key, type, newValue, oldValue) {
54
- this.key = key;
55
- this.type = type;
56
- this.newValue = newValue;
57
- this.oldValue = oldValue;
58
- }
59
- toString() {
60
- return this.toJSON();
61
- }
62
- toJSON() {
63
- switch (this.type) {
64
- case "added": {
65
- return `Added \`${this.key}\``;
66
- }
67
- case "removed": {
68
- return `Removed \`${this.key}\``;
69
- }
70
- case "changed": {
71
- return `Changed \`${this.key}\` from \`${this.oldValue?.toString() || "-"}\` to \`${this.newValue.toString()}\``;
72
- }
73
- }
74
- }
75
- };
76
- var DiffHashedObject = class {
77
- constructor(key, value, hash, props) {
78
- this.key = key;
79
- this.value = value;
80
- this.hash = hash;
81
- this.props = props;
82
- }
83
- toString() {
84
- if (this.props) {
85
- return `{${Object.keys(this.props).join(",")}}`;
86
- } else {
87
- return JSON.stringify(this.value);
88
- }
89
- }
90
- toJSON() {
91
- const k = this.key || ".";
92
- if (this.props) {
93
- return `${k}({${Object.keys(this.props).join(",")}})`;
94
- }
95
- return `${k}(${this.value})`;
96
- }
97
- };
98
- export {
99
- diff,
100
- isEqual
101
- };
@@ -1,101 +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 _chunk335YPSVHcjs = require('./chunk-335YPSVH.cjs');
5
-
6
-
7
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
8
-
9
- // ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/utils/index.mjs
10
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
11
- function diff(obj1, obj2) {
12
- const h1 = _toHashedObject(obj1);
13
- const h2 = _toHashedObject(obj2);
14
- return _diff(h1, h2);
15
- }
16
- function _diff(h1, h2) {
17
- const diffs = [];
18
- const allProps = /* @__PURE__ */ new Set([
19
- ...Object.keys(h1.props || {}),
20
- ...Object.keys(h2.props || {})
21
- ]);
22
- if (h1.props && h2.props) {
23
- for (const prop of allProps) {
24
- const p1 = h1.props[prop];
25
- const p2 = h2.props[prop];
26
- if (p1 && p2) {
27
- diffs.push(..._diff(_optionalChain([h1, 'access', _ => _.props, 'optionalAccess', _2 => _2[prop]]), _optionalChain([h2, 'access', _3 => _3.props, 'optionalAccess', _4 => _4[prop]])));
28
- } else if (p1 || p2) {
29
- diffs.push(
30
- new DiffEntry((p2 || p1).key, p1 ? "removed" : "added", p2, p1)
31
- );
32
- }
33
- }
34
- }
35
- if (allProps.size === 0 && h1.hash !== h2.hash) {
36
- diffs.push(new DiffEntry((h2 || h1).key, "changed", h2, h1));
37
- }
38
- return diffs;
39
- }
40
- function _toHashedObject(obj, key = "") {
41
- if (obj && typeof obj !== "object") {
42
- return new DiffHashedObject(key, obj, _chunk335YPSVHcjs.serialize.call(void 0, obj));
43
- }
44
- const props = {};
45
- const hashes = [];
46
- for (const _key in obj) {
47
- props[_key] = _toHashedObject(obj[_key], key ? `${key}.${_key}` : _key);
48
- hashes.push(props[_key].hash);
49
- }
50
- return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
51
- }
52
- var DiffEntry = class {
53
- constructor(key, type, newValue, oldValue) {
54
- this.key = key;
55
- this.type = type;
56
- this.newValue = newValue;
57
- this.oldValue = oldValue;
58
- }
59
- toString() {
60
- return this.toJSON();
61
- }
62
- toJSON() {
63
- switch (this.type) {
64
- case "added": {
65
- return `Added \`${this.key}\``;
66
- }
67
- case "removed": {
68
- return `Removed \`${this.key}\``;
69
- }
70
- case "changed": {
71
- return `Changed \`${this.key}\` from \`${_optionalChain([this, 'access', _5 => _5.oldValue, 'optionalAccess', _6 => _6.toString, 'call', _7 => _7()]) || "-"}\` to \`${this.newValue.toString()}\``;
72
- }
73
- }
74
- }
75
- };
76
- var DiffHashedObject = class {
77
- constructor(key, value, hash, props) {
78
- this.key = key;
79
- this.value = value;
80
- this.hash = hash;
81
- this.props = props;
82
- }
83
- toString() {
84
- if (this.props) {
85
- return `{${Object.keys(this.props).join(",")}}`;
86
- } else {
87
- return JSON.stringify(this.value);
88
- }
89
- }
90
- toJSON() {
91
- const k = this.key || ".";
92
- if (this.props) {
93
- return `${k}({${Object.keys(this.props).join(",")}})`;
94
- }
95
- return `${k}(${this.value})`;
96
- }
97
- };
98
-
99
-
100
-
101
- exports.diff = diff; exports.isEqual = _chunk335YPSVHcjs.isEqual;
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkGSZ2Y7H4cjs = require('./chunk-GSZ2Y7H4.cjs');
5
- require('./chunk-UQFYXF6V.cjs');
6
- require('./chunk-IG6EXAQU.cjs');
7
-
8
-
9
-
10
- exports.parseYAML = _chunkGSZ2Y7H4cjs.Ar; exports.stringifyYAML = _chunkGSZ2Y7H4cjs.vr;
@@ -1,10 +0,0 @@
1
- import {
2
- Ar,
3
- vr
4
- } from "./chunk-5OLGPOTK.js";
5
- import "./chunk-VU7MBHMN.js";
6
- import "./chunk-JHBHEVIE.js";
7
- export {
8
- Ar as parseYAML,
9
- vr as stringifyYAML
10
- };