@storm-software/git-tools 2.84.4 → 2.86.0

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkZ2PDJVIBcjs = require('./chunk-Z2PDJVIB.cjs');
4
+ var _chunk6L7OVDLDcjs = require('./chunk-6L7OVDLD.cjs');
5
5
 
6
6
 
7
7
 
@@ -9,15 +9,15 @@ var _chunkZ2PDJVIBcjs = require('./chunk-Z2PDJVIB.cjs');
9
9
 
10
10
  var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
11
11
 
12
- // ../../node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
12
+ // ../../node_modules/.pnpm/node-fetch-native@1.6.5/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
13
13
  var require_multipart_parser = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
14
- "../../node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
14
+ "../../node_modules/.pnpm/node-fetch-native@1.6.5/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
15
15
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
16
- var y = Object.defineProperty;
17
- var c = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (R, o) => y(R, "name", { value: o, configurable: true }), "c");
16
+ var N = Object.defineProperty;
17
+ var c = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (_, a) => N(_, "name", { value: a, configurable: true }), "c");
18
18
  _chunkEM6PLOYYcjs.__require.call(void 0, "fs"), _chunkEM6PLOYYcjs.__require.call(void 0, "path");
19
- var node = _chunkZ2PDJVIBcjs.require_node.call(void 0, );
20
- _chunkEM6PLOYYcjs.__require.call(void 0, "http"), _chunkEM6PLOYYcjs.__require.call(void 0, "https"), _chunkEM6PLOYYcjs.__require.call(void 0, "zlib"), _chunkEM6PLOYYcjs.__require.call(void 0, "stream"), _chunkEM6PLOYYcjs.__require.call(void 0, "buffer"), _chunkEM6PLOYYcjs.__require.call(void 0, "util"), _chunkZ2PDJVIBcjs.require_node_fetch_native_61758d11.call(void 0, ), _chunkEM6PLOYYcjs.__require.call(void 0, "url"), _chunkEM6PLOYYcjs.__require.call(void 0, "net");
19
+ var node = _chunk6L7OVDLDcjs.require_node.call(void 0, );
20
+ _chunkEM6PLOYYcjs.__require.call(void 0, "http"), _chunkEM6PLOYYcjs.__require.call(void 0, "https"), _chunkEM6PLOYYcjs.__require.call(void 0, "zlib"), _chunkEM6PLOYYcjs.__require.call(void 0, "stream"), _chunkEM6PLOYYcjs.__require.call(void 0, "buffer"), _chunkEM6PLOYYcjs.__require.call(void 0, "util"), _chunk6L7OVDLDcjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunkEM6PLOYYcjs.__require.call(void 0, "url"), _chunkEM6PLOYYcjs.__require.call(void 0, "net");
21
21
  var s = 0;
22
22
  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++ };
23
23
  var f = 1;
@@ -29,154 +29,155 @@ var require_multipart_parser = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
29
29
  var COLON = 58;
30
30
  var A = 97;
31
31
  var Z = 122;
32
- var lower = c((R) => R | 32, "lower");
32
+ var lower = c((_) => _ | 32, "lower");
33
33
  var noop = c(() => {
34
34
  }, "noop");
