@storm-software/linting-tools 1.125.49 → 1.125.51

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/bin/lint.cjs CHANGED
@@ -316120,7 +316120,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
316120
316120
  }
316121
316121
  const _merger = options.merger || _chunkOGN3PGNWcjs.defu;
316122
316122
  if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
316123
- const { downloadTemplate } = await Promise.resolve().then(() => _interopRequireWildcard2(require("./dist-RV66BQUW.cjs")));
316123
+ const { downloadTemplate } = await Promise.resolve().then(() => _interopRequireWildcard2(require("./dist-Z7KHUEYW.cjs")));
316124
316124
  const { digest } = await Promise.resolve().then(() => _interopRequireWildcard2(require("./dist-WO6IEKCS.cjs")));
316125
316125
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + digest(source).slice(0, 10).replace(/[-_]/g, "");
316126
316126
  let cloneDir;
@@ -319913,7 +319913,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
319913
319913
 
319914
319914
  // ../config-tools/src/utilities/find-workspace-root.ts
319915
319915
  var rootFiles = [
319916
- "storm-workspace.json",
319917
319916
  "storm-workspace.json",
319918
319917
  "storm-workspace.yaml",
319919
319918
  "storm-workspace.yml",
package/bin/lint.js CHANGED
@@ -316758,7 +316758,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
316758
316758
  }
316759
316759
  const _merger = options.merger || defu;
316760
316760
  if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
316761
- const { downloadTemplate } = await import("./dist-Q6NSKOVX.js");
316761
+ const { downloadTemplate } = await import("./dist-ESSQX654.js");
316762
316762
  const { digest } = await import("./dist-U7CCIWJZ.js");
316763
316763
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + digest(source).slice(0, 10).replace(/[-_]/g, "");
316764
316764
  let cloneDir;
@@ -320548,7 +320548,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
320548
320548
 
320549
320549
  // ../config-tools/src/utilities/find-workspace-root.ts
