@storm-software/git-tools 2.85.0 → 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.
- package/README.md +1 -1
- package/bin/{chunk-Z2PDJVIB.cjs → chunk-6L7OVDLD.cjs} +1860 -1828
- package/bin/{chunk-GWZAKGGU.js → chunk-JHLNALI2.js} +1860 -1828
- package/bin/{chunk-7YWABTXO.js → chunk-PQ4MPWYV.js} +14 -14
- package/bin/{chunk-AEVVXIO6.cjs → chunk-YEFBCXEN.cjs} +15 -15
- package/bin/dist-GN3JYRFA.js +17570 -0
- package/bin/dist-ZUU4T6MR.cjs +17571 -0
- package/bin/git.cjs +79 -82
- package/bin/git.js +18 -21
- package/bin/{multipart-parser-VXZPS2LP.cjs → multipart-parser-CN3QNGEE.cjs} +68 -67
- package/bin/{multipart-parser-C2AODIKN.js → multipart-parser-QOE3NE7W.js} +68 -67
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +1 -1
- package/bin/dist-7C27GIRC.js +0 -15545
- package/bin/dist-GFY7EUZH.cjs +0 -15546
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
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.
|
|
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.
|
|
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
|
|
17
|
-
var c = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (
|
|
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 =
|
|
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"),
|
|
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((
|
|
32
|
+
var lower = c((_) => _ | 32, "lower");
|
|
33
33
|
var noop = c(() => {
|
|
34
34
|
}, "noop");
|
|
35
|
-
var
|
|
35
|
+
var MultipartParser = class {
|
|
36
36
|
static {
|
|
37
|
-
_chunkEM6PLOYYcjs.__name.call(void 0, this, "
|
|
37
|
+
_chunkEM6PLOYYcjs.__name.call(void 0, this, "MultipartParser");
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
this
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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(
|
|
49
|
+
write(a) {
|
|
47
50
|
let t = 0;
|
|
48
|
-
const n =
|
|
49
|
-
let E = this.index, { lookbehind:
|
|
50
|
-
const b = this.boundary.length, m = b - 1, O =
|
|
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,
|
|
57
|
-
(p === void 0 || 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
|
|
60
|
-
|
|
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 =
|
|
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)
|
|
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 (
|
|
71
|
-
else if (!(
|
|
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
|
-
|
|
81
|
+
o = S.HEADER_FIELD, u("onHeaderField"), e = 0;
|
|
79
82
|
case S.HEADER_FIELD:
|
|
80
83
|
if (r === CR) {
|
|
81
|
-
i("onHeaderField"),
|
|
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),
|
|
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"),
|
|
97
|
+
u("onHeaderValue"), o = S.HEADER_VALUE;
|
|
95
98
|
case S.HEADER_VALUE:
|
|
96
|
-
r === CR && (L("onHeaderValue", true), T("onHeaderEnd"),
|
|
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
|
-
|
|
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"),
|
|
107
|
+
T("onHeadersEnd"), o = S.PART_DATA_START;
|
|
105
108
|
break;
|
|
106
109
|
case S.PART_DATA_START:
|
|
107
|
-
|
|
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 && !(
|
|
111
|
-
t -= m, r =
|
|
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 ?
|
|
115
|
-
else if (e - 1 === h.length) if (
|
|
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
|
-
|
|
120
|
+
l &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), o = S.HEADER_FIELD_START;
|
|
118
121
|
break;
|
|
119
122
|
}
|
|
120
|
-
} else
|
|
121
|
-
if (e > 0)
|
|
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(
|
|
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: ${
|
|
133
|
+
throw new Error(`Unexpected state entered: ${o}`);
|
|
131
134
|
}
|
|
132
|
-
L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state =
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
const
|
|
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,
|
|
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(
|
|
151
|
-
if (!/multipart/i.test(
|
|
152
|
-
const t =
|
|
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,
|
|
156
|
-
const
|
|
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
|
-
|
|
160
|
+
l.push(i);
|
|
160
161
|
}, "appendToFile"), r = c(() => {
|
|
161
|
-
const i = new node.File(
|
|
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 = "",
|
|
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
|
-
|
|
172
|
+
d += u.decode(i, { stream: true });
|
|
172
173
|
}, n.onHeaderEnd = function() {
|
|
173
|
-
if (
|
|
174
|
-
const i =
|
|
175
|
-
i && (H = i[2] || i[3] || ""),
|
|
176
|
-
} else E === "content-type" && (e =
|
|
177
|
-
|
|
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
|
|
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
|
-
|
|
4
|
-
} from "./chunk-
|
|
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.
|
|
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.
|
|
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
|
|
17
|
-
var c = /* @__PURE__ */ __name((
|
|
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"),
|
|
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((
|
|
32
|
+
var lower = c((_) => _ | 32, "lower");
|
|
33
33
|
var noop = c(() => {
|
|
34
34
|
}, "noop");
|
|
35
|
-
var
|
|
35
|
+
var MultipartParser = class {
|
|
36
36
|
static {
|
|
37
|
-
__name(this, "
|
|
37
|
+
__name(this, "MultipartParser");
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
this
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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(
|
|
49
|
+
write(a) {
|
|
47
50
|
let t = 0;
|
|
48
|
-
const n =
|
|
49
|
-
let E = this.index, { lookbehind:
|
|
50
|
-
const b = this.boundary.length, m = b - 1, O =
|
|
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,
|
|
57
|
-
(p === void 0 || 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
|
|
60
|
-
|
|
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 =
|
|
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)
|
|
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 (
|
|
71
|
-
else if (!(
|
|
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
|
-
|
|
81
|
+
o = S.HEADER_FIELD, u("onHeaderField"), e = 0;
|
|
79
82
|
case S.HEADER_FIELD:
|
|
80
83
|
if (r === CR) {
|
|
81
|
-
i("onHeaderField"),
|
|
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),
|
|
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"),
|
|
97
|
+
u("onHeaderValue"), o = S.HEADER_VALUE;
|
|
95
98
|
case S.HEADER_VALUE:
|
|
96
|
-
r === CR && (L("onHeaderValue", true), T("onHeaderEnd"),
|
|
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
|
-
|
|
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"),
|
|
107
|
+
T("onHeadersEnd"), o = S.PART_DATA_START;
|
|
105
108
|
break;
|
|
106
109
|
case S.PART_DATA_START:
|
|
107
|
-
|
|
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 && !(
|
|
111
|
-
t -= m, r =
|
|
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 ?
|
|
115
|
-
else if (e - 1 === h.length) if (
|
|
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
|
-
|
|
120
|
+
l &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), o = S.HEADER_FIELD_START;
|
|
118
121
|
break;
|
|
119
122
|
}
|
|
120
|
-
} else
|
|
121
|
-
if (e > 0)
|
|
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(
|
|
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: ${
|
|
133
|
+
throw new Error(`Unexpected state entered: ${o}`);
|
|
131
134
|
}
|
|
132
|
-
L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state =
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
const
|
|
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,
|
|
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(
|
|
151
|
-
if (!/multipart/i.test(
|
|
152
|
-
const t =
|
|
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,
|
|
156
|
-
const
|
|
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
|
-
|
|
160
|
+
l.push(i);
|
|
160
161
|
}, "appendToFile"), r = c(() => {
|
|
161
|
-
const i = new node.File(
|
|
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 = "",
|
|
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
|
-
|
|
172
|
+
d += u.decode(i, { stream: true });
|
|
172
173
|
}, n.onHeaderEnd = function() {
|
|
173
|
-
if (
|
|
174
|
-
const i =
|
|
175
|
-
i && (H = i[2] || i[3] || ""),
|
|
176
|
-
} else E === "content-type" && (e =
|
|
177
|
-
|
|
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
|
|
180
|
+
for await (const i of _) n.write(i);
|
|
180
181
|
return n.end(), b;
|
|
181
182
|
}
|
|
182
183
|
__name(toFormData, "toFormData");
|
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
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
|
|
30
|
+
const config = await _chunkYEFBCXENcjs.loadStormConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
40
|
+
_chunkYEFBCXENcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkYEFBCXENcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
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
|
})();
|
package/bin/post-checkout.js
CHANGED
package/bin/post-commit.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
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
|
|
30
|
+
const config = await _chunkYEFBCXENcjs.loadStormConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
40
|
+
_chunkYEFBCXENcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkYEFBCXENcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
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
|
})();
|