@storm-software/git-tools 2.104.47 → 2.104.48
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-MM5AJ3HN.js → chunk-23TCSI67.js} +26 -143
- package/bin/{chunk-LHINQG4H.cjs → chunk-34R4PCUS.cjs} +9 -35
- package/bin/chunk-3XEEEMLV.js +25 -0
- package/bin/{chunk-FDIL5LQQ.cjs → chunk-3YZZSIRA.cjs} +2 -8
- package/bin/{chunk-QVRLY7GO.js → chunk-5DZECCFZ.js} +1831 -3498
- package/bin/{chunk-C56ONEWE.cjs → chunk-A3QVIDKR.cjs} +2063 -4146
- package/bin/{chunk-RWG7K3L2.cjs → chunk-ANR3M366.cjs} +14 -46
- package/bin/{chunk-YCGKNXJZ.cjs → chunk-AQDYBQBF.cjs} +2 -12
- package/bin/{chunk-DNTOHRW4.js → chunk-BJYW7ISD.js} +78 -182
- package/bin/{chunk-YKGA2MVU.cjs → chunk-FY5QB5MQ.cjs} +13 -47
- package/bin/{chunk-DBXOSHV7.js → chunk-GIYWTOX5.js} +10 -44
- package/bin/{chunk-YS7O5BRI.cjs → chunk-H6RJC2EU.cjs} +29 -146
- package/bin/{chunk-IFBRUMYX.js → chunk-KTLBDGE7.js} +1 -11
- package/bin/{chunk-RJTSICHA.js → chunk-M3SPNRDT.js} +6 -32
- package/bin/{chunk-PW5R2BRU.cjs → chunk-MRCW7ZWW.cjs} +4 -5
- package/bin/{chunk-KD5ZCYX3.cjs → chunk-OQNZFKFJ.cjs} +22 -445
- package/bin/{chunk-OBE5IRH4.js → chunk-PAW5GJNL.js} +3 -4
- package/bin/{chunk-377YOE7Z.js → chunk-QROY5223.js} +4 -426
- package/bin/{chunk-QYSGMK4D.js → chunk-REUY4MDC.js} +10 -42
- package/bin/{chunk-JUU5ILZB.cjs → chunk-RHY34RLE.cjs} +4 -6
- package/bin/{chunk-PRG2N75Y.js → chunk-V3UDZCED.js} +1 -7
- package/bin/chunk-VNWRUK6N.cjs +25 -0
- package/bin/{chunk-EJRTGQIY.js → chunk-W2TU25OT.js} +2 -4
- package/bin/{chunk-V2L6QG6X.cjs → chunk-Z3K5JTIC.cjs} +88 -192
- package/bin/{dist-YVMKTFW6.cjs → dist-3B7RDNKI.cjs} +1097 -2113
- package/bin/{dist-AXJG5W3U.js → dist-BGCQPBHL.js} +2 -5
- package/bin/{dist-5TR4KAWC.cjs → dist-WGGNNSDG.cjs} +6 -9
- package/bin/{dist-KY7IAJSV.js → dist-YM6D424K.js} +417 -1489
- package/bin/{esm-MGSMO3WY.cjs → esm-6GE5MI4G.cjs} +249 -254
- package/bin/{esm-IZHFRARS.js → esm-WLHP7RVO.js} +246 -251
- package/bin/git.cjs +9757 -20881
- package/bin/git.js +4720 -13387
- package/bin/json5-ELADGSSP.js +10 -0
- package/bin/json5-FQPHMSAC.cjs +10 -0
- package/bin/jsonc-CTYQYPBR.cjs +15 -0
- package/bin/{jsonc-6643P3LC.js → jsonc-RUGZP2X2.js} +3 -3
- package/bin/{multipart-parser-Z3URKOGZ.cjs → multipart-parser-I4Y55UNL.cjs} +8 -14
- package/bin/{multipart-parser-HAF2WA3O.js → multipart-parser-MFV7BRF2.js} +3 -9
- package/bin/post-checkout.cjs +29 -23
- package/bin/post-checkout.js +19 -13
- package/bin/post-commit.cjs +29 -23
- package/bin/post-commit.js +19 -13
- package/bin/post-merge.cjs +29 -23
- package/bin/post-merge.js +19 -13
- package/bin/pre-commit.cjs +26 -20
- package/bin/pre-commit.js +17 -11
- package/bin/pre-install.cjs +22 -19
- package/bin/pre-install.js +13 -10
- package/bin/pre-push.cjs +55 -36
- package/bin/pre-push.js +40 -21
- package/bin/prepare.cjs +20 -17
- package/bin/prepare.js +13 -10
- package/bin/toml-IRXKI45Y.cjs +10 -0
- package/bin/toml-U3J6BEAR.js +10 -0
- package/bin/{utils-WL6G35GX.js → utils-6O4EJJM3.js} +2 -12
- package/bin/{utils-PZ3SHU7I.cjs → utils-GJRPR6GZ.cjs} +5 -15
- package/bin/version-warning.cjs +18 -15
- package/bin/version-warning.js +13 -10
- package/bin/yaml-CPOMXZOK.js +10 -0
- package/bin/yaml-WGJNEJ7V.cjs +10 -0
- package/dist/{chunk-232JIEVA.js → chunk-3MA2SHAT.js} +1 -1
- package/dist/chunk-3V3F7TB7.cjs +18 -0
- package/dist/{chunk-TFEV2FZY.js → chunk-D7HN6Y5M.js} +8 -9
- package/dist/{chunk-L2C6A3XV.cjs → chunk-EQZ3BKYL.cjs} +9 -10
- package/dist/{chunk-WTMYHIID.cjs → chunk-FX5G24P6.cjs} +3 -3
- package/dist/{chunk-W7SYRJE7.js → chunk-JVIJRTGD.js} +1 -1
- package/dist/commit/config.cjs +3 -3
- package/dist/commit/config.js +2 -2
- package/dist/commitlint/config.cjs +24 -103
- package/dist/commitlint/config.js +24 -103
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/release/config.cjs +3 -3
- package/dist/release/config.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/bin/chunk-5DWG2HXA.js +0 -22
- package/bin/chunk-7B6YVRI6.cjs +0 -22
- package/bin/json5-DQ2B7V4X.js +0 -10
- package/bin/json5-OV4LY5NN.cjs +0 -10
- package/bin/jsonc-SKJF3GPV.cjs +0 -15
- package/bin/toml-IP5GTCQW.cjs +0 -10
- package/bin/toml-KSQJ7SIB.js +0 -10
- package/bin/yaml-3NH46CEJ.cjs +0 -10
- package/bin/yaml-F3NXDIX4.js +0 -10
- package/dist/chunk-Y7XG7IJ6.cjs +0 -18
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
h,
|
|
3
3
|
x
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-REUY4MDC.js";
|
|
5
5
|
import {
|
|
6
|
-
__name,
|
|
7
6
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W2TU25OT.js";
|
|
9
8
|
|
|
10
9
|
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
11
10
|
init_esm_shims();
|
|
@@ -19,13 +18,12 @@ function normalizeWindowsPath(input = "") {
|
|
|
19
18
|
}
|
|
20
19
|
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r2) => r2.toUpperCase());
|
|
21
20
|
}
|
|
22
|
-
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
23
21
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
24
22
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
25
23
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
26
24
|
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
27
25
|
var _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
28
|
-
var normalize =
|
|
26
|
+
var normalize = function(path2) {
|
|
29
27
|
if (path2.length === 0) {
|
|
30
28
|
return ".";
|
|
31
29
|
}
|
|
@@ -53,8 +51,8 @@ var normalize = /* @__PURE__ */ __name(function(path2) {
|
|
|
53
51
|
return `//${path2}`;
|
|
54
52
|
}
|
|
55
53
|
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
56
|
-
}
|
|
57
|
-
var join =
|
|
54
|
+
};
|
|
55
|
+
var join = function(...segments) {
|
|
58
56
|
let path2 = "";
|
|
59
57
|
for (const seg of segments) {
|
|
60
58
|
if (!seg) {
|
|
@@ -74,15 +72,14 @@ var join = /* @__PURE__ */ __name(function(...segments) {
|
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
return normalize(path2);
|
|
77
|
-
}
|
|
75
|
+
};
|
|
78
76
|
function cwd() {
|
|
79
77
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
80
78
|
return process.cwd().replace(/\\/g, "/");
|
|
81
79
|
}
|
|
82
80
|
return "/";
|
|
83
81
|
}
|
|
84
|
-
|
|
85
|
-
var resolve = /* @__PURE__ */ __name(function(...arguments_) {
|
|
82
|
+
var resolve = function(...arguments_) {
|
|
86
83
|
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
87
84
|
let resolvedPath = "";
|
|
88
85
|
let resolvedAbsolute = false;
|
|
@@ -99,7 +96,7 @@ var resolve = /* @__PURE__ */ __name(function(...arguments_) {
|
|
|
99
96
|
return `/${resolvedPath}`;
|
|
100
97
|
}
|
|
101
98
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
102
|
-
}
|
|
99
|
+
};
|
|
103
100
|
function normalizeString(path2, allowAboveRoot) {
|
|
104
101
|
let res = "";
|
|
105
102
|
let lastSegmentLength = 0;
|
|
@@ -160,16 +157,15 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
160
157
|
}
|
|
161
158
|
return res;
|
|
162
159
|
}
|
|
163
|
-
|
|
164
|
-
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
160
|
+
var isAbsolute = function(p) {
|
|
165
161
|
return _IS_ABSOLUTE_RE.test(p);
|
|
166
|
-
}
|
|
167
|
-
var extname =
|
|
162
|
+
};
|
|
163
|
+
var extname = function(p) {
|
|
168
164
|
if (p === "..") return "";
|
|
169
165
|
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
170
166
|
return match && match[1] || "";
|
|
171
|
-
}
|
|
172
|
-
var relative =
|
|
167
|
+
};
|
|
168
|
+
var relative = function(from, to) {
|
|
173
169
|
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
174
170
|
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
175
171
|
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
@@ -184,15 +180,15 @@ var relative = /* @__PURE__ */ __name(function(from, to) {
|
|
|
184
180
|
_to.shift();
|
|
185
181
|
}
|
|
186
182
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
187
|
-
}
|
|
188
|
-
var dirname =
|
|
183
|
+
};
|
|
184
|
+
var dirname = function(p) {
|
|
189
185
|
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
190
186
|
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
191
187
|
segments[0] += "/";
|
|
192
188
|
}
|
|
193
189
|
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
194
|
-
}
|
|
195
|
-
var basename =
|
|
190
|
+
};
|
|
191
|
+
var basename = function(p, extension) {
|
|
196
192
|
const segments = normalizeWindowsPath(p).split("/");
|
|
197
193
|
let lastSegment = "";
|
|
198
194
|
for (let i = segments.length - 1; i >= 0; i--) {
|
|
@@ -203,7 +199,7 @@ var basename = /* @__PURE__ */ __name(function(p, extension) {
|
|
|
203
199
|
}
|
|
204
200
|
}
|
|
205
201
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
206
|
-
}
|
|
202
|
+
};
|
|
207
203
|
|
|
208
204
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
209
205
|
init_esm_shims();
|
|
@@ -223,7 +219,6 @@ function isPlainObject(value) {
|
|
|
223
219
|
}
|
|
224
220
|
return true;
|
|
225
221
|
}
|
|
226
|
-
__name(isPlainObject, "isPlainObject");
|
|
227
222
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
228
223
|
if (!isPlainObject(defaults)) {
|
|
229
224
|
return _defu(baseObject, {}, namespace, merger);
|
|
@@ -255,14 +250,12 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
255
250
|
}
|
|
256
251
|
return object;
|
|
257
252
|
}
|
|
258
|
-
__name(_defu, "_defu");
|
|
259
253
|
function createDefu(merger) {
|
|
260
254
|
return (...arguments_) => (
|
|
261
255
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
262
256
|
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
263
257
|
);
|
|
264
258
|
}
|
|
265
|
-
__name(createDefu, "createDefu");
|
|
266
259
|
var defu = createDefu();
|
|
267
260
|
var defuFn = createDefu((object, key, currentValue) => {
|
|
268
261
|
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
@@ -288,7 +281,6 @@ function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
288
281
|
}
|
|
289
282
|
return TRAILING_SLASH_RE.test(input);
|
|
290
283
|
}
|
|
291
|
-
__name(hasTrailingSlash, "hasTrailingSlash");
|
|
292
284
|
function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
293
285
|
if (!respectQueryAndFragment) {
|
|
294
286
|
return input.endsWith("/") ? input : input + "/";
|
|
@@ -309,11 +301,9 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
309
301
|
const [s0, ...s] = path2.split("?");
|
|
310
302
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
311
303
|
}
|
|
312
|
-
__name(withTrailingSlash, "withTrailingSlash");
|
|
313
304
|
function isNonEmptyURL(url) {
|
|
314
305
|
return url && url !== "/";
|
|
315
306
|
}
|
|
316
|
-
__name(isNonEmptyURL, "isNonEmptyURL");
|
|
317
307
|
function joinURL(base, ...input) {
|
|
318
308
|
let url = base || "";
|
|
319
309
|
for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
|
|
@@ -326,7 +316,6 @@ function joinURL(base, ...input) {
|
|
|
326
316
|
}
|
|
327
317
|
return url;
|
|
328
318
|
}
|
|
329
|
-
__name(joinURL, "joinURL");
|
|
330
319
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
331
320
|
|
|
332
321
|
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
@@ -372,7 +361,6 @@ function isInAstralSet(code, set) {
|
|
|
372
361
|
}
|
|
373
362
|
return false;
|
|
374
363
|
}
|
|
375
|
-
__name(isInAstralSet, "isInAstralSet");
|
|
376
364
|
function isIdentifierStart(code, astral) {
|
|
377
365
|
if (code < 65) {
|
|
378
366
|
return code === 36;
|
|
@@ -394,7 +382,6 @@ function isIdentifierStart(code, astral) {
|
|
|
394
382
|
}
|
|
395
383
|
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
396
384
|
}
|
|
397
|
-
__name(isIdentifierStart, "isIdentifierStart");
|
|
398
385
|
function isIdentifierChar(code, astral) {
|
|
399
386
|
if (code < 48) {
|
|
400
387
|
return code === 36;
|
|
@@ -422,8 +409,7 @@ function isIdentifierChar(code, astral) {
|
|
|
422
409
|
}
|
|
423
410
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
424
411
|
}
|
|
425
|
-
|
|
426
|
-
var TokenType = /* @__PURE__ */ __name(function TokenType2(label, conf) {
|
|
412
|
+
var TokenType = function TokenType2(label, conf) {
|
|
427
413
|
if (conf === void 0) conf = {};
|
|
428
414
|
this.label = label;
|
|
429
415
|
this.keyword = conf.keyword;
|
|
@@ -435,11 +421,10 @@ var TokenType = /* @__PURE__ */ __name(function TokenType2(label, conf) {
|
|
|
435
421
|
this.postfix = !!conf.postfix;
|
|
436
422
|
this.binop = conf.binop || null;
|
|
437
423
|
this.updateContext = null;
|
|
438
|
-
}
|
|
424
|
+
};
|
|
439
425
|
function binop(name, prec) {
|
|
440
426
|
return new TokenType(name, { beforeExpr: true, binop: prec });
|
|
441
427
|
}
|
|
442
|
-
__name(binop, "binop");
|
|
443
428
|
var beforeExpr = { beforeExpr: true };
|
|
444
429
|
var startsExpr = { startsExpr: true };
|
|
445
430
|
var keywords = {};
|
|
@@ -448,7 +433,6 @@ function kw(name, options) {
|
|
|
448
433
|
options.keyword = name;
|
|
449
434
|
return keywords[name] = new TokenType(name, options);
|
|
450
435
|
}
|
|
451
|
-
__name(kw, "kw");
|
|
452
436
|
var types$1 = {
|
|
453
437
|
num: new TokenType("num", startsExpr),
|
|
454
438
|
regexp: new TokenType("regexp", startsExpr),
|
|
@@ -548,7 +532,6 @@ var lineBreakG = new RegExp(lineBreak.source, "g");
|
|
|
548
532
|
function isNewLine(code) {
|
|
549
533
|
return code === 10 || code === 13 || code === 8232 || code === 8233;
|
|
550
534
|
}
|
|
551
|
-
__name(isNewLine, "isNewLine");
|
|
552
535
|
function nextLineBreak(code, from, end) {
|
|
553
536
|
if (end === void 0) end = code.length;
|
|
554
537
|
for (var i = from; i < end; i++) {
|
|
@@ -559,7 +542,6 @@ function nextLineBreak(code, from, end) {
|
|
|
559
542
|
}
|
|
560
543
|
return -1;
|
|
561
544
|
}
|
|
562
|
-
__name(nextLineBreak, "nextLineBreak");
|
|
563
545
|
var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
564
546
|
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
565
547
|
var ref = Object.prototype;
|
|
@@ -575,7 +557,6 @@ var regexpCache = /* @__PURE__ */ Object.create(null);
|
|
|
575
557
|
function wordsRegexp(words) {
|
|
576
558
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"));
|
|
577
559
|
}
|
|
578
|
-
__name(wordsRegexp, "wordsRegexp");
|
|
579
560
|
function codePointToString(code) {
|
|
580
561
|
if (code <= 65535) {
|
|
581
562
|
return String.fromCharCode(code);
|
|
@@ -583,22 +564,21 @@ function codePointToString(code) {
|
|
|
583
564
|
code -= 65536;
|
|
584
565
|
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
585
566
|
}
|
|
586
|
-
__name(codePointToString, "codePointToString");
|
|
587
567
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
588
|
-
var Position =
|
|
568
|
+
var Position = function Position2(line, col) {
|
|
589
569
|
this.line = line;
|
|
590
570
|
this.column = col;
|
|
591
|
-
}
|
|
592
|
-
Position.prototype.offset =
|
|
571
|
+
};
|
|
572
|
+
Position.prototype.offset = function offset(n) {
|
|
593
573
|
return new Position(this.line, this.column + n);
|
|
594
|
-
}
|
|
595
|
-
var SourceLocation =
|
|
574
|
+
};
|
|
575
|
+
var SourceLocation = function SourceLocation2(p, start, end) {
|
|
596
576
|
this.start = start;
|
|
597
577
|
this.end = end;
|
|
598
578
|
if (p.sourceFile !== null) {
|
|
599
579
|
this.source = p.sourceFile;
|
|
600
580
|
}
|
|
601
|
-
}
|
|
581
|
+
};
|
|
602
582
|
function getLineInfo(input, offset2) {
|
|
603
583
|
for (var line = 1, cur = 0; ; ) {
|
|
604
584
|
var nextBreak = nextLineBreak(input, cur, offset2);
|
|
@@ -609,7 +589,6 @@ function getLineInfo(input, offset2) {
|
|
|
609
589
|
cur = nextBreak;
|
|
610
590
|
}
|
|
611
591
|
}
|
|
612
|
-
__name(getLineInfo, "getLineInfo");
|
|
613
592
|
var defaultOptions = {
|
|
614
593
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
615
594
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
@@ -741,7 +720,6 @@ function getOptions(opts) {
|
|
|
741
720
|
}
|
|
742
721
|
return options;
|
|
743
722
|
}
|
|
744
|
-
__name(getOptions, "getOptions");
|
|
745
723
|
function pushComment(options, array) {
|
|
746
724
|
return function(block, text, start, end, startLoc, endLoc) {
|
|
747
725
|
var comment = {
|
|
@@ -759,7 +737,6 @@ function pushComment(options, array) {
|
|
|
759
737
|
array.push(comment);
|
|
760
738
|
};
|
|
761
739
|
}
|
|
762
|
-
__name(pushComment, "pushComment");
|
|
763
740
|
var SCOPE_TOP = 1;
|
|
764
741
|
var SCOPE_FUNCTION = 2;
|
|
765
742
|
var SCOPE_ASYNC = 4;
|
|
@@ -774,14 +751,13 @@ var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
|
774
751
|
function functionFlags(async, generator) {
|
|
775
752
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
776
753
|
}
|
|
777
|
-
__name(functionFlags, "functionFlags");
|
|
778
754
|
var BIND_NONE = 0;
|
|
779
755
|
var BIND_VAR = 1;
|
|
780
756
|
var BIND_LEXICAL = 2;
|
|
781
757
|
var BIND_FUNCTION = 3;
|
|
782
758
|
var BIND_SIMPLE_CATCH = 4;
|
|
783
759
|
var BIND_OUTSIDE = 5;
|
|
784
|
-
var Parser =
|
|
760
|
+
var Parser = function Parser2(options, input, startPos) {
|
|
785
761
|
this.options = options = getOptions(options);
|
|
786
762
|
this.sourceFile = options.sourceFile;
|
|
787
763
|
this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
|
@@ -828,13 +804,13 @@ var Parser = /* @__PURE__ */ __name(function Parser2(options, input, startPos) {
|
|
|
828
804
|
this.enterScope(SCOPE_TOP);
|
|
829
805
|
this.regexpState = null;
|
|
830
806
|
this.privateNameStack = [];
|
|
831
|
-
}
|
|
807
|
+
};
|
|
832
808
|
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 } };
|
|
833
|
-
Parser.prototype.parse =
|
|
809
|
+
Parser.prototype.parse = function parse2() {
|
|
834
810
|
var node = this.options.program || this.startNode();
|
|
835
811
|
this.nextToken();
|
|
836
812
|
return this.parseTopLevel(node);
|
|
837
|
-
}
|
|
813
|
+
};
|
|
838
814
|
prototypeAccessors.inFunction.get = function() {
|
|
839
815
|
return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
|
|
840
816
|
};
|
|
@@ -881,7 +857,7 @@ prototypeAccessors.allowNewDotTarget.get = function() {
|
|
|
881
857
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
882
858
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
883
859
|
};
|
|
884
|
-
Parser.extend =
|
|
860
|
+
Parser.extend = function extend() {
|
|
885
861
|
var plugins = [], len = arguments.length;
|
|
886
862
|
while (len--) plugins[len] = arguments[len];
|
|
887
863
|
var cls = this;
|
|
@@ -889,18 +865,18 @@ Parser.extend = /* @__PURE__ */ __name(function extend() {
|
|
|
889
865
|
cls = plugins[i](cls);
|
|
890
866
|
}
|
|
891
867
|
return cls;
|
|
892
|
-
}
|
|
893
|
-
Parser.parse =
|
|
868
|
+
};
|
|
869
|
+
Parser.parse = function parse3(input, options) {
|
|
894
870
|
return new this(options, input).parse();
|
|
895
|
-
}
|
|
896
|
-
Parser.parseExpressionAt =
|
|
871
|
+
};
|
|
872
|
+
Parser.parseExpressionAt = function parseExpressionAt(input, pos, options) {
|
|
897
873
|
var parser = new this(options, input, pos);
|
|
898
874
|
parser.nextToken();
|
|
899
875
|
return parser.parseExpression();
|
|
900
|
-
}
|
|
901
|
-
Parser.tokenizer =
|
|
876
|
+
};
|
|
877
|
+
Parser.tokenizer = function tokenizer(input, options) {
|
|
902
878
|
return new this(options, input);
|
|
903
|
-
}
|
|
879
|
+
};
|
|
904
880
|
Object.defineProperties(Parser.prototype, prototypeAccessors);
|
|
905
881
|
var pp$9 = Parser.prototype;
|
|
906
882
|
var literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
@@ -985,9 +961,9 @@ pp$9.expect = function(type) {
|
|
|
985
961
|
pp$9.unexpected = function(pos) {
|
|
986
962
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
|
987
963
|
};
|
|
988
|
-
var DestructuringErrors =
|
|
964
|
+
var DestructuringErrors = function DestructuringErrors2() {
|
|
989
965
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
990
|
-
}
|
|
966
|
+
};
|
|
991
967
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
992
968
|
if (!refDestructuringErrors) {
|
|
993
969
|
return;
|
|
@@ -1800,13 +1776,11 @@ function isPrivateNameConflicted(privateNameMap, element) {
|
|
|
1800
1776
|
return true;
|
|
1801
1777
|
}
|
|
1802
1778
|
}
|
|
1803
|
-
__name(isPrivateNameConflicted, "isPrivateNameConflicted");
|
|
1804
1779
|
function checkKeyName(node, name) {
|
|
1805
1780
|
var computed = node.computed;
|
|
1806
1781
|
var key = node.key;
|
|
1807
1782
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
1808
1783
|
}
|
|
1809
|
-
__name(checkKeyName, "checkKeyName");
|
|
1810
1784
|
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
1811
1785
|
if (this.options.ecmaVersion >= 11) {
|
|
1812
1786
|
if (this.eatContextual("as")) {
|
|
@@ -2338,13 +2312,13 @@ pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
|
2338
2312
|
this.checkLValPattern(expr, bindingType, checkClashes);
|
|
2339
2313
|
}
|
|
2340
2314
|
};
|
|
2341
|
-
var TokContext =
|
|
2315
|
+
var TokContext = function TokContext2(token, isExpr, preserveSpace, override, generator) {
|
|
2342
2316
|
this.token = token;
|
|
2343
2317
|
this.isExpr = !!isExpr;
|
|
2344
2318
|
this.preserveSpace = !!preserveSpace;
|
|
2345
2319
|
this.override = override;
|
|
2346
2320
|
this.generator = !!generator;
|
|
2347
|
-
}
|
|
2321
|
+
};
|
|
2348
2322
|
var types = {
|
|
2349
2323
|
b_stat: new TokContext("{", false),
|
|
2350
2324
|
b_expr: new TokContext("{", true),
|
|
@@ -2728,11 +2702,9 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
|
|
|
2728
2702
|
function isLocalVariableAccess(node) {
|
|
2729
2703
|
return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
|
|
2730
2704
|
}
|
|
2731
|
-
__name(isLocalVariableAccess, "isLocalVariableAccess");
|
|
2732
2705
|
function isPrivateFieldAccess(node) {
|
|
2733
2706
|
return node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) || node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression);
|
|
2734
2707
|
}
|
|
2735
|
-
__name(isPrivateFieldAccess, "isPrivateFieldAccess");
|
|
2736
2708
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
2737
2709
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2738
2710
|
var expr = this.parseExprAtom(refDestructuringErrors, forInit);
|
|
@@ -3548,12 +3520,12 @@ pp$4.curPosition = function() {
|
|
|
3548
3520
|
}
|
|
3549
3521
|
};
|
|
3550
3522
|
var pp$3 = Parser.prototype;
|
|
3551
|
-
var Scope =
|
|
3523
|
+
var Scope = function Scope2(flags) {
|
|
3552
3524
|
this.flags = flags;
|
|
3553
3525
|
this.var = [];
|
|
3554
3526
|
this.lexical = [];
|
|
3555
3527
|
this.functions = [];
|
|
3556
|
-
}
|
|
3528
|
+
};
|
|
3557
3529
|
pp$3.enterScope = function(flags) {
|
|
3558
3530
|
this.scopeStack.push(new Scope(flags));
|
|
3559
3531
|
};
|
|
@@ -3627,7 +3599,7 @@ pp$3.currentThisScope = function() {
|
|
|
3627
3599
|
}
|
|
3628
3600
|
}
|
|
3629
3601
|
};
|
|
3630
|
-
var Node =
|
|
3602
|
+
var Node = function Node2(parser, pos, loc) {
|
|
3631
3603
|
this.type = "";
|
|
3632
3604
|
this.start = pos;
|
|
3633
3605
|
this.end = 0;
|
|
@@ -3640,7 +3612,7 @@ var Node = /* @__PURE__ */ __name(function Node2(parser, pos, loc) {
|
|
|
3640
3612
|
if (parser.options.ranges) {
|
|
3641
3613
|
this.range = [pos, 0];
|
|
3642
3614
|
}
|
|
3643
|
-
}
|
|
3615
|
+
};
|
|
3644
3616
|
var pp$2 = Parser.prototype;
|
|
3645
3617
|
pp$2.startNode = function() {
|
|
3646
3618
|
return new Node(this, this.start, this.startLoc);
|
|
@@ -3659,7 +3631,6 @@ function finishNodeAt(node, type, pos, loc) {
|
|
|
3659
3631
|
}
|
|
3660
3632
|
return node;
|
|
3661
3633
|
}
|
|
3662
|
-
__name(finishNodeAt, "finishNodeAt");
|
|
3663
3634
|
pp$2.finishNode = function(node, type) {
|
|
3664
3635
|
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
3665
3636
|
};
|
|
@@ -3727,7 +3698,6 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
3727
3698
|
d2.nonBinary.sc = d2.nonBinary.Script;
|
|
3728
3699
|
d2.nonBinary.scx = d2.nonBinary.Script_Extensions;
|
|
3729
3700
|
}
|
|
3730
|
-
__name(buildUnicodeData, "buildUnicodeData");
|
|
3731
3701
|
for (i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
|
|
3732
3702
|
ecmaVersion = list[i];
|
|
3733
3703
|
buildUnicodeData(ecmaVersion);
|
|
@@ -3736,11 +3706,11 @@ var ecmaVersion;
|
|
|
3736
3706
|
var i;
|
|
3737
3707
|
var list;
|
|
3738
3708
|
var pp$1 = Parser.prototype;
|
|
3739
|
-
var BranchID =
|
|
3709
|
+
var BranchID = function BranchID2(parent, base) {
|
|
3740
3710
|
this.parent = parent;
|
|
3741
3711
|
this.base = base || this;
|
|
3742
|
-
}
|
|
3743
|
-
BranchID.prototype.separatedFrom =
|
|
3712
|
+
};
|
|
3713
|
+
BranchID.prototype.separatedFrom = function separatedFrom(alt) {
|
|
3744
3714
|
for (var self = this; self; self = self.parent) {
|
|
3745
3715
|
for (var other = alt; other; other = other.parent) {
|
|
3746
3716
|
if (self.base === other.base && self !== other) {
|
|
@@ -3749,11 +3719,11 @@ BranchID.prototype.separatedFrom = /* @__PURE__ */ __name(function separatedFrom
|
|
|
3749
3719
|
}
|
|
3750
3720
|
}
|
|
3751
3721
|
return false;
|
|
3752
|
-
}
|
|
3753
|
-
BranchID.prototype.sibling =
|
|
3722
|
+
};
|
|
3723
|
+
BranchID.prototype.sibling = function sibling() {
|
|
3754
3724
|
return new BranchID(this.parent, this.base);
|
|
3755
|
-
}
|
|
3756
|
-
var RegExpValidationState =
|
|
3725
|
+
};
|
|
3726
|
+
var RegExpValidationState = function RegExpValidationState2(parser) {
|
|
3757
3727
|
this.parser = parser;
|
|
3758
3728
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3759
3729
|
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
@@ -3772,8 +3742,8 @@ var RegExpValidationState = /* @__PURE__ */ __name(function RegExpValidationStat
|
|
|
3772
3742
|
this.groupNames = /* @__PURE__ */ Object.create(null);
|
|
3773
3743
|
this.backReferenceNames = [];
|
|
3774
3744
|
this.branchID = null;
|
|
3775
|
-
}
|
|
3776
|
-
RegExpValidationState.prototype.reset =
|
|
3745
|
+
};
|
|
3746
|
+
RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {
|
|
3777
3747
|
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3778
3748
|
var unicode = flags.indexOf("u") !== -1;
|
|
3779
3749
|
this.start = start | 0;
|
|
@@ -3788,11 +3758,11 @@ RegExpValidationState.prototype.reset = /* @__PURE__ */ __name(function reset(st
|
|
|
3788
3758
|
this.switchV = false;
|
|
3789
3759
|
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3790
3760
|
}
|
|
3791
|
-
}
|
|
3792
|
-
RegExpValidationState.prototype.raise =
|
|
3761
|
+
};
|
|
3762
|
+
RegExpValidationState.prototype.raise = function raise(message) {
|
|
3793
3763
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
3794
|
-
}
|
|
3795
|
-
RegExpValidationState.prototype.at =
|
|
3764
|
+
};
|
|
3765
|
+
RegExpValidationState.prototype.at = function at(i, forceU) {
|
|
3796
3766
|
if (forceU === void 0) forceU = false;
|
|
3797
3767
|
var s = this.source;
|
|
3798
3768
|
var l = s.length;
|
|
@@ -3805,8 +3775,8 @@ RegExpValidationState.prototype.at = /* @__PURE__ */ __name(function at(i, force
|
|
|
3805
3775
|
}
|
|
3806
3776
|
var next = s.charCodeAt(i + 1);
|
|
3807
3777
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
3808
|
-
}
|
|
3809
|
-
RegExpValidationState.prototype.nextIndex =
|
|
3778
|
+
};
|
|
3779
|
+
RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {
|
|
3810
3780
|
if (forceU === void 0) forceU = false;
|
|
3811
3781
|
var s = this.source;
|
|
3812
3782
|
var l = s.length;
|
|
@@ -3818,28 +3788,28 @@ RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ __name(function next
|
|
|
3818
3788
|
return i + 1;
|
|
3819
3789
|
}
|
|
3820
3790
|
return i + 2;
|
|
3821
|
-
}
|
|
3822
|
-
RegExpValidationState.prototype.current =
|
|
3791
|
+
};
|
|
3792
|
+
RegExpValidationState.prototype.current = function current(forceU) {
|
|
3823
3793
|
if (forceU === void 0) forceU = false;
|
|
3824
3794
|
return this.at(this.pos, forceU);
|
|
3825
|
-
}
|
|
3826
|
-
RegExpValidationState.prototype.lookahead =
|
|
3795
|
+
};
|
|
3796
|
+
RegExpValidationState.prototype.lookahead = function lookahead(forceU) {
|
|
3827
3797
|
if (forceU === void 0) forceU = false;
|
|
3828
3798
|
return this.at(this.nextIndex(this.pos, forceU), forceU);
|
|
3829
|
-
}
|
|
3830
|
-
RegExpValidationState.prototype.advance =
|
|
3799
|
+
};
|
|
3800
|
+
RegExpValidationState.prototype.advance = function advance(forceU) {
|
|
3831
3801
|
if (forceU === void 0) forceU = false;
|
|
3832
3802
|
this.pos = this.nextIndex(this.pos, forceU);
|
|
3833
|
-
}
|
|
3834
|
-
RegExpValidationState.prototype.eat =
|
|
3803
|
+
};
|
|
3804
|
+
RegExpValidationState.prototype.eat = function eat(ch, forceU) {
|
|
3835
3805
|
if (forceU === void 0) forceU = false;
|
|
3836
3806
|
if (this.current(forceU) === ch) {
|
|
3837
3807
|
this.advance(forceU);
|
|
3838
3808
|
return true;
|
|
3839
3809
|
}
|
|
3840
3810
|
return false;
|
|
3841
|
-
}
|
|
3842
|
-
RegExpValidationState.prototype.eatChars =
|
|
3811
|
+
};
|
|
3812
|
+
RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {
|
|
3843
3813
|
if (forceU === void 0) forceU = false;
|
|
3844
3814
|
var pos = this.pos;
|
|
3845
3815
|
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
@@ -3852,7 +3822,7 @@ RegExpValidationState.prototype.eatChars = /* @__PURE__ */ __name(function eatCh
|
|
|
3852
3822
|
}
|
|
3853
3823
|
this.pos = pos;
|
|
3854
3824
|
return true;
|
|
3855
|
-
}
|
|
3825
|
+
};
|
|
3856
3826
|
pp$1.validateRegExpFlags = function(state) {
|
|
3857
3827
|
var validFlags = state.validFlags;
|
|
3858
3828
|
var flags = state.flags;
|
|
@@ -3883,7 +3853,6 @@ function hasProp(obj) {
|
|
|
3883
3853
|
}
|
|
3884
3854
|
return false;
|
|
3885
3855
|
}
|
|
3886
|
-
__name(hasProp, "hasProp");
|
|
3887
3856
|
pp$1.validateRegExpPattern = function(state) {
|
|
3888
3857
|
this.regexp_pattern(state);
|
|
3889
3858
|
if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
|
|
@@ -4201,7 +4170,6 @@ pp$1.regexp_eatModifiers = function(state) {
|
|
|
4201
4170
|
function isRegularExpressionModifier(ch) {
|
|
4202
4171
|
return ch === 105 || ch === 109 || ch === 115;
|
|
4203
4172
|
}
|
|
4204
|
-
__name(isRegularExpressionModifier, "isRegularExpressionModifier");
|
|
4205
4173
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
4206
4174
|
return state.eat(
|
|
4207
4175
|
46
|
|
@@ -4226,7 +4194,6 @@ pp$1.regexp_eatSyntaxCharacter = function(state) {
|
|
|
4226
4194
|
function isSyntaxCharacter(ch) {
|
|
4227
4195
|
return ch === 36 || ch >= 40 && ch <= 43 || ch === 46 || ch === 63 || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
|
|
4228
4196
|
}
|
|
4229
|
-
__name(isSyntaxCharacter, "isSyntaxCharacter");
|
|
4230
4197
|
pp$1.regexp_eatPatternCharacters = function(state) {
|
|
4231
4198
|
var start = state.pos;
|
|
4232
4199
|
var ch = 0;
|
|
@@ -4317,7 +4284,6 @@ pp$1.regexp_eatRegExpIdentifierStart = function(state) {
|
|
|
4317
4284
|
function isRegExpIdentifierStart(ch) {
|
|
4318
4285
|
return isIdentifierStart(ch, true) || ch === 36 || ch === 95;
|
|
4319
4286
|
}
|
|
4320
|
-
__name(isRegExpIdentifierStart, "isRegExpIdentifierStart");
|
|
4321
4287
|
pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
4322
4288
|
var start = state.pos;
|
|
4323
4289
|
var forceU = this.options.ecmaVersion >= 11;
|
|
@@ -4336,7 +4302,6 @@ pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
|
4336
4302
|
function isRegExpIdentifierPart(ch) {
|
|
4337
4303
|
return isIdentifierChar(ch, true) || ch === 36 || ch === 95 || ch === 8204 || ch === 8205;
|
|
4338
4304
|
}
|
|
4339
|
-
__name(isRegExpIdentifierPart, "isRegExpIdentifierPart");
|
|
4340
4305
|
pp$1.regexp_eatAtomEscape = function(state) {
|
|
4341
4306
|
if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) {
|
|
4342
4307
|
return true;
|
|
@@ -4444,7 +4409,6 @@ pp$1.regexp_eatControlLetter = function(state) {
|
|
|
4444
4409
|
function isControlLetter(ch) {
|
|
4445
4410
|
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122;
|
|
4446
4411
|
}
|
|
4447
|
-
__name(isControlLetter, "isControlLetter");
|
|
4448
4412
|
pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
4449
4413
|
if (forceU === void 0) forceU = false;
|
|
4450
4414
|
var start = state.pos;
|
|
@@ -4494,7 +4458,6 @@ pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
|
4494
4458
|
function isValidUnicode(ch) {
|
|
4495
4459
|
return ch >= 0 && ch <= 1114111;
|
|
4496
4460
|
}
|
|
4497
|
-
__name(isValidUnicode, "isValidUnicode");
|
|
4498
4461
|
pp$1.regexp_eatIdentityEscape = function(state) {
|
|
4499
4462
|
if (state.switchU) {
|
|
4500
4463
|
if (this.regexp_eatSyntaxCharacter(state)) {
|
|
@@ -4563,7 +4526,6 @@ pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
|
4563
4526
|
function isCharacterClassEscape(ch) {
|
|
4564
4527
|
return ch === 100 || ch === 68 || ch === 115 || ch === 83 || ch === 119 || ch === 87;
|
|
4565
4528
|
}
|
|
4566
|
-
__name(isCharacterClassEscape, "isCharacterClassEscape");
|
|
4567
4529
|
pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
4568
4530
|
var start = state.pos;
|
|
4569
4531
|
if (this.regexp_eatUnicodePropertyName(state) && state.eat(
|
|
@@ -4613,7 +4575,6 @@ pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
|
4613
4575
|
function isUnicodePropertyNameCharacter(ch) {
|
|
4614
4576
|
return isControlLetter(ch) || ch === 95;
|
|
4615
4577
|
}
|
|
4616
|
-
__name(isUnicodePropertyNameCharacter, "isUnicodePropertyNameCharacter");
|
|
4617
4578
|
pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
4618
4579
|
var ch = 0;
|
|
4619
4580
|
state.lastStringValue = "";
|
|
@@ -4626,7 +4587,6 @@ pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
|
4626
4587
|
function isUnicodePropertyValueCharacter(ch) {
|
|
4627
4588
|
return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch);
|
|
4628
4589
|
}
|
|
4629
|
-
__name(isUnicodePropertyValueCharacter, "isUnicodePropertyValueCharacter");
|
|
4630
4590
|
pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
4631
4591
|
return this.regexp_eatUnicodePropertyValue(state);
|
|
4632
4592
|
};
|
|
@@ -4918,11 +4878,9 @@ pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
|
4918
4878
|
function isClassSetReservedDoublePunctuatorCharacter(ch) {
|
|
4919
4879
|
return ch === 33 || ch >= 35 && ch <= 38 || ch >= 42 && ch <= 44 || ch === 46 || ch >= 58 && ch <= 64 || ch === 94 || ch === 96 || ch === 126;
|
|
4920
4880
|
}
|
|
4921
|
-
__name(isClassSetReservedDoublePunctuatorCharacter, "isClassSetReservedDoublePunctuatorCharacter");
|
|
4922
4881
|
function isClassSetSyntaxCharacter(ch) {
|
|
4923
4882
|
return ch === 40 || ch === 41 || ch === 45 || ch === 47 || ch >= 91 && ch <= 93 || ch >= 123 && ch <= 125;
|
|
4924
4883
|
}
|
|
4925
|
-
__name(isClassSetSyntaxCharacter, "isClassSetSyntaxCharacter");
|
|
4926
4884
|
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
4927
4885
|
var ch = state.current();
|
|
4928
4886
|
if (isClassSetReservedPunctuator(ch)) {
|
|
@@ -4935,7 +4893,6 @@ pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
|
4935
4893
|
function isClassSetReservedPunctuator(ch) {
|
|
4936
4894
|
return ch === 33 || ch === 35 || ch === 37 || ch === 38 || ch === 44 || ch === 45 || ch >= 58 && ch <= 62 || ch === 64 || ch === 96 || ch === 126;
|
|
4937
4895
|
}
|
|
4938
|
-
__name(isClassSetReservedPunctuator, "isClassSetReservedPunctuator");
|
|
4939
4896
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
4940
4897
|
var ch = state.current();
|
|
4941
4898
|
if (isDecimalDigit(ch) || ch === 95) {
|
|
@@ -4974,7 +4931,6 @@ pp$1.regexp_eatDecimalDigits = function(state) {
|
|
|
4974
4931
|
function isDecimalDigit(ch) {
|
|
4975
4932
|
return ch >= 48 && ch <= 57;
|
|
4976
4933
|
}
|
|
4977
|
-
__name(isDecimalDigit, "isDecimalDigit");
|
|
4978
4934
|
pp$1.regexp_eatHexDigits = function(state) {
|
|
4979
4935
|
var start = state.pos;
|
|
4980
4936
|
var ch = 0;
|
|
@@ -4988,7 +4944,6 @@ pp$1.regexp_eatHexDigits = function(state) {
|
|
|
4988
4944
|
function isHexDigit(ch) {
|
|
4989
4945
|
return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;
|
|
4990
4946
|
}
|
|
4991
|
-
__name(isHexDigit, "isHexDigit");
|
|
4992
4947
|
function hexToInt(ch) {
|
|
4993
4948
|
if (ch >= 65 && ch <= 70) {
|
|
4994
4949
|
return 10 + (ch - 65);
|
|
@@ -4998,7 +4953,6 @@ function hexToInt(ch) {
|
|
|
4998
4953
|
}
|
|
4999
4954
|
return ch - 48;
|
|
5000
4955
|
}
|
|
5001
|
-
__name(hexToInt, "hexToInt");
|
|
5002
4956
|
pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {
|
|
5003
4957
|
if (this.regexp_eatOctalDigit(state)) {
|
|
5004
4958
|
var n1 = state.lastIntValue;
|
|
@@ -5029,7 +4983,6 @@ pp$1.regexp_eatOctalDigit = function(state) {
|
|
|
5029
4983
|
function isOctalDigit(ch) {
|
|
5030
4984
|
return ch >= 48 && ch <= 55;
|
|
5031
4985
|
}
|
|
5032
|
-
__name(isOctalDigit, "isOctalDigit");
|
|
5033
4986
|
pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
5034
4987
|
var start = state.pos;
|
|
5035
4988
|
state.lastIntValue = 0;
|
|
@@ -5044,7 +4997,7 @@ pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
|
5044
4997
|
}
|
|
5045
4998
|
return true;
|
|
5046
4999
|
};
|
|
5047
|
-
var Token =
|
|
5000
|
+
var Token = function Token2(p) {
|
|
5048
5001
|
this.type = p.type;
|
|
5049
5002
|
this.value = p.value;
|
|
5050
5003
|
this.start = p.start;
|
|
@@ -5055,7 +5008,7 @@ var Token = /* @__PURE__ */ __name(function Token2(p) {
|
|
|
5055
5008
|
if (p.options.ranges) {
|
|
5056
5009
|
this.range = [p.start, p.end];
|
|
5057
5010
|
}
|
|
5058
|
-
}
|
|
5011
|
+
};
|
|
5059
5012
|
var pp = Parser.prototype;
|
|
5060
5013
|
pp.next = function(ignoreEscapeSequenceInKeyword) {
|
|
5061
5014
|
if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc) {
|
|
@@ -5078,13 +5031,13 @@ if (typeof Symbol !== "undefined") {
|
|
|
5078
5031
|
pp[Symbol.iterator] = function() {
|
|
5079
5032
|
var this$1$1 = this;
|
|
5080
5033
|
return {
|
|
5081
|
-
next:
|
|
5034
|
+
next: function() {
|
|
5082
5035
|
var token = this$1$1.getToken();
|
|
5083
5036
|
return {
|
|
5084
5037
|
done: token.type === types$1.eof,
|
|
5085
5038
|
value: token
|
|
5086
5039
|
};
|
|
5087
|
-
}
|
|
5040
|
+
}
|
|
5088
5041
|
};
|
|
5089
5042
|
};
|
|
5090
5043
|
}
|
|
@@ -5552,14 +5505,12 @@ function stringToNumber(str, isLegacyOctalNumericLiteral) {
|
|
|
5552
5505
|
}
|
|
5553
5506
|
return parseFloat(str.replace(/_/g, ""));
|
|
5554
5507
|
}
|
|
5555
|
-
__name(stringToNumber, "stringToNumber");
|
|
5556
5508
|
function stringToBigInt(str) {
|
|
5557
5509
|
if (typeof BigInt !== "function") {
|
|
5558
5510
|
return null;
|
|
5559
5511
|
}
|
|
5560
5512
|
return BigInt(str.replace(/_/g, ""));
|
|
5561
5513
|
}
|
|
5562
|
-
__name(stringToBigInt, "stringToBigInt");
|
|
5563
5514
|
pp.readRadixNumber = function(radix) {
|
|
5564
5515
|
var start = this.pos;
|
|
5565
5516
|
this.pos += 2;
|
|
@@ -5927,7 +5878,6 @@ var BUILTIN_MODULES = new Set(builtinModules);
|
|
|
5927
5878
|
function normalizeSlash(path2) {
|
|
5928
5879
|
return path2.replace(/\\/g, "/");
|
|
5929
5880
|
}
|
|
5930
|
-
__name(normalizeSlash, "normalizeSlash");
|
|
5931
5881
|
var own$1 = {}.hasOwnProperty;
|
|
5932
5882
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
5933
5883
|
var kTypes = /* @__PURE__ */ new Set([
|
|
@@ -5946,7 +5896,6 @@ var codes = {};
|
|
|
5946
5896
|
function formatList(array, type = "and") {
|
|
5947
5897
|
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
|
|
5948
5898
|
}
|
|
5949
|
-
__name(formatList, "formatList");
|
|
5950
5899
|
var messages = /* @__PURE__ */ new Map();
|
|
5951
5900
|
var nodeInternalPrefix = "__node_internal_";
|
|
5952
5901
|
var userStackTraceLimit;
|
|
@@ -6153,7 +6102,6 @@ function createError(sym, value, constructor) {
|
|
|
6153
6102
|
messages.set(sym, value);
|
|
6154
6103
|
return makeNodeErrorWithCode(constructor, sym);
|
|
6155
6104
|
}
|
|
6156
|
-
__name(createError, "createError");
|
|
6157
6105
|
function makeNodeErrorWithCode(Base, key) {
|
|
6158
6106
|
return NodeError;
|
|
6159
6107
|
function NodeError(...parameters) {
|
|
@@ -6185,9 +6133,7 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
6185
6133
|
error.code = key;
|
|
6186
6134
|
return error;
|
|
6187
6135
|
}
|
|
6188
|
-
__name(NodeError, "NodeError");
|
|
6189
6136
|
}
|
|
6190
|
-
__name(makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
6191
6137
|
function isErrorStackTraceLimitWritable() {
|
|
6192
6138
|
try {
|
|
6193
6139
|
if (v8.startupSnapshot.isBuildingSnapshot()) {
|
|
@@ -6201,13 +6147,11 @@ function isErrorStackTraceLimitWritable() {
|
|
|
6201
6147
|
}
|
|
6202
6148
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
6203
6149
|
}
|
|
6204
|
-
__name(isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
6205
6150
|
function hideStackFrames(wrappedFunction) {
|
|
6206
6151
|
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
6207
6152
|
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
6208
6153
|
return wrappedFunction;
|
|
6209
6154
|
}
|
|
6210
|
-
__name(hideStackFrames, "hideStackFrames");
|
|
6211
6155
|
var captureLargerStackTrace = hideStackFrames(
|
|
6212
6156
|
/**
|
|
6213
6157
|
* @param {Error} error
|
|
@@ -6247,7 +6191,6 @@ function getMessage(key, parameters, self) {
|
|
|
6247
6191
|
parameters.unshift(message);
|
|
6248
6192
|
return Reflect.apply(format2, null, parameters);
|
|
6249
6193
|
}
|
|
6250
|
-
__name(getMessage, "getMessage");
|
|
6251
6194
|
function determineSpecificType(value) {
|
|
6252
6195
|
if (value === null || value === void 0) {
|
|
6253
6196
|
return String(value);
|
|
@@ -6267,7 +6210,6 @@ function determineSpecificType(value) {
|
|
|
6267
6210
|
}
|
|
6268
6211
|
return `type ${typeof value} (${inspected})`;
|
|
6269
6212
|
}
|
|
6270
|
-
__name(determineSpecificType, "determineSpecificType");
|
|
6271
6213
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
6272
6214
|
var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
|
|
6273
6215
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -6335,7 +6277,6 @@ function read(jsonPath, { base, specifier }) {
|
|
|
6335
6277
|
cache.set(jsonPath, result);
|
|
6336
6278
|
return result;
|
|
6337
6279
|
}
|
|
6338
|
-
__name(read, "read");
|
|
6339
6280
|
function getPackageScopeConfig(resolved) {
|
|
6340
6281
|
let packageJSONUrl = new URL("package.json", resolved);
|
|
6341
6282
|
while (true) {
|
|
@@ -6362,11 +6303,9 @@ function getPackageScopeConfig(resolved) {
|
|
|
6362
6303
|
type: "none"
|
|
6363
6304
|
};
|
|
6364
6305
|
}
|
|
6365
|
-
__name(getPackageScopeConfig, "getPackageScopeConfig");
|
|
6366
6306
|
function getPackageType(url) {
|
|
6367
6307
|
return getPackageScopeConfig(url).type;
|
|
6368
6308
|
}
|
|
6369
|
-
__name(getPackageType, "getPackageType");
|
|
6370
6309
|
var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
|
|
6371
6310
|
var hasOwnProperty2 = {}.hasOwnProperty;
|
|
6372
6311
|
var extensionFormatMap = {
|
|
@@ -6383,7 +6322,6 @@ function mimeToFormat(mime) {
|
|
|
6383
6322
|
if (mime === "application/json") return "json";
|
|
6384
6323
|
return null;
|
|
6385
6324
|
}
|
|
6386
|
-
__name(mimeToFormat, "mimeToFormat");
|
|
6387
6325
|
var protocolHandlers = {
|
|
6388
6326
|
// @ts-expect-error: hush.
|
|
6389
6327
|
__proto__: null,
|
|
@@ -6401,7 +6339,6 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
6401
6339
|
) || [null, null, null];
|
|
6402
6340
|
return mimeToFormat(mime);
|
|
6403
6341
|
}
|
|
6404
|
-
__name(getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
6405
6342
|
function extname2(url) {
|
|
6406
6343
|
const pathname = url.pathname;
|
|
6407
6344
|
let index = pathname.length;
|
|
@@ -6416,7 +6353,6 @@ function extname2(url) {
|
|
|
6416
6353
|
}
|
|
6417
6354
|
return "";
|
|
6418
6355
|
}
|
|
6419
|
-
__name(extname2, "extname");
|
|
6420
6356
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
6421
6357
|
const value = extname2(url);
|
|
6422
6358
|
if (value === ".js") {
|
|
@@ -6441,10 +6377,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
6441
6377
|
const filepath = fileURLToPath$1(url);
|
|
6442
6378
|
throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
|
|
6443
6379
|
}
|
|
6444
|
-
__name(getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
6445
6380
|
function getHttpProtocolModuleFormat() {
|
|
6446
6381
|
}
|
|
6447
|
-
__name(getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
6448
6382
|
function defaultGetFormatWithoutErrors(url, context) {
|
|
6449
6383
|
const protocol = url.protocol;
|
|
6450
6384
|
if (!hasOwnProperty2.call(protocolHandlers, protocol)) {
|
|
@@ -6452,7 +6386,6 @@ function defaultGetFormatWithoutErrors(url, context) {
|
|
|
6452
6386
|
}
|
|
6453
6387
|
return protocolHandlers[protocol](url, context, true) || null;
|
|
6454
6388
|
}
|
|
6455
|
-
__name(defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
6456
6389
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
6457
6390
|
var {
|
|
6458
6391
|
ERR_NETWORK_IMPORT_DISALLOWED,
|
|
@@ -6485,7 +6418,6 @@ function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, i
|
|
|
6485
6418
|
"DEP0166"
|
|
6486
6419
|
);
|
|
6487
6420
|
}
|
|
6488
|
-
__name(emitInvalidSegmentDeprecation, "emitInvalidSegmentDeprecation");
|
|
6489
6421
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
6490
6422
|
if (process$1.noDeprecation) {
|
|
6491
6423
|
return;
|
|
@@ -6515,20 +6447,17 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6515
6447
|
);
|
|
6516
6448
|
}
|
|
6517
6449
|
}
|
|
6518
|
-
__name(emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
|
|
6519
6450
|
function tryStatSync(path2) {
|
|
6520
6451
|
try {
|
|
6521
6452
|
return statSync(path2);
|
|
6522
6453
|
} catch {
|
|
6523
6454
|
}
|
|
6524
6455
|
}
|
|
6525
|
-
__name(tryStatSync, "tryStatSync");
|
|
6526
6456
|
function fileExists(url) {
|
|
6527
6457
|
const stats = statSync(url, { throwIfNoEntry: false });
|
|
6528
6458
|
const isFile = stats ? stats.isFile() : void 0;
|
|
6529
6459
|
return isFile === null || isFile === void 0 ? false : isFile;
|
|
6530
6460
|
}
|
|
6531
|
-
__name(fileExists, "fileExists");
|
|
6532
6461
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
6533
6462
|
let guess;
|
|
6534
6463
|
if (packageConfig.main !== void 0) {
|
|
@@ -6574,7 +6503,6 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
6574
6503
|
fileURLToPath$1(base)
|
|
6575
6504
|
);
|
|
6576
6505
|
}
|
|
6577
|
-
__name(legacyMainResolve, "legacyMainResolve");
|
|
6578
6506
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
6579
6507
|
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
6580
6508
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6621,7 +6549,6 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
6621
6549
|
}
|
|
6622
6550
|
return resolved;
|
|
6623
6551
|
}
|
|
6624
|
-
__name(finalizeResolution, "finalizeResolution");
|
|
6625
6552
|
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
6626
6553
|
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
|
6627
6554
|
specifier,
|
|
@@ -6629,7 +6556,6 @@ function importNotDefined(specifier, packageJsonUrl, base) {
|
|
|
6629
6556
|
fileURLToPath$1(base)
|
|
6630
6557
|
);
|
|
6631
6558
|
}
|
|
6632
|
-
__name(importNotDefined, "importNotDefined");
|
|
6633
6559
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
6634
6560
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
|
6635
6561
|
fileURLToPath$1(new URL$1(".", packageJsonUrl)),
|
|
@@ -6637,7 +6563,6 @@ function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
|
6637
6563
|
base && fileURLToPath$1(base)
|
|
6638
6564
|
);
|
|
6639
6565
|
}
|
|
6640
|
-
__name(exportsNotFound, "exportsNotFound");
|
|
6641
6566
|
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
6642
6567
|
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${fileURLToPath$1(packageJsonUrl)}`;
|
|
6643
6568
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6646,7 +6571,6 @@ function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
|
6646
6571
|
base && fileURLToPath$1(base)
|
|
6647
6572
|
);
|
|
6648
6573
|
}
|
|
6649
|
-
__name(throwInvalidSubpath, "throwInvalidSubpath");
|
|
6650
6574
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
6651
6575
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
6652
6576
|
return new ERR_INVALID_PACKAGE_TARGET(
|
|
@@ -6657,7 +6581,6 @@ function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
|
6657
6581
|
base && fileURLToPath$1(base)
|
|
6658
6582
|
);
|
|
6659
6583
|
}
|
|
6660
|
-
__name(invalidPackageTarget, "invalidPackageTarget");
|
|
6661
6584
|
function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
6662
6585
|
if (subpath !== "" && !pattern && target[target.length - 1] !== "/")
|
|
6663
6586
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
@@ -6743,13 +6666,11 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
6743
6666
|
}
|
|
6744
6667
|
return new URL$1(subpath, resolved);
|
|
6745
6668
|
}
|
|
6746
|
-
__name(resolvePackageTargetString, "resolvePackageTargetString");
|
|
6747
6669
|
function isArrayIndex(key) {
|
|
6748
6670
|
const keyNumber = Number(key);
|
|
6749
6671
|
if (`${keyNumber}` !== key) return false;
|
|
6750
6672
|
return keyNumber >= 0 && keyNumber < 4294967295;
|
|
6751
6673
|
}
|
|
6752
|
-
__name(isArrayIndex, "isArrayIndex");
|
|
6753
6674
|
function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions) {
|
|
6754
6675
|
if (typeof target === "string") {
|
|
6755
6676
|
return resolvePackageTargetString(
|
|
@@ -6854,7 +6775,6 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
6854
6775
|
base
|
|
6855
6776
|
);
|
|
6856
6777
|
}
|
|
6857
|
-
__name(resolvePackageTarget, "resolvePackageTarget");
|
|
6858
6778
|
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
6859
6779
|
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
6860
6780
|
if (typeof exports !== "object" || exports === null) return false;
|
|
@@ -6877,7 +6797,6 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
|
6877
6797
|
}
|
|
6878
6798
|
return isConditionalSugar;
|
|
6879
6799
|
}
|
|
6880
|
-
__name(isConditionalExportsMainSugar, "isConditionalExportsMainSugar");
|
|
6881
6800
|
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
6882
6801
|
if (process$1.noDeprecation) {
|
|
6883
6802
|
return;
|
|
@@ -6891,7 +6810,6 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
|
6891
6810
|
"DEP0155"
|
|
6892
6811
|
);
|
|
6893
6812
|
}
|
|
6894
|
-
__name(emitTrailingSlashPatternDeprecation, "emitTrailingSlashPatternDeprecation");
|
|
6895
6813
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
6896
6814
|
let exports = packageConfig.exports;
|
|
6897
6815
|
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {
|
|
@@ -6963,7 +6881,6 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
6963
6881
|
}
|
|
6964
6882
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
6965
6883
|
}
|
|
6966
|
-
__name(packageExportsResolve, "packageExportsResolve");
|
|
6967
6884
|
function patternKeyCompare(a, b) {
|
|
6968
6885
|
const aPatternIndex = a.indexOf("*");
|
|
6969
6886
|
const bPatternIndex = b.indexOf("*");
|
|
@@ -6977,7 +6894,6 @@ function patternKeyCompare(a, b) {
|
|
|
6977
6894
|
if (b.length > a.length) return 1;
|
|
6978
6895
|
return 0;
|
|
6979
6896
|
}
|
|
6980
|
-
__name(patternKeyCompare, "patternKeyCompare");
|
|
6981
6897
|
function packageImportsResolve(name, base, conditions) {
|
|
6982
6898
|
if (name === "#" || name.startsWith("#/") || name.endsWith("/")) {
|
|
6983
6899
|
const reason = "is not a valid internal imports specifier name";
|
|
@@ -7045,7 +6961,6 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
7045
6961
|
}
|
|
7046
6962
|
throw importNotDefined(name, packageJsonUrl, base);
|
|
7047
6963
|
}
|
|
7048
|
-
__name(packageImportsResolve, "packageImportsResolve");
|
|
7049
6964
|
function parsePackageName(specifier, base) {
|
|
7050
6965
|
let separatorIndex = specifier.indexOf("/");
|
|
7051
6966
|
let validPackageName = true;
|
|
@@ -7072,7 +6987,6 @@ function parsePackageName(specifier, base) {
|
|
|
7072
6987
|
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
7073
6988
|
return { packageName, packageSubpath, isScoped };
|
|
7074
6989
|
}
|
|
7075
|
-
__name(parsePackageName, "parsePackageName");
|
|
7076
6990
|
function packageResolve(specifier, base, conditions) {
|
|
7077
6991
|
if (builtinModules.includes(specifier)) {
|
|
7078
6992
|
return new URL$1("node:" + specifier);
|
|
@@ -7128,7 +7042,6 @@ function packageResolve(specifier, base, conditions) {
|
|
|
7128
7042
|
} while (packageJsonPath.length !== lastPath.length);
|
|
7129
7043
|
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath$1(base), false);
|
|
7130
7044
|
}
|
|
7131
|
-
__name(packageResolve, "packageResolve");
|
|
7132
7045
|
function isRelativeSpecifier(specifier) {
|
|
7133
7046
|
if (specifier[0] === ".") {
|
|
7134
7047
|
if (specifier.length === 1 || specifier[1] === "/") return true;
|
|
@@ -7138,13 +7051,11 @@ function isRelativeSpecifier(specifier) {
|
|
|
7138
7051
|
}
|
|
7139
7052
|
return false;
|
|
7140
7053
|
}
|
|
7141
|
-
__name(isRelativeSpecifier, "isRelativeSpecifier");
|
|
7142
7054
|
function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
7143
7055
|
if (specifier === "") return false;
|
|
7144
7056
|
if (specifier[0] === "/") return true;
|
|
7145
7057
|
return isRelativeSpecifier(specifier);
|
|
7146
7058
|
}
|
|
7147
|
-
__name(shouldBeTreatedAsRelativeOrAbsolutePath, "shouldBeTreatedAsRelativeOrAbsolutePath");
|
|
7148
7059
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
7149
7060
|
const protocol = base.protocol;
|
|
7150
7061
|
const isData = protocol === "data:";
|
|
@@ -7178,18 +7089,15 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
7178
7089
|
}
|
|
7179
7090
|
return finalizeResolution(resolved, base);
|
|
7180
7091
|
}
|
|
7181
|
-
__name(moduleResolve, "moduleResolve");
|
|
7182
7092
|
function fileURLToPath(id) {
|
|
7183
7093
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
7184
7094
|
return normalizeSlash(id);
|
|
7185
7095
|
}
|
|
7186
7096
|
return normalizeSlash(fileURLToPath$1(id));
|
|
7187
7097
|
}
|
|
7188
|
-
__name(fileURLToPath, "fileURLToPath");
|
|
7189
7098
|
function pathToFileURL(id) {
|
|
7190
7099
|
return pathToFileURL$1(fileURLToPath(id)).toString();
|
|
7191
7100
|
}
|
|
7192
|
-
__name(pathToFileURL, "pathToFileURL");
|
|
7193
7101
|
function normalizeid(id) {
|
|
7194
7102
|
if (typeof id !== "string") {
|
|
7195
7103
|
id = id.toString();
|
|
@@ -7202,7 +7110,6 @@ function normalizeid(id) {
|
|
|
7202
7110
|
}
|
|
7203
7111
|
return "file://" + encodeURI(normalizeSlash(id));
|
|
7204
7112
|
}
|
|
7205
|
-
__name(normalizeid, "normalizeid");
|
|
7206
7113
|
var DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
7207
7114
|
var DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"];
|
|
7208
7115
|
var NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([
|
|
@@ -7220,7 +7127,6 @@ function _tryModuleResolve(id, url, conditions) {
|
|
|
7220
7127
|
}
|
|
7221
7128
|
}
|
|
7222
7129
|
}
|
|
7223
|
-
__name(_tryModuleResolve, "_tryModuleResolve");
|
|
7224
7130
|
function _resolve(id, options = {}) {
|
|
7225
7131
|
if (typeof id !== "string") {
|
|
7226
7132
|
if (id instanceof URL) {
|
|
@@ -7301,15 +7207,12 @@ function _resolve(id, options = {}) {
|
|
|
7301
7207
|
}
|
|
7302
7208
|
return pathToFileURL(resolved);
|
|
7303
7209
|
}
|
|
7304
|
-
__name(_resolve, "_resolve");
|
|
7305
7210
|
function resolveSync(id, options) {
|
|
7306
7211
|
return _resolve(id, options);
|
|
7307
7212
|
}
|
|
7308
|
-
__name(resolveSync, "resolveSync");
|
|
7309
7213
|
function resolvePathSync(id, options) {
|
|
7310
7214
|
return fileURLToPath(resolveSync(id, options));
|
|
7311
7215
|
}
|
|
7312
|
-
__name(resolvePathSync, "resolvePathSync");
|
|
7313
7216
|
function resolvePath(id, options) {
|
|
7314
7217
|
try {
|
|
7315
7218
|
return Promise.resolve(resolvePathSync(id, options));
|
|
@@ -7317,7 +7220,6 @@ function resolvePath(id, options) {
|
|
|
7317
7220
|
return Promise.reject(error);
|
|
7318
7221
|
}
|
|
7319
7222
|
}
|
|
7320
|
-
__name(resolvePath, "resolvePath");
|
|
7321
7223
|
|
|
7322
7224
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
7323
7225
|
init_esm_shims();
|
|
@@ -7327,14 +7229,14 @@ var defaultFindOptions = {
|
|
|
7327
7229
|
startingFrom: ".",
|
|
7328
7230
|
rootPattern: /^node_modules$/,
|
|
7329
7231
|
reverse: false,
|
|
7330
|
-
test:
|
|
7232
|
+
test: (filePath) => {
|
|
7331
7233
|
try {
|
|
7332
7234
|
if (statSync2(filePath).isFile()) {
|
|
7333
7235
|
return true;
|
|
7334
7236
|
}
|
|
7335
7237
|
} catch {
|
|
7336
7238
|
}
|
|
7337
|
-
}
|
|
7239
|
+
}
|
|
7338
7240
|
};
|
|
7339
7241
|
async function findFile(filename, _options = {}) {
|
|
7340
7242
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
@@ -7372,11 +7274,9 @@ async function findFile(filename, _options = {}) {
|
|
|
7372
7274
|
`Cannot find matching ${filename} in ${options.startingFrom} or parent directories`
|
|
7373
7275
|
);
|
|
7374
7276
|
}
|
|
7375
|
-
__name(findFile, "findFile");
|
|
7376
7277
|
function findNearestFile(filename, _options = {}) {
|
|
7377
7278
|
return findFile(filename, _options);
|
|
7378
7279
|
}
|
|
7379
|
-
__name(findNearestFile, "findNearestFile");
|
|
7380
7280
|
var FileCache = /* @__PURE__ */ new Map();
|
|
7381
7281
|
async function readPackageJSON(id, options = {}) {
|
|
7382
7282
|
const resolvedPath = await resolvePackageJSON(id, options);
|
|
@@ -7394,7 +7294,6 @@ async function readPackageJSON(id, options = {}) {
|
|
|
7394
7294
|
cache2.set(resolvedPath, parsed);
|
|
7395
7295
|
return parsed;
|
|
7396
7296
|
}
|
|
7397
|
-
__name(readPackageJSON, "readPackageJSON");
|
|
7398
7297
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
7399
7298
|
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7400
7299
|
return findNearestFile("package.json", {
|
|
@@ -7402,7 +7301,6 @@ async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
|
7402
7301
|
...options
|
|
7403
7302
|
});
|
|
7404
7303
|
}
|
|
7405
|
-
__name(resolvePackageJSON, "resolvePackageJSON");
|
|
7406
7304
|
var lockFiles = [
|
|
7407
7305
|
"yarn.lock",
|
|
7408
7306
|
"package-lock.json",
|
|
@@ -7420,7 +7318,6 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
7420
7318
|
}
|
|
7421
7319
|
throw new Error("No lockfile found from " + id);
|
|
7422
7320
|
}
|
|
7423
|
-
__name(resolveLockfile, "resolveLockfile");
|
|
7424
7321
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
7425
7322
|
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7426
7323
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
@@ -7444,7 +7341,6 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
7444
7341
|
}
|
|
7445
7342
|
throw new Error("Cannot detect workspace root from " + id);
|
|
7446
7343
|
}
|
|
7447
|
-
__name(findWorkspaceDir, "findWorkspaceDir");
|
|
7448
7344
|
|
|
7449
7345
|
export {
|
|
7450
7346
|
normalize,
|