320550
320550
  var rootFiles = [
320551
- "storm-workspace.json",
320552
320551
  "storm-workspace.json",
320553
320552
  "storm-workspace.yaml",
320554
320553
  "storm-workspace.yml",
@@ -1,22 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkSYUIP3RPcjs = require('./chunk-SYUIP3RP.cjs');
4
+ var _chunkMX64X5OQcjs = require('./chunk-MX64X5OQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
  var _chunkLEE4QE6Pcjs = require('./chunk-LEE4QE6P.cjs');
10
10
 
11
- // ../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
11
+ // ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
12
12
  var require_multipart_parser = _chunkLEE4QE6Pcjs.__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) {
13
+ "../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
14
14
  _chunkLEE4QE6Pcjs.init_cjs_shims.call(void 0, );
15
- var N = Object.defineProperty;
16
- var c = (_, a) => N(_, "name", { value: a, configurable: true });
17
- _chunkLEE4QE6Pcjs.__require.call(void 0, "fs"), _chunkLEE4QE6Pcjs.__require.call(void 0, "path");
18
- var node = _chunkSYUIP3RPcjs.require_node.call(void 0, );
19
- _chunkLEE4QE6Pcjs.__require.call(void 0, "http"), _chunkLEE4QE6Pcjs.__require.call(void 0, "https"), _chunkLEE4QE6Pcjs.__require.call(void 0, "zlib"), _chunkLEE4QE6Pcjs.__require.call(void 0, "stream"), _chunkLEE4QE6Pcjs.__require.call(void 0, "buffer"), _chunkLEE4QE6Pcjs.__require.call(void 0, "util"), _chunkSYUIP3RPcjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunkLEE4QE6Pcjs.__require.call(void 0, "url"), _chunkLEE4QE6Pcjs.__require.call(void 0, "net");
15
+ var y = Object.defineProperty;
16
+ var c = (R, o) => y(R, "name", { value: o, configurable: true });
17
+ var node = _chunkMX64X5OQcjs.require_node.call(void 0, );
18
+ _chunkLEE4QE6Pcjs.__require.call(void 0, "http"), _chunkLEE4QE6Pcjs.__require.call(void 0, "https"), _chunkLEE4QE6Pcjs.__require.call(void 0, "zlib"), _chunkLEE4QE6Pcjs.__require.call(void 0, "stream"), _chunkLEE4QE6Pcjs.__require.call(void 0, "buffer"), _chunkLEE4QE6Pcjs.__require.call(void 0, "util"), _chunkMX64X5OQcjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunkLEE4QE6Pcjs.__require.call(void 0, "url"), _chunkLEE4QE6Pcjs.__require.call(void 0, "net"), _chunkLEE4QE6Pcjs.__require.call(void 0, "fs"), _chunkLEE4QE6Pcjs.__require.call(void 0, "path");
20
19
  var s = 0;
21
20
  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
21
  var f = 1;
@@ -28,151 +27,150 @@ var require_multipart_parser = _chunkLEE4QE6Pcjs.__commonJS.call(void 0, {
28
27
  var COLON = 58;
29
28
  var A = 97;
30
29
  var Z = 122;
31
- var lower = c((_) => _ | 32, "lower");
30
+ var lower = c((R) => R | 32, "lower");
32
31
  var noop = c(() => {
33
32
  }, "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;
33
+ var g = class g {
34
+ constructor(o) {
35
+ 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 = {}, o = `\r
36
+ --` + o;
37
+ const t = new Uint8Array(o.length);
38
+ for (let n = 0; n < o.length; n++) t[n] = o.charCodeAt(n), this.boundaryChars[t[n]] = true;
43
39
  this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
44
40
  }
45
- write(a) {
41
+ write(o) {
46
42
  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;
43
+ const n = o.length;
44
+ let E = this.index, { lookbehind: l, boundary: h, boundaryChars: H, index: e, state: a, flags: d } = this;
45
+ const b = this.boundary.length, m = b - 1, O = o.length;
50
46
  let r, P;
51
47
  const u = c((D) => {
52
48
  this[D + "Mark"] = t;
53
49
  }, "mark"), i = c((D) => {
54
50
  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));
51
+ }, "clear"), T = c((D, p, _, N) => {
52
+ (p === void 0 || p !== _) && this[D](N && N.subarray(p, _));
57
53
  }, "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));
54
+ const _ = D + "Mark";
55
+ _ in this && (p ? (T(D, this[_], t, o), delete this[_]) : (T(D, this[_], o.length, o), this[_] = 0));
60
56
  }, "dataCallback");
61
- for (t = 0; t < n; t++) switch (r = a[t], o) {
57
+ for (t = 0; t < n; t++) switch (r = o[t], a) {
62
58
  case S.START_BOUNDARY:
63
59
  if (e === h.length - 2) {
64
- if (r === HYPHEN) l |= F.LAST_BOUNDARY;
60
+ if (r === HYPHEN) d |= F.LAST_BOUNDARY;
65
61
  else if (r !== CR) return;
66
62
  e++;
67
63
  break;
68
64
  } 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;
65
+ if (d & F.LAST_BOUNDARY && r === HYPHEN) a = S.END, d = 0;
66
+ else if (!(d & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), a = S.HEADER_FIELD_START;
71
67
  else return;
72
68
  break;
73
69
  }
74
70
  r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
75
71
  break;
76
72
  case S.HEADER_FIELD_START:
77
- o = S.HEADER_FIELD, u("onHeaderField"), e = 0;
73
+ a = S.HEADER_FIELD, u("onHeaderField"), e = 0;
78
74
  case S.HEADER_FIELD:
79
75
  if (r === CR) {
80
- i("onHeaderField"), o = S.HEADERS_ALMOST_DONE;
76
+ i("onHeaderField"), a = S.HEADERS_ALMOST_DONE;
81
77
  break;
82
78
  }
83
79
  if (e++, r === HYPHEN) break;
84
80
  if (r === COLON) {
85
81
  if (e === 1) return;
86
- L("onHeaderField", true), o = S.HEADER_VALUE_START;
82
+ L("onHeaderField", true), a = S.HEADER_VALUE_START;
87
83
  break;
88
84
  }
89
85
  if (P = lower(r), P < A || P > Z) return;
90
86
  break;
91
87
  case S.HEADER_VALUE_START:
92
88
  if (r === SPACE) break;
93
- u("onHeaderValue"), o = S.HEADER_VALUE;
89
+ u("onHeaderValue"), a = S.HEADER_VALUE;
94
90
  case S.HEADER_VALUE:
95
- r === CR && (L("onHeaderValue", true), T("onHeaderEnd"), o = S.HEADER_VALUE_ALMOST_DONE);
91
+ r === CR && (L("onHeaderValue", true), T("onHeaderEnd"), a = S.HEADER_VALUE_ALMOST_DONE);
96
92
  break;
97
93
  case S.HEADER_VALUE_ALMOST_DONE:
98
94
  if (r !== LF) return;
99
- o = S.HEADER_FIELD_START;
95
+ a = S.HEADER_FIELD_START;
100
96
  break;
101
97
  case S.HEADERS_ALMOST_DONE:
102
98
  if (r !== LF) return;
103
- T("onHeadersEnd"), o = S.PART_DATA_START;
99
+ T("onHeadersEnd"), a = S.PART_DATA_START;
104
100
  break;
105
101
  case S.PART_DATA_START:
106
- o = S.PART_DATA, u("onPartData");
102
+ a = S.PART_DATA, u("onPartData");
107
103
  case S.PART_DATA:
108
104
  if (E = e, e === 0) {
109
- for (t += m; t < O && !(a[t] in H); ) t += b;
110
- t -= m, r = a[t];
105
+ for (t += m; t < O && !(o[t] in H); ) t += b;
106
+ t -= m, r = o[t];
111
107
  }
112
108
  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) {
109
+ else if (e === h.length) e++, r === CR ? d |= F.PART_BOUNDARY : r === HYPHEN ? d |= F.LAST_BOUNDARY : e = 0;
110
+ else if (e - 1 === h.length) if (d & F.PART_BOUNDARY) {
115
111
  if (e = 0, r === LF) {
116
- l &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), o = S.HEADER_FIELD_START;
112
+ d &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), a = S.HEADER_FIELD_START;
117
113
  break;
118
114
  }
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;
115
+ } else d & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), a = S.END, d = 0) : e = 0;
116
+ if (e > 0) l[e - 1] = r;
121
117
  else if (E > 0) {
122
- const D = new Uint8Array(d.buffer, d.byteOffset, d.byteLength);
118
+ const D = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
123
119
  T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
124
120
  }
125
121
  break;
126
122
  case S.END:
127
123
  break;
128
124
  default:
129
- throw new Error(`Unexpected state entered: ${o}`);
125
+ throw new Error(`Unexpected state entered: ${a}`);
130
126
  }
131
- L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = o, this.flags = l;
127
+ L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = a, this.flags = d;
132
128
  }
133
129
  end() {
134
130
  if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
135
131
  else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
136
132
  }
137
133
  };