35
- var g = class g {
35
+ var MultipartParser = class {
36
36
  static {
37
- _chunkEM6PLOYYcjs.__name.call(void 0, this, "g");
37
+ _chunkEM6PLOYYcjs.__name.call(void 0, this, "MultipartParser");
38
38
  }
39
- constructor(o) {
40
- 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
41
- --` + o;
42
- const t = new Uint8Array(o.length);
43
- for (let n = 0; n < o.length; n++) t[n] = o.charCodeAt(n), this.boundaryChars[t[n]] = true;
39
+ static {
40
+ c(this, "MultipartParser");
41
+ }
42
+ constructor(a) {
43
+ 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
44
+ --` + a;
45
+ const t = new Uint8Array(a.length);
46
+ for (let n = 0; n < a.length; n++) t[n] = a.charCodeAt(n), this.boundaryChars[t[n]] = true;
44
47
  this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
45
48
  }
46
- write(o) {
49
+ write(a) {
47
50
  let t = 0;
48
- const n = o.length;
49
- let E = this.index, { lookbehind: l, boundary: h, boundaryChars: H, index: e, state: a, flags: d } = this;
50
- const b = this.boundary.length, m = b - 1, O = o.length;
51
+ const n = a.length;
52
+ let E = this.index, { lookbehind: d, boundary: h, boundaryChars: H, index: e, state: o, flags: l } = this;
53
+ const b = this.boundary.length, m = b - 1, O = a.length;
51
54
  let r, P;
52
55
  const u = c((D) => {
53
56
  this[D + "Mark"] = t;
54
57
  }, "mark"), i = c((D) => {
55
58
  delete this[D + "Mark"];
56
- }, "clear"), T = c((D, p, _, N) => {
57
- (p === void 0 || p !== _) && this[D](N && N.subarray(p, _));
59
+ }, "clear"), T = c((D, p, R, g) => {
60
+ (p === void 0 || p !== R) && this[D](g && g.subarray(p, R));
58
61
  }, "callback"), L = c((D, p) => {
59
- const _ = D + "Mark";
60
- _ in this && (p ? (T(D, this[_], t, o), delete this[_]) : (T(D, this[_], o.length, o), this[_] = 0));
62
+ const R = D + "Mark";
63
+ R in this && (p ? (T(D, this[R], t, a), delete this[R]) : (T(D, this[R], a.length, a), this[R] = 0));
61
64
  }, "dataCallback");
62
- for (t = 0; t < n; t++) switch (r = o[t], a) {
65
+ for (t = 0; t < n; t++) switch (r = a[t], o) {
63
66
  case S.START_BOUNDARY:
64
67
  if (e === h.length - 2) {
65
- if (r === HYPHEN) d |= F.LAST_BOUNDARY;
68
+ if (r === HYPHEN) l |= F.LAST_BOUNDARY;
66
69
  else if (r !== CR) return;
67
70
  e++;
68
71
  break;
69
72
  } else if (e - 1 === h.length - 2) {
70
- if (d & F.LAST_BOUNDARY && r === HYPHEN) a = S.END, d = 0;
71
- else if (!(d & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), a = S.HEADER_FIELD_START;
73
+ if (l & F.LAST_BOUNDARY && r === HYPHEN) o = S.END, l = 0;
74
+ else if (!(l & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), o = S.HEADER_FIELD_START;
72
75
  else return;
73
76
  break;
74
77
  }
75
78
  r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
76
79
  break;
77
80
  case S.HEADER_FIELD_START:
78
- a = S.HEADER_FIELD, u("onHeaderField"), e = 0;
81
+ o = S.HEADER_FIELD, u("onHeaderField"), e = 0;
79
82
  case S.HEADER_FIELD:
80
83
  if (r === CR) {
81
- i("onHeaderField"), a = S.HEADERS_ALMOST_DONE;
84
+ i("onHeaderField"), o = S.HEADERS_ALMOST_DONE;
82
85
  break;
83
86
  }
84
87
  if (e++, r === HYPHEN) break;
85
88
  if (r === COLON) {
86
89
  if (e === 1) return;
87
- L("onHeaderField", true), a = S.HEADER_VALUE_START;
90
+ L("onHeaderField", true), o = S.HEADER_VALUE_START;
88
91
  break;
89
92
  }
90
93
  if (P = lower(r), P < A || P > Z) return;
91
94
  break;
92
95
  case S.HEADER_VALUE_START:
93
96
  if (r === SPACE) break;
94
- u("onHeaderValue"), a = S.HEADER_VALUE;
97
+ u("onHeaderValue"), o = S.HEADER_VALUE;
95
98
  case S.HEADER_VALUE:
96
- r === CR && (L("onHeaderValue", true), T("onHeaderEnd"), a = S.HEADER_VALUE_ALMOST_DONE);
99
+ r === CR && (L("onHeaderValue", true), T("onHeaderEnd"), o = S.HEADER_VALUE_ALMOST_DONE);
97
100
  break;
98
101
  case S.HEADER_VALUE_ALMOST_DONE:
99
102
  if (r !== LF) return;
100
- a = S.HEADER_FIELD_START;
103
+ o = S.HEADER_FIELD_START;
101
104
  break;
102
105
  case S.HEADERS_ALMOST_DONE:
103
106
  if (r !== LF) return;
104
- T("onHeadersEnd"), a = S.PART_DATA_START;
107
+ T("onHeadersEnd"), o = S.PART_DATA_START;
105
108
  break;
106
109
  case S.PART_DATA_START:
107
- a = S.PART_DATA, u("onPartData");
110
+ o = S.PART_DATA, u("onPartData");
108
111
  case S.PART_DATA:
109
112
  if (E = e, e === 0) {
110
- for (t += m; t < O && !(o[t] in H); ) t += b;
111
- t -= m, r = o[t];
113
+ for (t += m; t < O && !(a[t] in H); ) t += b;
114
+ t -= m, r = a[t];
112
115
  }
113
116
  if (e < h.length) h[e] === r ? (e === 0 && L("onPartData", true), e++) : e = 0;
114
- else if (e === h.length) e++, r === CR ? d |= F.PART_BOUNDARY : r === HYPHEN ? d |= F.LAST_BOUNDARY : e = 0;
115
- else if (e - 1 === h.length) if (d & F.PART_BOUNDARY) {
117
+ else if (e === h.length) e++, r === CR ? l |= F.PART_BOUNDARY : r === HYPHEN ? l |= F.LAST_BOUNDARY : e = 0;
118
+ else if (e - 1 === h.length) if (l & F.PART_BOUNDARY) {
116
119
  if (e = 0, r === LF) {
117
- d &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), a = S.HEADER_FIELD_START;
120
+ l &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), o = S.HEADER_FIELD_START;
118
121
  break;
119
122
  }
120
- } else d & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), a = S.END, d = 0) : e = 0;
121
- if (e > 0) l[e - 1] = r;
123
+ } else l & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), o = S.END, l = 0) : e = 0;
124
+ if (e > 0) d[e - 1] = r;
122
125
  else if (E > 0) {
123
- const D = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
126
+ const D = new Uint8Array(d.buffer, d.byteOffset, d.byteLength);
124
127
  T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
125
128
  }
126
129
  break;
127
130
  case S.END:
128
131
  break;
129
132
  default:
130
- throw new Error(`Unexpected state entered: ${a}`);
133
+ throw new Error(`Unexpected state entered: ${o}`);
131
134
  }
132
- L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = a, this.flags = d;
135
+ L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = o, this.flags = l;
133
136
  }
