@storm-software/git-tools 2.89.19 → 2.89.21
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-YMPZZ63R.js → chunk-2I5IZB7I.js} +1 -1
- package/bin/{chunk-WOZSAFMN.cjs → chunk-4EXZWKXK.cjs} +138 -138
- package/bin/{chunk-SDAFIVIF.cjs → chunk-4GTGG7FG.cjs} +11 -11
- package/bin/{chunk-UAKVQGZU.cjs → chunk-7FWXX5NN.cjs} +3 -3
- package/bin/{chunk-JHLNALI2.js → chunk-7JKZEVN7.js} +7 -7
- package/bin/{chunk-MUULUJFG.js → chunk-CZZS5O6X.js} +1 -1
- package/bin/{chunk-NHO7HSOE.cjs → chunk-D7E6FHYG.cjs} +32 -32
- package/bin/{chunk-43ATVBTN.cjs → chunk-EE6YDWP4.cjs} +44 -44
- package/bin/{chunk-EM6PLOYY.cjs → chunk-EVP6BIDZ.cjs} +7 -3
- package/bin/{chunk-JMRHG3KS.cjs → chunk-F6YMONH3.cjs} +233 -392
- package/bin/{chunk-5ZJZTDLU.js → chunk-FHVPOT6G.js} +1441 -1276
- package/bin/{chunk-BXSXKKIZ.cjs → chunk-P2UJ7X76.cjs} +4 -4
- package/bin/{chunk-GAD5S6RI.js → chunk-P7LQIJOK.js} +2 -2
- package/bin/{chunk-4NALH4AO.js → chunk-PRYU3CEH.js} +2 -2
- package/bin/{chunk-3QBEWJXQ.js → chunk-S3A47QIS.js} +2 -2
- package/bin/{chunk-4MENWQJO.js → chunk-TYQRCC7E.js} +2 -2
- package/bin/{chunk-427CJVMZ.js → chunk-UZIBTESG.js} +1 -1
- package/bin/{chunk-TJ5BVZGX.js → chunk-V65N3PBL.js} +2 -2
- package/bin/{chunk-C34WMFNS.cjs → chunk-VOJH3O6K.cjs} +40 -40
- package/bin/{chunk-6L7OVDLD.cjs → chunk-W4EY6QRJ.cjs} +393 -393
- package/bin/{chunk-WS6FE5KD.cjs → chunk-WFAIEAPC.cjs} +3642 -3477
- package/bin/{chunk-BNZUDAPR.js → chunk-ZEYLUM4B.js} +94 -253
- package/bin/dist-EX76TC3D.js +17570 -0
- package/bin/dist-MDJEMGZH.cjs +17584 -0
- package/bin/{esm-ADC7HY7G.cjs → esm-SEHCMT4E.cjs} +46 -46
- package/bin/{esm-PISMAGAM.js → esm-UXKHSPHY.js} +1 -1
- package/bin/git.cjs +4316 -4073
- package/bin/git.js +404 -161
- package/bin/json5-E6MR7H4J.cjs +10 -0
- package/bin/json5-HE6DANEW.js +10 -0
- package/bin/jsonc-CWW22DWU.cjs +15 -0
- package/bin/{jsonc-CHJ3SQ64.js → jsonc-TLFMS47G.js} +3 -3
- package/bin/{multipart-parser-QOE3NE7W.js → multipart-parser-KCGB6E6J.js} +4 -4
- package/bin/{multipart-parser-CN3QNGEE.cjs → multipart-parser-S4YB5ALJ.cjs} +13 -13
- package/bin/post-checkout.cjs +22 -22
- package/bin/post-checkout.js +10 -10
- package/bin/post-commit.cjs +22 -22
- package/bin/post-commit.js +10 -10
- package/bin/post-merge.cjs +22 -22
- package/bin/post-merge.js +10 -10
- package/bin/pre-commit.cjs +20 -20
- package/bin/pre-commit.js +9 -9
- package/bin/pre-install.cjs +19 -19
- package/bin/pre-install.js +9 -9
- package/bin/pre-push.cjs +27 -27
- package/bin/pre-push.js +10 -10
- package/bin/prepare.cjs +17 -17
- package/bin/prepare.js +9 -9
- package/bin/toml-PO23EX2W.js +10 -0
- package/bin/toml-TV5QPP5J.cjs +10 -0
- package/bin/version-warning.cjs +15 -15
- package/bin/version-warning.js +9 -9
- package/bin/yaml-NB7XNCSN.js +10 -0
- package/bin/yaml-WOAAZHQN.cjs +10 -0
- package/package.json +1 -1
- package/bin/chunk-EDTRL3GR.cjs +0 -259
- package/bin/chunk-K7RQNYFN.js +0 -259
- package/bin/dist-GN3JYRFA.js +0 -17570
- package/bin/dist-ZUU4T6MR.cjs +0 -17571
- package/bin/execa-45OZD4HI.js +0 -2174
- package/bin/execa-E3LSHKN4.cjs +0 -2174
- package/bin/json5-MEVIN4CB.cjs +0 -10
- package/bin/json5-VNZS6NRW.js +0 -10
- package/bin/jsonc-Q2LSC5PJ.cjs +0 -15
- package/bin/toml-24JQBPT6.cjs +0 -10
- package/bin/toml-5RFTLUCR.js +0 -10
- package/bin/yaml-76CIIR2C.cjs +0 -10
- package/bin/yaml-MEEY2W2C.js +0 -10
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
h,
|
|
3
3
|
x
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TYQRCC7E.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V65N3PBL.js";
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/pathe@
|
|
10
|
+
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/index.mjs
|
|
11
|
+
init_esm_shims();
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
|
|
11
14
|
init_esm_shims();
|
|
12
15
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
13
16
|
function normalizeWindowsPath(input = "") {
|
|
@@ -21,53 +24,55 @@ var _UNC_REGEX = /^[/\\]{2}/;
|
|
|
21
24
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
22
25
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
23
26
|
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
24
|
-
var normalize = /* @__PURE__ */ __name(function(
|
|
25
|
-
if (
|
|
27
|
+
var normalize = /* @__PURE__ */ __name(function(path2) {
|
|
28
|
+
if (path2.length === 0) {
|
|
26
29
|
return ".";
|
|
27
30
|
}
|
|
28
|
-
|
|
29
|
-
const isUNCPath =
|
|
30
|
-
const isPathAbsolute = isAbsolute(
|
|
31
|
-
const trailingSeparator =
|
|
32
|
-
|
|
33
|
-
if (
|
|
31
|
+
path2 = normalizeWindowsPath(path2);
|
|
32
|
+
const isUNCPath = path2.match(_UNC_REGEX);
|
|
33
|
+
const isPathAbsolute = isAbsolute(path2);
|
|
34
|
+
const trailingSeparator = path2[path2.length - 1] === "/";
|
|
35
|
+
path2 = normalizeString(path2, !isPathAbsolute);
|
|
36
|
+
if (path2.length === 0) {
|
|
34
37
|
if (isPathAbsolute) {
|
|
35
38
|
return "/";
|
|
36
39
|
}
|
|
37
40
|
return trailingSeparator ? "./" : ".";
|
|
38
41
|
}
|
|
39
42
|
if (trailingSeparator) {
|
|
40
|
-
|
|
43
|
+
path2 += "/";
|
|
41
44
|
}
|
|
42
|
-
if (_DRIVE_LETTER_RE.test(
|
|
43
|
-
|
|
45
|
+
if (_DRIVE_LETTER_RE.test(path2)) {
|
|
46
|
+
path2 += "/";
|
|
44
47
|
}
|
|
45
48
|
if (isUNCPath) {
|
|
46
49
|
if (!isPathAbsolute) {
|
|
47
|
-
return `//./${
|
|
50
|
+
return `//./${path2}`;
|
|
48
51
|
}
|
|
49
|
-
return `//${
|
|
52
|
+
return `//${path2}`;
|
|
50
53
|
}
|
|
51
|
-
return isPathAbsolute && !isAbsolute(
|
|
54
|
+
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
52
55
|
}, "normalize");
|
|
53
|
-
var join = /* @__PURE__ */ __name(function(...
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
if (
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
var join = /* @__PURE__ */ __name(function(...segments) {
|
|
57
|
+
let path2 = "";
|
|
58
|
+
for (const seg of segments) {
|
|
59
|
+
if (!seg) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
if (path2.length > 0) {
|
|
63
|
+
const pathTrailing = path2[path2.length - 1] === "/";
|
|
64
|
+
const segLeading = seg[0] === "/";
|
|
65
|
+
const both = pathTrailing && segLeading;
|
|
66
|
+
if (both) {
|
|
67
|
+
path2 += seg.slice(1);
|
|
62
68
|
} else {
|
|
63
|
-
|
|
69
|
+
path2 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
64
70
|
}
|
|
71
|
+
} else {
|
|
72
|
+
path2 += seg;
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
|
-
|
|
68
|
-
return ".";
|
|
69
|
-
}
|
|
70
|
-
return normalize(joined.replace(/\/\/+/g, "/"));
|
|
75
|
+
return normalize(path2);
|
|
71
76
|
}, "join");
|
|
72
77
|
function cwd() {
|
|
73
78
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
@@ -81,12 +86,12 @@ var resolve = /* @__PURE__ */ __name(function(...arguments_) {
|
|
|
81
86
|
let resolvedPath = "";
|
|
82
87
|
let resolvedAbsolute = false;
|
|
83
88
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
89
|
+
const path2 = index >= 0 ? arguments_[index] : cwd();
|
|
90
|
+
if (!path2 || path2.length === 0) {
|
|
86
91
|
continue;
|
|
87
92
|
}
|
|
88
|
-
resolvedPath = `${
|
|
89
|
-
resolvedAbsolute = isAbsolute(
|
|
93
|
+
resolvedPath = `${path2}/${resolvedPath}`;
|
|
94
|
+
resolvedAbsolute = isAbsolute(path2);
|
|
90
95
|
}
|
|
91
96
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
92
97
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
@@ -94,15 +99,15 @@ var resolve = /* @__PURE__ */ __name(function(...arguments_) {
|
|
|
94
99
|
}
|
|
95
100
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
96
101
|
}, "resolve");
|
|
97
|
-
function normalizeString(
|
|
102
|
+
function normalizeString(path2, allowAboveRoot) {
|
|
98
103
|
let res = "";
|
|
99
104
|
let lastSegmentLength = 0;
|
|
100
105
|
let lastSlash = -1;
|
|
101
106
|
let dots = 0;
|
|
102
107
|
let char = null;
|
|
103
|
-
for (let index = 0; index <=
|
|
104
|
-
if (index <
|
|
105
|
-
char =
|
|
108
|
+
for (let index = 0; index <= path2.length; ++index) {
|
|
109
|
+
if (index < path2.length) {
|
|
110
|
+
char = path2[index];
|
|
106
111
|
} else if (char === "/") {
|
|
107
112
|
break;
|
|
108
113
|
} else {
|
|
@@ -138,9 +143,9 @@ function normalizeString(path3, allowAboveRoot) {
|
|
|
138
143
|
}
|
|
139
144
|
} else {
|
|
140
145
|
if (res.length > 0) {
|
|
141
|
-
res += `/${
|
|
146
|
+
res += `/${path2.slice(lastSlash + 1, index)}`;
|
|
142
147
|
} else {
|
|
143
|
-
res =
|
|
148
|
+
res = path2.slice(lastSlash + 1, index);
|
|
144
149
|
}
|
|
145
150
|
lastSegmentLength = index - lastSlash - 1;
|
|
146
151
|
}
|
|
@@ -158,11 +163,6 @@ __name(normalizeString, "normalizeString");
|
|
|
158
163
|
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
159
164
|
return _IS_ABSOLUTE_RE.test(p);
|
|
160
165
|
}, "isAbsolute");
|
|
161
|
-
var _EXTNAME_RE = /.(\.[^./]+)$/;
|
|
162
|
-
var extname = /* @__PURE__ */ __name(function(p) {
|
|
163
|
-
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
164
|
-
return match && match[1] || "";
|
|
165
|
-
}, "extname");
|
|
166
166
|
var relative = /* @__PURE__ */ __name(function(from, to) {
|
|
167
167
|
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
168
168
|
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
@@ -187,13 +187,18 @@ var dirname = /* @__PURE__ */ __name(function(p) {
|
|
|
187
187
|
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
188
188
|
}, "dirname");
|
|
189
189
|
var basename = /* @__PURE__ */ __name(function(p, extension) {
|
|
190
|
-
const
|
|
190
|
+
const segments = normalizeWindowsPath(p).split("/");
|
|
191
|
+
let lastSegment = "";
|
|
192
|
+
for (let i = segments.length - 1; i >= 0; i--) {
|
|
193
|
+
const val = segments[i];
|
|
194
|
+
if (val) {
|
|
195
|
+
lastSegment = val;
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
191
199
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
192
200
|
}, "basename");
|
|
193
201
|
|
|
194
|
-
// ../../node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/index.mjs
|
|
195
|
-
init_esm_shims();
|
|
196
|
-
|
|
197
202
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
198
203
|
init_esm_shims();
|
|
199
204
|
function isPlainObject(value) {
|
|
@@ -285,17 +290,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
285
290
|
if (hasTrailingSlash(input, true)) {
|
|
286
291
|
return input || "/";
|
|
287
292
|
}
|
|
288
|
-
let
|
|
293
|
+
let path2 = input;
|
|
289
294
|
let fragment = "";
|
|
290
295
|
const fragmentIndex = input.indexOf("#");
|
|
291
296
|
if (fragmentIndex >= 0) {
|
|
292
|
-
|
|
297
|
+
path2 = input.slice(0, fragmentIndex);
|
|
293
298
|
fragment = input.slice(fragmentIndex);
|
|
294
|
-
if (!
|
|
299
|
+
if (!path2) {
|
|
295
300
|
return fragment;
|
|
296
301
|
}
|
|
297
302
|
}
|
|
298
|
-
const [s0, ...s] =
|
|
303
|
+
const [s0, ...s] = path2.split("?");
|
|
299
304
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
300
305
|
}
|
|
301
306
|
__name(withTrailingSlash, "withTrailingSlash");
|
|
@@ -322,169 +327,6 @@ var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
|
322
327
|
init_esm_shims();
|
|
323
328
|
import { statSync as statSync2, promises as promises2 } from "node:fs";
|
|
324
329
|
|
|
325
|
-
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/index.mjs
|
|
326
|
-
init_esm_shims();
|
|
327
|
-
|
|
328
|
-
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
|
|
329
|
-
init_esm_shims();
|
|
330
|
-
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
331
|
-
function normalizeWindowsPath2(input = "") {
|
|
332
|
-
if (!input) {
|
|
333
|
-
return input;
|
|
334
|
-
}
|
|
335
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r2) => r2.toUpperCase());
|
|
336
|
-
}
|
|
337
|
-
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
338
|
-
var _UNC_REGEX2 = /^[/\\]{2}/;
|
|
339
|
-
var _IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
340
|
-
var _DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
341
|
-
var normalize2 = /* @__PURE__ */ __name(function(path3) {
|
|
342
|
-
if (path3.length === 0) {
|
|
343
|
-
return ".";
|
|
344
|
-
}
|
|
345
|
-
path3 = normalizeWindowsPath2(path3);
|
|
346
|
-
const isUNCPath = path3.match(_UNC_REGEX2);
|
|
347
|
-
const isPathAbsolute = isAbsolute2(path3);
|
|
348
|
-
const trailingSeparator = path3[path3.length - 1] === "/";
|
|
349
|
-
path3 = normalizeString2(path3, !isPathAbsolute);
|
|
350
|
-
if (path3.length === 0) {
|
|
351
|
-
if (isPathAbsolute) {
|
|
352
|
-
return "/";
|
|
353
|
-
}
|
|
354
|
-
return trailingSeparator ? "./" : ".";
|
|
355
|
-
}
|
|
356
|
-
if (trailingSeparator) {
|
|
357
|
-
path3 += "/";
|
|
358
|
-
}
|
|
359
|
-
if (_DRIVE_LETTER_RE2.test(path3)) {
|
|
360
|
-
path3 += "/";
|
|
361
|
-
}
|
|
362
|
-
if (isUNCPath) {
|
|
363
|
-
if (!isPathAbsolute) {
|
|
364
|
-
return `//./${path3}`;
|
|
365
|
-
}
|
|
366
|
-
return `//${path3}`;
|
|
367
|
-
}
|
|
368
|
-
return isPathAbsolute && !isAbsolute2(path3) ? `/${path3}` : path3;
|
|
369
|
-
}, "normalize");
|
|
370
|
-
var join2 = /* @__PURE__ */ __name(function(...segments) {
|
|
371
|
-
let path3 = "";
|
|
372
|
-
for (const seg of segments) {
|
|
373
|
-
if (!seg) {
|
|
374
|
-
continue;
|
|
375
|
-
}
|
|
376
|
-
if (path3.length > 0) {
|
|
377
|
-
const pathTrailing = path3[path3.length - 1] === "/";
|
|
378
|
-
const segLeading = seg[0] === "/";
|
|
379
|
-
const both = pathTrailing && segLeading;
|
|
380
|
-
if (both) {
|
|
381
|
-
path3 += seg.slice(1);
|
|
382
|
-
} else {
|
|
383
|
-
path3 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
384
|
-
}
|
|
385
|
-
} else {
|
|
386
|
-
path3 += seg;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
return normalize2(path3);
|
|
390
|
-
}, "join");
|
|
391
|
-
function cwd2() {
|
|
392
|
-
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
393
|
-
return process.cwd().replace(/\\/g, "/");
|
|
394
|
-
}
|
|
395
|
-
return "/";
|
|
396
|
-
}
|
|
397
|
-
__name(cwd2, "cwd");
|
|
398
|
-
var resolve2 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
399
|
-
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
400
|
-
let resolvedPath = "";
|
|
401
|
-
let resolvedAbsolute = false;
|
|
402
|
-
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
403
|
-
const path3 = index >= 0 ? arguments_[index] : cwd2();
|
|
404
|
-
if (!path3 || path3.length === 0) {
|
|
405
|
-
continue;
|
|
406
|
-
}
|
|
407
|
-
resolvedPath = `${path3}/${resolvedPath}`;
|
|
408
|
-
resolvedAbsolute = isAbsolute2(path3);
|
|
409
|
-
}
|
|
410
|
-
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
411
|
-
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
412
|
-
return `/${resolvedPath}`;
|
|
413
|
-
}
|
|
414
|
-
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
415
|
-
}, "resolve");
|
|
416
|
-
function normalizeString2(path3, allowAboveRoot) {
|
|
417
|
-
let res = "";
|
|
418
|
-
let lastSegmentLength = 0;
|
|
419
|
-
let lastSlash = -1;
|
|
420
|
-
let dots = 0;
|
|
421
|
-
let char = null;
|
|
422
|
-
for (let index = 0; index <= path3.length; ++index) {
|
|
423
|
-
if (index < path3.length) {
|
|
424
|
-
char = path3[index];
|
|
425
|
-
} else if (char === "/") {
|
|
426
|
-
break;
|
|
427
|
-
} else {
|
|
428
|
-
char = "/";
|
|
429
|
-
}
|
|
430
|
-
if (char === "/") {
|
|
431
|
-
if (lastSlash === index - 1 || dots === 1) ;
|
|
432
|
-
else if (dots === 2) {
|
|
433
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
434
|
-
if (res.length > 2) {
|
|
435
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
436
|
-
if (lastSlashIndex === -1) {
|
|
437
|
-
res = "";
|
|
438
|
-
lastSegmentLength = 0;
|
|
439
|
-
} else {
|
|
440
|
-
res = res.slice(0, lastSlashIndex);
|
|
441
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
442
|
-
}
|
|
443
|
-
lastSlash = index;
|
|
444
|
-
dots = 0;
|
|
445
|
-
continue;
|
|
446
|
-
} else if (res.length > 0) {
|
|
447
|
-
res = "";
|
|
448
|
-
lastSegmentLength = 0;
|
|
449
|
-
lastSlash = index;
|
|
450
|
-
dots = 0;
|
|
451
|
-
continue;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
if (allowAboveRoot) {
|
|
455
|
-
res += res.length > 0 ? "/.." : "..";
|
|
456
|
-
lastSegmentLength = 2;
|
|
457
|
-
}
|
|
458
|
-
} else {
|
|
459
|
-
if (res.length > 0) {
|
|
460
|
-
res += `/${path3.slice(lastSlash + 1, index)}`;
|
|
461
|
-
} else {
|
|
462
|
-
res = path3.slice(lastSlash + 1, index);
|
|
463
|
-
}
|
|
464
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
465
|
-
}
|
|
466
|
-
lastSlash = index;
|
|
467
|
-
dots = 0;
|
|
468
|
-
} else if (char === "." && dots !== -1) {
|
|
469
|
-
++dots;
|
|
470
|
-
} else {
|
|
471
|
-
dots = -1;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
return res;
|
|
475
|
-
}
|
|
476
|
-
__name(normalizeString2, "normalizeString");
|
|
477
|
-
var isAbsolute2 = /* @__PURE__ */ __name(function(p) {
|
|
478
|
-
return _IS_ABSOLUTE_RE2.test(p);
|
|
479
|
-
}, "isAbsolute");
|
|
480
|
-
var dirname2 = /* @__PURE__ */ __name(function(p) {
|
|
481
|
-
const segments = normalizeWindowsPath2(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
482
|
-
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
483
|
-
segments[0] += "/";
|
|
484
|
-
}
|
|
485
|
-
return segments.join("/") || (isAbsolute2(p) ? "/" : ".");
|
|
486
|
-
}, "dirname");
|
|
487
|
-
|
|
488
330
|
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
489
331
|
init_esm_shims();
|
|
490
332
|
|
|
@@ -981,7 +823,7 @@ var Parser = /* @__PURE__ */ __name(function Parser2(options, input, startPos) {
|
|
|
981
823
|
this.privateNameStack = [];
|
|
982
824
|
}, "Parser");
|
|
983
825
|
var prototypeAccessors = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
|
|
984
|
-
Parser.prototype.parse = /* @__PURE__ */ __name(function
|
|
826
|
+
Parser.prototype.parse = /* @__PURE__ */ __name(function parse2() {
|
|
985
827
|
var node = this.options.program || this.startNode();
|
|
986
828
|
this.nextToken();
|
|
987
829
|
return this.parseTopLevel(node);
|
|
@@ -1037,7 +879,7 @@ Parser.extend = /* @__PURE__ */ __name(function extend() {
|
|
|
1037
879
|
}
|
|
1038
880
|
return cls;
|
|
1039
881
|
}, "extend");
|
|
1040
|
-
Parser.parse = /* @__PURE__ */ __name(function
|
|
882
|
+
Parser.parse = /* @__PURE__ */ __name(function parse3(input, options) {
|
|
1041
883
|
return new this(options, input).parse();
|
|
1042
884
|
}, "parse");
|
|
1043
885
|
Parser.parseExpressionAt = /* @__PURE__ */ __name(function parseExpressionAt(input, pos, options) {
|
|
@@ -6060,12 +5902,12 @@ import fs, { realpathSync, statSync, promises } from "node:fs";
|
|
|
6060
5902
|
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
|
|
6061
5903
|
import assert from "node:assert";
|
|
6062
5904
|
import process$1 from "node:process";
|
|
6063
|
-
import
|
|
5905
|
+
import path, { dirname as dirname2 } from "node:path";
|
|
6064
5906
|
import v8 from "node:v8";
|
|
6065
|
-
import { format as
|
|
5907
|
+
import { format as format2, inspect } from "node:util";
|
|
6066
5908
|
var BUILTIN_MODULES = new Set(builtinModules);
|
|
6067
|
-
function normalizeSlash(
|
|
6068
|
-
return
|
|
5909
|
+
function normalizeSlash(path2) {
|
|
5910
|
+
return path2.replace(/\\/g, "/");
|
|
6069
5911
|
}
|
|
6070
5912
|
__name(normalizeSlash, "normalizeSlash");
|
|
6071
5913
|
var own$1 = {}.hasOwnProperty;
|
|
@@ -6180,8 +6022,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
6180
6022
|
* @param {string} [base]
|
|
6181
6023
|
* @param {string} [message]
|
|
6182
6024
|
*/
|
|
6183
|
-
(
|
|
6184
|
-
return `Invalid package config ${
|
|
6025
|
+
(path2, base, message) => {
|
|
6026
|
+
return `Invalid package config ${path2}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
6185
6027
|
},
|
|
6186
6028
|
Error
|
|
6187
6029
|
);
|
|
@@ -6213,8 +6055,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
|
|
|
6213
6055
|
* @param {string} base
|
|
6214
6056
|
* @param {boolean} [exactUrl]
|
|
6215
6057
|
*/
|
|
6216
|
-
(
|
|
6217
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${
|
|
6058
|
+
(path2, base, exactUrl = false) => {
|
|
6059
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path2}' imported from ${base}`;
|
|
6218
6060
|
},
|
|
6219
6061
|
Error
|
|
6220
6062
|
);
|
|
@@ -6265,8 +6107,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
|
6265
6107
|
* @param {string} extension
|
|
6266
6108
|
* @param {string} path
|
|
6267
6109
|
*/
|
|
6268
|
-
(extension,
|
|
6269
|
-
return `Unknown file extension "${extension}" for ${
|
|
6110
|
+
(extension, path2) => {
|
|
6111
|
+
return `Unknown file extension "${extension}" for ${path2}`;
|
|
6270
6112
|
},
|
|
6271
6113
|
TypeError
|
|
6272
6114
|
);
|
|
@@ -6385,7 +6227,7 @@ function getMessage(key, parameters, self) {
|
|
|
6385
6227
|
);
|
|
6386
6228
|
if (parameters.length === 0) return message;
|
|
6387
6229
|
parameters.unshift(message);
|
|
6388
|
-
return Reflect.apply(
|
|
6230
|
+
return Reflect.apply(format2, null, parameters);
|
|
6389
6231
|
}
|
|
6390
6232
|
__name(getMessage, "getMessage");
|
|
6391
6233
|
function determineSpecificType(value) {
|
|
@@ -6418,7 +6260,7 @@ function read(jsonPath, { base, specifier }) {
|
|
|
6418
6260
|
}
|
|
6419
6261
|
let string;
|
|
6420
6262
|
try {
|
|
6421
|
-
string = fs.readFileSync(
|
|
6263
|
+
string = fs.readFileSync(path.toNamespacedPath(jsonPath), "utf8");
|
|
6422
6264
|
} catch (error) {
|
|
6423
6265
|
const exception = (
|
|
6424
6266
|
/** @type {ErrnoException} */
|
|
@@ -6542,7 +6384,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
6542
6384
|
return mimeToFormat(mime);
|
|
6543
6385
|
}
|
|
6544
6386
|
__name(getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
6545
|
-
function
|
|
6387
|
+
function extname2(url) {
|
|
6546
6388
|
const pathname = url.pathname;
|
|
6547
6389
|
let index = pathname.length;
|
|
6548
6390
|
while (index--) {
|
|
@@ -6556,9 +6398,9 @@ function extname3(url) {
|
|
|
6556
6398
|
}
|
|
6557
6399
|
return "";
|
|
6558
6400
|
}
|
|
6559
|
-
__name(
|
|
6401
|
+
__name(extname2, "extname");
|
|
6560
6402
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
6561
|
-
const value =
|
|
6403
|
+
const value = extname2(url);
|
|
6562
6404
|
if (value === ".js") {
|
|
6563
6405
|
const packageType = getPackageType(url);
|
|
6564
6406
|
if (packageType !== "none") {
|
|
@@ -6573,8 +6415,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
6573
6415
|
}
|
|
6574
6416
|
return "module";
|
|
6575
6417
|
}
|
|
6576
|
-
const
|
|
6577
|
-
if (
|
|
6418
|
+
const format3 = extensionFormatMap[value];
|
|
6419
|
+
if (format3) return format3;
|
|
6578
6420
|
if (ignoreErrors) {
|
|
6579
6421
|
return void 0;
|
|
6580
6422
|
}
|
|
@@ -6630,8 +6472,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
6630
6472
|
if (process$1.noDeprecation) {
|
|
6631
6473
|
return;
|
|
6632
6474
|
}
|
|
6633
|
-
const
|
|
6634
|
-
if (
|
|
6475
|
+
const format3 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
6476
|
+
if (format3 !== "module") return;
|
|
6635
6477
|
const urlPath = fileURLToPath$1(url.href);
|
|
6636
6478
|
const packagePath = fileURLToPath$1(new URL$1(".", packageJsonUrl));
|
|
6637
6479
|
const basePath = fileURLToPath$1(base);
|
|
@@ -6644,7 +6486,7 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6644
6486
|
"DeprecationWarning",
|
|
6645
6487
|
"DEP0151"
|
|
6646
6488
|
);
|
|
6647
|
-
} else if (
|
|
6489
|
+
} else if (path.resolve(packagePath, main) !== urlPath) {
|
|
6648
6490
|
process$1.emitWarning(
|
|
6649
6491
|
`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
|
|
6650
6492
|
packagePath.length
|
|
@@ -6656,9 +6498,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6656
6498
|
}
|
|
6657
6499
|
}
|
|
6658
6500
|
__name(emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
|
|
6659
|
-
function tryStatSync(
|
|
6501
|
+
function tryStatSync(path2) {
|
|
6660
6502
|
try {
|
|
6661
|
-
return statSync(
|
|
6503
|
+
return statSync(path2);
|
|
6662
6504
|
} catch {
|
|
6663
6505
|
}
|
|
6664
6506
|
}
|
|
@@ -6755,7 +6597,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
6755
6597
|
{
|
|
6756
6598
|
const real = realpathSync(filePath);
|
|
6757
6599
|
const { search, hash } = resolved;
|
|
6758
|
-
resolved = pathToFileURL$1(real + (filePath.endsWith(
|
|
6600
|
+
resolved = pathToFileURL$1(real + (filePath.endsWith(path.sep) ? "/" : ""));
|
|
6759
6601
|
resolved.search = search;
|
|
6760
6602
|
resolved.hash = hash;
|
|
6761
6603
|
}
|
|
@@ -7378,7 +7220,7 @@ function _resolve(id, options = {}) {
|
|
|
7378
7220
|
if (id.startsWith("file://")) {
|
|
7379
7221
|
id = fileURLToPath(id);
|
|
7380
7222
|
}
|
|
7381
|
-
if (
|
|
7223
|
+
if (isAbsolute(id)) {
|
|
7382
7224
|
try {
|
|
7383
7225
|
const stat = statSync(id);
|
|
7384
7226
|
if (stat.isFile()) {
|
|
@@ -7479,7 +7321,7 @@ var defaultFindOptions = {
|
|
|
7479
7321
|
async function findFile(filename, _options = {}) {
|
|
7480
7322
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
7481
7323
|
const options = { ...defaultFindOptions, ..._options };
|
|
7482
|
-
const basePath =
|
|
7324
|
+
const basePath = resolve(options.startingFrom);
|
|
7483
7325
|
const leadingSlash = basePath[0] === "/";
|
|
7484
7326
|
const segments = basePath.split("/").filter(Boolean);
|
|
7485
7327
|
if (leadingSlash) {
|
|
@@ -7492,7 +7334,7 @@ async function findFile(filename, _options = {}) {
|
|
|
7492
7334
|
if (options.reverse) {
|
|
7493
7335
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
7494
7336
|
for (const filename2 of filenames) {
|
|
7495
|
-
const filePath =
|
|
7337
|
+
const filePath = join(...segments.slice(0, index), filename2);
|
|
7496
7338
|
if (await options.test(filePath)) {
|
|
7497
7339
|
return filePath;
|
|
7498
7340
|
}
|
|
@@ -7501,7 +7343,7 @@ async function findFile(filename, _options = {}) {
|
|
|
7501
7343
|
} else {
|
|
7502
7344
|
for (let index = segments.length; index > root; index--) {
|
|
7503
7345
|
for (const filename2 of filenames) {
|
|
7504
|
-
const filePath =
|
|
7346
|
+
const filePath = join(...segments.slice(0, index), filename2);
|
|
7505
7347
|
if (await options.test(filePath)) {
|
|
7506
7348
|
return filePath;
|
|
7507
7349
|
}
|
|
@@ -7536,7 +7378,7 @@ async function readPackageJSON(id, options = {}) {
|
|
|
7536
7378
|
}
|
|
7537
7379
|
__name(readPackageJSON, "readPackageJSON");
|
|
7538
7380
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
7539
|
-
const resolvedPath =
|
|
7381
|
+
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7540
7382
|
return findNearestFile("package.json", {
|
|
7541
7383
|
startingFrom: resolvedPath,
|
|
7542
7384
|
...options
|
|
@@ -7552,7 +7394,7 @@ var lockFiles = [
|
|
|
7552
7394
|
"bun.lock"
|
|
7553
7395
|
];
|
|
7554
7396
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
7555
|
-
const resolvedPath =
|
|
7397
|
+
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7556
7398
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
7557
7399
|
try {
|
|
7558
7400
|
return await findNearestFile(lockFiles, _options);
|
|
@@ -7562,11 +7404,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
7562
7404
|
}
|
|
7563
7405
|
__name(resolveLockfile, "resolveLockfile");
|
|
7564
7406
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
7565
|
-
const resolvedPath =
|
|
7407
|
+
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7566
7408
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
7567
7409
|
try {
|
|
7568
7410
|
const r2 = await findNearestFile(".git/config", _options);
|
|
7569
|
-
return
|
|
7411
|
+
return resolve(r2, "../..");
|
|
7570
7412
|
} catch {
|
|
7571
7413
|
}
|
|
7572
7414
|
try {
|
|
@@ -7574,12 +7416,12 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
7574
7416
|
..._options,
|
|
7575
7417
|
reverse: true
|
|
7576
7418
|
});
|
|
7577
|
-
return
|
|
7419
|
+
return dirname(r2);
|
|
7578
7420
|
} catch {
|
|
7579
7421
|
}
|
|
7580
7422
|
try {
|
|
7581
7423
|
const r2 = await findFile(resolvedPath, _options);
|
|
7582
|
-
return
|
|
7424
|
+
return dirname(r2);
|
|
7583
7425
|
} catch {
|
|
7584
7426
|
}
|
|
7585
7427
|
throw new Error("Cannot detect workspace root from " + id);
|
|
@@ -7590,7 +7432,6 @@ export {
|
|
|
7590
7432
|
normalize,
|
|
7591
7433
|
join,
|
|
7592
7434
|
resolve,
|
|
7593
|
-
extname,
|
|
7594
7435
|
relative,
|
|
7595
7436
|
dirname,
|
|
7596
7437
|
basename,
|