138
- function _fileName(_) {
139
- const a = _.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
140
- if (!a) return;
141
- const t = a[2] || a[3] || "";
134
+ c(g, "MultipartParser");
135
+ var MultipartParser = g;
136
+ function _fileName(R) {
137
+ const o = R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
138
+ if (!o) return;
139
+ const t = o[2] || o[3] || "";
142
140
  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;
141
+ return n = n.replace(/%22/g, '"'), n = n.replace(/&#(\d{4});/g, (E, l) => String.fromCharCode(l)), n;
144
142
  }
145
143
  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);
144
+ async function toFormData(R, o) {
145
+ if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
146
+ const t = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
149
147
  if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
150
148
  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) => {
149
+ let E, l, h, H, e, a;
150
+ const d = [], b = new node.FormData(), m = c((i) => {
153
151
  h += u.decode(i, { stream: true });
154
152
  }, "onPartData"), O = c((i) => {
155
- l.push(i);
153
+ d.push(i);
156
154
  }, "appendToFile"), r = c(() => {
157
- const i = new node.File(l, o, { type: e });
155
+ const i = new node.File(d, a, { type: e });
158
156
  b.append(H, i);
159
157
  }, "appendFileToFormData"), P = c(() => {
160
158
  b.append(H, h);
161
159
  }, "appendEntryToFormData"), u = new TextDecoder("utf-8");
162
160
  u.decode(), n.onPartBegin = function() {
163
- n.onPartData = m, n.onPartEnd = P, E = "", d = "", h = "", H = "", e = "", o = null, l.length = 0;
161
+ n.onPartData = m, n.onPartEnd = P, E = "", l = "", h = "", H = "", e = "", a = null, d.length = 0;
164
162
  }, n.onHeaderField = function(i) {
165
163
  E += u.decode(i, { stream: true });
166
164
  }, n.onHeaderValue = function(i) {
167
- d += u.decode(i, { stream: true });
165
+ l += u.decode(i, { stream: true });
168
166
  }, 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 = "";
167
+ if (l += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
168
+ const i = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
169
+ i && (H = i[2] || i[3] || ""), a = _fileName(l), a && (n.onPartData = O, n.onPartEnd = r);
170
+ } else E === "content-type" && (e = l);
171
+ l = "", E = "";
174
172
  };
175
- for await (const i of _) n.write(i);
173
+ for await (const i of R) n.write(i);
176
174
  return n.end(), b;
177
175
  }