134
137
  end() {
135
138
  if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
136
139
  else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
137
140
  }
138
141
  };
139
- c(g, "MultipartParser");
140
- var MultipartParser = g;
141
- function _fileName(R) {
142
- const o = R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
143
- if (!o) return;
144
- const t = o[2] || o[3] || "";
142
+ function _fileName(_) {
143
+ const a = _.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
144
+ if (!a) return;
145
+ const t = a[2] || a[3] || "";
145
146
  let n = t.slice(t.lastIndexOf("\\") + 1);
146
- return n = n.replace(/%22/g, '"'), n = n.replace(/&#(\d{4});/g, (E, l) => String.fromCharCode(l)), n;
147
+ return n = n.replace(/%22/g, '"'), n = n.replace(/&#(\d{4});/g, (E, d) => String.fromCharCode(d)), n;
147
148
  }
148
149
  _chunkEM6PLOYYcjs.__name.call(void 0, _fileName, "_fileName");
149
150
  c(_fileName, "_fileName");
150
- async function toFormData(R, o) {
151
- if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
152
- const t = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
151
+ async function toFormData(_, a) {
152
+ if (!/multipart/i.test(a)) throw new TypeError("Failed to fetch");
153
+ const t = a.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
153
154
  if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
154
155
  const n = new MultipartParser(t[1] || t[2]);
155
- let E, l, h, H, e, a;
156
- const d = [], b = new node.FormData(), m = c((i) => {
156
+ let E, d, h, H, e, o;
157
+ const l = [], b = new node.FormData(), m = c((i) => {
157
158
  h += u.decode(i, { stream: true });
158
159
  }, "onPartData"), O = c((i) => {
159
- d.push(i);
160
+ l.push(i);
160
161
  }, "appendToFile"), r = c(() => {
161
- const i = new node.File(d, a, { type: e });
162
+ const i = new node.File(l, o, { type: e });
162
163
  b.append(H, i);
163
164
  }, "appendFileToFormData"), P = c(() => {
164
165
  b.append(H, h);
165
166
  }, "appendEntryToFormData"), u = new TextDecoder("utf-8");
166
167
  u.decode(), n.onPartBegin = function() {
167
- n.onPartData = m, n.onPartEnd = P, E = "", l = "", h = "", H = "", e = "", a = null, d.length = 0;
168
+ n.onPartData = m, n.onPartEnd = P, E = "", d = "", h = "", H = "", e = "", o = null, l.length = 0;
168
169
  }, n.onHeaderField = function(i) {
169
170
  E += u.decode(i, { stream: true });
170
171
  }, n.onHeaderValue = function(i) {
171
- l += u.decode(i, { stream: true });
172
+ d += u.decode(i, { stream: true });
172
173
  }, n.onHeaderEnd = function() {
173
- if (l += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
174
- const i = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
175
- i && (H = i[2] || i[3] || ""), a = _fileName(l), a && (n.onPartData = O, n.onPartEnd = r);
176
- } else E === "content-type" && (e = l);
177
- l = "", E = "";
174
+ if (d += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
175
+ const i = d.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
176
+ i && (H = i[2] || i[3] || ""), o = _fileName(d), o && (n.onPartData = O, n.onPartEnd = r);
177
+ } else E === "content-type" && (e = d);
178
+ d = "", E = "";
178
179
  };
179
- for await (const i of R) n.write(i);
180
+ for await (const i of _) n.write(i);
180
181
  return n.end(), b;
181
182
  }
182
183
  _chunkEM6PLOYYcjs.__name.call(void 0, toFormData, "toFormData");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  require_node,
3
- require_node_fetch_native_61758d11
4
- } from "./chunk-GWZAKGGU.js";
3
+ require_node_fetch_native_DhEqb06g
4
+ } from "./chunk-JHLNALI2.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __name,
@@ -9,15 +9,15 @@ import {
9
9
  init_esm_shims
10
10
  } from "./chunk-TJ5BVZGX.js";
11
11
 
12
- // ../../node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
12
+ // ../../node_modules/.pnpm/node-fetch-native@1.6.5/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
13
13
  var require_multipart_parser = __commonJS({
14
- "../../node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
14
+ "../../node_modules/.pnpm/node-fetch-native@1.6.5/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
15
15
  init_esm_shims();
16
- var y = Object.defineProperty;
17
- var c = /* @__PURE__ */ __name((R, o) => y(R, "name", { value: o, configurable: true }), "c");
16
+ var N = Object.defineProperty;
17
+ var c = /* @__PURE__ */ __name((_, a) => N(_, "name", { value: a, configurable: true }), "c");
18
18
  __require("node:fs"), __require("node:path");
19
19
  var node = require_node();
20
- __require("node:http"), __require("node:https"), __require("node:zlib"), __require("node:stream"), __require("node:buffer"), __require("node:util"), require_node_fetch_native_61758d11(), __require("node:url"), __require("node:net");
20
+ __require("node:http"), __require("node:https"), __require("node:zlib"), __require("node:stream"), __require("node:buffer"), __require("node:util"), require_node_fetch_native_DhEqb06g(), __require("node:url"), __require("node:net");
21
21
  var s = 0;
22
22
  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++ };
23
23
  var f = 1;
@@ -29,154 +29,155 @@ var require_multipart_parser = __commonJS({
29
29
  var COLON = 58;
30
30
  var A = 97;
31
31
  var Z = 122;
32
- var lower = c((R) => R | 32, "lower");
32
+ var lower = c((_) => _ | 32, "lower");
33
33
  var noop = c(() => {
34
34
  }, "noop");
35
- var g = class g {
35
+ var MultipartParser = class {
36
36
  static {
37
- __name(this, "g");
37
+ __name(this, "MultipartParser");
38
38
  }
39
- constructor(o) {
40
- 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
41
- --` + o;
42
- const t = new Uint8Array(o.length);
43
- for (let n = 0; n < o.length; n++) t[n] = o.charCodeAt(n), this.boundaryChars[t[n]] = true;
39
+ static {
40
+ c(this, "MultipartParser");
41
+ }
42
+ constructor(a) {
43
+ 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
44
+ --` + a;
45
+ const t = new Uint8Array(a.length);
46
+ for (let n = 0; n < a.length; n++) t[n] = a.charCodeAt(n), this.boundaryChars[t[n]] = true;
44
47
  this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
45
48
  }
46
- write(o) {
49
+ write(a) {
47
50
  let t = 0;
48
- const n = o.length;
49
- let E = this.index, { lookbehind: l, boundary: h, boundaryChars: H, index: e, state: a, flags: d } = this;
50
- const b = this.boundary.length, m = b - 1, O = o.length;
51
+ const n = a.length;
52
+ let E = this.index, { lookbehind: d, boundary: h, boundaryChars: H, index: e, state: o, flags: l } = this;
53
+ const b = this.boundary.length, m = b - 1, O = a.length;
51
54
  let r, P;
52
55
  const u = c((D) => {
53
56
  this[D + "Mark"] = t;
54
57
  }, "mark"), i = c((D) => {
55
58
  delete this[D + "Mark"];
56
- }, "clear"), T = c((D, p, _, N) => {
57
- (p === void 0 || p !== _) && this[D](N && N.subarray(p, _));
59
+ }, "clear"), T = c((D, p, R, g) => {
60
+ (p === void 0 || p !== R) && this[D](g && g.subarray(p, R));
58
61
  }, "callback"), L = c((D, p) => {
59
- const _ = D + "Mark";
60
- _ in this && (p ? (T(D, this[_], t, o), delete this[_]) : (T(D, this[_], o.length, o), this[_] = 0));
62
+ const R = D + "Mark";
63
+ R in this && (p ? (T(D, this[R], t, a), delete this[R]) : (T(D, this[R], a.length, a), this[R] = 0));
61
64
  }, "dataCallback");
62
- for (t = 0; t < n; t++) switch (r = o[t], a) {
65
+ for (t = 0; t < n; t++) switch (r = a[t], o) {
63
66
  case S.START_BOUNDARY:
64
67
  if (e === h.length - 2) {
65
- if (r === HYPHEN) d |= F.LAST_BOUNDARY;
68
+ if (r === HYPHEN) l |= F.LAST_BOUNDARY;
66
69
  else if (r !== CR) return;
67
70
  e++;
68
71
  break;
69
72
  } else if (e - 1 === h.length - 2) {
70
- if (d & F.LAST_BOUNDARY && r === HYPHEN) a = S.END, d = 0;
71
- else if (!(d & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), a = S.HEADER_FIELD_START;
73
+ if (l & F.LAST_BOUNDARY && r === HYPHEN) o = S.END, l = 0;
74
+ else if (!(l & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), o = S.HEADER_FIELD_START;
72
75
  else return;
73
76
  break;
74
77
  }
75
78
  r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
76
79
  break;
77
80
  case S.HEADER_FIELD_START:
78
- a = S.HEADER_FIELD, u("onHeaderField"), e = 0;
81
+ o = S.HEADER_FIELD, u("onHeaderField"), e = 0;
79
82
  case S.HEADER_FIELD:
80
83
  if (r === CR) {
81
- i("onHeaderField"), a = S.HEADERS_ALMOST_DONE;
84
+ i("onHeaderField"), o = S.HEADERS_ALMOST_DONE;
82
85
  break;
83
86
  }
84
87
  if (e++, r === HYPHEN) break;
85
88
  if (r === COLON) {
86
89
  if (e === 1) return;
87
- L("onHeaderField", true), a = S.HEADER_VALUE_START;
90
+ L("onHeaderField", true), o = S.HEADER_VALUE_START;
88
91
  break;
89
92
  }
90
93
  if (P = lower(r), P < A || P > Z) return;
91
94
  break;
92
95
  case S.HEADER_VALUE_START:
93
96
  if (r === SPACE) break;
94
- u("onHeaderValue"), a = S.HEADER_VALUE;
97
+ u("onHeaderValue"), o = S.HEADER_VALUE;
95
98
  case S.HEADER_VALUE:
96
- r === CR && (L("onHeaderValue", true), T("onHeaderEnd"), a = S.HEADER_VALUE_ALMOST_DONE);
99
+ r === CR && (L("onHeaderValue", true), T("onHeaderEnd"), o = S.HEADER_VALUE_ALMOST_DONE);
97
100
  break;
98
101
  case S.HEADER_VALUE_ALMOST_DONE:
99
102
  if (r !== LF) return;
100
- a = S.HEADER_FIELD_START;
103
+ o = S.HEADER_FIELD_START;
101
104
  break;
102
105
  case S.HEADERS_ALMOST_DONE:
103
106
  if (r !== LF) return;
104
- T("onHeadersEnd"), a = S.PART_DATA_START;
107
+ T("onHeadersEnd"), o = S.PART_DATA_START;
105
108
  break;
106
109
  case S.PART_DATA_START:
107
- a = S.PART_DATA, u("onPartData");
110
+ o = S.PART_DATA, u("onPartData");
108
111
  case S.PART_DATA:
109
112
  if (E = e, e === 0) {
110
- for (t += m; t < O && !(o[t] in H); ) t += b;
111
- t -= m, r = o[t];
113
+ for (t += m; t < O && !(a[t] in H); ) t += b;
114
+ t -= m, r = a[t];
112
115
  }
113
116
  if (e < h.length) h[e] === r ? (e === 0 && L("onPartData", true), e++) : e = 0;
114
- else if (e === h.length) e++, r === CR ? d |= F.PART_BOUNDARY : r === HYPHEN ? d |= F.LAST_BOUNDARY : e = 0;
115
- else if (e - 1 === h.length) if (d & F.PART_BOUNDARY) {
117
+ else if (e === h.length) e++, r === CR ? l |= F.PART_BOUNDARY : r === HYPHEN ? l |= F.LAST_BOUNDARY : e = 0;
118
+ else if (e - 1 === h.length) if (l & F.PART_BOUNDARY) {
116
119
  if (e = 0, r === LF) {
117
- d &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), a = S.HEADER_FIELD_START;
120
+ l &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), o = S.HEADER_FIELD_START;
118
121
  break;
119
122
  }
120
- } else d & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), a = S.END, d = 0) : e = 0;
121
- if (e > 0) l[e - 1] = r;
123
+ } else l & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), o = S.END, l = 0) : e = 0;
124
+ if (e > 0) d[e - 1] = r;
122
125
  else if (E > 0) {
123
- const D = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
126
+ const D = new Uint8Array(d.buffer, d.byteOffset, d.byteLength);
124
127
  T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
125
128
  }
126
129
  break;
127
130
  case S.END:
128
131
  break;
129
132
  default:
130
- throw new Error(`Unexpected state entered: ${a}`);
133
+ throw new Error(`Unexpected state entered: ${o}`);
131
134
  }
132
- L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = a, this.flags = d;
135
+ L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = o, this.flags = l;
133
136
  }
134
137
  end() {
135
138
  if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
136
139
  else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
137
140
  }
138
141
  };
139
- c(g, "MultipartParser");
140
- var MultipartParser = g;
141
- function _fileName(R) {
142
- const o = R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
143
- if (!o) return;
144
- const t = o[2] || o[3] || "";
142
+ function _fileName(_) {
143
+ const a = _.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
144
+ if (!a) return;
145
+ const t = a[2] || a[3] || "";
145
146
  let n = t.slice(t.lastIndexOf("\\") + 1);
146
- return n = n.replace(/%22/g, '"'), n = n.replace(/&#(\d{4});/g, (E, l) => String.fromCharCode(l)), n;
147
+ return n = n.replace(/%22/g, '"'), n = n.replace(/&#(\d{4});/g, (E, d) => String.fromCharCode(d)), n;
147
148
  }
148
149
  __name(_fileName, "_fileName");
149
150
  c(_fileName, "_fileName");
150
- async function toFormData(R, o) {
151
- if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
152
- const t = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
151
+ async function toFormData(_, a) {
152
+ if (!/multipart/i.test(a)) throw new TypeError("Failed to fetch");
153
+ const t = a.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
153
154
  if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
154
155
  const n = new MultipartParser(t[1] || t[2]);
155
- let E, l, h, H, e, a;
156
- const d = [], b = new node.FormData(), m = c((i) => {
156
+ let E, d, h, H, e, o;
157
+ const l = [], b = new node.FormData(), m = c((i) => {
157
158
  h += u.decode(i, { stream: true });
158
159
  }, "onPartData"), O = c((i) => {
159
- d.push(i);
160
+ l.push(i);
160
161
  }, "appendToFile"), r = c(() => {
161
- const i = new node.File(d, a, { type: e });
162
+ const i = new node.File(l, o, { type: e });
162
163
  b.append(H, i);
163
164
  }, "appendFileToFormData"), P = c(() => {
164
165
  b.append(H, h);
165
166
  }, "appendEntryToFormData"), u = new TextDecoder("utf-8");
166
167
  u.decode(), n.onPartBegin = function() {
167
- n.onPartData = m, n.onPartEnd = P, E = "", l = "", h = "", H = "", e = "", a = null, d.length = 0;
168
+ n.onPartData = m, n.onPartEnd = P, E = "", d = "", h = "", H = "", e = "", o = null, l.length = 0;
168
169
  }, n.onHeaderField = function(i) {
169
170
  E += u.decode(i, { stream: true });
170
171
  }, n.onHeaderValue = function(i) {
171
- l += u.decode(i, { stream: true });
172
+ d += u.decode(i, { stream: true });
172
173
  }, n.onHeaderEnd = function() {
173
- if (l += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
174
- const i = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
175
- i && (H = i[2] || i[3] || ""), a = _fileName(l), a && (n.onPartData = O, n.onPartEnd = r);
176
- } else E === "content-type" && (e = l);
177
- l = "", E = "";
174
+ if (d += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
175
+ const i = d.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
176
+ i && (H = i[2] || i[3] || ""), o = _fileName(d), o && (n.onPartData = O, n.onPartEnd = r);
177
+ } else E === "content-type" && (e = d);
178
+ d = "", E = "";
178
179
  };
179
- for await (const i of R) n.write(i);
180
+ for await (const i of _) n.write(i);
180
181
  return n.end(), b;
181
182
  }
182
183
  __name(toFormData, "toFormData");
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkAEVVXIO6cjs = require('./chunk-AEVVXIO6.cjs');
16
+ var _chunkYEFBCXENcjs = require('./chunk-YEFBCXEN.cjs');
17
17
  require('./chunk-JMRHG3KS.cjs');
18
18
  require('./chunk-NHO7HSOE.cjs');
19
19
  require('./chunk-WOZSAFMN.cjs');
@@ -27,23 +27,23 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
27
27
  // bin/post-checkout.ts
28
28
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkAEVVXIO6cjs.loadStormConfig.call(void 0, );
30
+ const config = await _chunkYEFBCXENcjs.loadStormConfig.call(void 0, );
31
31
  try {
32
- _chunkAEVVXIO6cjs.handleProcess.call(void 0, config);
33
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
32
+ _chunkYEFBCXENcjs.handleProcess.call(void 0, config);
33
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
34
34
  _chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkAEVVXIO6cjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
38
+ _chunkYEFBCXENcjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
39
39
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
40
- _chunkAEVVXIO6cjs.exitWithError.call(void 0, config);
40
+ _chunkYEFBCXENcjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-checkout");
43
- _chunkAEVVXIO6cjs.exitWithSuccess.call(void 0, config);
43
+ _chunkYEFBCXENcjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkAEVVXIO6cjs.exitWithError.call(void 0, config);
45
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkYEFBCXENcjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-7YWABTXO.js";
16
+ } from "./chunk-PQ4MPWYV.js";
17
17
  import "./chunk-BNZUDAPR.js";
18
18
  import "./chunk-4NALH4AO.js";
19
19
  import "./chunk-3QBEWJXQ.js";
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkAEVVXIO6cjs = require('./chunk-AEVVXIO6.cjs');
16
+ var _chunkYEFBCXENcjs = require('./chunk-YEFBCXEN.cjs');
17
17
  require('./chunk-JMRHG3KS.cjs');
18
18
  require('./chunk-NHO7HSOE.cjs');
19
19
  require('./chunk-WOZSAFMN.cjs');
@@ -27,23 +27,23 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
27
27
  // bin/post-commit.ts
28
28
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkAEVVXIO6cjs.loadStormConfig.call(void 0, );
30
+ const config = await _chunkYEFBCXENcjs.loadStormConfig.call(void 0, );
31
31
  try {
32
- _chunkAEVVXIO6cjs.handleProcess.call(void 0, config);
33
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Running post-commit hook...", config);
32
+ _chunkYEFBCXENcjs.handleProcess.call(void 0, config);
33
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
34
34
  _chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkAEVVXIO6cjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.
38
+ _chunkYEFBCXENcjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.
39
39
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
40
- _chunkAEVVXIO6cjs.exitWithError.call(void 0, config);
40
+ _chunkYEFBCXENcjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-commit");
43
- _chunkAEVVXIO6cjs.exitWithSuccess.call(void 0, config);
43
+ _chunkYEFBCXENcjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkAEVVXIO6cjs.exitWithError.call(void 0, config);
45
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkYEFBCXENcjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-7YWABTXO.js";
16
+ } from "./chunk-PQ4MPWYV.js";
17
17
  import "./chunk-BNZUDAPR.js";
18
18
  import "./chunk-4NALH4AO.js";
19
19
  import "./chunk-3QBEWJXQ.js";