@socketsecurity/lib 5.25.1 → 5.26.1
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/CHANGELOG.md +344 -1184
- package/README.md +1 -1
- package/dist/abort.js +7 -6
- package/dist/agent.js +16 -15
- package/dist/ansi.js +3 -2
- package/dist/archives.js +18 -17
- package/dist/argv/flags.js +29 -28
- package/dist/argv/parse.js +4 -3
- package/dist/arrays.js +3 -2
- package/dist/bin.js +12 -11
- package/dist/cacache.js +16 -11
- package/dist/cache-with-ttl.js +26 -21
- package/dist/colors.js +2 -1
- package/dist/constants/licenses.js +2 -1
- package/dist/constants/lifecycle-script-names.js +2 -1
- package/dist/constants/maintained-node-versions.js +2 -1
- package/dist/constants/node.js +4 -3
- package/dist/constants/package-default-socket-categories.js +2 -1
- package/dist/constants/packages.js +4 -3
- package/dist/constants/socket.js +1 -1
- package/dist/cover/code.js +9 -8
- package/dist/cover/formatters.js +12 -11
- package/dist/cover/type.js +5 -4
- package/dist/crypto.d.ts +36 -0
- package/dist/{effects/ultra.js → crypto.js} +33 -37
- package/dist/debug.js +12 -15
- package/dist/dlx/arborist.js +10 -9
- package/dist/dlx/binary.js +27 -24
- package/dist/dlx/cache.js +2 -10
- package/dist/dlx/detect.js +6 -5
- package/dist/dlx/integrity.js +13 -11
- package/dist/dlx/lockfile.js +7 -6
- package/dist/dlx/manifest.js +6 -5
- package/dist/dlx/package.js +17 -16
- package/dist/dlx/packages.js +6 -5
- package/dist/dlx/paths.d.ts +1 -1
- package/dist/dlx/paths.js +2 -1
- package/dist/effects/pulse-frames.js +4 -3
- package/dist/effects/shimmer-keyframes.d.ts +62 -0
- package/dist/effects/shimmer-keyframes.js +55 -0
- package/dist/effects/shimmer-terminal.d.ts +66 -0
- package/dist/effects/shimmer-terminal.js +57 -0
- package/dist/effects/shimmer.d.ts +293 -0
- package/dist/effects/shimmer.js +180 -0
- package/dist/env/rewire.js +4 -3
- package/dist/env.js +5 -4
- package/dist/errors.js +1 -1
- package/dist/external/@npmcli/package-json/lib/read-package.js +10 -10
- package/dist/external/@npmcli/package-json.js +372 -372
- package/dist/external/@npmcli/promise-spawn.js +24 -24
- package/dist/external/@socketregistry/packageurl-js.js +19 -18
- package/dist/external/@socketregistry/yocto-spinner.js +4 -3
- package/dist/external/@yarnpkg/extensions.js +2 -1
- package/dist/external/adm-zip.js +70 -70
- package/dist/external/debug.js +22 -22
- package/dist/external/external-pack.js +45 -45
- package/dist/external/fast-sort.js +5 -5
- package/dist/external/libnpmexec.js +4 -3
- package/dist/external/npm-pack.js +369 -369
- package/dist/external/p-map.js +9 -9
- package/dist/external/pico-pack.js +190 -190
- package/dist/external/pony-cause.js +2 -1
- package/dist/external/spdx-pack.js +11 -10
- package/dist/external/tar-fs.js +58 -58
- package/dist/external/which.js +13 -13
- package/dist/external/yargs-parser.js +71 -71
- package/dist/fs.js +19 -23
- package/dist/git.js +14 -13
- package/dist/github.d.ts +34 -0
- package/dist/github.js +248 -23
- package/dist/globs.d.ts +20 -0
- package/dist/globs.js +134 -25
- package/dist/http-request.d.ts +4 -3
- package/dist/http-request.js +39 -32
- package/dist/ipc-cli.js +2 -1
- package/dist/ipc.js +5 -4
- package/dist/json/edit.js +4 -3
- package/dist/json/format.js +3 -2
- package/dist/json/parse.js +7 -6
- package/dist/links.js +2 -1
- package/dist/logger.js +21 -14
- package/dist/memoization.js +16 -15
- package/dist/objects.js +2 -2
- package/dist/packages/edit.js +8 -7
- package/dist/packages/exports.js +17 -16
- package/dist/packages/isolation.js +20 -13
- package/dist/packages/licenses.js +6 -3
- package/dist/packages/manifest.js +2 -1
- package/dist/packages/normalize.js +8 -4
- package/dist/packages/operations.js +5 -4
- package/dist/packages/provenance.js +7 -6
- package/dist/packages/specs.js +2 -1
- package/dist/packages/validation.js +2 -1
- package/dist/paths/normalize.js +32 -40
- package/dist/paths/packages.js +2 -1
- package/dist/paths/rewire.js +3 -2
- package/dist/performance.js +19 -18
- package/dist/primordials.d.ts +9 -0
- package/dist/primordials.js +17 -0
- package/dist/process-lock.js +14 -13
- package/dist/promise-queue.js +17 -9
- package/dist/promises.d.ts +29 -6
- package/dist/promises.js +19 -15
- package/dist/regexps.js +9 -8
- package/dist/releases/github-api.d.ts +56 -0
- package/dist/releases/github-api.js +275 -0
- package/dist/releases/github-archives.d.ts +60 -0
- package/dist/releases/github-archives.js +136 -0
- package/dist/releases/github-assets.d.ts +21 -0
- package/dist/releases/github-assets.js +52 -0
- package/dist/releases/github-auth.d.ts +16 -0
- package/dist/releases/github-auth.js +51 -0
- package/dist/releases/github-downloads.d.ts +42 -0
- package/dist/releases/github-downloads.js +155 -0
- package/dist/releases/github-types.d.ts +66 -0
- package/dist/{effects/types.js → releases/github-types.js} +2 -2
- package/dist/releases/socket-btm.d.ts +1 -1
- package/dist/releases/socket-btm.js +17 -17
- package/dist/schema/parse.js +2 -1
- package/dist/schema/validate.js +6 -5
- package/dist/shadow.js +2 -1
- package/dist/signal-exit.js +2 -2
- package/dist/spawn.js +45 -35
- package/dist/spinner.d.ts +13 -6
- package/dist/spinner.js +75 -57
- package/dist/ssri.js +8 -7
- package/dist/stdio/footer.js +13 -12
- package/dist/stdio/header.js +5 -4
- package/dist/stdio/progress.js +13 -12
- package/dist/strings.js +19 -18
- package/dist/suppress-warnings.js +2 -2
- package/dist/tables.js +16 -13
- package/dist/temporary-executor.js +2 -1
- package/dist/themes/context.js +2 -1
- package/dist/themes/types.d.ts +1 -1
- package/dist/themes/utils.d.ts +8 -3
- package/dist/themes/utils.js +29 -5
- package/dist/url.js +4 -3
- package/package.json +44 -20
- package/dist/effects/text-shimmer.d.ts +0 -58
- package/dist/effects/text-shimmer.js +0 -192
- package/dist/effects/types.d.ts +0 -47
- package/dist/effects/ultra.d.ts +0 -22
- package/dist/releases/github.d.ts +0 -234
- package/dist/releases/github.js +0 -417
- package/dist/themes/index.d.ts +0 -49
- package/dist/themes/index.js +0 -60
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { JSONParse: _p_JSONParse, JSONStringify: _p_JSONStringify, MathRandom: _p_MathRandom, ObjectDefineProperty: _p_ObjectDefineProperty, ObjectGetOwnPropertyDescriptor: _p_ObjectGetOwnPropertyDescriptor, SetCtor: _p_SetCtor,
|
|
1
|
+
const { ArrayBufferIsView: _p_ArrayBufferIsView, ArrayCtor: _p_ArrayCtor, ArrayIsArray: _p_ArrayIsArray, ArrayPrototypeUnshift: _p_ArrayPrototypeUnshift, BufferConcat: _p_BufferConcat, BufferFrom: _p_BufferFrom, BufferIsBuffer: _p_BufferIsBuffer, DateCtor: _p_DateCtor, DateNow: _p_DateNow, DateParse: _p_DateParse, ErrorCtor: _p_ErrorCtor, JSONParse: _p_JSONParse, JSONStringify: _p_JSONStringify, MapCtor: _p_MapCtor, MathAbs: _p_MathAbs, MathFloor: _p_MathFloor, MathMax: _p_MathMax, MathMin: _p_MathMin, MathPow: _p_MathPow, MathRandom: _p_MathRandom, MathRound: _p_MathRound, ObjectAssign: _p_ObjectAssign, ObjectCreate: _p_ObjectCreate, ObjectDefineProperty: _p_ObjectDefineProperty, ObjectEntries: _p_ObjectEntries, ObjectFreeze: _p_ObjectFreeze, ObjectGetOwnPropertyDescriptor: _p_ObjectGetOwnPropertyDescriptor, ObjectGetPrototypeOf: _p_ObjectGetPrototypeOf, ObjectKeys: _p_ObjectKeys, PromiseAll: _p_PromiseAll, PromiseCtor: _p_PromiseCtor, PromiseReject: _p_PromiseReject, PromiseResolve: _p_PromiseResolve, ReflectDefineProperty: _p_ReflectDefineProperty, RegExpCtor: _p_RegExpCtor, SetCtor: _p_SetCtor, StringFromCharCode: _p_StringFromCharCode, StringPrototypeCharAt: _p_StringPrototypeCharAt, StringPrototypeCharCodeAt: _p_StringPrototypeCharCodeAt, StringPrototypeEndsWith: _p_StringPrototypeEndsWith, StringPrototypeLocaleCompare: _p_StringPrototypeLocaleCompare, StringPrototypeStartsWith: _p_StringPrototypeStartsWith, StringPrototypeSubstring: _p_StringPrototypeSubstring, TypeErrorCtor: _p_TypeErrorCtor, URLCtor: _p_URLCtor } = require('../../primordials.js')
|
|
2
2
|
"use strict";
|
|
3
3
|
/**
|
|
4
4
|
* Bundled from @npmcli/package-json
|
|
@@ -16,8 +16,8 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
16
16
|
var require_lib = __commonJS({
|
|
17
17
|
"node_modules/.pnpm/json-parse-even-better-errors@5.0.0/node_modules/json-parse-even-better-errors/lib/index.js"(exports2, module2) {
|
|
18
18
|
"use strict";
|
|
19
|
-
var INDENT =
|
|
20
|
-
var NEWLINE =
|
|
19
|
+
var INDENT = Symbol.for("indent");
|
|
20
|
+
var NEWLINE = Symbol.for("newline");
|
|
21
21
|
var DEFAULT_NEWLINE = "\n";
|
|
22
22
|
var DEFAULT_INDENT = " ";
|
|
23
23
|
var BOM = /^\uFEFF/;
|
|
@@ -25,7 +25,7 @@ var require_lib = __commonJS({
|
|
|
25
25
|
var EMPTY = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
26
26
|
var UNEXPECTED_TOKEN = /^Unexpected token '?(.)'?(,)? /i;
|
|
27
27
|
var hexify = /* @__PURE__ */ __name((char) => {
|
|
28
|
-
const h = char
|
|
28
|
+
const h = _p_StringPrototypeCharCodeAt(char, 0).toString(16).toUpperCase();
|
|
29
29
|
return `0x${h.length % 2 ? "0" : ""}${h}`;
|
|
30
30
|
}, "hexify");
|
|
31
31
|
var stripBOM = /* @__PURE__ */ __name((txt) => String(txt).replace(BOM, ""), "stripBOM");
|
|
@@ -71,7 +71,7 @@ var require_lib = __commonJS({
|
|
|
71
71
|
constructor(er, txt, context, caller) {
|
|
72
72
|
const metadata = parseError(er, txt, context);
|
|
73
73
|
super(metadata.message);
|
|
74
|
-
|
|
74
|
+
_p_ObjectAssign(this, metadata);
|
|
75
75
|
this.code = "EJSONPARSE";
|
|
76
76
|
this.systemError = er;
|
|
77
77
|
Error.captureStackTrace(this, caller || this.constructor);
|
|
@@ -86,7 +86,7 @@ var require_lib = __commonJS({
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
var parseJson = /* @__PURE__ */ __name((txt, reviver) => {
|
|
89
|
-
const result =
|
|
89
|
+
const result = _p_JSONParse(txt, reviver);
|
|
90
90
|
if (result && typeof result === "object") {
|
|
91
91
|
const match = txt.match(EMPTY) || txt.match(FORMAT) || [null, "", ""];
|
|
92
92
|
result[NEWLINE] = match[1] ?? DEFAULT_NEWLINE;
|
|
@@ -99,10 +99,10 @@ var require_lib = __commonJS({
|
|
|
99
99
|
try {
|
|
100
100
|
return parseJson(txt, reviver);
|
|
101
101
|
} catch (e) {
|
|
102
|
-
if (typeof raw !== "string" && !
|
|
103
|
-
const msg =
|
|
104
|
-
throw
|
|
105
|
-
new
|
|
102
|
+
if (typeof raw !== "string" && !_p_BufferIsBuffer(raw)) {
|
|
103
|
+
const msg = _p_ArrayIsArray(raw) && raw.length === 0 ? "an empty array" : String(raw);
|
|
104
|
+
throw _p_ObjectAssign(
|
|
105
|
+
new _p_TypeErrorCtor(`Cannot parse ${msg}`),
|
|
106
106
|
{ code: "EJSONPARSE", systemError: e }
|
|
107
107
|
);
|
|
108
108
|
}
|
|
@@ -132,7 +132,7 @@ var require_update_dependencies = __commonJS({
|
|
|
132
132
|
var orderDeps = /* @__PURE__ */ __name((content) => {
|
|
133
133
|
for (const type of depTypes) {
|
|
134
134
|
if (content && content[type]) {
|
|
135
|
-
content[type] =
|
|
135
|
+
content[type] = _p_ObjectKeys(content[type]).sort((a, b) => _p_StringPrototypeLocaleCompare(a, b, "en")).reduce((res, key) => {
|
|
136
136
|
res[key] = content[type][key];
|
|
137
137
|
return res;
|
|
138
138
|
}, {});
|
|
@@ -146,7 +146,7 @@ var require_update_dependencies = __commonJS({
|
|
|
146
146
|
});
|
|
147
147
|
if (pkg.dependencies) {
|
|
148
148
|
if (pkg.optionalDependencies) {
|
|
149
|
-
for (const name of
|
|
149
|
+
for (const name of _p_ObjectKeys(pkg.optionalDependencies)) {
|
|
150
150
|
delete pkg.dependencies[name];
|
|
151
151
|
}
|
|
152
152
|
}
|
|
@@ -156,7 +156,7 @@ var require_update_dependencies = __commonJS({
|
|
|
156
156
|
if (pkg[type]) {
|
|
157
157
|
result[type] = pkg[type];
|
|
158
158
|
}
|
|
159
|
-
const emptyDepType = pkg[type] && typeof pkg === "object" &&
|
|
159
|
+
const emptyDepType = pkg[type] && typeof pkg === "object" && _p_ObjectKeys(pkg[type]).length === 0;
|
|
160
160
|
if (emptyDepType) {
|
|
161
161
|
delete result[type];
|
|
162
162
|
}
|
|
@@ -164,7 +164,7 @@ var require_update_dependencies = __commonJS({
|
|
|
164
164
|
const { dependencies: origProd, peerDependencies: origPeer } = originalContent || {};
|
|
165
165
|
const { peerDependencies: newPeer } = result;
|
|
166
166
|
if (origProd && origPeer && newPeer) {
|
|
167
|
-
for (const name of
|
|
167
|
+
for (const name of _p_ObjectKeys(origPeer)) {
|
|
168
168
|
if (origProd[name] !== void 0 && newPeer[name] !== void 0) {
|
|
169
169
|
result.dependencies = result.dependencies || {};
|
|
170
170
|
result.dependencies[name] = newPeer[name];
|
|
@@ -186,10 +186,10 @@ var require_update_scripts = __commonJS({
|
|
|
186
186
|
if (!newScripts) {
|
|
187
187
|
return originalContent;
|
|
188
188
|
}
|
|
189
|
-
const hasInvalidScripts = /* @__PURE__ */ __name(() =>
|
|
189
|
+
const hasInvalidScripts = /* @__PURE__ */ __name(() => _p_ObjectEntries(newScripts).some(([key, value]) => typeof key !== "string" || typeof value !== "string"), "hasInvalidScripts");
|
|
190
190
|
if (hasInvalidScripts()) {
|
|
191
|
-
throw
|
|
192
|
-
new
|
|
191
|
+
throw _p_ObjectAssign(
|
|
192
|
+
new _p_TypeErrorCtor(
|
|
193
193
|
"package.json scripts should be a key-value pair of strings."
|
|
194
194
|
),
|
|
195
195
|
{ code: "ESCRIPTSINVALID" }
|
|
@@ -216,8 +216,8 @@ var require_update_workspaces = __commonJS({
|
|
|
216
216
|
}
|
|
217
217
|
const hasInvalidWorkspaces = /* @__PURE__ */ __name(() => newWorkspaces.some((w) => !(typeof w === "string")), "hasInvalidWorkspaces");
|
|
218
218
|
if (!newWorkspaces.length || hasInvalidWorkspaces()) {
|
|
219
|
-
throw
|
|
220
|
-
new
|
|
219
|
+
throw _p_ObjectAssign(
|
|
220
|
+
new _p_TypeErrorCtor("workspaces should be an array of strings."),
|
|
221
221
|
{ code: "EWORKSPACESINVALID" }
|
|
222
222
|
);
|
|
223
223
|
}
|
|
@@ -310,8 +310,8 @@ var require_re = __commonJS({
|
|
|
310
310
|
t[name] = index;
|
|
311
311
|
src[index] = value;
|
|
312
312
|
safeSrc[index] = safe;
|
|
313
|
-
re[index] = new
|
|
314
|
-
safeRe[index] = new
|
|
313
|
+
re[index] = new _p_RegExpCtor(value, isGlobal ? "g" : void 0);
|
|
314
|
+
safeRe[index] = new _p_RegExpCtor(safe, isGlobal ? "g" : void 0);
|
|
315
315
|
}, "createToken");
|
|
316
316
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
317
317
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
@@ -366,8 +366,8 @@ var require_re = __commonJS({
|
|
|
366
366
|
var require_parse_options = __commonJS({
|
|
367
367
|
"node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js"(exports2, module2) {
|
|
368
368
|
"use strict";
|
|
369
|
-
var looseOption =
|
|
370
|
-
var emptyOpts =
|
|
369
|
+
var looseOption = _p_ObjectFreeze({ loose: true });
|
|
370
|
+
var emptyOpts = _p_ObjectFreeze({});
|
|
371
371
|
var parseOptions = /* @__PURE__ */ __name((options) => {
|
|
372
372
|
if (!options) {
|
|
373
373
|
return emptyOpts;
|
|
@@ -425,10 +425,10 @@ var require_semver = __commonJS({
|
|
|
425
425
|
version = version.version;
|
|
426
426
|
}
|
|
427
427
|
} else if (typeof version !== "string") {
|
|
428
|
-
throw new
|
|
428
|
+
throw new _p_TypeErrorCtor(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
429
429
|
}
|
|
430
430
|
if (version.length > MAX_LENGTH) {
|
|
431
|
-
throw new
|
|
431
|
+
throw new _p_TypeErrorCtor(
|
|
432
432
|
`version is longer than ${MAX_LENGTH} characters`
|
|
433
433
|
);
|
|
434
434
|
}
|
|
@@ -438,20 +438,20 @@ var require_semver = __commonJS({
|
|
|
438
438
|
this.includePrerelease = !!options.includePrerelease;
|
|
439
439
|
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
440
440
|
if (!m) {
|
|
441
|
-
throw new
|
|
441
|
+
throw new _p_TypeErrorCtor(`Invalid Version: ${version}`);
|
|
442
442
|
}
|
|
443
443
|
this.raw = version;
|
|
444
444
|
this.major = +m[1];
|
|
445
445
|
this.minor = +m[2];
|
|
446
446
|
this.patch = +m[3];
|
|
447
447
|
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
448
|
-
throw new
|
|
448
|
+
throw new _p_TypeErrorCtor("Invalid major version");
|
|
449
449
|
}
|
|
450
450
|
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
451
|
-
throw new
|
|
451
|
+
throw new _p_TypeErrorCtor("Invalid minor version");
|
|
452
452
|
}
|
|
453
453
|
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
454
|
-
throw new
|
|
454
|
+
throw new _p_TypeErrorCtor("Invalid patch version");
|
|
455
455
|
}
|
|
456
456
|
if (!m[4]) {
|
|
457
457
|
this.prerelease = [];
|
|
@@ -552,14 +552,14 @@ var require_semver = __commonJS({
|
|
|
552
552
|
// preminor will bump the version up to the next minor release, and immediately
|
|
553
553
|
// down to pre-release. premajor and prepatch work the same way.
|
|
554
554
|
inc(release, identifier, identifierBase) {
|
|
555
|
-
if (release
|
|
555
|
+
if (_p_StringPrototypeStartsWith(release, "pre")) {
|
|
556
556
|
if (!identifier && identifierBase === false) {
|
|
557
|
-
throw new
|
|
557
|
+
throw new _p_ErrorCtor("invalid increment argument: identifier is empty");
|
|
558
558
|
}
|
|
559
559
|
if (identifier) {
|
|
560
560
|
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
561
561
|
if (!match || match[1] !== identifier) {
|
|
562
|
-
throw new
|
|
562
|
+
throw new _p_ErrorCtor(`invalid identifier: ${identifier}`);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
@@ -868,7 +868,7 @@ var require_lib2 = __commonJS({
|
|
|
868
868
|
}, "end"),
|
|
869
869
|
read: /* @__PURE__ */ __name(function(...args) {
|
|
870
870
|
let resolve, reject;
|
|
871
|
-
const promise = new
|
|
871
|
+
const promise = new _p_PromiseCtor((_resolve, _reject) => {
|
|
872
872
|
resolve = _resolve;
|
|
873
873
|
reject = _reject;
|
|
874
874
|
});
|
|
@@ -887,7 +887,7 @@ var require_commonjs = __commonJS({
|
|
|
887
887
|
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
888
888
|
exports2.LRUCache = void 0;
|
|
889
889
|
var defaultPerf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
890
|
-
var warned = /* @__PURE__ */ new
|
|
890
|
+
var warned = /* @__PURE__ */ new _p_SetCtor();
|
|
891
891
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
892
892
|
var emitWarning = /* @__PURE__ */ __name((msg, type, code, fn) => {
|
|
893
893
|
typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
|
|
@@ -936,8 +936,8 @@ var require_commonjs = __commonJS({
|
|
|
936
936
|
}
|
|
937
937
|
var shouldWarn = /* @__PURE__ */ __name((code) => !warned.has(code), "shouldWarn");
|
|
938
938
|
var TYPE = Symbol("type");
|
|
939
|
-
var isPosInt = /* @__PURE__ */ __name((n) => n && n ===
|
|
940
|
-
var getUintArray = /* @__PURE__ */ __name((max) => !isPosInt(max) ? null : max <=
|
|
939
|
+
var isPosInt = /* @__PURE__ */ __name((n) => n && n === _p_MathFloor(n) && n > 0 && isFinite(n), "isPosInt");
|
|
940
|
+
var getUintArray = /* @__PURE__ */ __name((max) => !isPosInt(max) ? null : max <= _p_MathPow(2, 8) ? Uint8Array : max <= _p_MathPow(2, 16) ? Uint16Array : max <= _p_MathPow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null, "getUintArray");
|
|
941
941
|
var ZeroArray = class extends Array {
|
|
942
942
|
static {
|
|
943
943
|
__name(this, "ZeroArray");
|
|
@@ -966,7 +966,7 @@ var require_commonjs = __commonJS({
|
|
|
966
966
|
}
|
|
967
967
|
constructor(max, HeapCls) {
|
|
968
968
|
if (!_Stack.#constructing) {
|
|
969
|
-
throw new
|
|
969
|
+
throw new _p_TypeErrorCtor("instantiate Stack using Stack.create(n)");
|
|
970
970
|
}
|
|
971
971
|
this.heap = new HeapCls(max);
|
|
972
972
|
this.length = 0;
|
|
@@ -1168,16 +1168,16 @@ var require_commonjs = __commonJS({
|
|
|
1168
1168
|
const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, perf } = options;
|
|
1169
1169
|
if (perf !== void 0) {
|
|
1170
1170
|
if (typeof perf?.now !== "function") {
|
|
1171
|
-
throw new
|
|
1171
|
+
throw new _p_TypeErrorCtor("perf option must have a now() method if specified");
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
this.#perf = perf ?? defaultPerf;
|
|
1175
1175
|
if (max !== 0 && !isPosInt(max)) {
|
|
1176
|
-
throw new
|
|
1176
|
+
throw new _p_TypeErrorCtor("max option must be a nonnegative integer");
|
|
1177
1177
|
}
|
|
1178
1178
|
const UintArray = max ? getUintArray(max) : Array;
|
|
1179
1179
|
if (!UintArray) {
|
|
1180
|
-
throw new
|
|
1180
|
+
throw new _p_ErrorCtor("invalid max value: " + max);
|
|
1181
1181
|
}
|
|
1182
1182
|
this.#max = max;
|
|
1183
1183
|
this.#maxSize = maxSize;
|
|
@@ -1185,24 +1185,24 @@ var require_commonjs = __commonJS({
|
|
|
1185
1185
|
this.sizeCalculation = sizeCalculation;
|
|
1186
1186
|
if (this.sizeCalculation) {
|
|
1187
1187
|
if (!this.#maxSize && !this.maxEntrySize) {
|
|
1188
|
-
throw new
|
|
1188
|
+
throw new _p_TypeErrorCtor("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
1189
1189
|
}
|
|
1190
1190
|
if (typeof this.sizeCalculation !== "function") {
|
|
1191
|
-
throw new
|
|
1191
|
+
throw new _p_TypeErrorCtor("sizeCalculation set to non-function");
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
if (memoMethod !== void 0 && typeof memoMethod !== "function") {
|
|
1195
|
-
throw new
|
|
1195
|
+
throw new _p_TypeErrorCtor("memoMethod must be a function if defined");
|
|
1196
1196
|
}
|
|
1197
1197
|
this.#memoMethod = memoMethod;
|
|
1198
1198
|
if (fetchMethod !== void 0 && typeof fetchMethod !== "function") {
|
|
1199
|
-
throw new
|
|
1199
|
+
throw new _p_TypeErrorCtor("fetchMethod must be a function if specified");
|
|
1200
1200
|
}
|
|
1201
1201
|
this.#fetchMethod = fetchMethod;
|
|
1202
1202
|
this.#hasFetchMethod = !!fetchMethod;
|
|
1203
|
-
this.#keyMap = /* @__PURE__ */ new
|
|
1204
|
-
this.#keyList = new
|
|
1205
|
-
this.#valList = new
|
|
1203
|
+
this.#keyMap = /* @__PURE__ */ new _p_MapCtor();
|
|
1204
|
+
this.#keyList = new _p_ArrayCtor(max).fill(void 0);
|
|
1205
|
+
this.#valList = new _p_ArrayCtor(max).fill(void 0);
|
|
1206
1206
|
this.#next = new UintArray(max);
|
|
1207
1207
|
this.#prev = new UintArray(max);
|
|
1208
1208
|
this.#head = 0;
|
|
@@ -1235,11 +1235,11 @@ var require_commonjs = __commonJS({
|
|
|
1235
1235
|
if (this.maxEntrySize !== 0) {
|
|
1236
1236
|
if (this.#maxSize !== 0) {
|
|
1237
1237
|
if (!isPosInt(this.#maxSize)) {
|
|
1238
|
-
throw new
|
|
1238
|
+
throw new _p_TypeErrorCtor("maxSize must be a positive integer if specified");
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
if (!isPosInt(this.maxEntrySize)) {
|
|
1242
|
-
throw new
|
|
1242
|
+
throw new _p_TypeErrorCtor("maxEntrySize must be a positive integer if specified");
|
|
1243
1243
|
}
|
|
1244
1244
|
this.#initializeSizeTracking();
|
|
1245
1245
|
}
|
|
@@ -1252,12 +1252,12 @@ var require_commonjs = __commonJS({
|
|
|
1252
1252
|
this.ttl = ttl || 0;
|
|
1253
1253
|
if (this.ttl) {
|
|
1254
1254
|
if (!isPosInt(this.ttl)) {
|
|
1255
|
-
throw new
|
|
1255
|
+
throw new _p_TypeErrorCtor("ttl must be a positive integer if specified");
|
|
1256
1256
|
}
|
|
1257
1257
|
this.#initializeTTLTracking();
|
|
1258
1258
|
}
|
|
1259
1259
|
if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {
|
|
1260
|
-
throw new
|
|
1260
|
+
throw new _p_TypeErrorCtor("At least one of max, maxSize, or ttl is required");
|
|
1261
1261
|
}
|
|
1262
1262
|
if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {
|
|
1263
1263
|
const code = "LRU_CACHE_UNBOUNDED";
|
|
@@ -1365,14 +1365,14 @@ var require_commonjs = __commonJS({
|
|
|
1365
1365
|
if (!isPosInt(size)) {
|
|
1366
1366
|
if (sizeCalculation) {
|
|
1367
1367
|
if (typeof sizeCalculation !== "function") {
|
|
1368
|
-
throw new
|
|
1368
|
+
throw new _p_TypeErrorCtor("sizeCalculation must be a function");
|
|
1369
1369
|
}
|
|
1370
1370
|
size = sizeCalculation(v, k);
|
|
1371
1371
|
if (!isPosInt(size)) {
|
|
1372
|
-
throw new
|
|
1372
|
+
throw new _p_TypeErrorCtor("sizeCalculation return invalid (expect positive integer)");
|
|
1373
1373
|
}
|
|
1374
1374
|
} else {
|
|
1375
|
-
throw new
|
|
1375
|
+
throw new _p_TypeErrorCtor("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
1378
|
return size;
|
|
@@ -1398,7 +1398,7 @@ var require_commonjs = __commonJS({
|
|
|
1398
1398
|
}, "#addItemSize");
|
|
1399
1399
|
#requireSize = /* @__PURE__ */ __name((_k, _v, size, sizeCalculation) => {
|
|
1400
1400
|
if (size || sizeCalculation) {
|
|
1401
|
-
throw new
|
|
1401
|
+
throw new _p_TypeErrorCtor("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
1402
1402
|
}
|
|
1403
1403
|
return 0;
|
|
1404
1404
|
}, "#requireSize");
|
|
@@ -1617,7 +1617,7 @@ var require_commonjs = __commonJS({
|
|
|
1617
1617
|
if (ttl && start) {
|
|
1618
1618
|
const remain = ttl - (this.#perf.now() - start);
|
|
1619
1619
|
entry.ttl = remain;
|
|
1620
|
-
entry.start =
|
|
1620
|
+
entry.start = _p_DateNow();
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
1623
|
if (this.#sizes) {
|
|
@@ -1650,7 +1650,7 @@ var require_commonjs = __commonJS({
|
|
|
1650
1650
|
if (this.#ttls && this.#starts) {
|
|
1651
1651
|
entry.ttl = this.#ttls[i];
|
|
1652
1652
|
const age = this.#perf.now() - this.#starts[i];
|
|
1653
|
-
entry.start =
|
|
1653
|
+
entry.start = _p_MathFloor(_p_DateNow() - age);
|
|
1654
1654
|
}
|
|
1655
1655
|
if (this.#sizes) {
|
|
1656
1656
|
entry.size = this.#sizes[i];
|
|
@@ -1672,7 +1672,7 @@ var require_commonjs = __commonJS({
|
|
|
1672
1672
|
this.clear();
|
|
1673
1673
|
for (const [key, entry] of arr) {
|
|
1674
1674
|
if (entry.start) {
|
|
1675
|
-
const age =
|
|
1675
|
+
const age = _p_DateNow() - entry.start;
|
|
1676
1676
|
entry.start = this.#perf.now() - age;
|
|
1677
1677
|
}
|
|
1678
1678
|
this.set(key, entry.value, entry);
|
|
@@ -1746,7 +1746,7 @@ var require_commonjs = __commonJS({
|
|
|
1746
1746
|
const oldVal = this.#valList[index];
|
|
1747
1747
|
if (v !== oldVal) {
|
|
1748
1748
|
if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
|
|
1749
|
-
oldVal.__abortController.abort(new
|
|
1749
|
+
oldVal.__abortController.abort(new _p_ErrorCtor("replaced"));
|
|
1750
1750
|
const { __staleWhileFetching: s } = oldVal;
|
|
1751
1751
|
if (s !== void 0 && !noDisposeOnSet) {
|
|
1752
1752
|
if (this.#hasDispose) {
|
|
@@ -1831,7 +1831,7 @@ var require_commonjs = __commonJS({
|
|
|
1831
1831
|
const k = this.#keyList[head];
|
|
1832
1832
|
const v = this.#valList[head];
|
|
1833
1833
|
if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {
|
|
1834
|
-
v.__abortController.abort(new
|
|
1834
|
+
v.__abortController.abort(new _p_ErrorCtor("evicted"));
|
|
1835
1835
|
} else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
1836
1836
|
if (this.#hasDispose) {
|
|
1837
1837
|
this.#dispose?.(v, k, "evict");
|
|
@@ -2008,8 +2008,8 @@ var require_commonjs = __commonJS({
|
|
|
2008
2008
|
}, "pcall");
|
|
2009
2009
|
if (options.status)
|
|
2010
2010
|
options.status.fetchDispatched = true;
|
|
2011
|
-
const p = new
|
|
2012
|
-
const bf =
|
|
2011
|
+
const p = new _p_PromiseCtor(pcall).then(cb, eb);
|
|
2012
|
+
const bf = _p_ObjectAssign(p, {
|
|
2013
2013
|
__abortController: ac,
|
|
2014
2014
|
__staleWhileFetching: v,
|
|
2015
2015
|
__returned: void 0
|
|
@@ -2119,13 +2119,13 @@ var require_commonjs = __commonJS({
|
|
|
2119
2119
|
async forceFetch(k, fetchOptions = {}) {
|
|
2120
2120
|
const v = await this.fetch(k, fetchOptions);
|
|
2121
2121
|
if (v === void 0)
|
|
2122
|
-
throw new
|
|
2122
|
+
throw new _p_ErrorCtor("fetch() returned undefined");
|
|
2123
2123
|
return v;
|
|
2124
2124
|
}
|
|
2125
2125
|
memo(k, memoOptions = {}) {
|
|
2126
2126
|
const memoMethod = this.#memoMethod;
|
|
2127
2127
|
if (!memoMethod) {
|
|
2128
|
-
throw new
|
|
2128
|
+
throw new _p_ErrorCtor("no memoMethod provided to constructor");
|
|
2129
2129
|
}
|
|
2130
2130
|
const { context, forceRefresh, ...options } = memoOptions;
|
|
2131
2131
|
const v = this.get(k, options);
|
|
@@ -2219,7 +2219,7 @@ var require_commonjs = __commonJS({
|
|
|
2219
2219
|
this.#removeItemSize(index);
|
|
2220
2220
|
const v = this.#valList[index];
|
|
2221
2221
|
if (this.#isBackgroundFetch(v)) {
|
|
2222
|
-
v.__abortController.abort(new
|
|
2222
|
+
v.__abortController.abort(new _p_ErrorCtor("deleted"));
|
|
2223
2223
|
} else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
2224
2224
|
if (this.#hasDispose) {
|
|
2225
2225
|
this.#dispose?.(v, k, reason);
|
|
@@ -2265,7 +2265,7 @@ var require_commonjs = __commonJS({
|
|
|
2265
2265
|
for (const index of this.#rindexes({ allowStale: true })) {
|
|
2266
2266
|
const v = this.#valList[index];
|
|
2267
2267
|
if (this.#isBackgroundFetch(v)) {
|
|
2268
|
-
v.__abortController.abort(new
|
|
2268
|
+
v.__abortController.abort(new _p_ErrorCtor("deleted"));
|
|
2269
2269
|
} else {
|
|
2270
2270
|
const k = this.#keyList[index];
|
|
2271
2271
|
if (this.#hasDispose) {
|
|
@@ -2346,7 +2346,7 @@ var require_hosts = __commonJS({
|
|
|
2346
2346
|
if (!type) {
|
|
2347
2347
|
committish = url.hash.slice(1);
|
|
2348
2348
|
}
|
|
2349
|
-
if (project && project
|
|
2349
|
+
if (project && _p_StringPrototypeEndsWith(project, ".git")) {
|
|
2350
2350
|
project = project.slice(0, -4);
|
|
2351
2351
|
}
|
|
2352
2352
|
if (!user || !project) {
|
|
@@ -2368,7 +2368,7 @@ var require_hosts = __commonJS({
|
|
|
2368
2368
|
if (["get"].includes(aux)) {
|
|
2369
2369
|
return;
|
|
2370
2370
|
}
|
|
2371
|
-
if (project && project
|
|
2371
|
+
if (project && _p_StringPrototypeEndsWith(project, ".git")) {
|
|
2372
2372
|
project = project.slice(0, -4);
|
|
2373
2373
|
}
|
|
2374
2374
|
if (!user || !project) {
|
|
@@ -2392,7 +2392,7 @@ var require_hosts = __commonJS({
|
|
|
2392
2392
|
}
|
|
2393
2393
|
const segments = path.split("/");
|
|
2394
2394
|
let project = segments.pop();
|
|
2395
|
-
if (project
|
|
2395
|
+
if (_p_StringPrototypeEndsWith(project, ".git")) {
|
|
2396
2396
|
project = project.slice(0, -4);
|
|
2397
2397
|
}
|
|
2398
2398
|
const user = segments.join("/");
|
|
@@ -2432,7 +2432,7 @@ var require_hosts = __commonJS({
|
|
|
2432
2432
|
project = user;
|
|
2433
2433
|
user = null;
|
|
2434
2434
|
}
|
|
2435
|
-
if (project
|
|
2435
|
+
if (_p_StringPrototypeEndsWith(project, ".git")) {
|
|
2436
2436
|
project = project.slice(0, -4);
|
|
2437
2437
|
}
|
|
2438
2438
|
return { user, project, committish: url.hash.slice(1) };
|
|
@@ -2455,7 +2455,7 @@ var require_hosts = __commonJS({
|
|
|
2455
2455
|
if (["archive"].includes(aux)) {
|
|
2456
2456
|
return;
|
|
2457
2457
|
}
|
|
2458
|
-
if (project && project
|
|
2458
|
+
if (project && _p_StringPrototypeEndsWith(project, ".git")) {
|
|
2459
2459
|
project = project.slice(0, -4);
|
|
2460
2460
|
}
|
|
2461
2461
|
if (!user || !project) {
|
|
@@ -2464,8 +2464,8 @@ var require_hosts = __commonJS({
|
|
|
2464
2464
|
return { user, project, committish: url.hash.slice(1) };
|
|
2465
2465
|
}, "extract")
|
|
2466
2466
|
};
|
|
2467
|
-
for (const [name, host] of
|
|
2468
|
-
hosts[name] =
|
|
2467
|
+
for (const [name, host] of _p_ObjectEntries(hosts)) {
|
|
2468
|
+
hosts[name] = _p_ObjectAssign({}, defaults, host);
|
|
2469
2469
|
}
|
|
2470
2470
|
module2.exports = hosts;
|
|
2471
2471
|
}
|
|
@@ -2540,8 +2540,8 @@ var require_from_url = __commonJS({
|
|
|
2540
2540
|
const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
|
|
2541
2541
|
const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
|
|
2542
2542
|
const hasSlash = firstSlash > 0;
|
|
2543
|
-
const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg
|
|
2544
|
-
const doesNotStartWithDot = !arg
|
|
2543
|
+
const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !_p_StringPrototypeEndsWith(arg, "/");
|
|
2544
|
+
const doesNotStartWithDot = !_p_StringPrototypeStartsWith(arg, ".");
|
|
2545
2545
|
return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
|
|
2546
2546
|
}, "isGitHubShorthand");
|
|
2547
2547
|
module2.exports = (giturl, opts, { gitHosts, protocols }) => {
|
|
@@ -2585,7 +2585,7 @@ var require_from_url = __commonJS({
|
|
|
2585
2585
|
} else {
|
|
2586
2586
|
project = decodeURIComponent(pathname);
|
|
2587
2587
|
}
|
|
2588
|
-
if (project
|
|
2588
|
+
if (_p_StringPrototypeEndsWith(project, ".git")) {
|
|
2589
2589
|
project = project.slice(0, -4);
|
|
2590
2590
|
}
|
|
2591
2591
|
if (parsed.hash) {
|
|
@@ -2632,7 +2632,7 @@ var require_lib3 = __commonJS({
|
|
|
2632
2632
|
protocol,
|
|
2633
2633
|
hostname,
|
|
2634
2634
|
pathname
|
|
2635
|
-
} = new
|
|
2635
|
+
} = new _p_URLCtor(url);
|
|
2636
2636
|
if (!hostname) {
|
|
2637
2637
|
return null;
|
|
2638
2638
|
}
|
|
@@ -2649,7 +2649,7 @@ var require_lib3 = __commonJS({
|
|
|
2649
2649
|
__name(this, "GitHost");
|
|
2650
2650
|
}
|
|
2651
2651
|
constructor(type, user, auth, project, committish, defaultRepresentation, opts = {}) {
|
|
2652
|
-
|
|
2652
|
+
_p_ObjectAssign(this, _GitHost.#gitHosts[type], {
|
|
2653
2653
|
type,
|
|
2654
2654
|
user,
|
|
2655
2655
|
auth,
|
|
@@ -2679,7 +2679,7 @@ var require_lib3 = __commonJS({
|
|
|
2679
2679
|
if (typeof giturl !== "string") {
|
|
2680
2680
|
return;
|
|
2681
2681
|
}
|
|
2682
|
-
const key = giturl +
|
|
2682
|
+
const key = giturl + _p_JSONStringify(opts || {});
|
|
2683
2683
|
if (!cache.has(key)) {
|
|
2684
2684
|
const hostArgs = fromUrl(giturl, opts, {
|
|
2685
2685
|
gitHosts: _GitHost.#gitHosts,
|
|
@@ -2696,7 +2696,7 @@ var require_lib3 = __commonJS({
|
|
|
2696
2696
|
const r = manifest.repository;
|
|
2697
2697
|
const rurl = r && (typeof r === "string" ? r : typeof r === "object" && typeof r.url === "string" ? r.url : null);
|
|
2698
2698
|
if (!rurl) {
|
|
2699
|
-
throw new
|
|
2699
|
+
throw new _p_ErrorCtor("no repository");
|
|
2700
2700
|
}
|
|
2701
2701
|
const info = rurl && _GitHost.fromUrl(rurl.replace(/^git\+/, ""), opts) || null;
|
|
2702
2702
|
if (info) {
|
|
@@ -2723,7 +2723,7 @@ var require_lib3 = __commonJS({
|
|
|
2723
2723
|
options.committish = null;
|
|
2724
2724
|
}
|
|
2725
2725
|
const result = template(options);
|
|
2726
|
-
return options.noGitPlus && result
|
|
2726
|
+
return options.noGitPlus && _p_StringPrototypeStartsWith(result, "git+") ? result.slice(4) : result;
|
|
2727
2727
|
}
|
|
2728
2728
|
hash() {
|
|
2729
2729
|
return this.committish ? `#${this.committish}` : "";
|
|
@@ -2791,7 +2791,7 @@ var require_lib3 = __commonJS({
|
|
|
2791
2791
|
return this.sshurl(opts);
|
|
2792
2792
|
}
|
|
2793
2793
|
};
|
|
2794
|
-
for (const [name, host] of
|
|
2794
|
+
for (const [name, host] of _p_ObjectEntries(hosts)) {
|
|
2795
2795
|
GitHost.addHost(name, host);
|
|
2796
2796
|
}
|
|
2797
2797
|
module2.exports = GitHost;
|
|
@@ -2802,7 +2802,7 @@ var require_lib3 = __commonJS({
|
|
|
2802
2802
|
var require_commonjs2 = __commonJS({
|
|
2803
2803
|
"node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js"(exports2) {
|
|
2804
2804
|
"use strict";
|
|
2805
|
-
|
|
2805
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
2806
2806
|
exports2.range = exports2.balanced = void 0;
|
|
2807
2807
|
var balanced = /* @__PURE__ */ __name((a, b, str) => {
|
|
2808
2808
|
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
@@ -2869,15 +2869,15 @@ var require_commonjs3 = __commonJS({
|
|
|
2869
2869
|
exports2.expand = expand;
|
|
2870
2870
|
var balanced_match_1 = require_commonjs2();
|
|
2871
2871
|
var escSlash = "\0SLASH" + _p_MathRandom() + "\0";
|
|
2872
|
-
var escOpen = "\0OPEN" +
|
|
2873
|
-
var escClose = "\0CLOSE" +
|
|
2874
|
-
var escComma = "\0COMMA" +
|
|
2875
|
-
var escPeriod = "\0PERIOD" +
|
|
2876
|
-
var escSlashPattern = new
|
|
2877
|
-
var escOpenPattern = new
|
|
2878
|
-
var escClosePattern = new
|
|
2879
|
-
var escCommaPattern = new
|
|
2880
|
-
var escPeriodPattern = new
|
|
2872
|
+
var escOpen = "\0OPEN" + _p_MathRandom() + "\0";
|
|
2873
|
+
var escClose = "\0CLOSE" + _p_MathRandom() + "\0";
|
|
2874
|
+
var escComma = "\0COMMA" + _p_MathRandom() + "\0";
|
|
2875
|
+
var escPeriod = "\0PERIOD" + _p_MathRandom() + "\0";
|
|
2876
|
+
var escSlashPattern = new _p_RegExpCtor(escSlash, "g");
|
|
2877
|
+
var escOpenPattern = new _p_RegExpCtor(escOpen, "g");
|
|
2878
|
+
var escClosePattern = new _p_RegExpCtor(escClose, "g");
|
|
2879
|
+
var escCommaPattern = new _p_RegExpCtor(escComma, "g");
|
|
2880
|
+
var escPeriodPattern = new _p_RegExpCtor(escPeriod, "g");
|
|
2881
2881
|
var slashPattern = /\\\\/g;
|
|
2882
2882
|
var openPattern = /\\{/g;
|
|
2883
2883
|
var closePattern = /\\}/g;
|
|
@@ -2885,7 +2885,7 @@ var require_commonjs3 = __commonJS({
|
|
|
2885
2885
|
var periodPattern = /\\\./g;
|
|
2886
2886
|
exports2.EXPANSION_MAX = 1e5;
|
|
2887
2887
|
function numeric(str) {
|
|
2888
|
-
return !isNaN(str) ? parseInt(str, 10) : str
|
|
2888
|
+
return !isNaN(str) ? parseInt(str, 10) : _p_StringPrototypeCharCodeAt(str, 0);
|
|
2889
2889
|
}
|
|
2890
2890
|
__name(numeric, "numeric");
|
|
2891
2891
|
function escapeBraces(str) {
|
|
@@ -2985,8 +2985,8 @@ var require_commonjs3 = __commonJS({
|
|
|
2985
2985
|
if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
|
|
2986
2986
|
const x = numeric(n[0]);
|
|
2987
2987
|
const y = numeric(n[1]);
|
|
2988
|
-
const width =
|
|
2989
|
-
let incr = n.length === 3 && n[2] !== void 0 ?
|
|
2988
|
+
const width = _p_MathMax(n[0].length, n[1].length);
|
|
2989
|
+
let incr = n.length === 3 && n[2] !== void 0 ? _p_MathMax(_p_MathAbs(numeric(n[2])), 1) : 1;
|
|
2990
2990
|
let test = lte;
|
|
2991
2991
|
const reverse = y < x;
|
|
2992
2992
|
if (reverse) {
|
|
@@ -2998,7 +2998,7 @@ var require_commonjs3 = __commonJS({
|
|
|
2998
2998
|
for (let i = x; test(i, y); i += incr) {
|
|
2999
2999
|
let c;
|
|
3000
3000
|
if (isAlphaSequence) {
|
|
3001
|
-
c =
|
|
3001
|
+
c = _p_StringFromCharCode(i);
|
|
3002
3002
|
if (c === "\\") {
|
|
3003
3003
|
c = "";
|
|
3004
3004
|
}
|
|
@@ -3007,7 +3007,7 @@ var require_commonjs3 = __commonJS({
|
|
|
3007
3007
|
if (pad) {
|
|
3008
3008
|
const need = width - c.length;
|
|
3009
3009
|
if (need > 0) {
|
|
3010
|
-
const z = new
|
|
3010
|
+
const z = new _p_ArrayCtor(need + 1).join("0");
|
|
3011
3011
|
if (i < 0) {
|
|
3012
3012
|
c = "-" + z + c.slice(1);
|
|
3013
3013
|
} else {
|
|
@@ -3043,15 +3043,15 @@ var require_commonjs3 = __commonJS({
|
|
|
3043
3043
|
var require_assert_valid_pattern = __commonJS({
|
|
3044
3044
|
"node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports2) {
|
|
3045
3045
|
"use strict";
|
|
3046
|
-
|
|
3046
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
3047
3047
|
exports2.assertValidPattern = void 0;
|
|
3048
3048
|
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
3049
3049
|
var assertValidPattern = /* @__PURE__ */ __name((pattern) => {
|
|
3050
3050
|
if (typeof pattern !== "string") {
|
|
3051
|
-
throw new
|
|
3051
|
+
throw new _p_TypeErrorCtor("invalid pattern");
|
|
3052
3052
|
}
|
|
3053
3053
|
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
3054
|
-
throw new
|
|
3054
|
+
throw new _p_TypeErrorCtor("pattern is too long");
|
|
3055
3055
|
}
|
|
3056
3056
|
}, "assertValidPattern");
|
|
3057
3057
|
exports2.assertValidPattern = assertValidPattern;
|
|
@@ -3062,7 +3062,7 @@ var require_assert_valid_pattern = __commonJS({
|
|
|
3062
3062
|
var require_brace_expressions = __commonJS({
|
|
3063
3063
|
"node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports2) {
|
|
3064
3064
|
"use strict";
|
|
3065
|
-
|
|
3065
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
3066
3066
|
exports2.parseClass = void 0;
|
|
3067
3067
|
var posixClasses = {
|
|
3068
3068
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
@@ -3085,8 +3085,8 @@ var require_brace_expressions = __commonJS({
|
|
|
3085
3085
|
var rangesToString = /* @__PURE__ */ __name((ranges) => ranges.join(""), "rangesToString");
|
|
3086
3086
|
var parseClass = /* @__PURE__ */ __name((glob, position) => {
|
|
3087
3087
|
const pos = position;
|
|
3088
|
-
if (glob
|
|
3089
|
-
throw new
|
|
3088
|
+
if (_p_StringPrototypeCharAt(glob, pos) !== "[") {
|
|
3089
|
+
throw new _p_ErrorCtor("not in a brace expression");
|
|
3090
3090
|
}
|
|
3091
3091
|
const ranges = [];
|
|
3092
3092
|
const negs = [];
|
|
@@ -3098,7 +3098,7 @@ var require_brace_expressions = __commonJS({
|
|
|
3098
3098
|
let endPos = pos;
|
|
3099
3099
|
let rangeStart = "";
|
|
3100
3100
|
WHILE: while (i < glob.length) {
|
|
3101
|
-
const c = glob
|
|
3101
|
+
const c = _p_StringPrototypeCharAt(glob, i);
|
|
3102
3102
|
if ((c === "!" || c === "^") && i === pos + 1) {
|
|
3103
3103
|
negate = true;
|
|
3104
3104
|
i++;
|
|
@@ -3117,8 +3117,8 @@ var require_brace_expressions = __commonJS({
|
|
|
3117
3117
|
}
|
|
3118
3118
|
}
|
|
3119
3119
|
if (c === "[" && !escaping) {
|
|
3120
|
-
for (const [cls, [unip, u, neg]] of
|
|
3121
|
-
if (glob
|
|
3120
|
+
for (const [cls, [unip, u, neg]] of _p_ObjectEntries(posixClasses)) {
|
|
3121
|
+
if (_p_StringPrototypeStartsWith(glob, cls, i)) {
|
|
3122
3122
|
if (rangeStart) {
|
|
3123
3123
|
return ["$.", false, glob.length - pos, true];
|
|
3124
3124
|
}
|
|
@@ -3179,7 +3179,7 @@ var require_brace_expressions = __commonJS({
|
|
|
3179
3179
|
var require_unescape = __commonJS({
|
|
3180
3180
|
"node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/unescape.js"(exports2) {
|
|
3181
3181
|
"use strict";
|
|
3182
|
-
|
|
3182
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
3183
3183
|
exports2.unescape = void 0;
|
|
3184
3184
|
var unescape = /* @__PURE__ */ __name((s, { windowsPathsNoEscape = false } = {}) => {
|
|
3185
3185
|
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
@@ -3196,13 +3196,13 @@ var require_ast = __commonJS({
|
|
|
3196
3196
|
exports2.AST = void 0;
|
|
3197
3197
|
var brace_expressions_js_1 = require_brace_expressions();
|
|
3198
3198
|
var unescape_js_1 = require_unescape();
|
|
3199
|
-
var types = /* @__PURE__ */ new
|
|
3199
|
+
var types = /* @__PURE__ */ new _p_SetCtor(["!", "?", "+", "*", "@"]);
|
|
3200
3200
|
var isExtglobType = /* @__PURE__ */ __name((c) => types.has(c), "isExtglobType");
|
|
3201
3201
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
3202
3202
|
var startNoDot = "(?!\\.)";
|
|
3203
|
-
var addPatternStart = /* @__PURE__ */ new
|
|
3204
|
-
var justDots = /* @__PURE__ */ new
|
|
3205
|
-
var reSpecials = new
|
|
3203
|
+
var addPatternStart = /* @__PURE__ */ new _p_SetCtor(["[", "."]);
|
|
3204
|
+
var justDots = /* @__PURE__ */ new _p_SetCtor(["..", "."]);
|
|
3205
|
+
var reSpecials = new _p_SetCtor("().*{}+?[]^$\\!");
|
|
3206
3206
|
var regExpEscape = /* @__PURE__ */ __name((s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
|
|
3207
3207
|
var qmark = "[^/]";
|
|
3208
3208
|
var star = qmark + "*?";
|
|
@@ -3260,7 +3260,7 @@ var require_ast = __commonJS({
|
|
|
3260
3260
|
}
|
|
3261
3261
|
#fillNegs() {
|
|
3262
3262
|
if (this !== this.#root)
|
|
3263
|
-
throw new
|
|
3263
|
+
throw new _p_ErrorCtor("should only call on root");
|
|
3264
3264
|
if (this.#filledNegs)
|
|
3265
3265
|
return this;
|
|
3266
3266
|
this.toString();
|
|
@@ -3275,7 +3275,7 @@ var require_ast = __commonJS({
|
|
|
3275
3275
|
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
|
|
3276
3276
|
for (const part of n.#parts) {
|
|
3277
3277
|
if (typeof part === "string") {
|
|
3278
|
-
throw new
|
|
3278
|
+
throw new _p_ErrorCtor("string part in extglob AST??");
|
|
3279
3279
|
}
|
|
3280
3280
|
part.copyIn(pp.#parts[i]);
|
|
3281
3281
|
}
|
|
@@ -3291,7 +3291,7 @@ var require_ast = __commonJS({
|
|
|
3291
3291
|
if (p === "")
|
|
3292
3292
|
continue;
|
|
3293
3293
|
if (typeof p !== "string" && !(p instanceof _AST && p.#parent === this)) {
|
|
3294
|
-
throw new
|
|
3294
|
+
throw new _p_ErrorCtor("invalid part: " + p);
|
|
3295
3295
|
}
|
|
3296
3296
|
this.#parts.push(p);
|
|
3297
3297
|
}
|
|
@@ -3378,7 +3378,7 @@ var require_ast = __commonJS({
|
|
|
3378
3378
|
acc2 += c;
|
|
3379
3379
|
continue;
|
|
3380
3380
|
}
|
|
3381
|
-
if (!opt.noext && isExtglobType(c) && str
|
|
3381
|
+
if (!opt.noext && isExtglobType(c) && _p_StringPrototypeCharAt(str, i2) === "(") {
|
|
3382
3382
|
ast.push(acc2);
|
|
3383
3383
|
acc2 = "";
|
|
3384
3384
|
const ext = new _AST(c, ast);
|
|
@@ -3419,7 +3419,7 @@ var require_ast = __commonJS({
|
|
|
3419
3419
|
acc += c;
|
|
3420
3420
|
continue;
|
|
3421
3421
|
}
|
|
3422
|
-
if (isExtglobType(c) && str
|
|
3422
|
+
if (isExtglobType(c) && _p_StringPrototypeCharAt(str, i) === "(") {
|
|
3423
3423
|
part.push(acc);
|
|
3424
3424
|
acc = "";
|
|
3425
3425
|
const ext = new _AST(c, part);
|
|
@@ -3447,7 +3447,7 @@ var require_ast = __commonJS({
|
|
|
3447
3447
|
}
|
|
3448
3448
|
ast.type = null;
|
|
3449
3449
|
ast.#hasMagic = void 0;
|
|
3450
|
-
ast.#parts = [str
|
|
3450
|
+
ast.#parts = [_p_StringPrototypeSubstring(str, pos - 1)];
|
|
3451
3451
|
return i;
|
|
3452
3452
|
}
|
|
3453
3453
|
static fromGlob(pattern, options = {}) {
|
|
@@ -3467,7 +3467,7 @@ var require_ast = __commonJS({
|
|
|
3467
3467
|
return body;
|
|
3468
3468
|
}
|
|
3469
3469
|
const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
|
|
3470
|
-
return
|
|
3470
|
+
return _p_ObjectAssign(new _p_RegExpCtor(`^${re}$`, flags), {
|
|
3471
3471
|
_src: re,
|
|
3472
3472
|
_glob: glob
|
|
3473
3473
|
});
|
|
@@ -3564,11 +3564,11 @@ var require_ast = __commonJS({
|
|
|
3564
3564
|
const aps = addPatternStart;
|
|
3565
3565
|
const needNoTrav = (
|
|
3566
3566
|
// dots are allowed, and the pattern starts with [ or .
|
|
3567
|
-
dot && aps.has(src
|
|
3568
|
-
src
|
|
3569
|
-
src
|
|
3567
|
+
dot && aps.has(_p_StringPrototypeCharAt(src, 0)) || // the pattern starts with \., and then [ or .
|
|
3568
|
+
_p_StringPrototypeStartsWith(src, "\\.") && aps.has(_p_StringPrototypeCharAt(src, 2)) || // the pattern starts with \.\., and then [ or .
|
|
3569
|
+
_p_StringPrototypeStartsWith(src, "\\.\\.") && aps.has(_p_StringPrototypeCharAt(src, 4))
|
|
3570
3570
|
);
|
|
3571
|
-
const needNoDot = !dot && !allowDot && aps.has(src
|
|
3571
|
+
const needNoDot = !dot && !allowDot && aps.has(_p_StringPrototypeCharAt(src, 0));
|
|
3572
3572
|
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
@@ -3622,7 +3622,7 @@ var require_ast = __commonJS({
|
|
|
3622
3622
|
#partsToRegExp(dot) {
|
|
3623
3623
|
return this.#parts.map((p) => {
|
|
3624
3624
|
if (typeof p === "string") {
|
|
3625
|
-
throw new
|
|
3625
|
+
throw new _p_ErrorCtor("string type in extglob ast??");
|
|
3626
3626
|
}
|
|
3627
3627
|
const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
|
|
3628
3628
|
this.#uflag = this.#uflag || uflag;
|
|
@@ -3635,7 +3635,7 @@ var require_ast = __commonJS({
|
|
|
3635
3635
|
let uflag = false;
|
|
3636
3636
|
let inStar = false;
|
|
3637
3637
|
for (let i = 0; i < glob.length; i++) {
|
|
3638
|
-
const c = glob
|
|
3638
|
+
const c = _p_StringPrototypeCharAt(glob, i);
|
|
3639
3639
|
if (escaping) {
|
|
3640
3640
|
escaping = false;
|
|
3641
3641
|
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
@@ -3689,7 +3689,7 @@ var require_ast = __commonJS({
|
|
|
3689
3689
|
var require_escape = __commonJS({
|
|
3690
3690
|
"node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/escape.js"(exports2) {
|
|
3691
3691
|
"use strict";
|
|
3692
|
-
|
|
3692
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
3693
3693
|
exports2.escape = void 0;
|
|
3694
3694
|
var escape = /* @__PURE__ */ __name((s, { windowsPathsNoEscape = false } = {}) => {
|
|
3695
3695
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
@@ -3711,30 +3711,30 @@ var require_commonjs4 = __commonJS({
|
|
|
3711
3711
|
var unescape_js_1 = require_unescape();
|
|
3712
3712
|
var minimatch = /* @__PURE__ */ __name((p, pattern, options = {}) => {
|
|
3713
3713
|
(0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
|
|
3714
|
-
if (!options.nocomment && pattern
|
|
3714
|
+
if (!options.nocomment && _p_StringPrototypeCharAt(pattern, 0) === "#") {
|
|
3715
3715
|
return false;
|
|
3716
3716
|
}
|
|
3717
3717
|
return new Minimatch(pattern, options).match(p);
|
|
3718
3718
|
}, "minimatch");
|
|
3719
3719
|
exports2.minimatch = minimatch;
|
|
3720
3720
|
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
3721
|
-
var starDotExtTest = /* @__PURE__ */ __name((ext2) => (f) => !f
|
|
3722
|
-
var starDotExtTestDot = /* @__PURE__ */ __name((ext2) => (f) => f
|
|
3721
|
+
var starDotExtTest = /* @__PURE__ */ __name((ext2) => (f) => !_p_StringPrototypeStartsWith(f, ".") && _p_StringPrototypeEndsWith(f, ext2), "starDotExtTest");
|
|
3722
|
+
var starDotExtTestDot = /* @__PURE__ */ __name((ext2) => (f) => _p_StringPrototypeEndsWith(f, ext2), "starDotExtTestDot");
|
|
3723
3723
|
var starDotExtTestNocase = /* @__PURE__ */ __name((ext2) => {
|
|
3724
3724
|
ext2 = ext2.toLowerCase();
|
|
3725
|
-
return (f) => !f
|
|
3725
|
+
return (f) => !_p_StringPrototypeStartsWith(f, ".") && f.toLowerCase().endsWith(ext2);
|
|
3726
3726
|
}, "starDotExtTestNocase");
|
|
3727
3727
|
var starDotExtTestNocaseDot = /* @__PURE__ */ __name((ext2) => {
|
|
3728
3728
|
ext2 = ext2.toLowerCase();
|
|
3729
3729
|
return (f) => f.toLowerCase().endsWith(ext2);
|
|
3730
3730
|
}, "starDotExtTestNocaseDot");
|
|
3731
3731
|
var starDotStarRE = /^\*+\.\*+$/;
|
|
3732
|
-
var starDotStarTest = /* @__PURE__ */ __name((f) => !f
|
|
3732
|
+
var starDotStarTest = /* @__PURE__ */ __name((f) => !_p_StringPrototypeStartsWith(f, ".") && f.includes("."), "starDotStarTest");
|
|
3733
3733
|
var starDotStarTestDot = /* @__PURE__ */ __name((f) => f !== "." && f !== ".." && f.includes("."), "starDotStarTestDot");
|
|
3734
3734
|
var dotStarRE = /^\.\*+$/;
|
|
3735
|
-
var dotStarTest = /* @__PURE__ */ __name((f) => f !== "." && f !== ".." && f
|
|
3735
|
+
var dotStarTest = /* @__PURE__ */ __name((f) => f !== "." && f !== ".." && _p_StringPrototypeStartsWith(f, "."), "dotStarTest");
|
|
3736
3736
|
var starRE = /^\*+$/;
|
|
3737
|
-
var starTest = /* @__PURE__ */ __name((f) => f.length !== 0 && !f
|
|
3737
|
+
var starTest = /* @__PURE__ */ __name((f) => f.length !== 0 && !_p_StringPrototypeStartsWith(f, "."), "starTest");
|
|
3738
3738
|
var starTestDot = /* @__PURE__ */ __name((f) => f.length !== 0 && f !== "." && f !== "..", "starTestDot");
|
|
3739
3739
|
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
3740
3740
|
var qmarksTestNocase = /* @__PURE__ */ __name(([$0, ext2 = ""]) => {
|
|
@@ -3753,15 +3753,15 @@ var require_commonjs4 = __commonJS({
|
|
|
3753
3753
|
}, "qmarksTestNocaseDot");
|
|
3754
3754
|
var qmarksTestDot = /* @__PURE__ */ __name(([$0, ext2 = ""]) => {
|
|
3755
3755
|
const noext = qmarksTestNoExtDot([$0]);
|
|
3756
|
-
return !ext2 ? noext : (f) => noext(f) && f
|
|
3756
|
+
return !ext2 ? noext : (f) => noext(f) && _p_StringPrototypeEndsWith(f, ext2);
|
|
3757
3757
|
}, "qmarksTestDot");
|
|
3758
3758
|
var qmarksTest = /* @__PURE__ */ __name(([$0, ext2 = ""]) => {
|
|
3759
3759
|
const noext = qmarksTestNoExt([$0]);
|
|
3760
|
-
return !ext2 ? noext : (f) => noext(f) && f
|
|
3760
|
+
return !ext2 ? noext : (f) => noext(f) && _p_StringPrototypeEndsWith(f, ext2);
|
|
3761
3761
|
}, "qmarksTest");
|
|
3762
3762
|
var qmarksTestNoExt = /* @__PURE__ */ __name(([$0]) => {
|
|
3763
3763
|
const len = $0.length;
|
|
3764
|
-
return (f) => f.length === len && !f
|
|
3764
|
+
return (f) => f.length === len && !_p_StringPrototypeStartsWith(f, ".");
|
|
3765
3765
|
}, "qmarksTestNoExt");
|
|
3766
3766
|
var qmarksTestNoExtDot = /* @__PURE__ */ __name(([$0]) => {
|
|
3767
3767
|
const len = $0.length;
|
|
@@ -3783,14 +3783,14 @@ var require_commonjs4 = __commonJS({
|
|
|
3783
3783
|
var filter = /* @__PURE__ */ __name((pattern, options = {}) => (p) => (0, exports2.minimatch)(p, pattern, options), "filter");
|
|
3784
3784
|
exports2.filter = filter;
|
|
3785
3785
|
exports2.minimatch.filter = exports2.filter;
|
|
3786
|
-
var ext = /* @__PURE__ */ __name((a, b = {}) =>
|
|
3786
|
+
var ext = /* @__PURE__ */ __name((a, b = {}) => _p_ObjectAssign({}, a, b), "ext");
|
|
3787
3787
|
var defaults = /* @__PURE__ */ __name((def) => {
|
|
3788
|
-
if (!def || typeof def !== "object" || !
|
|
3788
|
+
if (!def || typeof def !== "object" || !_p_ObjectKeys(def).length) {
|
|
3789
3789
|
return exports2.minimatch;
|
|
3790
3790
|
}
|
|
3791
3791
|
const orig = exports2.minimatch;
|
|
3792
3792
|
const m = /* @__PURE__ */ __name((p, pattern, options = {}) => orig(p, pattern, ext(def, options)), "m");
|
|
3793
|
-
return
|
|
3793
|
+
return _p_ObjectAssign(m, {
|
|
3794
3794
|
Minimatch: class Minimatch extends orig.Minimatch {
|
|
3795
3795
|
static {
|
|
3796
3796
|
__name(this, "Minimatch");
|
|
@@ -3915,7 +3915,7 @@ var require_commonjs4 = __commonJS({
|
|
|
3915
3915
|
make() {
|
|
3916
3916
|
const pattern = this.pattern;
|
|
3917
3917
|
const options = this.options;
|
|
3918
|
-
if (!options.nocomment && pattern
|
|
3918
|
+
if (!options.nocomment && _p_StringPrototypeCharAt(pattern, 0) === "#") {
|
|
3919
3919
|
this.comment = true;
|
|
3920
3920
|
return;
|
|
3921
3921
|
}
|
|
@@ -3924,7 +3924,7 @@ var require_commonjs4 = __commonJS({
|
|
|
3924
3924
|
return;
|
|
3925
3925
|
}
|
|
3926
3926
|
this.parseNegate();
|
|
3927
|
-
this.globSet = [...new
|
|
3927
|
+
this.globSet = [...new _p_SetCtor(this.braceExpand())];
|
|
3928
3928
|
if (options.debug) {
|
|
3929
3929
|
this.debug = (...args) => console.error(...args);
|
|
3930
3930
|
}
|
|
@@ -4019,7 +4019,7 @@ var require_commonjs4 = __commonJS({
|
|
|
4019
4019
|
});
|
|
4020
4020
|
}
|
|
4021
4021
|
levelTwoFileOptimize(parts) {
|
|
4022
|
-
if (!
|
|
4022
|
+
if (!_p_ArrayIsArray(parts)) {
|
|
4023
4023
|
parts = this.slashSplit(parts);
|
|
4024
4024
|
}
|
|
4025
4025
|
let didSomething = false;
|
|
@@ -4195,7 +4195,7 @@ var require_commonjs4 = __commonJS({
|
|
|
4195
4195
|
const pattern = this.pattern;
|
|
4196
4196
|
let negate = false;
|
|
4197
4197
|
let negateOffset = 0;
|
|
4198
|
-
for (let i = 0; i < pattern.length && pattern
|
|
4198
|
+
for (let i = 0; i < pattern.length && _p_StringPrototypeCharAt(pattern, i) === "!"; i++) {
|
|
4199
4199
|
negate = !negate;
|
|
4200
4200
|
negateOffset++;
|
|
4201
4201
|
}
|
|
@@ -4262,7 +4262,7 @@ var require_commonjs4 = __commonJS({
|
|
|
4262
4262
|
this.debug("globstar found match!", fr, fl, swallowee);
|
|
4263
4263
|
return true;
|
|
4264
4264
|
} else {
|
|
4265
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee
|
|
4265
|
+
if (swallowee === "." || swallowee === ".." || !options.dot && _p_StringPrototypeCharAt(swallowee, 0) === ".") {
|
|
4266
4266
|
this.debug("dot detected!", file, fr, pattern, pr);
|
|
4267
4267
|
break;
|
|
4268
4268
|
}
|
|
@@ -4296,7 +4296,7 @@ var require_commonjs4 = __commonJS({
|
|
|
4296
4296
|
} else if (pi === pl) {
|
|
4297
4297
|
return fi === fl - 1 && file[fi] === "";
|
|
4298
4298
|
} else {
|
|
4299
|
-
throw new
|
|
4299
|
+
throw new _p_ErrorCtor("wtf?");
|
|
4300
4300
|
}
|
|
4301
4301
|
}
|
|
4302
4302
|
braceExpand() {
|
|
@@ -4324,7 +4324,7 @@ var require_commonjs4 = __commonJS({
|
|
|
4324
4324
|
}
|
|
4325
4325
|
const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
|
|
4326
4326
|
if (fastTest && typeof re === "object") {
|
|
4327
|
-
|
|
4327
|
+
_p_ReflectDefineProperty(re, "test", { value: fastTest });
|
|
4328
4328
|
}
|
|
4329
4329
|
return re;
|
|
4330
4330
|
}
|
|
@@ -4338,7 +4338,7 @@ var require_commonjs4 = __commonJS({
|
|
|
4338
4338
|
}
|
|
4339
4339
|
const options = this.options;
|
|
4340
4340
|
const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
|
|
4341
|
-
const flags = new
|
|
4341
|
+
const flags = new _p_SetCtor(options.nocase ? ["i"] : []);
|
|
4342
4342
|
let re = set.map((pattern) => {
|
|
4343
4343
|
const pp = pattern.map((p) => {
|
|
4344
4344
|
if (p instanceof RegExp) {
|
|
@@ -4373,7 +4373,7 @@ var require_commonjs4 = __commonJS({
|
|
|
4373
4373
|
if (this.negate)
|
|
4374
4374
|
re = "^(?!" + re + ").+$";
|
|
4375
4375
|
try {
|
|
4376
|
-
this.regexp = new
|
|
4376
|
+
this.regexp = new _p_RegExpCtor(re, [...flags].join(""));
|
|
4377
4377
|
} catch (ex) {
|
|
4378
4378
|
this.regexp = false;
|
|
4379
4379
|
}
|
|
@@ -4438,15 +4438,15 @@ var require_commonjs4 = __commonJS({
|
|
|
4438
4438
|
};
|
|
4439
4439
|
exports2.Minimatch = Minimatch;
|
|
4440
4440
|
var ast_js_2 = require_ast();
|
|
4441
|
-
|
|
4441
|
+
_p_ObjectDefineProperty(exports2, "AST", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4442
4442
|
return ast_js_2.AST;
|
|
4443
4443
|
}, "get") });
|
|
4444
4444
|
var escape_js_2 = require_escape();
|
|
4445
|
-
|
|
4445
|
+
_p_ObjectDefineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4446
4446
|
return escape_js_2.escape;
|
|
4447
4447
|
}, "get") });
|
|
4448
4448
|
var unescape_js_2 = require_unescape();
|
|
4449
|
-
|
|
4449
|
+
_p_ObjectDefineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4450
4450
|
return unescape_js_2.unescape;
|
|
4451
4451
|
}, "get") });
|
|
4452
4452
|
exports2.minimatch.AST = ast_js_1.AST;
|
|
@@ -4510,11 +4510,11 @@ var require_commonjs5 = __commonJS({
|
|
|
4510
4510
|
var SIGNAL = Symbol("signal");
|
|
4511
4511
|
var DATALISTENERS = Symbol("dataListeners");
|
|
4512
4512
|
var DISCARDED = Symbol("discarded");
|
|
4513
|
-
var defer = /* @__PURE__ */ __name((fn) =>
|
|
4513
|
+
var defer = /* @__PURE__ */ __name((fn) => _p_PromiseResolve().then(fn), "defer");
|
|
4514
4514
|
var nodefer = /* @__PURE__ */ __name((fn) => fn(), "nodefer");
|
|
4515
4515
|
var isEndish = /* @__PURE__ */ __name((ev) => ev === "end" || ev === "finish" || ev === "prefinish", "isEndish");
|
|
4516
4516
|
var isArrayBufferLike = /* @__PURE__ */ __name((b) => b instanceof ArrayBuffer || !!b && typeof b === "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0, "isArrayBufferLike");
|
|
4517
|
-
var isArrayBufferView = /* @__PURE__ */ __name((b) => !
|
|
4517
|
+
var isArrayBufferView = /* @__PURE__ */ __name((b) => !_p_BufferIsBuffer(b) && _p_ArrayBufferIsView(b), "isArrayBufferView");
|
|
4518
4518
|
var Pipe = class {
|
|
4519
4519
|
static {
|
|
4520
4520
|
__name(this, "Pipe");
|
|
@@ -4601,7 +4601,7 @@ var require_commonjs5 = __commonJS({
|
|
|
4601
4601
|
const options = args[0] || {};
|
|
4602
4602
|
super();
|
|
4603
4603
|
if (options.objectMode && typeof options.encoding === "string") {
|
|
4604
|
-
throw new
|
|
4604
|
+
throw new _p_TypeErrorCtor("Encoding and objectMode may not be used together");
|
|
4605
4605
|
}
|
|
4606
4606
|
if (isObjectModeOptions(options)) {
|
|
4607
4607
|
this[OBJECTMODE] = true;
|
|
@@ -4616,10 +4616,10 @@ var require_commonjs5 = __commonJS({
|
|
|
4616
4616
|
this[ASYNC] = !!options.async;
|
|
4617
4617
|
this[DECODER] = this[ENCODING] ? new node_string_decoder_1.StringDecoder(this[ENCODING]) : null;
|
|
4618
4618
|
if (options && options.debugExposeBuffer === true) {
|
|
4619
|
-
|
|
4619
|
+
_p_ObjectDefineProperty(this, "buffer", { get: /* @__PURE__ */ __name(() => this[BUFFER], "get") });
|
|
4620
4620
|
}
|
|
4621
4621
|
if (options && options.debugExposePipes === true) {
|
|
4622
|
-
|
|
4622
|
+
_p_ObjectDefineProperty(this, "pipes", { get: /* @__PURE__ */ __name(() => this[PIPES], "get") });
|
|
4623
4623
|
}
|
|
4624
4624
|
const { signal } = options;
|
|
4625
4625
|
if (signal) {
|
|
@@ -4653,13 +4653,13 @@ var require_commonjs5 = __commonJS({
|
|
|
4653
4653
|
* @deprecated - This is a read only property
|
|
4654
4654
|
*/
|
|
4655
4655
|
set encoding(_enc) {
|
|
4656
|
-
throw new
|
|
4656
|
+
throw new _p_ErrorCtor("Encoding must be set at instantiation time");
|
|
4657
4657
|
}
|
|
4658
4658
|
/**
|
|
4659
4659
|
* @deprecated - Encoding may only be set at instantiation time
|
|
4660
4660
|
*/
|
|
4661
4661
|
setEncoding(_enc) {
|
|
4662
|
-
throw new
|
|
4662
|
+
throw new _p_ErrorCtor("Encoding must be set at instantiation time");
|
|
4663
4663
|
}
|
|
4664
4664
|
/**
|
|
4665
4665
|
* True if this is an objectMode stream
|
|
@@ -4671,7 +4671,7 @@ var require_commonjs5 = __commonJS({
|
|
|
4671
4671
|
* @deprecated - This is a read-only property
|
|
4672
4672
|
*/
|
|
4673
4673
|
set objectMode(_om) {
|
|
4674
|
-
throw new
|
|
4674
|
+
throw new _p_ErrorCtor("objectMode must be set at instantiation time");
|
|
4675
4675
|
}
|
|
4676
4676
|
/**
|
|
4677
4677
|
* true if this is an async stream
|
|
@@ -4711,7 +4711,7 @@ var require_commonjs5 = __commonJS({
|
|
|
4711
4711
|
if (this[ABORTED])
|
|
4712
4712
|
return false;
|
|
4713
4713
|
if (this[EOF])
|
|
4714
|
-
throw new
|
|
4714
|
+
throw new _p_ErrorCtor("write after end");
|
|
4715
4715
|
if (this[DESTROYED]) {
|
|
4716
4716
|
this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" }));
|
|
4717
4717
|
return true;
|
|
@@ -4723,13 +4723,13 @@ var require_commonjs5 = __commonJS({
|
|
|
4723
4723
|
if (!encoding)
|
|
4724
4724
|
encoding = "utf8";
|
|
4725
4725
|
const fn = this[ASYNC] ? defer : nodefer;
|
|
4726
|
-
if (!this[OBJECTMODE] && !
|
|
4726
|
+
if (!this[OBJECTMODE] && !_p_BufferIsBuffer(chunk)) {
|
|
4727
4727
|
if (isArrayBufferView(chunk)) {
|
|
4728
|
-
chunk =
|
|
4728
|
+
chunk = _p_BufferFrom(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
4729
4729
|
} else if (isArrayBufferLike(chunk)) {
|
|
4730
|
-
chunk =
|
|
4730
|
+
chunk = _p_BufferFrom(chunk);
|
|
4731
4731
|
} else if (typeof chunk !== "string") {
|
|
4732
|
-
throw new
|
|
4732
|
+
throw new _p_ErrorCtor("Non-contiguous data written to non-objectMode stream");
|
|
4733
4733
|
}
|
|
4734
4734
|
}
|
|
4735
4735
|
if (this[OBJECTMODE]) {
|
|
@@ -4754,9 +4754,9 @@ var require_commonjs5 = __commonJS({
|
|
|
4754
4754
|
}
|
|
4755
4755
|
if (typeof chunk === "string" && // unless it is a string already ready for us to use
|
|
4756
4756
|
!(encoding === this[ENCODING] && !this[DECODER]?.lastNeed)) {
|
|
4757
|
-
chunk =
|
|
4757
|
+
chunk = _p_BufferFrom(chunk, encoding);
|
|
4758
4758
|
}
|
|
4759
|
-
if (
|
|
4759
|
+
if (_p_BufferIsBuffer(chunk) && this[ENCODING]) {
|
|
4760
4760
|
chunk = this[DECODER].write(chunk);
|
|
4761
4761
|
}
|
|
4762
4762
|
if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
|
|
@@ -4796,7 +4796,7 @@ var require_commonjs5 = __commonJS({
|
|
|
4796
4796
|
n = null;
|
|
4797
4797
|
if (this[BUFFER].length > 1 && !this[OBJECTMODE]) {
|
|
4798
4798
|
this[BUFFER] = [
|
|
4799
|
-
this[ENCODING] ? this[BUFFER].join("") :
|
|
4799
|
+
this[ENCODING] ? this[BUFFER].join("") : _p_BufferConcat(this[BUFFER], this[BUFFERLENGTH])
|
|
4800
4800
|
];
|
|
4801
4801
|
}
|
|
4802
4802
|
const ret = this[READ](n || null, this[BUFFER][0]);
|
|
@@ -5174,7 +5174,7 @@ var require_commonjs5 = __commonJS({
|
|
|
5174
5174
|
* the stream ends.
|
|
5175
5175
|
*/
|
|
5176
5176
|
async collect() {
|
|
5177
|
-
const buf =
|
|
5177
|
+
const buf = _p_ObjectAssign([], {
|
|
5178
5178
|
dataLength: 0
|
|
5179
5179
|
});
|
|
5180
5180
|
if (!this[OBJECTMODE])
|
|
@@ -5196,16 +5196,16 @@ var require_commonjs5 = __commonJS({
|
|
|
5196
5196
|
*/
|
|
5197
5197
|
async concat() {
|
|
5198
5198
|
if (this[OBJECTMODE]) {
|
|
5199
|
-
throw new
|
|
5199
|
+
throw new _p_ErrorCtor("cannot concat in objectMode");
|
|
5200
5200
|
}
|
|
5201
5201
|
const buf = await this.collect();
|
|
5202
|
-
return this[ENCODING] ? buf.join("") :
|
|
5202
|
+
return this[ENCODING] ? buf.join("") : _p_BufferConcat(buf, buf.dataLength);
|
|
5203
5203
|
}
|
|
5204
5204
|
/**
|
|
5205
5205
|
* Return a void Promise that resolves once the stream ends.
|
|
5206
5206
|
*/
|
|
5207
5207
|
async promise() {
|
|
5208
|
-
return new
|
|
5208
|
+
return new _p_PromiseCtor((resolve, reject) => {
|
|
5209
5209
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
5210
5210
|
this.on("error", (er) => reject(er));
|
|
5211
5211
|
this.on("end", () => resolve());
|
|
@@ -5229,7 +5229,7 @@ var require_commonjs5 = __commonJS({
|
|
|
5229
5229
|
return stop();
|
|
5230
5230
|
const res = this.read();
|
|
5231
5231
|
if (res !== null)
|
|
5232
|
-
return
|
|
5232
|
+
return _p_PromiseResolve({ done: false, value: res });
|
|
5233
5233
|
if (this[EOF])
|
|
5234
5234
|
return stop();
|
|
5235
5235
|
let resolve;
|
|
@@ -5255,8 +5255,8 @@ var require_commonjs5 = __commonJS({
|
|
|
5255
5255
|
stop();
|
|
5256
5256
|
resolve({ done: true, value: void 0 });
|
|
5257
5257
|
}, "onend");
|
|
5258
|
-
const ondestroy = /* @__PURE__ */ __name(() => onerr(new
|
|
5259
|
-
return new
|
|
5258
|
+
const ondestroy = /* @__PURE__ */ __name(() => onerr(new _p_ErrorCtor("stream destroyed")), "ondestroy");
|
|
5259
|
+
return new _p_PromiseCtor((res2, rej) => {
|
|
5260
5260
|
reject = rej;
|
|
5261
5261
|
resolve = res2;
|
|
5262
5262
|
this.once(DESTROYED, ondestroy);
|
|
@@ -5373,13 +5373,13 @@ var require_commonjs6 = __commonJS({
|
|
|
5373
5373
|
return m[k];
|
|
5374
5374
|
}, "get") };
|
|
5375
5375
|
}
|
|
5376
|
-
|
|
5376
|
+
_p_ObjectDefineProperty(o, k2, desc);
|
|
5377
5377
|
}) : (function(o, m, k, k2) {
|
|
5378
5378
|
if (k2 === void 0) k2 = k;
|
|
5379
5379
|
o[k2] = m[k];
|
|
5380
5380
|
}));
|
|
5381
5381
|
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
5382
|
-
|
|
5382
|
+
_p_ObjectDefineProperty(o, "default", { enumerable: true, value: v });
|
|
5383
5383
|
}) : function(o, v) {
|
|
5384
5384
|
o["default"] = v;
|
|
5385
5385
|
});
|
|
@@ -5392,7 +5392,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5392
5392
|
__setModuleDefault(result, mod);
|
|
5393
5393
|
return result;
|
|
5394
5394
|
};
|
|
5395
|
-
|
|
5395
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
5396
5396
|
exports2.PathScurry = exports2.Path = exports2.PathScurryDarwin = exports2.PathScurryPosix = exports2.PathScurryWin32 = exports2.PathScurryBase = exports2.PathPosix = exports2.PathWin32 = exports2.PathBase = exports2.ChildrenCache = exports2.ResolveCache = void 0;
|
|
5397
5397
|
var lru_cache_1 = require_commonjs();
|
|
5398
5398
|
var node_path_1 = require("node:path");
|
|
@@ -5683,7 +5683,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5683
5683
|
return this;
|
|
5684
5684
|
}
|
|
5685
5685
|
const rootPath = this.getRootString(path);
|
|
5686
|
-
const dir = path
|
|
5686
|
+
const dir = _p_StringPrototypeSubstring(path, rootPath.length);
|
|
5687
5687
|
const dirParts = dir.split(this.splitSep);
|
|
5688
5688
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
5689
5689
|
return result;
|
|
@@ -5708,7 +5708,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5708
5708
|
if (cached) {
|
|
5709
5709
|
return cached;
|
|
5710
5710
|
}
|
|
5711
|
-
const children =
|
|
5711
|
+
const children = _p_ObjectAssign([], { provisional: 0 });
|
|
5712
5712
|
this.#children.set(this, children);
|
|
5713
5713
|
this.#type &= ~READDIR_CALLED;
|
|
5714
5714
|
return children;
|
|
@@ -6111,7 +6111,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6111
6111
|
if (ifmt !== IFDIR && ifmt !== IFLNK && ifmt !== UNKNOWN) {
|
|
6112
6112
|
child.#type |= ENOTDIR;
|
|
6113
6113
|
}
|
|
6114
|
-
c
|
|
6114
|
+
_p_ArrayPrototypeUnshift(c, child);
|
|
6115
6115
|
c.provisional++;
|
|
6116
6116
|
return child;
|
|
6117
6117
|
}
|
|
@@ -6135,7 +6135,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6135
6135
|
c.pop();
|
|
6136
6136
|
else
|
|
6137
6137
|
c.splice(index, 1);
|
|
6138
|
-
c
|
|
6138
|
+
_p_ArrayPrototypeUnshift(c, p);
|
|
6139
6139
|
}
|
|
6140
6140
|
c.provisional++;
|
|
6141
6141
|
return p;
|
|
@@ -6289,7 +6289,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6289
6289
|
} else {
|
|
6290
6290
|
let resolve = /* @__PURE__ */ __name(() => {
|
|
6291
6291
|
}, "resolve");
|
|
6292
|
-
this.#asyncReaddirInFlight = new
|
|
6292
|
+
this.#asyncReaddirInFlight = new _p_PromiseCtor((res) => resolve = res);
|
|
6293
6293
|
try {
|
|
6294
6294
|
for (const e of await this.#fs.promises.readdir(fullpath, {
|
|
6295
6295
|
withFileTypes: true
|
|
@@ -6390,7 +6390,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6390
6390
|
return;
|
|
6391
6391
|
oldCwd.isCWD = false;
|
|
6392
6392
|
this.isCWD = true;
|
|
6393
|
-
const changed = /* @__PURE__ */ new
|
|
6393
|
+
const changed = /* @__PURE__ */ new _p_SetCtor([]);
|
|
6394
6394
|
let rp = [];
|
|
6395
6395
|
let p = this;
|
|
6396
6396
|
while (p && p.parent) {
|
|
@@ -6450,7 +6450,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6450
6450
|
if (rootPath === this.root.name) {
|
|
6451
6451
|
return this.root;
|
|
6452
6452
|
}
|
|
6453
|
-
for (const [compare, root] of
|
|
6453
|
+
for (const [compare, root] of _p_ObjectEntries(this.roots)) {
|
|
6454
6454
|
if (this.sameRoot(rootPath, compare)) {
|
|
6455
6455
|
return this.roots[rootPath] = root;
|
|
6456
6456
|
}
|
|
@@ -6491,7 +6491,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6491
6491
|
* @internal
|
|
6492
6492
|
*/
|
|
6493
6493
|
getRootString(path) {
|
|
6494
|
-
return path
|
|
6494
|
+
return _p_StringPrototypeStartsWith(path, "/") ? "/" : "";
|
|
6495
6495
|
}
|
|
6496
6496
|
/**
|
|
6497
6497
|
* @internal
|
|
@@ -6546,21 +6546,21 @@ var require_commonjs6 = __commonJS({
|
|
|
6546
6546
|
*/
|
|
6547
6547
|
constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
6548
6548
|
this.#fs = fsFromOption(fs);
|
|
6549
|
-
if (cwd instanceof URL || cwd
|
|
6549
|
+
if (cwd instanceof URL || _p_StringPrototypeStartsWith(cwd, "file://")) {
|
|
6550
6550
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
|
6551
6551
|
}
|
|
6552
6552
|
const cwdPath = pathImpl.resolve(cwd);
|
|
6553
|
-
this.roots = /* @__PURE__ */
|
|
6553
|
+
this.roots = /* @__PURE__ */ _p_ObjectCreate(null);
|
|
6554
6554
|
this.rootPath = this.parseRootPath(cwdPath);
|
|
6555
6555
|
this.#resolveCache = new ResolveCache();
|
|
6556
6556
|
this.#resolvePosixCache = new ResolveCache();
|
|
6557
6557
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
6558
|
-
const split = cwdPath
|
|
6558
|
+
const split = _p_StringPrototypeSubstring(cwdPath, this.rootPath.length).split(sep);
|
|
6559
6559
|
if (split.length === 1 && !split[0]) {
|
|
6560
6560
|
split.pop();
|
|
6561
6561
|
}
|
|
6562
6562
|
if (nocase === void 0) {
|
|
6563
|
-
throw new
|
|
6563
|
+
throw new _p_TypeErrorCtor("must provide nocase setting to PathScurryBase ctor");
|
|
6564
6564
|
}
|
|
6565
6565
|
this.nocase = nocase;
|
|
6566
6566
|
this.root = this.newRoot(this.#fs);
|
|
@@ -6819,7 +6819,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6819
6819
|
if (!filter || filter(entry)) {
|
|
6820
6820
|
results.push(withFileTypes ? entry : entry.fullpath());
|
|
6821
6821
|
}
|
|
6822
|
-
const dirs = /* @__PURE__ */ new
|
|
6822
|
+
const dirs = /* @__PURE__ */ new _p_SetCtor();
|
|
6823
6823
|
const walk = /* @__PURE__ */ __name((dir, cb) => {
|
|
6824
6824
|
dirs.add(dir);
|
|
6825
6825
|
dir.readdirCB((er, entries) => {
|
|
@@ -6851,7 +6851,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6851
6851
|
}, true);
|
|
6852
6852
|
}, "walk");
|
|
6853
6853
|
const start = entry;
|
|
6854
|
-
return new
|
|
6854
|
+
return new _p_PromiseCtor((res, rej) => {
|
|
6855
6855
|
walk(start, (er) => {
|
|
6856
6856
|
if (er)
|
|
6857
6857
|
return rej(er);
|
|
@@ -6871,7 +6871,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6871
6871
|
if (!filter || filter(entry)) {
|
|
6872
6872
|
results.push(withFileTypes ? entry : entry.fullpath());
|
|
6873
6873
|
}
|
|
6874
|
-
const dirs = /* @__PURE__ */ new
|
|
6874
|
+
const dirs = /* @__PURE__ */ new _p_SetCtor([entry]);
|
|
6875
6875
|
for (const dir of dirs) {
|
|
6876
6876
|
const entries = dir.readdirSync();
|
|
6877
6877
|
for (const e of entries) {
|
|
@@ -6932,7 +6932,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6932
6932
|
if (!filter || filter(entry)) {
|
|
6933
6933
|
yield withFileTypes ? entry : entry.fullpath();
|
|
6934
6934
|
}
|
|
6935
|
-
const dirs = /* @__PURE__ */ new
|
|
6935
|
+
const dirs = /* @__PURE__ */ new _p_SetCtor([entry]);
|
|
6936
6936
|
for (const dir of dirs) {
|
|
6937
6937
|
const entries = dir.readdirSync();
|
|
6938
6938
|
for (const e of entries) {
|
|
@@ -6964,7 +6964,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6964
6964
|
if (!filter || filter(entry)) {
|
|
6965
6965
|
results.write(withFileTypes ? entry : entry.fullpath());
|
|
6966
6966
|
}
|
|
6967
|
-
const dirs = /* @__PURE__ */ new
|
|
6967
|
+
const dirs = /* @__PURE__ */ new _p_SetCtor();
|
|
6968
6968
|
const queue = [entry];
|
|
6969
6969
|
let processing = 0;
|
|
6970
6970
|
const process2 = /* @__PURE__ */ __name(() => {
|
|
@@ -6989,7 +6989,7 @@ var require_commonjs6 = __commonJS({
|
|
|
6989
6989
|
}
|
|
6990
6990
|
}
|
|
6991
6991
|
if (promises.length) {
|
|
6992
|
-
|
|
6992
|
+
_p_PromiseAll(promises).then(() => onReaddir(null, entries, true));
|
|
6993
6993
|
return;
|
|
6994
6994
|
}
|
|
6995
6995
|
}
|
|
@@ -7030,7 +7030,7 @@ var require_commonjs6 = __commonJS({
|
|
|
7030
7030
|
}
|
|
7031
7031
|
const { withFileTypes = true, follow = false, filter, walkFilter } = opts;
|
|
7032
7032
|
const results = new minipass_1.Minipass({ objectMode: true });
|
|
7033
|
-
const dirs = /* @__PURE__ */ new
|
|
7033
|
+
const dirs = /* @__PURE__ */ new _p_SetCtor();
|
|
7034
7034
|
if (!filter || filter(entry)) {
|
|
7035
7035
|
results.write(withFileTypes ? entry : entry.fullpath());
|
|
7036
7036
|
}
|
|
@@ -7114,7 +7114,7 @@ var require_commonjs6 = __commonJS({
|
|
|
7114
7114
|
* Return true if the provided path string is an absolute path
|
|
7115
7115
|
*/
|
|
7116
7116
|
isAbsolute(p) {
|
|
7117
|
-
return p
|
|
7117
|
+
return _p_StringPrototypeStartsWith(p, "/") || _p_StringPrototypeStartsWith(p, "\\") || /^[a-z]:(\/|\\)/i.test(p);
|
|
7118
7118
|
}
|
|
7119
7119
|
};
|
|
7120
7120
|
exports2.PathScurryWin32 = PathScurryWin32;
|
|
@@ -7147,7 +7147,7 @@ var require_commonjs6 = __commonJS({
|
|
|
7147
7147
|
* Return true if the provided path string is an absolute path
|
|
7148
7148
|
*/
|
|
7149
7149
|
isAbsolute(p) {
|
|
7150
|
-
return p
|
|
7150
|
+
return _p_StringPrototypeStartsWith(p, "/");
|
|
7151
7151
|
}
|
|
7152
7152
|
};
|
|
7153
7153
|
exports2.PathScurryPosix = PathScurryPosix;
|
|
@@ -7170,7 +7170,7 @@ var require_commonjs6 = __commonJS({
|
|
|
7170
7170
|
var require_pattern = __commonJS({
|
|
7171
7171
|
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/pattern.js"(exports2) {
|
|
7172
7172
|
"use strict";
|
|
7173
|
-
|
|
7173
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
7174
7174
|
exports2.Pattern = void 0;
|
|
7175
7175
|
var minimatch_1 = require_commonjs4();
|
|
7176
7176
|
var isPatternList = /* @__PURE__ */ __name((pl) => pl.length >= 1, "isPatternList");
|
|
@@ -7192,17 +7192,17 @@ var require_pattern = __commonJS({
|
|
|
7192
7192
|
#followGlobstar = true;
|
|
7193
7193
|
constructor(patternList, globList, index, platform) {
|
|
7194
7194
|
if (!isPatternList(patternList)) {
|
|
7195
|
-
throw new
|
|
7195
|
+
throw new _p_TypeErrorCtor("empty pattern list");
|
|
7196
7196
|
}
|
|
7197
7197
|
if (!isGlobList(globList)) {
|
|
7198
|
-
throw new
|
|
7198
|
+
throw new _p_TypeErrorCtor("empty glob list");
|
|
7199
7199
|
}
|
|
7200
7200
|
if (globList.length !== patternList.length) {
|
|
7201
|
-
throw new
|
|
7201
|
+
throw new _p_TypeErrorCtor("mismatched pattern list and glob list lengths");
|
|
7202
7202
|
}
|
|
7203
7203
|
this.length = patternList.length;
|
|
7204
7204
|
if (index < 0 || index >= this.length) {
|
|
7205
|
-
throw new
|
|
7205
|
+
throw new _p_TypeErrorCtor("index out of range");
|
|
7206
7206
|
}
|
|
7207
7207
|
this.#patternList = patternList;
|
|
7208
7208
|
this.#globList = globList;
|
|
@@ -7347,7 +7347,7 @@ var require_pattern = __commonJS({
|
|
|
7347
7347
|
var require_ignore = __commonJS({
|
|
7348
7348
|
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/ignore.js"(exports2) {
|
|
7349
7349
|
"use strict";
|
|
7350
|
-
|
|
7350
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
7351
7351
|
exports2.Ignore = void 0;
|
|
7352
7352
|
var minimatch_1 = require_commonjs4();
|
|
7353
7353
|
var pattern_js_1 = require_pattern();
|
|
@@ -7388,7 +7388,7 @@ var require_ignore = __commonJS({
|
|
|
7388
7388
|
const parsed = mm.set[i];
|
|
7389
7389
|
const globParts = mm.globParts[i];
|
|
7390
7390
|
if (!parsed || !globParts) {
|
|
7391
|
-
throw new
|
|
7391
|
+
throw new _p_ErrorCtor("invalid pattern object");
|
|
7392
7392
|
}
|
|
7393
7393
|
while (parsed[0] === "." && globParts[0] === ".") {
|
|
7394
7394
|
parsed.shift();
|
|
@@ -7455,11 +7455,11 @@ var require_processor = __commonJS({
|
|
|
7455
7455
|
__name(this, "HasWalkedCache");
|
|
7456
7456
|
}
|
|
7457
7457
|
store;
|
|
7458
|
-
constructor(store = /* @__PURE__ */ new
|
|
7458
|
+
constructor(store = /* @__PURE__ */ new _p_MapCtor()) {
|
|
7459
7459
|
this.store = store;
|
|
7460
7460
|
}
|
|
7461
7461
|
copy() {
|
|
7462
|
-
return new _HasWalkedCache(new
|
|
7462
|
+
return new _HasWalkedCache(new _p_MapCtor(this.store));
|
|
7463
7463
|
}
|
|
7464
7464
|
hasWalked(target, pattern) {
|
|
7465
7465
|
return this.store.get(target.fullpath())?.has(pattern.globString());
|
|
@@ -7478,7 +7478,7 @@ var require_processor = __commonJS({
|
|
|
7478
7478
|
static {
|
|
7479
7479
|
__name(this, "MatchRecord");
|
|
7480
7480
|
}
|
|
7481
|
-
store = /* @__PURE__ */ new
|
|
7481
|
+
store = /* @__PURE__ */ new _p_MapCtor();
|
|
7482
7482
|
add(target, absolute, ifDir) {
|
|
7483
7483
|
const n = (absolute ? 2 : 0) | (ifDir ? 1 : 0);
|
|
7484
7484
|
const current = this.store.get(target);
|
|
@@ -7498,7 +7498,7 @@ var require_processor = __commonJS({
|
|
|
7498
7498
|
static {
|
|
7499
7499
|
__name(this, "SubWalks");
|
|
7500
7500
|
}
|
|
7501
|
-
store = /* @__PURE__ */ new
|
|
7501
|
+
store = /* @__PURE__ */ new _p_MapCtor();
|
|
7502
7502
|
add(target, pattern) {
|
|
7503
7503
|
if (!target.canReaddir()) {
|
|
7504
7504
|
return;
|
|
@@ -7514,7 +7514,7 @@ var require_processor = __commonJS({
|
|
|
7514
7514
|
get(target) {
|
|
7515
7515
|
const subs = this.store.get(target);
|
|
7516
7516
|
if (!subs) {
|
|
7517
|
-
throw new
|
|
7517
|
+
throw new _p_ErrorCtor("attempting to walk unknown path");
|
|
7518
7518
|
}
|
|
7519
7519
|
return subs;
|
|
7520
7520
|
}
|
|
@@ -7697,7 +7697,7 @@ var require_walker = __commonJS({
|
|
|
7697
7697
|
var minipass_1 = require_commonjs5();
|
|
7698
7698
|
var ignore_js_1 = require_ignore();
|
|
7699
7699
|
var processor_js_1 = require_processor();
|
|
7700
|
-
var makeIgnore = /* @__PURE__ */ __name((ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) :
|
|
7700
|
+
var makeIgnore = /* @__PURE__ */ __name((ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : _p_ArrayIsArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore, "makeIgnore");
|
|
7701
7701
|
var GlobUtil = class {
|
|
7702
7702
|
static {
|
|
7703
7703
|
__name(this, "GlobUtil");
|
|
@@ -7705,7 +7705,7 @@ var require_walker = __commonJS({
|
|
|
7705
7705
|
path;
|
|
7706
7706
|
patterns;
|
|
7707
7707
|
opts;
|
|
7708
|
-
seen = /* @__PURE__ */ new
|
|
7708
|
+
seen = /* @__PURE__ */ new _p_SetCtor();
|
|
7709
7709
|
paused = false;
|
|
7710
7710
|
aborted = false;
|
|
7711
7711
|
#onResume = [];
|
|
@@ -7724,7 +7724,7 @@ var require_walker = __commonJS({
|
|
|
7724
7724
|
this.#ignore = makeIgnore(opts.ignore ?? [], opts);
|
|
7725
7725
|
if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
|
|
7726
7726
|
const m = "cannot ignore child matches, ignore lacks add() method.";
|
|
7727
|
-
throw new
|
|
7727
|
+
throw new _p_ErrorCtor(m);
|
|
7728
7728
|
}
|
|
7729
7729
|
}
|
|
7730
7730
|
this.maxDepth = opts.maxDepth || Infinity;
|
|
@@ -7957,7 +7957,7 @@ var require_walker = __commonJS({
|
|
|
7957
7957
|
static {
|
|
7958
7958
|
__name(this, "GlobWalker");
|
|
7959
7959
|
}
|
|
7960
|
-
matches = /* @__PURE__ */ new
|
|
7960
|
+
matches = /* @__PURE__ */ new _p_SetCtor();
|
|
7961
7961
|
constructor(patterns, path, opts) {
|
|
7962
7962
|
super(patterns, path, opts);
|
|
7963
7963
|
}
|
|
@@ -7970,7 +7970,7 @@ var require_walker = __commonJS({
|
|
|
7970
7970
|
if (this.path.isUnknown()) {
|
|
7971
7971
|
await this.path.lstat();
|
|
7972
7972
|
}
|
|
7973
|
-
await new
|
|
7973
|
+
await new _p_PromiseCtor((res, rej) => {
|
|
7974
7974
|
this.walkCB(this.path, this.patterns, () => {
|
|
7975
7975
|
if (this.signal?.aborted) {
|
|
7976
7976
|
rej(this.signal.reason);
|
|
@@ -8100,7 +8100,7 @@ var require_glob = __commonJS({
|
|
|
8100
8100
|
*/
|
|
8101
8101
|
constructor(pattern, opts) {
|
|
8102
8102
|
if (!opts)
|
|
8103
|
-
throw new
|
|
8103
|
+
throw new _p_TypeErrorCtor("glob options required");
|
|
8104
8104
|
this.withFileTypes = !!opts.withFileTypes;
|
|
8105
8105
|
this.signal = opts.signal;
|
|
8106
8106
|
this.follow = !!opts.follow;
|
|
@@ -8127,7 +8127,7 @@ var require_glob = __commonJS({
|
|
|
8127
8127
|
this.stat = !!opts.stat;
|
|
8128
8128
|
this.ignore = opts.ignore;
|
|
8129
8129
|
if (this.withFileTypes && this.absolute !== void 0) {
|
|
8130
|
-
throw new
|
|
8130
|
+
throw new _p_ErrorCtor("cannot set absolute and withFileTypes:true");
|
|
8131
8131
|
}
|
|
8132
8132
|
if (typeof pattern === "string") {
|
|
8133
8133
|
pattern = [pattern];
|
|
@@ -8138,7 +8138,7 @@ var require_glob = __commonJS({
|
|
|
8138
8138
|
}
|
|
8139
8139
|
if (this.matchBase) {
|
|
8140
8140
|
if (opts.noglobstar) {
|
|
8141
|
-
throw new
|
|
8141
|
+
throw new _p_TypeErrorCtor("base matching requires globstar");
|
|
8142
8142
|
}
|
|
8143
8143
|
pattern = pattern.map((p) => p.includes("/") ? p : `./**/${p}`);
|
|
8144
8144
|
}
|
|
@@ -8148,7 +8148,7 @@ var require_glob = __commonJS({
|
|
|
8148
8148
|
if (opts.scurry) {
|
|
8149
8149
|
this.scurry = opts.scurry;
|
|
8150
8150
|
if (opts.nocase !== void 0 && opts.nocase !== opts.scurry.nocase) {
|
|
8151
|
-
throw new
|
|
8151
|
+
throw new _p_ErrorCtor("nocase option contradicts provided scurry option");
|
|
8152
8152
|
}
|
|
8153
8153
|
} else {
|
|
8154
8154
|
const Scurry = opts.platform === "win32" ? path_scurry_1.PathScurryWin32 : opts.platform === "darwin" ? path_scurry_1.PathScurryDarwin : opts.platform ? path_scurry_1.PathScurryPosix : path_scurry_1.PathScurry;
|
|
@@ -8184,7 +8184,7 @@ var require_glob = __commonJS({
|
|
|
8184
8184
|
this.patterns = matchSet.map((set, i) => {
|
|
8185
8185
|
const g = globParts[i];
|
|
8186
8186
|
if (!g)
|
|
8187
|
-
throw new
|
|
8187
|
+
throw new _p_ErrorCtor("invalid pattern object");
|
|
8188
8188
|
return new pattern_js_1.Pattern(set, g, 0, this.platform);
|
|
8189
8189
|
});
|
|
8190
8190
|
}
|
|
@@ -8257,11 +8257,11 @@ var require_glob = __commonJS({
|
|
|
8257
8257
|
var require_has_magic = __commonJS({
|
|
8258
8258
|
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/has-magic.js"(exports2) {
|
|
8259
8259
|
"use strict";
|
|
8260
|
-
|
|
8260
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
8261
8261
|
exports2.hasMagic = void 0;
|
|
8262
8262
|
var minimatch_1 = require_commonjs4();
|
|
8263
8263
|
var hasMagic = /* @__PURE__ */ __name((pattern, options = {}) => {
|
|
8264
|
-
if (!
|
|
8264
|
+
if (!_p_ArrayIsArray(pattern)) {
|
|
8265
8265
|
pattern = [pattern];
|
|
8266
8266
|
}
|
|
8267
8267
|
for (const p of pattern) {
|
|
@@ -8289,22 +8289,22 @@ var require_commonjs7 = __commonJS({
|
|
|
8289
8289
|
var glob_js_1 = require_glob();
|
|
8290
8290
|
var has_magic_js_1 = require_has_magic();
|
|
8291
8291
|
var minimatch_2 = require_commonjs4();
|
|
8292
|
-
|
|
8292
|
+
_p_ObjectDefineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8293
8293
|
return minimatch_2.escape;
|
|
8294
8294
|
}, "get") });
|
|
8295
|
-
|
|
8295
|
+
_p_ObjectDefineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8296
8296
|
return minimatch_2.unescape;
|
|
8297
8297
|
}, "get") });
|
|
8298
8298
|
var glob_js_2 = require_glob();
|
|
8299
|
-
|
|
8299
|
+
_p_ObjectDefineProperty(exports2, "Glob", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8300
8300
|
return glob_js_2.Glob;
|
|
8301
8301
|
}, "get") });
|
|
8302
8302
|
var has_magic_js_2 = require_has_magic();
|
|
8303
|
-
|
|
8303
|
+
_p_ObjectDefineProperty(exports2, "hasMagic", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8304
8304
|
return has_magic_js_2.hasMagic;
|
|
8305
8305
|
}, "get") });
|
|
8306
8306
|
var ignore_js_1 = require_ignore();
|
|
8307
|
-
|
|
8307
|
+
_p_ObjectDefineProperty(exports2, "Ignore", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8308
8308
|
return ignore_js_1.Ignore;
|
|
8309
8309
|
}, "get") });
|
|
8310
8310
|
function globStreamSync(pattern, options = {}) {
|
|
@@ -8332,16 +8332,16 @@ var require_commonjs7 = __commonJS({
|
|
|
8332
8332
|
}
|
|
8333
8333
|
__name(globIterate, "globIterate");
|
|
8334
8334
|
exports2.streamSync = globStreamSync;
|
|
8335
|
-
exports2.stream =
|
|
8335
|
+
exports2.stream = _p_ObjectAssign(globStream, { sync: globStreamSync });
|
|
8336
8336
|
exports2.iterateSync = globIterateSync;
|
|
8337
|
-
exports2.iterate =
|
|
8337
|
+
exports2.iterate = _p_ObjectAssign(globIterate, {
|
|
8338
8338
|
sync: globIterateSync
|
|
8339
8339
|
});
|
|
8340
|
-
exports2.sync =
|
|
8340
|
+
exports2.sync = _p_ObjectAssign(globSync, {
|
|
8341
8341
|
stream: globStreamSync,
|
|
8342
8342
|
iterate: globIterateSync
|
|
8343
8343
|
});
|
|
8344
|
-
exports2.glob =
|
|
8344
|
+
exports2.glob = _p_ObjectAssign(glob_, {
|
|
8345
8345
|
glob: glob_,
|
|
8346
8346
|
globSync,
|
|
8347
8347
|
sync: exports2.sync,
|
|
@@ -9215,7 +9215,7 @@ var require_scan = __commonJS({
|
|
|
9215
9215
|
}
|
|
9216
9216
|
}
|
|
9217
9217
|
if (string === "+" && index > 1 && source[index - 2] === " ") {
|
|
9218
|
-
throw new
|
|
9218
|
+
throw new _p_ErrorCtor("Space before `+`");
|
|
9219
9219
|
}
|
|
9220
9220
|
return string && {
|
|
9221
9221
|
type: "OPERATOR",
|
|
@@ -9230,7 +9230,7 @@ var require_scan = __commonJS({
|
|
|
9230
9230
|
function expectIdstring() {
|
|
9231
9231
|
var string = idstring();
|
|
9232
9232
|
if (!string) {
|
|
9233
|
-
throw new
|
|
9233
|
+
throw new _p_ErrorCtor("Expected idstring at offset " + index);
|
|
9234
9234
|
}
|
|
9235
9235
|
return string;
|
|
9236
9236
|
}
|
|
@@ -9278,7 +9278,7 @@ var require_scan = __commonJS({
|
|
|
9278
9278
|
}
|
|
9279
9279
|
var token = parseToken();
|
|
9280
9280
|
if (!token) {
|
|
9281
|
-
throw new
|
|
9281
|
+
throw new _p_ErrorCtor("Unexpected `" + source[index] + "` at offset " + index);
|
|
9282
9282
|
}
|
|
9283
9283
|
tokens.push(token);
|
|
9284
9284
|
}
|
|
@@ -9303,7 +9303,7 @@ var require_parse2 = __commonJS({
|
|
|
9303
9303
|
__name(token, "token");
|
|
9304
9304
|
function next() {
|
|
9305
9305
|
if (!hasMore()) {
|
|
9306
|
-
throw new
|
|
9306
|
+
throw new _p_ErrorCtor();
|
|
9307
9307
|
}
|
|
9308
9308
|
index++;
|
|
9309
9309
|
}
|
|
@@ -9323,7 +9323,7 @@ var require_parse2 = __commonJS({
|
|
|
9323
9323
|
next();
|
|
9324
9324
|
return t.string;
|
|
9325
9325
|
}
|
|
9326
|
-
throw new
|
|
9326
|
+
throw new _p_ErrorCtor("Expected exception after `WITH`");
|
|
9327
9327
|
}
|
|
9328
9328
|
}
|
|
9329
9329
|
__name(parseWith, "parseWith");
|
|
@@ -9335,7 +9335,7 @@ var require_parse2 = __commonJS({
|
|
|
9335
9335
|
next();
|
|
9336
9336
|
string += "DocumentRef-" + t.string + ":";
|
|
9337
9337
|
if (!parseOperator(":")) {
|
|
9338
|
-
throw new
|
|
9338
|
+
throw new _p_ErrorCtor("Expected `:` after `DocumentRef-...`");
|
|
9339
9339
|
}
|
|
9340
9340
|
}
|
|
9341
9341
|
t = token();
|
|
@@ -9370,7 +9370,7 @@ var require_parse2 = __commonJS({
|
|
|
9370
9370
|
}
|
|
9371
9371
|
var expr = parseExpression();
|
|
9372
9372
|
if (!parseOperator(")")) {
|
|
9373
|
-
throw new
|
|
9373
|
+
throw new _p_ErrorCtor("Expected `)`");
|
|
9374
9374
|
}
|
|
9375
9375
|
return expr;
|
|
9376
9376
|
}
|
|
@@ -9390,7 +9390,7 @@ var require_parse2 = __commonJS({
|
|
|
9390
9390
|
}
|
|
9391
9391
|
var right = parseBinaryOp();
|
|
9392
9392
|
if (!right) {
|
|
9393
|
-
throw new
|
|
9393
|
+
throw new _p_ErrorCtor("Expected expression");
|
|
9394
9394
|
}
|
|
9395
9395
|
return {
|
|
9396
9396
|
left,
|
|
@@ -9404,7 +9404,7 @@ var require_parse2 = __commonJS({
|
|
|
9404
9404
|
var parseExpression = makeBinaryOpParser("OR", parseAnd);
|
|
9405
9405
|
var node = parseExpression();
|
|
9406
9406
|
if (!node || hasMore()) {
|
|
9407
|
-
throw new
|
|
9407
|
+
throw new _p_ErrorCtor("Syntax error");
|
|
9408
9408
|
}
|
|
9409
9409
|
return node;
|
|
9410
9410
|
};
|
|
@@ -9605,7 +9605,7 @@ var require_spdx_correct = __commonJS({
|
|
|
9605
9605
|
objectMap[key].push(item[0]);
|
|
9606
9606
|
return objectMap;
|
|
9607
9607
|
}, {});
|
|
9608
|
-
var licensesWithOneVersion =
|
|
9608
|
+
var licensesWithOneVersion = _p_ObjectKeys(licensesWithVersions).map(/* @__PURE__ */ __name(function makeEntries(key) {
|
|
9609
9609
|
return [key, licensesWithVersions[key]];
|
|
9610
9610
|
}, "makeEntries")).filter(/* @__PURE__ */ __name(function identifySoleVersions(item) {
|
|
9611
9611
|
return (
|
|
@@ -9918,7 +9918,7 @@ var require_normalize_data = __commonJS({
|
|
|
9918
9918
|
delete data.modules;
|
|
9919
9919
|
}
|
|
9920
9920
|
const files = data.files;
|
|
9921
|
-
if (files && !
|
|
9921
|
+
if (files && !_p_ArrayIsArray(files)) {
|
|
9922
9922
|
changes?.push(`Invalid 'files' member`);
|
|
9923
9923
|
delete data.files;
|
|
9924
9924
|
} else if (data.files) {
|
|
@@ -9981,7 +9981,7 @@ var require_normalize_data = __commonJS({
|
|
|
9981
9981
|
if (typeof data.keywords === "string") {
|
|
9982
9982
|
data.keywords = data.keywords.split(/,\s+/);
|
|
9983
9983
|
}
|
|
9984
|
-
if (data.keywords && !
|
|
9984
|
+
if (data.keywords && !_p_ArrayIsArray(data.keywords)) {
|
|
9985
9985
|
delete data.keywords;
|
|
9986
9986
|
changes?.push(`keywords should be an array of strings`);
|
|
9987
9987
|
} else if (data.keywords) {
|
|
@@ -10000,7 +10000,7 @@ var require_normalize_data = __commonJS({
|
|
|
10000
10000
|
data[bd] = data[bdd];
|
|
10001
10001
|
delete data[bdd];
|
|
10002
10002
|
}
|
|
10003
|
-
if (data[bd] && !
|
|
10003
|
+
if (data[bd] && !_p_ArrayIsArray(data[bd])) {
|
|
10004
10004
|
changes?.push(`Invalid 'bundleDependencies' list. Must be array of package names`);
|
|
10005
10005
|
delete data[bd];
|
|
10006
10006
|
} else if (data[bd]) {
|
|
@@ -10052,7 +10052,7 @@ var require_normalize_data = __commonJS({
|
|
|
10052
10052
|
data.author = stringifyPerson(data.author);
|
|
10053
10053
|
}
|
|
10054
10054
|
["maintainers", "contributors"].forEach(function(set) {
|
|
10055
|
-
if (!
|
|
10055
|
+
if (!_p_ArrayIsArray(data[set])) {
|
|
10056
10056
|
return;
|
|
10057
10057
|
}
|
|
10058
10058
|
data[set] = data[set].map(stringifyPerson);
|
|
@@ -10106,9 +10106,9 @@ var require_posix = __commonJS({
|
|
|
10106
10106
|
const myGroups = options.groups ?? process.getgroups?.() ?? [];
|
|
10107
10107
|
const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
|
|
10108
10108
|
if (myUid === void 0 || myGid === void 0) {
|
|
10109
|
-
throw new
|
|
10109
|
+
throw new _p_ErrorCtor("cannot get uid or gid");
|
|
10110
10110
|
}
|
|
10111
|
-
const groups = /* @__PURE__ */ new
|
|
10111
|
+
const groups = /* @__PURE__ */ new _p_SetCtor([myGid, ...myGroups]);
|
|
10112
10112
|
const mod = stat.mode;
|
|
10113
10113
|
const uid = stat.uid;
|
|
10114
10114
|
const gid = stat.gid;
|
|
@@ -10161,7 +10161,7 @@ var require_win32 = __commonJS({
|
|
|
10161
10161
|
}
|
|
10162
10162
|
for (let i = 0; i < peSplit.length; i++) {
|
|
10163
10163
|
const p = peSplit[i].toLowerCase();
|
|
10164
|
-
const ext =
|
|
10164
|
+
const ext = _p_StringPrototypeSubstring(path, path.length - p.length).toLowerCase();
|
|
10165
10165
|
if (p && ext === p) {
|
|
10166
10166
|
return true;
|
|
10167
10167
|
}
|
|
@@ -10176,7 +10176,7 @@ var require_win32 = __commonJS({
|
|
|
10176
10176
|
var require_options = __commonJS({
|
|
10177
10177
|
"node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/options.js"(exports2) {
|
|
10178
10178
|
"use strict";
|
|
10179
|
-
|
|
10179
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
10180
10180
|
}
|
|
10181
10181
|
});
|
|
10182
10182
|
|
|
@@ -10186,19 +10186,19 @@ var require_cjs = __commonJS({
|
|
|
10186
10186
|
"use strict";
|
|
10187
10187
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
10188
10188
|
if (k2 === void 0) k2 = k;
|
|
10189
|
-
var desc =
|
|
10189
|
+
var desc = _p_ObjectGetOwnPropertyDescriptor(m, k);
|
|
10190
10190
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10191
10191
|
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
10192
10192
|
return m[k];
|
|
10193
10193
|
}, "get") };
|
|
10194
10194
|
}
|
|
10195
|
-
|
|
10195
|
+
_p_ObjectDefineProperty(o, k2, desc);
|
|
10196
10196
|
}) : (function(o, m, k, k2) {
|
|
10197
10197
|
if (k2 === void 0) k2 = k;
|
|
10198
10198
|
o[k2] = m[k];
|
|
10199
10199
|
}));
|
|
10200
10200
|
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
10201
|
-
|
|
10201
|
+
_p_ObjectDefineProperty(o, "default", { enumerable: true, value: v });
|
|
10202
10202
|
}) : function(o, v) {
|
|
10203
10203
|
o["default"] = v;
|
|
10204
10204
|
});
|
|
@@ -10214,7 +10214,7 @@ var require_cjs = __commonJS({
|
|
|
10214
10214
|
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
10215
10215
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
|
|
10216
10216
|
};
|
|
10217
|
-
|
|
10217
|
+
_p_ObjectDefineProperty(exports2, "__esModule", { value: true });
|
|
10218
10218
|
exports2.sync = exports2.isexe = exports2.posix = exports2.win32 = void 0;
|
|
10219
10219
|
var posix = __importStar(require_posix());
|
|
10220
10220
|
exports2.posix = posix;
|
|
@@ -10234,9 +10234,9 @@ var require_lib4 = __commonJS({
|
|
|
10234
10234
|
var { isexe, sync: isexeSync } = require_cjs();
|
|
10235
10235
|
var { join, delimiter, sep, posix } = require("path");
|
|
10236
10236
|
var isWindows = process.platform === "win32";
|
|
10237
|
-
var rSlash = new
|
|
10238
|
-
var rRel = new
|
|
10239
|
-
var getNotFoundError = /* @__PURE__ */ __name((cmd) =>
|
|
10237
|
+
var rSlash = new _p_RegExpCtor(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1"));
|
|
10238
|
+
var rRel = new _p_RegExpCtor(`^\\.${rSlash.source}`);
|
|
10239
|
+
var getNotFoundError = /* @__PURE__ */ __name((cmd) => _p_ObjectAssign(new _p_ErrorCtor(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
|
|
10240
10240
|
var getPathInfo = /* @__PURE__ */ __name((cmd, {
|
|
10241
10241
|
path: optPath = process.env.PATH,
|
|
10242
10242
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
@@ -10252,7 +10252,7 @@ var require_lib4 = __commonJS({
|
|
|
10252
10252
|
const pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter);
|
|
10253
10253
|
const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
|
|
10254
10254
|
if (cmd.includes(".") && pathExt[0] !== "") {
|
|
10255
|
-
pathExt
|
|
10255
|
+
_p_ArrayPrototypeUnshift(pathExt, "");
|
|
10256
10256
|
}
|
|
10257
10257
|
return { pathEnv, pathExt, pathExtExe };
|
|
10258
10258
|
}
|
|
@@ -10385,11 +10385,11 @@ var require_lib5 = __commonJS({
|
|
|
10385
10385
|
return spawnWithShell(cmd, args, opts, extra);
|
|
10386
10386
|
}
|
|
10387
10387
|
let resolve, reject;
|
|
10388
|
-
const promise = new
|
|
10388
|
+
const promise = new _p_PromiseCtor((_resolve, _reject) => {
|
|
10389
10389
|
resolve = _resolve;
|
|
10390
10390
|
reject = _reject;
|
|
10391
10391
|
});
|
|
10392
|
-
const closeError = new
|
|
10392
|
+
const closeError = new _p_ErrorCtor("command failed");
|
|
10393
10393
|
const stdout = [];
|
|
10394
10394
|
const stderr = [];
|
|
10395
10395
|
const getResult = /* @__PURE__ */ __name((result) => ({
|
|
@@ -10401,7 +10401,7 @@ var require_lib5 = __commonJS({
|
|
|
10401
10401
|
}), "getResult");
|
|
10402
10402
|
const rejectWithOpts = /* @__PURE__ */ __name((er, erOpts) => {
|
|
10403
10403
|
const resultError = getResult(erOpts);
|
|
10404
|
-
reject(
|
|
10404
|
+
reject(_p_ObjectAssign(er, resultError));
|
|
10405
10405
|
}, "rejectWithOpts");
|
|
10406
10406
|
const proc = spawn(cmd, args, opts);
|
|
10407
10407
|
promise.stdin = proc.stdin;
|
|
@@ -10438,7 +10438,7 @@ var require_lib5 = __commonJS({
|
|
|
10438
10438
|
let initialCmd = "";
|
|
10439
10439
|
let insideQuotes = false;
|
|
10440
10440
|
for (let i = 0; i < cmd.length; ++i) {
|
|
10441
|
-
const char = cmd
|
|
10441
|
+
const char = _p_StringPrototypeCharAt(cmd, i);
|
|
10442
10442
|
if (char === " " && !insideQuotes) {
|
|
10443
10443
|
break;
|
|
10444
10444
|
}
|
|
@@ -10456,7 +10456,7 @@ var require_lib5 = __commonJS({
|
|
|
10456
10456
|
} catch (err) {
|
|
10457
10457
|
pathToInitial = initialCmd.toLowerCase();
|
|
10458
10458
|
}
|
|
10459
|
-
doubleEscape = pathToInitial
|
|
10459
|
+
doubleEscape = _p_StringPrototypeEndsWith(pathToInitial, ".cmd") || _p_StringPrototypeEndsWith(pathToInitial, ".bat");
|
|
10460
10460
|
for (const arg of args) {
|
|
10461
10461
|
script += ` ${escape.cmd(arg, doubleEscape)}`;
|
|
10462
10462
|
}
|
|
@@ -10477,8 +10477,8 @@ var require_lib5 = __commonJS({
|
|
|
10477
10477
|
if (platform === "linux" && os.release().toLowerCase().includes("microsoft")) {
|
|
10478
10478
|
platform = "wsl";
|
|
10479
10479
|
if (!process.env.BROWSER) {
|
|
10480
|
-
return
|
|
10481
|
-
new
|
|
10480
|
+
return _p_PromiseReject(
|
|
10481
|
+
new _p_ErrorCtor("Set the BROWSER environment variable to your desired browser.")
|
|
10482
10482
|
);
|
|
10483
10483
|
}
|
|
10484
10484
|
}
|
|
@@ -10502,7 +10502,7 @@ var require_lib5 = __commonJS({
|
|
|
10502
10502
|
if (stdio === "pipe" || stdio === null) {
|
|
10503
10503
|
return true;
|
|
10504
10504
|
}
|
|
10505
|
-
if (
|
|
10505
|
+
if (_p_ArrayIsArray(stdio)) {
|
|
10506
10506
|
return isPipe(stdio[fd], fd);
|
|
10507
10507
|
}
|
|
10508
10508
|
return false;
|
|
@@ -10513,13 +10513,13 @@ var require_lib5 = __commonJS({
|
|
|
10513
10513
|
stderr: null
|
|
10514
10514
|
};
|
|
10515
10515
|
if (isPipe(stdio, 1)) {
|
|
10516
|
-
result.stdout =
|
|
10516
|
+
result.stdout = _p_BufferConcat(stdout);
|
|
10517
10517
|
if (stdioString) {
|
|
10518
10518
|
result.stdout = result.stdout.toString().trim();
|
|
10519
10519
|
}
|
|
10520
10520
|
}
|
|
10521
10521
|
if (isPipe(stdio, 2)) {
|
|
10522
|
-
result.stderr =
|
|
10522
|
+
result.stderr = _p_BufferConcat(stderr);
|
|
10523
10523
|
if (stdioString) {
|
|
10524
10524
|
result.stderr = result.stderr.toString().trim();
|
|
10525
10525
|
}
|
|
@@ -10528,7 +10528,7 @@ var require_lib5 = __commonJS({
|
|
|
10528
10528
|
}, "stdioResult");
|
|
10529
10529
|
var findInObject = /* @__PURE__ */ __name((obj, key) => {
|
|
10530
10530
|
key = key.toLowerCase();
|
|
10531
|
-
for (const objKey of
|
|
10531
|
+
for (const objKey of _p_ObjectKeys(obj).sort()) {
|
|
10532
10532
|
if (objKey.toLowerCase() === key) {
|
|
10533
10533
|
return obj[objKey];
|
|
10534
10534
|
}
|
|
@@ -10544,7 +10544,7 @@ var require_err_code = __commonJS({
|
|
|
10544
10544
|
"use strict";
|
|
10545
10545
|
function assign(obj, props) {
|
|
10546
10546
|
for (const key in props) {
|
|
10547
|
-
|
|
10547
|
+
_p_ObjectDefineProperty(obj, key, {
|
|
10548
10548
|
value: props[key],
|
|
10549
10549
|
enumerable: true,
|
|
10550
10550
|
configurable: true
|
|
@@ -10555,7 +10555,7 @@ var require_err_code = __commonJS({
|
|
|
10555
10555
|
__name(assign, "assign");
|
|
10556
10556
|
function createError(err, code, props) {
|
|
10557
10557
|
if (!err || typeof err === "string") {
|
|
10558
|
-
throw new
|
|
10558
|
+
throw new _p_TypeErrorCtor("Please pass an Error to err-code");
|
|
10559
10559
|
}
|
|
10560
10560
|
if (!props) {
|
|
10561
10561
|
props = {};
|
|
@@ -10574,7 +10574,7 @@ var require_err_code = __commonJS({
|
|
|
10574
10574
|
props.stack = err.stack;
|
|
10575
10575
|
const ErrClass = /* @__PURE__ */ __name(function() {
|
|
10576
10576
|
}, "ErrClass");
|
|
10577
|
-
ErrClass.prototype =
|
|
10577
|
+
ErrClass.prototype = _p_ObjectCreate(_p_ObjectGetPrototypeOf(err));
|
|
10578
10578
|
return assign(new ErrClass(), props);
|
|
10579
10579
|
}
|
|
10580
10580
|
}
|
|
@@ -10625,9 +10625,9 @@ var require_retry_operation = __commonJS({
|
|
|
10625
10625
|
if (!err) {
|
|
10626
10626
|
return false;
|
|
10627
10627
|
}
|
|
10628
|
-
var currentTime = (/* @__PURE__ */ new
|
|
10628
|
+
var currentTime = (/* @__PURE__ */ new _p_DateCtor()).getTime();
|
|
10629
10629
|
if (err && currentTime - this._operationStart >= this._maxRetryTime) {
|
|
10630
|
-
this._errors.unshift(new
|
|
10630
|
+
this._errors.unshift(new _p_ErrorCtor("RetryOperation timeout occurred"));
|
|
10631
10631
|
return false;
|
|
10632
10632
|
}
|
|
10633
10633
|
this._errors.push(err);
|
|
@@ -10675,7 +10675,7 @@ var require_retry_operation = __commonJS({
|
|
|
10675
10675
|
self._operationTimeoutCb();
|
|
10676
10676
|
}, self._operationTimeout);
|
|
10677
10677
|
}
|
|
10678
|
-
this._operationStart = (/* @__PURE__ */ new
|
|
10678
|
+
this._operationStart = (/* @__PURE__ */ new _p_DateCtor()).getTime();
|
|
10679
10679
|
this._fn(this._attempts);
|
|
10680
10680
|
};
|
|
10681
10681
|
RetryOperation.prototype.try = function(fn) {
|
|
@@ -10742,7 +10742,7 @@ var require_retry = __commonJS({
|
|
|
10742
10742
|
opts[key] = options[key];
|
|
10743
10743
|
}
|
|
10744
10744
|
if (opts.minTimeout > opts.maxTimeout) {
|
|
10745
|
-
throw new
|
|
10745
|
+
throw new _p_ErrorCtor("minTimeout is greater than maxTimeout");
|
|
10746
10746
|
}
|
|
10747
10747
|
var timeouts = [];
|
|
10748
10748
|
for (var i = 0; i < opts.retries; i++) {
|
|
@@ -10757,9 +10757,9 @@ var require_retry = __commonJS({
|
|
|
10757
10757
|
return timeouts;
|
|
10758
10758
|
};
|
|
10759
10759
|
exports2.createTimeout = function(attempt, opts) {
|
|
10760
|
-
var random = opts.randomize ?
|
|
10761
|
-
var timeout =
|
|
10762
|
-
timeout =
|
|
10760
|
+
var random = opts.randomize ? _p_MathRandom() + 1 : 1;
|
|
10761
|
+
var timeout = _p_MathRound(random * opts.minTimeout * _p_MathPow(opts.factor, attempt));
|
|
10762
|
+
timeout = _p_MathMin(timeout, opts.maxTimeout);
|
|
10763
10763
|
return timeout;
|
|
10764
10764
|
};
|
|
10765
10765
|
exports2.wrap = function(obj, options, methods) {
|
|
@@ -10828,14 +10828,14 @@ var require_promise_retry = __commonJS({
|
|
|
10828
10828
|
fn = temp;
|
|
10829
10829
|
}
|
|
10830
10830
|
operation = retry.operation(options);
|
|
10831
|
-
return new
|
|
10831
|
+
return new _p_PromiseCtor(function(resolve, reject) {
|
|
10832
10832
|
operation.attempt(function(number) {
|
|
10833
|
-
|
|
10833
|
+
_p_PromiseResolve().then(function() {
|
|
10834
10834
|
return fn(function(err) {
|
|
10835
10835
|
if (isRetryError(err)) {
|
|
10836
10836
|
err = err.retried;
|
|
10837
10837
|
}
|
|
10838
|
-
throw errcode(new
|
|
10838
|
+
throw errcode(new _p_ErrorCtor("Retrying"), "EPROMISERETRY", { retried: err });
|
|
10839
10839
|
}, number);
|
|
10840
10840
|
}).then(resolve, function(err) {
|
|
10841
10841
|
if (isRetryError(err)) {
|
|
@@ -10909,7 +10909,7 @@ var require_make_error = __commonJS({
|
|
|
10909
10909
|
GitPathspecError,
|
|
10910
10910
|
GitUnknownError
|
|
10911
10911
|
} = require_errors();
|
|
10912
|
-
var connectionErrorRe = new
|
|
10912
|
+
var connectionErrorRe = new _p_RegExpCtor([
|
|
10913
10913
|
"remote error: Internal Server Error",
|
|
10914
10914
|
"The remote end hung up unexpectedly",
|
|
10915
10915
|
"Connection timed out",
|
|
@@ -10930,7 +10930,7 @@ var require_make_error = __commonJS({
|
|
|
10930
10930
|
} else {
|
|
10931
10931
|
gitEr = new GitUnknownError(message);
|
|
10932
10932
|
}
|
|
10933
|
-
return
|
|
10933
|
+
return _p_ObjectAssign(gitEr, er);
|
|
10934
10934
|
}
|
|
10935
10935
|
__name(makeError, "makeError");
|
|
10936
10936
|
module2.exports = makeError;
|
|
@@ -10954,18 +10954,18 @@ var require_ini = __commonJS({
|
|
|
10954
10954
|
const eol = opt.platform === "win32" ? "\r\n" : "\n";
|
|
10955
10955
|
const separator = opt.whitespace ? " = " : "=";
|
|
10956
10956
|
const children = [];
|
|
10957
|
-
const keys = opt.sort ?
|
|
10957
|
+
const keys = opt.sort ? _p_ObjectKeys(obj).sort() : _p_ObjectKeys(obj);
|
|
10958
10958
|
let padToChars = 0;
|
|
10959
10959
|
if (opt.align) {
|
|
10960
10960
|
padToChars = safe(
|
|
10961
|
-
keys.filter((k) => obj[k] === null ||
|
|
10961
|
+
keys.filter((k) => obj[k] === null || _p_ArrayIsArray(obj[k]) || typeof obj[k] !== "object").map((k) => _p_ArrayIsArray(obj[k]) ? `${k}[]` : k).concat([""]).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)
|
|
10962
10962
|
).length;
|
|
10963
10963
|
}
|
|
10964
10964
|
let out = "";
|
|
10965
10965
|
const arraySuffix = opt.bracketedArray ? "[]" : "";
|
|
10966
10966
|
for (const k of keys) {
|
|
10967
10967
|
const val = obj[k];
|
|
10968
|
-
if (val &&
|
|
10968
|
+
if (val && _p_ArrayIsArray(val)) {
|
|
10969
10969
|
for (const item of val) {
|
|
10970
10970
|
out += safe(`${k}${arraySuffix}`).padEnd(padToChars, " ") + separator + safe(item) + eol;
|
|
10971
10971
|
}
|
|
@@ -11014,7 +11014,7 @@ var require_ini = __commonJS({
|
|
|
11014
11014
|
__name(splitSections, "splitSections");
|
|
11015
11015
|
var decode = /* @__PURE__ */ __name((str, opt = {}) => {
|
|
11016
11016
|
opt.bracketedArray = opt.bracketedArray !== false;
|
|
11017
|
-
const out = /* @__PURE__ */
|
|
11017
|
+
const out = /* @__PURE__ */ _p_ObjectCreate(null);
|
|
11018
11018
|
let p = out;
|
|
11019
11019
|
let section = null;
|
|
11020
11020
|
const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
|
|
@@ -11031,10 +11031,10 @@ var require_ini = __commonJS({
|
|
|
11031
11031
|
if (match[1] !== void 0) {
|
|
11032
11032
|
section = unsafe(match[1]);
|
|
11033
11033
|
if (section === "__proto__") {
|
|
11034
|
-
p = /* @__PURE__ */
|
|
11034
|
+
p = /* @__PURE__ */ _p_ObjectCreate(null);
|
|
11035
11035
|
continue;
|
|
11036
11036
|
}
|
|
11037
|
-
p = out[section] = out[section] || /* @__PURE__ */
|
|
11037
|
+
p = out[section] = out[section] || /* @__PURE__ */ _p_ObjectCreate(null);
|
|
11038
11038
|
continue;
|
|
11039
11039
|
}
|
|
11040
11040
|
const keyRaw = unsafe(match[2]);
|
|
@@ -11045,28 +11045,28 @@ var require_ini = __commonJS({
|
|
|
11045
11045
|
duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
|
|
11046
11046
|
isArray = duplicates[keyRaw] > 1;
|
|
11047
11047
|
}
|
|
11048
|
-
const key = isArray && keyRaw
|
|
11048
|
+
const key = isArray && _p_StringPrototypeEndsWith(keyRaw, "[]") ? keyRaw.slice(0, -2) : keyRaw;
|
|
11049
11049
|
if (key === "__proto__") {
|
|
11050
11050
|
continue;
|
|
11051
11051
|
}
|
|
11052
11052
|
const valueRaw = match[3] ? unsafe(match[4]) : true;
|
|
11053
|
-
const value = valueRaw === "true" || valueRaw === "false" || valueRaw === "null" ?
|
|
11053
|
+
const value = valueRaw === "true" || valueRaw === "false" || valueRaw === "null" ? _p_JSONParse(valueRaw) : valueRaw;
|
|
11054
11054
|
if (isArray) {
|
|
11055
11055
|
if (!hasOwnProperty.call(p, key)) {
|
|
11056
11056
|
p[key] = [];
|
|
11057
|
-
} else if (!
|
|
11057
|
+
} else if (!_p_ArrayIsArray(p[key])) {
|
|
11058
11058
|
p[key] = [p[key]];
|
|
11059
11059
|
}
|
|
11060
11060
|
}
|
|
11061
|
-
if (
|
|
11061
|
+
if (_p_ArrayIsArray(p[key])) {
|
|
11062
11062
|
p[key].push(value);
|
|
11063
11063
|
} else {
|
|
11064
11064
|
p[key] = value;
|
|
11065
11065
|
}
|
|
11066
11066
|
}
|
|
11067
11067
|
const remove = [];
|
|
11068
|
-
for (const k of
|
|
11069
|
-
if (!hasOwnProperty.call(out, k) || typeof out[k] !== "object" ||
|
|
11068
|
+
for (const k of _p_ObjectKeys(out)) {
|
|
11069
|
+
if (!hasOwnProperty.call(out, k) || typeof out[k] !== "object" || _p_ArrayIsArray(out[k])) {
|
|
11070
11070
|
continue;
|
|
11071
11071
|
}
|
|
11072
11072
|
const parts = splitSections(k, ".");
|
|
@@ -11078,7 +11078,7 @@ var require_ini = __commonJS({
|
|
|
11078
11078
|
continue;
|
|
11079
11079
|
}
|
|
11080
11080
|
if (!hasOwnProperty.call(p, part) || typeof p[part] !== "object") {
|
|
11081
|
-
p[part] = /* @__PURE__ */
|
|
11081
|
+
p[part] = /* @__PURE__ */ _p_ObjectCreate(null);
|
|
11082
11082
|
}
|
|
11083
11083
|
p = p[part];
|
|
11084
11084
|
}
|
|
@@ -11094,29 +11094,29 @@ var require_ini = __commonJS({
|
|
|
11094
11094
|
return out;
|
|
11095
11095
|
}, "decode");
|
|
11096
11096
|
var isQuoted = /* @__PURE__ */ __name((val) => {
|
|
11097
|
-
return val
|
|
11097
|
+
return _p_StringPrototypeStartsWith(val, '"') && _p_StringPrototypeEndsWith(val, '"') || _p_StringPrototypeStartsWith(val, "'") && _p_StringPrototypeEndsWith(val, "'");
|
|
11098
11098
|
}, "isQuoted");
|
|
11099
11099
|
var safe = /* @__PURE__ */ __name((val) => {
|
|
11100
11100
|
if (typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
|
|
11101
|
-
return
|
|
11101
|
+
return _p_JSONStringify(val);
|
|
11102
11102
|
}
|
|
11103
11103
|
return val.split(";").join("\\;").split("#").join("\\#");
|
|
11104
11104
|
}, "safe");
|
|
11105
11105
|
var unsafe = /* @__PURE__ */ __name((val) => {
|
|
11106
11106
|
val = (val || "").trim();
|
|
11107
11107
|
if (isQuoted(val)) {
|
|
11108
|
-
if (val
|
|
11108
|
+
if (_p_StringPrototypeCharAt(val, 0) === "'") {
|
|
11109
11109
|
val = val.slice(1, -1);
|
|
11110
11110
|
}
|
|
11111
11111
|
try {
|
|
11112
|
-
val =
|
|
11112
|
+
val = _p_JSONParse(val);
|
|
11113
11113
|
} catch {
|
|
11114
11114
|
}
|
|
11115
11115
|
} else {
|
|
11116
11116
|
let esc = false;
|
|
11117
11117
|
let unesc = "";
|
|
11118
11118
|
for (let i = 0, l = val.length; i < l; i++) {
|
|
11119
|
-
const c = val
|
|
11119
|
+
const c = _p_StringPrototypeCharAt(val, i);
|
|
11120
11120
|
if (esc) {
|
|
11121
11121
|
if ("\\;#".indexOf(c) !== -1) {
|
|
11122
11122
|
unesc += c;
|
|
@@ -11215,7 +11215,7 @@ var require_which = __commonJS({
|
|
|
11215
11215
|
return opts.git;
|
|
11216
11216
|
}
|
|
11217
11217
|
if (!gitPath || opts.git === false) {
|
|
11218
|
-
return
|
|
11218
|
+
return _p_ObjectAssign(new _p_ErrorCtor("No git binary found in $PATH"), { code: "ENOGIT" });
|
|
11219
11219
|
}
|
|
11220
11220
|
return gitPath;
|
|
11221
11221
|
};
|
|
@@ -11234,7 +11234,7 @@ var require_spawn = __commonJS({
|
|
|
11234
11234
|
const whichGit = require_which();
|
|
11235
11235
|
const gitPath = whichGit(opts);
|
|
11236
11236
|
if (gitPath instanceof Error) {
|
|
11237
|
-
return
|
|
11237
|
+
return _p_PromiseReject(gitPath);
|
|
11238
11238
|
}
|
|
11239
11239
|
const args = opts.allowReplace || gitArgs[0] === "--no-replace-objects" ? gitArgs : ["--no-replace-objects", ...gitArgs];
|
|
11240
11240
|
let retryOpts = opts.retry;
|
|
@@ -11603,7 +11603,7 @@ var require_lrucache = __commonJS({
|
|
|
11603
11603
|
}
|
|
11604
11604
|
constructor() {
|
|
11605
11605
|
this.max = 1e3;
|
|
11606
|
-
this.map = /* @__PURE__ */ new
|
|
11606
|
+
this.map = /* @__PURE__ */ new _p_MapCtor();
|
|
11607
11607
|
}
|
|
11608
11608
|
get(key) {
|
|
11609
11609
|
const value = this.map.get(key);
|
|
@@ -11664,7 +11664,7 @@ var require_range = __commonJS({
|
|
|
11664
11664
|
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
11665
11665
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
11666
11666
|
if (!this.set.length) {
|
|
11667
|
-
throw new
|
|
11667
|
+
throw new _p_TypeErrorCtor(`Invalid SemVer Range: ${this.raw}`);
|
|
11668
11668
|
}
|
|
11669
11669
|
if (this.set.length > 1) {
|
|
11670
11670
|
const first = this.set[0];
|
|
@@ -11731,7 +11731,7 @@ var require_range = __commonJS({
|
|
|
11731
11731
|
});
|
|
11732
11732
|
}
|
|
11733
11733
|
debug("range list", rangeList);
|
|
11734
|
-
const rangeMap = /* @__PURE__ */ new
|
|
11734
|
+
const rangeMap = /* @__PURE__ */ new _p_MapCtor();
|
|
11735
11735
|
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
11736
11736
|
for (const comp of comparators) {
|
|
11737
11737
|
if (isNullSet(comp)) {
|
|
@@ -11748,7 +11748,7 @@ var require_range = __commonJS({
|
|
|
11748
11748
|
}
|
|
11749
11749
|
intersects(range, options) {
|
|
11750
11750
|
if (!(range instanceof _Range)) {
|
|
11751
|
-
throw new
|
|
11751
|
+
throw new _p_TypeErrorCtor("a Range is required");
|
|
11752
11752
|
}
|
|
11753
11753
|
return this.set.some((thisComparators) => {
|
|
11754
11754
|
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
@@ -12050,7 +12050,7 @@ var require_comparator = __commonJS({
|
|
|
12050
12050
|
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
12051
12051
|
const m = comp.match(r);
|
|
12052
12052
|
if (!m) {
|
|
12053
|
-
throw new
|
|
12053
|
+
throw new _p_TypeErrorCtor(`Invalid comparator: ${comp}`);
|
|
12054
12054
|
}
|
|
12055
12055
|
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
12056
12056
|
if (this.operator === "=") {
|
|
@@ -12081,7 +12081,7 @@ var require_comparator = __commonJS({
|
|
|
12081
12081
|
}
|
|
12082
12082
|
intersects(comp, options) {
|
|
12083
12083
|
if (!(comp instanceof _Comparator)) {
|
|
12084
|
-
throw new
|
|
12084
|
+
throw new _p_TypeErrorCtor("a Comparator is required");
|
|
12085
12085
|
}
|
|
12086
12086
|
if (this.operator === "") {
|
|
12087
12087
|
if (this.value === "") {
|
|
@@ -12494,7 +12494,7 @@ var require_subset = __commonJS({
|
|
|
12494
12494
|
dom = minimumVersion;
|
|
12495
12495
|
}
|
|
12496
12496
|
}
|
|
12497
|
-
const eqSet = /* @__PURE__ */ new
|
|
12497
|
+
const eqSet = /* @__PURE__ */ new _p_SetCtor();
|
|
12498
12498
|
let gt, lt;
|
|
12499
12499
|
for (const c of sub) {
|
|
12500
12500
|
if (c.operator === ">" || c.operator === ">=") {
|
|
@@ -12711,7 +12711,7 @@ var require_lines_to_revs = __commonJS({
|
|
|
12711
12711
|
}));
|
|
12712
12712
|
var finish = /* @__PURE__ */ __name((revs) => distTags(shaList(peelTags(revs))), "finish");
|
|
12713
12713
|
var shaList = /* @__PURE__ */ __name((revs) => {
|
|
12714
|
-
|
|
12714
|
+
_p_ObjectKeys(revs.refs).forEach((ref) => {
|
|
12715
12715
|
const doc = revs.refs[ref];
|
|
12716
12716
|
if (!revs.shas[doc.sha]) {
|
|
12717
12717
|
revs.shas[doc.sha] = [ref];
|
|
@@ -12722,7 +12722,7 @@ var require_lines_to_revs = __commonJS({
|
|
|
12722
12722
|
return revs;
|
|
12723
12723
|
}, "shaList");
|
|
12724
12724
|
var peelTags = /* @__PURE__ */ __name((revs) => {
|
|
12725
|
-
|
|
12725
|
+
_p_ObjectKeys(revs.refs).filter((ref) => _p_StringPrototypeEndsWith(ref, "^{}")).forEach((ref) => {
|
|
12726
12726
|
const peeled = revs.refs[ref];
|
|
12727
12727
|
const unpeeled = revs.refs[ref.replace(/\^\{\}$/, "")];
|
|
12728
12728
|
if (unpeeled) {
|
|
@@ -12735,7 +12735,7 @@ var require_lines_to_revs = __commonJS({
|
|
|
12735
12735
|
var distTags = /* @__PURE__ */ __name((revs) => {
|
|
12736
12736
|
const HEAD = revs.refs.HEAD || /* istanbul ignore next */
|
|
12737
12737
|
{};
|
|
12738
|
-
const versions =
|
|
12738
|
+
const versions = _p_ObjectKeys(revs.versions);
|
|
12739
12739
|
versions.forEach((v) => {
|
|
12740
12740
|
const ver = revs.versions[v];
|
|
12741
12741
|
if (revs.refs.latest && ver.sha === revs.refs.latest.sha) {
|
|
@@ -12750,13 +12750,13 @@ var require_lines_to_revs = __commonJS({
|
|
|
12750
12750
|
return revs;
|
|
12751
12751
|
}, "distTags");
|
|
12752
12752
|
var refType = /* @__PURE__ */ __name((ref) => {
|
|
12753
|
-
if (ref
|
|
12753
|
+
if (_p_StringPrototypeStartsWith(ref, "refs/tags/")) {
|
|
12754
12754
|
return "tag";
|
|
12755
12755
|
}
|
|
12756
|
-
if (ref
|
|
12756
|
+
if (_p_StringPrototypeStartsWith(ref, "refs/heads/")) {
|
|
12757
12757
|
return "branch";
|
|
12758
12758
|
}
|
|
12759
|
-
if (ref
|
|
12759
|
+
if (_p_StringPrototypeStartsWith(ref, "refs/pull/")) {
|
|
12760
12760
|
return "pull";
|
|
12761
12761
|
}
|
|
12762
12762
|
if (ref === "HEAD") {
|
|
@@ -12846,7 +12846,7 @@ var require_lib6 = __commonJS({
|
|
|
12846
12846
|
"node_modules/.pnpm/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js"(exports2, module2) {
|
|
12847
12847
|
"use strict";
|
|
12848
12848
|
var { builtinModules: builtins } = require("module");
|
|
12849
|
-
var scopedPackagePattern = new
|
|
12849
|
+
var scopedPackagePattern = new _p_RegExpCtor("^(?:@([^/]+?)[/])?([^/]+?)$");
|
|
12850
12850
|
var exclusionList = [
|
|
12851
12851
|
"node_modules",
|
|
12852
12852
|
"favicon.ico"
|
|
@@ -12869,7 +12869,7 @@ var require_lib6 = __commonJS({
|
|
|
12869
12869
|
if (!name.length) {
|
|
12870
12870
|
errors.push("name length must be greater than zero");
|
|
12871
12871
|
}
|
|
12872
|
-
if (name
|
|
12872
|
+
if (_p_StringPrototypeStartsWith(name, ".")) {
|
|
12873
12873
|
errors.push("name cannot start with a period");
|
|
12874
12874
|
}
|
|
12875
12875
|
if (name.match(/^_/)) {
|
|
@@ -12900,7 +12900,7 @@ var require_lib6 = __commonJS({
|
|
|
12900
12900
|
if (nameMatch) {
|
|
12901
12901
|
var user = nameMatch[1];
|
|
12902
12902
|
var pkg = nameMatch[2];
|
|
12903
|
-
if (pkg
|
|
12903
|
+
if (_p_StringPrototypeStartsWith(pkg, ".")) {
|
|
12904
12904
|
errors.push("name cannot start with a period");
|
|
12905
12905
|
}
|
|
12906
12906
|
if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
|
|
@@ -12969,7 +12969,7 @@ var require_npa = __commonJS({
|
|
|
12969
12969
|
spec = arg;
|
|
12970
12970
|
} else if (isGit.test(arg)) {
|
|
12971
12971
|
spec = `git+ssh://${arg}`;
|
|
12972
|
-
} else if (!namePart
|
|
12972
|
+
} else if (!_p_StringPrototypeStartsWith(namePart, "@") && (hasSlashes.test(namePart) || isFileType.test(namePart))) {
|
|
12973
12973
|
spec = arg;
|
|
12974
12974
|
} else if (nameEndsAt > 0) {
|
|
12975
12975
|
name = namePart;
|
|
@@ -13052,19 +13052,19 @@ var require_npa = __commonJS({
|
|
|
13052
13052
|
}
|
|
13053
13053
|
__name(toPurl, "toPurl");
|
|
13054
13054
|
function invalidPackageName(name, valid, raw) {
|
|
13055
|
-
const err = new
|
|
13055
|
+
const err = new _p_ErrorCtor(`Invalid package name "${name}" of package "${raw}": ${valid.errors.join("; ")}.`);
|
|
13056
13056
|
err.code = "EINVALIDPACKAGENAME";
|
|
13057
13057
|
return err;
|
|
13058
13058
|
}
|
|
13059
13059
|
__name(invalidPackageName, "invalidPackageName");
|
|
13060
13060
|
function invalidTagName(name, raw) {
|
|
13061
|
-
const err = new
|
|
13061
|
+
const err = new _p_ErrorCtor(`Invalid tag name "${name}" of package "${raw}": Tags may not have any characters that encodeURIComponent encodes.`);
|
|
13062
13062
|
err.code = "EINVALIDTAGNAME";
|
|
13063
13063
|
return err;
|
|
13064
13064
|
}
|
|
13065
13065
|
__name(invalidTagName, "invalidTagName");
|
|
13066
13066
|
function invalidPurlType(type, raw) {
|
|
13067
|
-
const err = new
|
|
13067
|
+
const err = new _p_ErrorCtor(`Invalid type "${type}" of package "${raw}": Purl can only be generated for "version" types.`);
|
|
13068
13068
|
err.code = "EINVALIDPURLTYPE";
|
|
13069
13069
|
return err;
|
|
13070
13070
|
}
|
|
@@ -13119,7 +13119,7 @@ var require_npa = __commonJS({
|
|
|
13119
13119
|
return full.length ? full.join("@") : this.raw;
|
|
13120
13120
|
}
|
|
13121
13121
|
toJSON() {
|
|
13122
|
-
const result =
|
|
13122
|
+
const result = _p_ObjectAssign({}, this);
|
|
13123
13123
|
delete result.hosted;
|
|
13124
13124
|
return result;
|
|
13125
13125
|
}
|
|
@@ -13132,10 +13132,10 @@ var require_npa = __commonJS({
|
|
|
13132
13132
|
for (const part of committish.split("::")) {
|
|
13133
13133
|
if (!part.includes(":")) {
|
|
13134
13134
|
if (res.gitRange) {
|
|
13135
|
-
throw new
|
|
13135
|
+
throw new _p_ErrorCtor("cannot override existing semver range with a committish");
|
|
13136
13136
|
}
|
|
13137
13137
|
if (res.gitCommittish) {
|
|
13138
|
-
throw new
|
|
13138
|
+
throw new _p_ErrorCtor("cannot override existing committish with a second committish");
|
|
13139
13139
|
}
|
|
13140
13140
|
res.gitCommittish = part;
|
|
13141
13141
|
continue;
|
|
@@ -13143,17 +13143,17 @@ var require_npa = __commonJS({
|
|
|
13143
13143
|
const [name, value] = part.split(":");
|
|
13144
13144
|
if (name === "semver") {
|
|
13145
13145
|
if (res.gitCommittish) {
|
|
13146
|
-
throw new
|
|
13146
|
+
throw new _p_ErrorCtor("cannot override existing committish with a semver range");
|
|
13147
13147
|
}
|
|
13148
13148
|
if (res.gitRange) {
|
|
13149
|
-
throw new
|
|
13149
|
+
throw new _p_ErrorCtor("cannot override existing semver range with a second semver range");
|
|
13150
13150
|
}
|
|
13151
13151
|
res.gitRange = decodeURIComponent(value);
|
|
13152
13152
|
continue;
|
|
13153
13153
|
}
|
|
13154
13154
|
if (name === "path") {
|
|
13155
13155
|
if (res.gitSubdir) {
|
|
13156
|
-
throw new
|
|
13156
|
+
throw new _p_ErrorCtor("cannot override existing path with a second path");
|
|
13157
13157
|
}
|
|
13158
13158
|
res.gitSubdir = `/${value}`;
|
|
13159
13159
|
continue;
|
|
@@ -13162,7 +13162,7 @@ var require_npa = __commonJS({
|
|
|
13162
13162
|
}
|
|
13163
13163
|
}
|
|
13164
13164
|
__name(setGitAttrs, "setGitAttrs");
|
|
13165
|
-
var encodedPathChars = /* @__PURE__ */ new
|
|
13165
|
+
var encodedPathChars = /* @__PURE__ */ new _p_MapCtor([
|
|
13166
13166
|
["\0", "%00"],
|
|
13167
13167
|
[" ", "%09"],
|
|
13168
13168
|
["\n", "%0A"],
|
|
@@ -13184,7 +13184,7 @@ var require_npa = __commonJS({
|
|
|
13184
13184
|
for (let i = 0; i < str.length; i++) {
|
|
13185
13185
|
result = `${result}${encodedPathChars.get(str[i]) ?? str[i]}`;
|
|
13186
13186
|
}
|
|
13187
|
-
if (result
|
|
13187
|
+
if (_p_StringPrototypeStartsWith(result, "file:")) {
|
|
13188
13188
|
return result;
|
|
13189
13189
|
}
|
|
13190
13190
|
return `file:${result}`;
|
|
@@ -13194,7 +13194,7 @@ var require_npa = __commonJS({
|
|
|
13194
13194
|
res.type = isFileType.test(res.rawSpec) ? "file" : "directory";
|
|
13195
13195
|
res.where = where;
|
|
13196
13196
|
let rawSpec = pathToFileURL(res.rawSpec);
|
|
13197
|
-
if (rawSpec
|
|
13197
|
+
if (_p_StringPrototypeStartsWith(rawSpec, "file:/")) {
|
|
13198
13198
|
if (/^file:\/\/[^/]/.test(rawSpec)) {
|
|
13199
13199
|
rawSpec = `file:/${rawSpec.slice(5)}`;
|
|
13200
13200
|
}
|
|
@@ -13208,8 +13208,8 @@ var require_npa = __commonJS({
|
|
|
13208
13208
|
resolvedUrl = new URL2(rawSpec, `${pathToFileURL(path.resolve(where))}/`);
|
|
13209
13209
|
specUrl = new URL2(rawSpec);
|
|
13210
13210
|
} catch (originalError) {
|
|
13211
|
-
const er = new
|
|
13212
|
-
throw
|
|
13211
|
+
const er = new _p_ErrorCtor("Invalid file: URL, must comply with RFC 8089");
|
|
13212
|
+
throw _p_ObjectAssign(er, {
|
|
13213
13213
|
raw: res.rawSpec,
|
|
13214
13214
|
spec: res,
|
|
13215
13215
|
where,
|
|
@@ -13248,7 +13248,7 @@ var require_npa = __commonJS({
|
|
|
13248
13248
|
}
|
|
13249
13249
|
__name(fromHostedGit, "fromHostedGit");
|
|
13250
13250
|
function unsupportedURLType(protocol, spec) {
|
|
13251
|
-
const err = new
|
|
13251
|
+
const err = new _p_ErrorCtor(`Unsupported URL Type "${protocol}": ${spec}`);
|
|
13252
13252
|
err.code = "EUNSUPPORTEDPROTOCOL";
|
|
13253
13253
|
return err;
|
|
13254
13254
|
}
|
|
@@ -13256,7 +13256,7 @@ var require_npa = __commonJS({
|
|
|
13256
13256
|
function fromURL(res) {
|
|
13257
13257
|
let rawSpec = res.rawSpec;
|
|
13258
13258
|
res.saveSpec = rawSpec;
|
|
13259
|
-
if (rawSpec
|
|
13259
|
+
if (_p_StringPrototypeStartsWith(rawSpec, "git+ssh:")) {
|
|
13260
13260
|
const matched = rawSpec.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);
|
|
13261
13261
|
if (matched && !matched[1].match(isPortNumber)) {
|
|
13262
13262
|
res.type = "git";
|
|
@@ -13264,7 +13264,7 @@ var require_npa = __commonJS({
|
|
|
13264
13264
|
res.fetchSpec = matched[1];
|
|
13265
13265
|
return res;
|
|
13266
13266
|
}
|
|
13267
|
-
} else if (rawSpec
|
|
13267
|
+
} else if (_p_StringPrototypeStartsWith(rawSpec, "git+file://")) {
|
|
13268
13268
|
rawSpec = rawSpec.replace(/\\/g, "/");
|
|
13269
13269
|
}
|
|
13270
13270
|
const parsedUrl = new URL2(rawSpec);
|
|
@@ -13302,13 +13302,13 @@ var require_npa = __commonJS({
|
|
|
13302
13302
|
function fromAlias(res, where) {
|
|
13303
13303
|
const subSpec = npa(res.rawSpec.substr(4), where);
|
|
13304
13304
|
if (subSpec.type === "alias") {
|
|
13305
|
-
throw new
|
|
13305
|
+
throw new _p_ErrorCtor("nested aliases not supported");
|
|
13306
13306
|
}
|
|
13307
13307
|
if (!subSpec.registry) {
|
|
13308
|
-
throw new
|
|
13308
|
+
throw new _p_ErrorCtor("aliases only work for registry deps");
|
|
13309
13309
|
}
|
|
13310
13310
|
if (!subSpec.name) {
|
|
13311
|
-
throw new
|
|
13311
|
+
throw new _p_ErrorCtor("aliases must have a name");
|
|
13312
13312
|
}
|
|
13313
13313
|
res.subSpec = subSpec;
|
|
13314
13314
|
res.registry = true;
|
|
@@ -13386,7 +13386,7 @@ var require_current_env = __commonJS({
|
|
|
13386
13386
|
process2.report.excludeNetwork = originalExclude;
|
|
13387
13387
|
if (report.header?.glibcVersionRuntime) {
|
|
13388
13388
|
family = "glibc";
|
|
13389
|
-
} else if (
|
|
13389
|
+
} else if (_p_ArrayIsArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
|
|
13390
13390
|
family = "musl";
|
|
13391
13391
|
} else {
|
|
13392
13392
|
family = null;
|
|
@@ -13466,53 +13466,53 @@ var require_dev_engines = __commonJS({
|
|
|
13466
13466
|
];
|
|
13467
13467
|
function checkDependency(wanted, current, opts) {
|
|
13468
13468
|
const { engine } = opts;
|
|
13469
|
-
if (typeof wanted !== "object" || wanted === null ||
|
|
13470
|
-
throw new
|
|
13469
|
+
if (typeof wanted !== "object" || wanted === null || _p_ArrayIsArray(wanted)) {
|
|
13470
|
+
throw new _p_ErrorCtor(`Invalid non-object value for "${engine}"`);
|
|
13471
13471
|
}
|
|
13472
|
-
const properties =
|
|
13472
|
+
const properties = _p_ObjectKeys(wanted);
|
|
13473
13473
|
for (const prop of properties) {
|
|
13474
13474
|
if (!recognizedProperties.includes(prop)) {
|
|
13475
|
-
throw new
|
|
13475
|
+
throw new _p_ErrorCtor(`Invalid property "${prop}" for "${engine}"`);
|
|
13476
13476
|
}
|
|
13477
13477
|
}
|
|
13478
13478
|
if (!properties.includes("name")) {
|
|
13479
|
-
throw new
|
|
13479
|
+
throw new _p_ErrorCtor(`Missing "name" property for "${engine}"`);
|
|
13480
13480
|
}
|
|
13481
13481
|
if (typeof wanted.name !== "string") {
|
|
13482
|
-
throw new
|
|
13482
|
+
throw new _p_ErrorCtor(`Invalid non-string value for "name" within "${engine}"`);
|
|
13483
13483
|
}
|
|
13484
13484
|
if (typeof current.name !== "string" || current.name === "") {
|
|
13485
|
-
throw new
|
|
13485
|
+
throw new _p_ErrorCtor(`Unable to determine "name" for "${engine}"`);
|
|
13486
13486
|
}
|
|
13487
13487
|
if (properties.includes("onFail")) {
|
|
13488
13488
|
if (typeof wanted.onFail !== "string") {
|
|
13489
|
-
throw new
|
|
13489
|
+
throw new _p_ErrorCtor(`Invalid non-string value for "onFail" within "${engine}"`);
|
|
13490
13490
|
}
|
|
13491
13491
|
if (!recognizedOnFail.includes(wanted.onFail)) {
|
|
13492
|
-
throw new
|
|
13492
|
+
throw new _p_ErrorCtor(`Invalid onFail value "${wanted.onFail}" for "${engine}"`);
|
|
13493
13493
|
}
|
|
13494
13494
|
}
|
|
13495
13495
|
if (wanted.name !== current.name) {
|
|
13496
|
-
return new
|
|
13496
|
+
return new _p_ErrorCtor(
|
|
13497
13497
|
`Invalid name "${wanted.name}" does not match "${current.name}" for "${engine}"`
|
|
13498
13498
|
);
|
|
13499
13499
|
}
|
|
13500
13500
|
if (properties.includes("version")) {
|
|
13501
13501
|
if (typeof wanted.version !== "string") {
|
|
13502
|
-
throw new
|
|
13502
|
+
throw new _p_ErrorCtor(`Invalid non-string value for "version" within "${engine}"`);
|
|
13503
13503
|
}
|
|
13504
13504
|
if (typeof current.version !== "string" || current.version === "") {
|
|
13505
|
-
throw new
|
|
13505
|
+
throw new _p_ErrorCtor(`Unable to determine "version" for "${engine}" "${wanted.name}"`);
|
|
13506
13506
|
}
|
|
13507
13507
|
if (validRange(wanted.version)) {
|
|
13508
13508
|
if (!satisfies(current.version, wanted.version, opts.semver)) {
|
|
13509
|
-
return new
|
|
13509
|
+
return new _p_ErrorCtor(
|
|
13510
13510
|
// eslint-disable-next-line max-len
|
|
13511
13511
|
`Invalid semver version "${wanted.version}" does not match "${current.version}" for "${engine}"`
|
|
13512
13512
|
);
|
|
13513
13513
|
}
|
|
13514
13514
|
} else if (wanted.version !== current.version) {
|
|
13515
|
-
return new
|
|
13515
|
+
return new _p_ErrorCtor(
|
|
13516
13516
|
`Invalid version "${wanted.version}" does not match "${current.version}" for "${engine}"`
|
|
13517
13517
|
);
|
|
13518
13518
|
}
|
|
@@ -13520,13 +13520,13 @@ var require_dev_engines = __commonJS({
|
|
|
13520
13520
|
}
|
|
13521
13521
|
__name(checkDependency, "checkDependency");
|
|
13522
13522
|
function checkDevEngines(wanted, current = {}, opts = {}) {
|
|
13523
|
-
if (typeof wanted !== "object" || wanted === null ||
|
|
13524
|
-
throw new
|
|
13523
|
+
if (typeof wanted !== "object" || wanted === null || _p_ArrayIsArray(wanted)) {
|
|
13524
|
+
throw new _p_ErrorCtor(`Invalid non-object value for "devEngines"`);
|
|
13525
13525
|
}
|
|
13526
13526
|
const errors = [];
|
|
13527
|
-
for (const engine of
|
|
13527
|
+
for (const engine of _p_ObjectKeys(wanted)) {
|
|
13528
13528
|
if (!recognizedEngines.includes(engine)) {
|
|
13529
|
-
throw new
|
|
13529
|
+
throw new _p_ErrorCtor(`Invalid property "devEngines.${engine}"`);
|
|
13530
13530
|
}
|
|
13531
13531
|
const dependencyAsAuthored = wanted[engine];
|
|
13532
13532
|
const dependencies = [dependencyAsAuthored].flat();
|
|
@@ -13548,7 +13548,7 @@ var require_dev_engines = __commonJS({
|
|
|
13548
13548
|
if (onFail === "download") {
|
|
13549
13549
|
onFail = "error";
|
|
13550
13550
|
}
|
|
13551
|
-
const err =
|
|
13551
|
+
const err = _p_ObjectAssign(new _p_ErrorCtor(`Invalid devEngines.${engine}`), {
|
|
13552
13552
|
errors: depErrors,
|
|
13553
13553
|
engine,
|
|
13554
13554
|
isWarn: onFail === "warn",
|
|
@@ -13584,7 +13584,7 @@ var require_lib7 = __commonJS({
|
|
|
13584
13584
|
const nodeFail = nodev && eng.node && !semver.satisfies(nodev, eng.node, opt);
|
|
13585
13585
|
const npmFail = npmVer && eng.npm && !semver.satisfies(npmVer, eng.npm, opt);
|
|
13586
13586
|
if (nodeFail || npmFail) {
|
|
13587
|
-
throw
|
|
13587
|
+
throw _p_ObjectAssign(new _p_ErrorCtor("Unsupported engine"), {
|
|
13588
13588
|
pkgid: target._id,
|
|
13589
13589
|
current: { node: nodeVer, npm: npmVer },
|
|
13590
13590
|
required: eng,
|
|
@@ -13606,7 +13606,7 @@ var require_lib7 = __commonJS({
|
|
|
13606
13606
|
libcOk = false;
|
|
13607
13607
|
}
|
|
13608
13608
|
if (!osOk || !cpuOk || !libcOk) {
|
|
13609
|
-
throw
|
|
13609
|
+
throw _p_ObjectAssign(new _p_ErrorCtor("Unsupported platform"), {
|
|
13610
13610
|
pkgid: target._id,
|
|
13611
13611
|
current: {
|
|
13612
13612
|
os,
|
|
@@ -13632,7 +13632,7 @@ var require_lib7 = __commonJS({
|
|
|
13632
13632
|
let negated = 0;
|
|
13633
13633
|
let match = false;
|
|
13634
13634
|
for (const entry of list) {
|
|
13635
|
-
const negate = entry
|
|
13635
|
+
const negate = _p_StringPrototypeCharAt(entry, 0) === "!";
|
|
13636
13636
|
const test = negate ? entry.slice(1) : entry;
|
|
13637
13637
|
if (negate) {
|
|
13638
13638
|
negated++;
|
|
@@ -13658,7 +13658,7 @@ var require_lib7 = __commonJS({
|
|
|
13658
13658
|
var require_lib8 = __commonJS({
|
|
13659
13659
|
"node_modules/.pnpm/npm-normalize-package-bin@5.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports2, module2) {
|
|
13660
13660
|
var { join, basename } = require("path");
|
|
13661
|
-
var normalize = /* @__PURE__ */ __name((pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) :
|
|
13661
|
+
var normalize = /* @__PURE__ */ __name((pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : _p_ArrayIsArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg), "normalize");
|
|
13662
13662
|
var normalizeString = /* @__PURE__ */ __name((pkg) => {
|
|
13663
13663
|
if (!pkg.name) {
|
|
13664
13664
|
return removeBin(pkg);
|
|
@@ -13681,7 +13681,7 @@ var require_lib8 = __commonJS({
|
|
|
13681
13681
|
const orig = pkg.bin;
|
|
13682
13682
|
const clean = {};
|
|
13683
13683
|
let hasBins = false;
|
|
13684
|
-
|
|
13684
|
+
_p_ObjectKeys(orig).forEach((binKey) => {
|
|
13685
13685
|
const base = join("/", basename(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
13686
13686
|
if (typeof orig[binKey] !== "string" || !base) {
|
|
13687
13687
|
return;
|
|
@@ -13720,7 +13720,7 @@ var require_lib9 = __commonJS({
|
|
|
13720
13720
|
return false;
|
|
13721
13721
|
}
|
|
13722
13722
|
}, "engineOk");
|
|
13723
|
-
var isBefore = /* @__PURE__ */ __name((verTimes, ver, time) => !verTimes || !verTimes[ver] ||
|
|
13723
|
+
var isBefore = /* @__PURE__ */ __name((verTimes, ver, time) => !verTimes || !verTimes[ver] || _p_DateParse(verTimes[ver]) <= time, "isBefore");
|
|
13724
13724
|
var avoidSemverOpt = { includePrerelease: true, loose: true };
|
|
13725
13725
|
var shouldAvoid = /* @__PURE__ */ __name((ver, avoid) => avoid && semver.satisfies(ver, avoid, avoidSemverOpt), "shouldAvoid");
|
|
13726
13726
|
var decorateAvoid = /* @__PURE__ */ __name((result, avoid) => result && shouldAvoid(result.version, avoid) ? { ...result, _shouldAvoid: true } : result, "decorateAvoid");
|
|
@@ -13761,7 +13761,7 @@ var require_lib9 = __commonJS({
|
|
|
13761
13761
|
_isSemVerMajor: true
|
|
13762
13762
|
};
|
|
13763
13763
|
}
|
|
13764
|
-
throw
|
|
13764
|
+
throw _p_ObjectAssign(new _p_ErrorCtor(`No avoidable versions for ${name}`), {
|
|
13765
13765
|
code: "ETARGET",
|
|
13766
13766
|
name,
|
|
13767
13767
|
wanted,
|
|
@@ -13772,12 +13772,12 @@ var require_lib9 = __commonJS({
|
|
|
13772
13772
|
}
|
|
13773
13773
|
const staged = includeStaged && packument.stagedVersions && packument.stagedVersions.versions || {};
|
|
13774
13774
|
const restricted = packument.policyRestrictions && packument.policyRestrictions.versions || {};
|
|
13775
|
-
const time = before && verTimes ? +new
|
|
13775
|
+
const time = before && verTimes ? +new _p_DateCtor(before) : Infinity;
|
|
13776
13776
|
const spec = npa.resolve(name, wanted || defaultTag);
|
|
13777
13777
|
const type = spec.type;
|
|
13778
13778
|
const distTags = packument["dist-tags"] || {};
|
|
13779
13779
|
if (type !== "tag" && type !== "version" && type !== "range") {
|
|
13780
|
-
throw new
|
|
13780
|
+
throw new _p_ErrorCtor("Only tag, version, and range are supported");
|
|
13781
13781
|
}
|
|
13782
13782
|
if (wanted && type === "tag") {
|
|
13783
13783
|
const ver = distTags[wanted];
|
|
@@ -13801,9 +13801,9 @@ var require_lib9 = __commonJS({
|
|
|
13801
13801
|
return mani;
|
|
13802
13802
|
}
|
|
13803
13803
|
}
|
|
13804
|
-
const allEntries =
|
|
13804
|
+
const allEntries = _p_ObjectEntries(versions).concat(_p_ObjectEntries(staged)).concat(_p_ObjectEntries(restricted)).filter(([ver]) => isBefore(verTimes, ver, time));
|
|
13805
13805
|
if (!allEntries.length) {
|
|
13806
|
-
throw
|
|
13806
|
+
throw _p_ObjectAssign(new _p_ErrorCtor(`No versions available for ${name}`), {
|
|
13807
13807
|
code: "ENOVERSIONS",
|
|
13808
13808
|
name,
|
|
13809
13809
|
type,
|
|
@@ -13839,7 +13839,7 @@ var require_lib9 = __commonJS({
|
|
|
13839
13839
|
return picked;
|
|
13840
13840
|
}
|
|
13841
13841
|
const { before = null, defaultTag = "latest" } = opts;
|
|
13842
|
-
const bstr = before ? new
|
|
13842
|
+
const bstr = before ? new _p_DateCtor(before).toLocaleString() : "";
|
|
13843
13843
|
const { name } = packument;
|
|
13844
13844
|
const pckg = `${name}@${wanted}` + (before ? ` with a date before ${bstr}` : "");
|
|
13845
13845
|
const isForbidden = picked && !!restricted[picked.version];
|
|
@@ -13847,7 +13847,7 @@ var require_lib9 = __commonJS({
|
|
|
13847
13847
|
const msg = !isForbidden ? `No matching version found for ${pckg}.` : `Could not download ${pckg} due to policy violations:
|
|
13848
13848
|
${polMsg}`;
|
|
13849
13849
|
const code = isForbidden ? "E403" : "ETARGET";
|
|
13850
|
-
throw
|
|
13850
|
+
throw _p_ObjectAssign(new _p_ErrorCtor(msg), {
|
|
13851
13851
|
code,
|
|
13852
13852
|
type: npa.resolve(packument.name, wanted).type,
|
|
13853
13853
|
wanted,
|