178
176
  c(toFormData, "toFormData"), exports.toFormData = toFormData;
@@ -1,40 +1,40 @@
1
1
  import {
2
- Yr,
3
- Zt,
2
+ br,
4
3
  init_node,
5
- init_node_fetch_native_DfbY2q_x
6
- } from "./chunk-P5LNP3NP.js";
4
+ init_node_fetch_native_DfbY2q_x,
5
+ qn
6
+ } from "./chunk-SIYPQQ5S.js";
7
7
  import {
8
8
  __esm,
9
9
  init_esm_shims
10
10
  } from "./chunk-6LQDTTG3.js";
11
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] || "";
12
+ // ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs
13
+ function v(u) {
14
+ const a = u.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
15
+ if (!a) return;
16
+ const n = a[2] || a[3] || "";
17
17
  let r = n.slice(n.lastIndexOf("\\") + 1);
18
18
  return r = r.replace(/%22/g, '"'), r = r.replace(/&#(\d{4});/g, (d, l) => String.fromCharCode(l)), r;
19
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);
20
+ async function Z(u, a) {
21
+ if (!/multipart/i.test(a)) throw new TypeError("Failed to fetch");
22
+ const n = a.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
23
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) => {
24
+ const r = new k(n[1] || n[2]);
25
+ let d, l, c, p, e, i;
26
+ const A = [], H = new br(), O = E((s) => {
27
27
  c += f.decode(s, { stream: true });
28
28
  }, "onPartData"), y = E((s) => {
29
29
  A.push(s);
30
- }, "appendToFile"), a = E(() => {
31
- const s = new Yr(A, i, { type: e });
32
- H.append(m, s);
30
+ }, "appendToFile"), o = E(() => {
31
+ const s = new qn(A, i, { type: e });
32
+ H.append(p, s);
33
33
  }, "appendFileToFormData"), L = E(() => {
34
- H.append(m, c);
34
+ H.append(p, c);
35
35
  }, "appendEntryToFormData"), f = new TextDecoder("utf-8");
36
36
  f.decode(), r.onPartBegin = function() {
37
- r.onPartData = O, r.onPartEnd = L, d = "", l = "", c = "", m = "", e = "", i = null, A.length = 0;
37
+ r.onPartData = O, r.onPartEnd = L, d = "", l = "", c = "", p = "", e = "", i = null, A.length = 0;
38
38
  }, r.onHeaderField = function(s) {
39
39
  d += f.decode(s, { stream: true });
40
40
  }, r.onHeaderValue = function(s) {
@@ -42,122 +42,119 @@ async function v(_, o) {
42
42
  }, r.onHeaderEnd = function() {
43
43
  if (l += f.decode(), d = d.toLowerCase(), d === "content-disposition") {
44
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);
45
+ s && (p = s[2] || s[3] || ""), i = v(l), i && (r.onPartData = y, r.onPartEnd = o);
46
46
  } else d === "content-type" && (e = l);
47
47
  l = "", d = "";
48
48
  };
49
- for await (const s of _) r.write(s);
49
+ for await (const s of u) r.write(s);
50
50
  return r.end(), H;
51
51
  }
52
- var U, E, D, t, F, u, g, N, V, S, Y, x, C, I, p, M;
52
+ var B, E, D, t, w, R, g, N, x, P, C, I, M, $, m, F, k;
53
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"() {
54
+ "../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs"() {
55
55
  init_esm_shims();
56
56
  init_node();
57
57
  init_node_fetch_native_DfbY2q_x();
58
- U = Object.defineProperty;
59
- E = (_, o) => U(_, "name", { value: o, configurable: true });
58
+ B = Object.defineProperty;
59
+ E = (u, a) => B(u, "name", { value: a, configurable: true });
60
60
  D = 0;
61
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 };
62
+ w = 1;
63
+ R = { PART_BOUNDARY: w, LAST_BOUNDARY: w *= 2 };
64
64
  g = 10;
65
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(() => {
66
+ x = 32;
67
+ P = 45;
68
+ C = 58;
69
+ I = 97;
70
+ M = 122;
71
+ $ = E((u) => u | 32, "lower");
72
+ m = E(() => {
73
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;
74
+ F = class F2 {
75
+ constructor(a) {
76
+ this.index = 0, this.flags = 0, this.onHeaderEnd = m, this.onHeaderField = m, this.onHeadersEnd = m, this.onHeaderValue = m, this.onPartBegin = m, this.onPartData = m, this.onPartEnd = m, this.boundaryChars = {}, a = `\r
77
+ --` + a;
78
+ const n = new Uint8Array(a.length);
79
+ for (let r = 0; r < a.length; r++) n[r] = a.charCodeAt(r), this.boundaryChars[n[r]] = true;
83
80
  this.boundary = n, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = t.START_BOUNDARY;
84
81
  }
85
- write(o) {
82
+ write(a) {
86
83
  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;
84
+ const r = a.length;
85
+ let d = this.index, { lookbehind: l, boundary: c, boundaryChars: p, index: e, state: i, flags: A } = this;
86
+ const H = this.boundary.length, O = H - 1, y = a.length;
87
+ let o, L;
91
88
  const f = E((h) => {
92
89
  this[h + "Mark"] = n;
93
90
  }, "mark"), s = E((h) => {
94
91
  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));
92
+ }, "clear"), T = E((h, S, _, U) => {
93
+ (S === void 0 || S !== _) && this[h](U && U.subarray(S, _));
94
+ }, "callback"), b = E((h, S) => {
95
+ const _ = h + "Mark";
96
+ _ in this && (S ? (T(h, this[_], n, a), delete this[_]) : (T(h, this[_], a.length, a), this[_] = 0));
100
97
  }, "dataCallback");
101
- for (n = 0; n < r; n++) switch (a = o[n], i) {
98
+ for (n = 0; n < r; n++) switch (o = a[n], i) {
102
99
  case t.START_BOUNDARY:
103
100
  if (e === c.length - 2) {
104
- if (a === S) A |= u.LAST_BOUNDARY;
105
- else if (a !== N) return;
101
+ if (o === P) A |= R.LAST_BOUNDARY;
102
+ else if (o !== N) return;
106
103
  e++;
107
104
  break;
108
105
  } 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;
106
+ if (A & R.LAST_BOUNDARY && o === P) i = t.END, A = 0;
107
+ else if (!(A & R.LAST_BOUNDARY) && o === g) e = 0, T("onPartBegin"), i = t.HEADER_FIELD_START;
111
108
  else return;
112
109
  break;
113
110
  }
114
- a !== c[e + 2] && (e = -2), a === c[e + 2] && e++;
111
+ o !== c[e + 2] && (e = -2), o === c[e + 2] && e++;
115
112
  break;
116
113
  case t.HEADER_FIELD_START:
117
114
  i = t.HEADER_FIELD, f("onHeaderField"), e = 0;
118
115
  case t.HEADER_FIELD:
119
- if (a === N) {
116
+ if (o === N) {
120
117
  s("onHeaderField"), i = t.HEADERS_ALMOST_DONE;
121
118
  break;
122
119
  }
123
- if (e++, a === S) break;
124
- if (a === Y) {
120
+ if (e++, o === P) break;
121
+ if (o === C) {
125
122
  if (e === 1) return;
126
123
  b("onHeaderField", true), i = t.HEADER_VALUE_START;
127
124
  break;
128
125
  }
129
- if (L = I(a), L < x || L > C) return;
126
+ if (L = $(o), L < I || L > M) return;
130
127
  break;
131
128
  case t.HEADER_VALUE_START:
132
- if (a === V) break;
129
+ if (o === x) break;
133
130
  f("onHeaderValue"), i = t.HEADER_VALUE;
134
131
  case t.HEADER_VALUE:
135
- a === N && (b("onHeaderValue", true), T("onHeaderEnd"), i = t.HEADER_VALUE_ALMOST_DONE);
132
+ o === N && (b("onHeaderValue", true), T("onHeaderEnd"), i = t.HEADER_VALUE_ALMOST_DONE);
136
133
  break;
137
134
  case t.HEADER_VALUE_ALMOST_DONE:
138
- if (a !== g) return;
135
+ if (o !== g) return;
139
136
  i = t.HEADER_FIELD_START;
140
137
  break;
141
138
  case t.HEADERS_ALMOST_DONE:
142
- if (a !== g) return;
139
+ if (o !== g) return;
143
140
  T("onHeadersEnd"), i = t.PART_DATA_START;
144
141
  break;
145
142
  case t.PART_DATA_START:
146
143
  i = t.PART_DATA, f("onPartData");
147
144
  case t.PART_DATA:
148
145
  if (d = e, e === 0) {
149
- for (n += O; n < y && !(o[n] in m); ) n += H;
150
- n -= O, a = o[n];
146
+ for (n += O; n < y && !(a[n] in p); ) n += H;
147
+ n -= O, o = a[n];
151
148
  }
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;
149
+ if (e < c.length) c[e] === o ? (e === 0 && b("onPartData", true), e++) : e = 0;
150
+ else if (e === c.length) e++, o === N ? A |= R.PART_BOUNDARY : o === P ? A |= R.LAST_BOUNDARY : e = 0;
151
+ else if (e - 1 === c.length) if (A & R.PART_BOUNDARY) {
152
+ if (e = 0, o === g) {
153
+ A &= ~R.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), i = t.HEADER_FIELD_START;
157
154
  break;
158
155
  }
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;
156
+ } else A & R.LAST_BOUNDARY && o === P ? (T("onPartEnd"), i = t.END, A = 0) : e = 0;
157
+ if (e > 0) l[e - 1] = o;
161
158
  else if (d > 0) {
162
159
  const h = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
163
160
  T("onPartData", 0, d, h), d = 0, f("onPartData"), n--;
@@ -175,11 +172,13 @@ var init_multipart_parser = __esm({
175
172
  else if (this.state !== t.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
176
173
  }
177
174
  };
178
- E($, "_fileName");
179
- E(v, "toFormData");
175
+ E(F, "MultipartParser");
176
+ k = F;
177
+ E(v, "_fileName");
178
+ E(Z, "toFormData");
180
179
  }
181
180
  });
182
181
  init_multipart_parser();
183
182
  export {
184
- v as toFormData
183
+ Z as toFormData
185
184
  };