@storm-software/untyped 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/{dist/chunk-GWEQOXW6.mjs → bin/chunk-65NJ2BNV.js} +16 -13
- package/bin/chunk-7LNAPF6J.js +7601 -0
- package/bin/chunk-BIBA7MGH.js +84 -0
- package/bin/chunk-MVPKPUE3.js +1120 -0
- package/bin/chunk-PRGAKNNV.js +765 -0
- package/bin/chunk-Q3AKY4XY.js +4054 -0
- package/bin/chunk-Q42ZDLPG.js +510 -0
- package/bin/chunk-RNYNEYJ5.js +451 -0
- package/bin/dist-SOH4ASEU.js +17570 -0
- package/bin/esm-SQV6ELTR.js +1716 -0
- package/bin/execa-4HBUJBFQ.js +2424 -0
- package/bin/json5-WTSMELC2.js +10 -0
- package/bin/jsonc-B7SFZJW2.js +15 -0
- package/bin/multipart-parser-TFNERLJV.js +187 -0
- package/bin/toml-MTE5VHET.js +10 -0
- package/bin/untyped.cjs +83925 -0
- package/bin/untyped.js +42339 -373
- package/bin/yaml-D6PQ2AEL.js +10 -0
- package/dist/{chunk-XSW3ZXMK.mjs → chunk-B5PWE2FK.js} +8 -3
- package/dist/{chunk-6HKRKQSU.js → chunk-BFSI6OL7.cjs} +12 -7
- package/dist/{chunk-LWMIR3BQ.js → chunk-CLGOYXO6.cjs} +13 -8
- package/dist/chunk-EIXSLKJ6.js +85 -0
- package/dist/{chunk-EBIRRCGB.mjs → chunk-ELSZYSKI.js} +8 -3
- package/dist/{chunk-6OB6EGVE.js → chunk-HUCZDWTY.cjs} +206 -175
- package/dist/chunk-KQOG5R22.cjs +6 -0
- package/dist/chunk-MW6UM5LZ.js +6 -0
- package/dist/chunk-S36U2TKG.js +7218 -0
- package/dist/{chunk-MNW76QG7.mjs → chunk-SF7VZOKX.js} +39 -8
- package/dist/{chunk-HSIBHFJE.mjs → chunk-TJ5YM7SW.js} +8 -3
- package/dist/{chunk-TJLW3KPU.js → chunk-UCWWPTWV.cjs} +11 -6
- package/dist/chunk-VCSZBLKU.cjs +85 -0
- package/dist/chunk-YU5YP27Q.cjs +7221 -0
- package/dist/generate.cjs +11 -0
- package/dist/{generate.d.mts → generate.d.cts} +1 -1
- package/dist/generate.d.ts +1 -1
- package/dist/generate.js +11 -10
- package/dist/index.cjs +32 -0
- package/dist/{index.d.mts → index.d.cts} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -27
- package/dist/{types-CIJRaFHD.d.mts → types-pVnZG27e.d.cts} +362 -362
- package/dist/{types-CIJRaFHD.d.ts → types-pVnZG27e.d.ts} +362 -362
- package/dist/utilities.cjs +6 -0
- package/dist/utilities.js +6 -6
- package/package.json +44 -53
- package/bin/untyped.mjs +0 -7050
- package/dist/chunk-NYKCIVTC.js +0 -46
- package/dist/chunk-U4YLQDJK.js +0 -1
- package/dist/chunk-ZHPKHX4S.mjs +0 -0
- package/dist/generate.mjs +0 -10
- package/dist/index.mjs +0 -27
- package/dist/utilities.mjs +0 -6
- /package/bin/{untyped.d.mts → untyped.d.cts} +0 -0
- /package/dist/{utilities.d.mts → utilities.d.cts} +0 -0
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBFSI6OL7cjs = require('./chunk-BFSI6OL7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUCWWPTWVcjs = require('./chunk-UCWWPTWV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkCLGOYXO6cjs = require('./chunk-CLGOYXO6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYU5YP27Qcjs = require('./chunk-YU5YP27Q.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkVCSZBLKUcjs = require('./chunk-VCSZBLKU.cjs');
|
|
15
22
|
|
|
16
23
|
// ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
|
|
17
|
-
var require_balanced_match =
|
|
24
|
+
var require_balanced_match = _chunkVCSZBLKUcjs.__commonJS.call(void 0, {
|
|
18
25
|
"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
|
|
19
26
|
"use strict";
|
|
27
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
20
28
|
module.exports = balanced;
|
|
21
29
|
function balanced(a, b, str) {
|
|
22
30
|
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
@@ -30,12 +38,12 @@ var require_balanced_match = _chunkNYKCIVTCjs.__commonJS.call(void 0, {
|
|
|
30
38
|
post: str.slice(r[1] + b.length)
|
|
31
39
|
};
|
|
32
40
|
}
|
|
33
|
-
|
|
41
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, balanced, "balanced");
|
|
34
42
|
function maybeMatch(reg, str) {
|
|
35
43
|
var m = str.match(reg);
|
|
36
44
|
return m ? m[0] : null;
|
|
37
45
|
}
|
|
38
|
-
|
|
46
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, maybeMatch, "maybeMatch");
|
|
39
47
|
balanced.range = range;
|
|
40
48
|
function range(a, b, str) {
|
|
41
49
|
var begs, beg, left, right, result;
|
|
@@ -79,13 +87,14 @@ var require_balanced_match = _chunkNYKCIVTCjs.__commonJS.call(void 0, {
|
|
|
79
87
|
}
|
|
80
88
|
return result;
|
|
81
89
|
}
|
|
82
|
-
|
|
90
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, range, "range");
|
|
83
91
|
}
|
|
84
92
|
});
|
|
85
93
|
|
|
86
94
|
// ../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
|
|
87
|
-
var require_brace_expansion =
|
|
95
|
+
var require_brace_expansion = _chunkVCSZBLKUcjs.__commonJS.call(void 0, {
|
|
88
96
|
"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module) {
|
|
97
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
89
98
|
var balanced = require_balanced_match();
|
|
90
99
|
module.exports = expandTop;
|
|
91
100
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
@@ -96,15 +105,15 @@ var require_brace_expansion = _chunkNYKCIVTCjs.__commonJS.call(void 0, {
|
|
|
96
105
|
function numeric(str) {
|
|
97
106
|
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
98
107
|
}
|
|
99
|
-
|
|
108
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, numeric, "numeric");
|
|
100
109
|
function escapeBraces(str) {
|
|
101
110
|
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
102
111
|
}
|
|
103
|
-
|
|
112
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, escapeBraces, "escapeBraces");
|
|
104
113
|
function unescapeBraces(str) {
|
|
105
114
|
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
106
115
|
}
|
|
107
|
-
|
|
116
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, unescapeBraces, "unescapeBraces");
|
|
108
117
|
function parseCommaParts(str) {
|
|
109
118
|
if (!str) return [
|
|
110
119
|
""
|
|
@@ -125,7 +134,7 @@ var require_brace_expansion = _chunkNYKCIVTCjs.__commonJS.call(void 0, {
|
|
|
125
134
|
parts.push.apply(parts, p);
|
|
126
135
|
return parts;
|
|
127
136
|
}
|
|
128
|
-
|
|
137
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, parseCommaParts, "parseCommaParts");
|
|
129
138
|
function expandTop(str) {
|
|
130
139
|
if (!str) return [];
|
|
131
140
|
if (str.substr(0, 2) === "{}") {
|
|
@@ -133,23 +142,23 @@ var require_brace_expansion = _chunkNYKCIVTCjs.__commonJS.call(void 0, {
|
|
|
133
142
|
}
|
|
134
143
|
return expand2(escapeBraces(str), true).map(unescapeBraces);
|
|
135
144
|
}
|
|
136
|
-
|
|
145
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, expandTop, "expandTop");
|
|
137
146
|
function embrace(str) {
|
|
138
147
|
return "{" + str + "}";
|
|
139
148
|
}
|
|
140
|
-
|
|
149
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, embrace, "embrace");
|
|
141
150
|
function isPadded(el) {
|
|
142
151
|
return /^-?0\d/.test(el);
|
|
143
152
|
}
|
|
144
|
-
|
|
153
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, isPadded, "isPadded");
|
|
145
154
|
function lte(i, y) {
|
|
146
155
|
return i <= y;
|
|
147
156
|
}
|
|
148
|
-
|
|
157
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, lte, "lte");
|
|
149
158
|
function gte(i, y) {
|
|
150
159
|
return i >= y;
|
|
151
160
|
}
|
|
152
|
-
|
|
161
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, gte, "gte");
|
|
153
162
|
function expand2(str, isTop) {
|
|
154
163
|
var expansions = [];
|
|
155
164
|
var m = balanced("{", "}", str);
|
|
@@ -240,21 +249,24 @@ var require_brace_expansion = _chunkNYKCIVTCjs.__commonJS.call(void 0, {
|
|
|
240
249
|
}
|
|
241
250
|
return expansions;
|
|
242
251
|
}
|
|
243
|
-
|
|
252
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, expand2, "expand");
|
|
244
253
|
}
|
|
245
254
|
});
|
|
246
255
|
|
|
247
256
|
// src/generate.ts
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
257
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
258
|
+
|
|
259
|
+
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/index.js
|
|
260
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
251
261
|
|
|
252
262
|
// ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js
|
|
253
|
-
|
|
263
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
264
|
+
var import_brace_expansion = _chunkVCSZBLKUcjs.__toESM.call(void 0, require_brace_expansion(), 1);
|
|
254
265
|
|
|
255
266
|
// ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
267
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
256
268
|
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
257
|
-
var assertValidPattern = /* @__PURE__ */
|
|
269
|
+
var assertValidPattern = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern) => {
|
|
258
270
|
if (typeof pattern !== "string") {
|
|
259
271
|
throw new TypeError("invalid pattern");
|
|
260
272
|
}
|
|
@@ -263,7 +275,11 @@ var assertValidPattern = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (p
|
|
|
263
275
|
}
|
|
264
276
|
}, "assertValidPattern");
|
|
265
277
|
|
|
278
|
+
// ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js
|
|
279
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
280
|
+
|
|
266
281
|
// ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
282
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
267
283
|
var posixClasses = {
|
|
268
284
|
"[:alnum:]": [
|
|
269
285
|
"\\p{L}\\p{Nl}\\p{Nd}",
|
|
@@ -323,10 +339,10 @@ var posixClasses = {
|
|
|
323
339
|
false
|
|
324
340
|
]
|
|
325
341
|
};
|
|
326
|
-
var braceEscape = /* @__PURE__ */
|
|
327
|
-
var regexpEscape = /* @__PURE__ */
|
|
328
|
-
var rangesToString = /* @__PURE__ */
|
|
329
|
-
var parseClass = /* @__PURE__ */
|
|
342
|
+
var braceEscape = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => s.replace(/[[\]\\-]/g, "\\$&"), "braceEscape");
|
|
343
|
+
var regexpEscape = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regexpEscape");
|
|
344
|
+
var rangesToString = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (ranges) => ranges.join(""), "rangesToString");
|
|
345
|
+
var parseClass = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (glob2, position) => {
|
|
330
346
|
const pos = position;
|
|
331
347
|
if (glob2.charAt(pos) !== "[") {
|
|
332
348
|
throw new Error("not in a brace expression");
|
|
@@ -439,7 +455,8 @@ var parseClass = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (glob2, po
|
|
|
439
455
|
}, "parseClass");
|
|
440
456
|
|
|
441
457
|
// ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js
|
|
442
|
-
|
|
458
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
459
|
+
var unescape = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s, { windowsPathsNoEscape = false } = {}) => {
|
|
443
460
|
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
444
461
|
}, "unescape");
|
|
445
462
|
|
|
@@ -451,7 +468,7 @@ var types = /* @__PURE__ */ new Set([
|
|
|
451
468
|
"*",
|
|
452
469
|
"@"
|
|
453
470
|
]);
|
|
454
|
-
var isExtglobType = /* @__PURE__ */
|
|
471
|
+
var isExtglobType = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (c) => types.has(c), "isExtglobType");
|
|
455
472
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
456
473
|
var startNoDot = "(?!\\.)";
|
|
457
474
|
var addPatternStart = /* @__PURE__ */ new Set([
|
|
@@ -463,13 +480,13 @@ var justDots = /* @__PURE__ */ new Set([
|
|
|
463
480
|
"."
|
|
464
481
|
]);
|
|
465
482
|
var reSpecials = new Set("().*{}+?[]^$\\!");
|
|
466
|
-
var regExpEscape = /* @__PURE__ */
|
|
483
|
+
var regExpEscape = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
|
|
467
484
|
var qmark = "[^/]";
|
|
468
485
|
var star = qmark + "*?";
|
|
469
486
|
var starNoEmpty = qmark + "+?";
|
|
470
487
|
var AST = class _AST {
|
|
471
488
|
static {
|
|
472
|
-
|
|
489
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "AST");
|
|
473
490
|
}
|
|
474
491
|
|
|
475
492
|
#root;
|
|
@@ -928,12 +945,13 @@ var AST = class _AST {
|
|
|
928
945
|
};
|
|
929
946
|
|
|
930
947
|
// ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js
|
|
931
|
-
|
|
948
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
949
|
+
var escape = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s, { windowsPathsNoEscape = false } = {}) => {
|
|
932
950
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
933
951
|
}, "escape");
|
|
934
952
|
|
|
935
953
|
// ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js
|
|
936
|
-
var minimatch = /* @__PURE__ */
|
|
954
|
+
var minimatch = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (p, pattern, options = {}) => {
|
|
937
955
|
assertValidPattern(pattern);
|
|
938
956
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
939
957
|
return false;
|
|
@@ -941,26 +959,26 @@ var minimatch = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (p, pattern
|
|
|
941
959
|
return new Minimatch(pattern, options).match(p);
|
|
942
960
|
}, "minimatch");
|
|
943
961
|
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
944
|
-
var starDotExtTest = /* @__PURE__ */
|
|
945
|
-
var starDotExtTestDot = /* @__PURE__ */
|
|
946
|
-
var starDotExtTestNocase = /* @__PURE__ */
|
|
962
|
+
var starDotExtTest = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2), "starDotExtTest");
|
|
963
|
+
var starDotExtTestDot = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (ext2) => (f) => f.endsWith(ext2), "starDotExtTestDot");
|
|
964
|
+
var starDotExtTestNocase = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (ext2) => {
|
|
947
965
|
ext2 = ext2.toLowerCase();
|
|
948
966
|
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
|
|
949
967
|
}, "starDotExtTestNocase");
|
|
950
|
-
var starDotExtTestNocaseDot = /* @__PURE__ */
|
|
968
|
+
var starDotExtTestNocaseDot = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (ext2) => {
|
|
951
969
|
ext2 = ext2.toLowerCase();
|
|
952
970
|
return (f) => f.toLowerCase().endsWith(ext2);
|
|
953
971
|
}, "starDotExtTestNocaseDot");
|
|
954
972
|
var starDotStarRE = /^\*+\.\*+$/;
|
|
955
|
-
var starDotStarTest = /* @__PURE__ */
|
|
956
|
-
var starDotStarTestDot = /* @__PURE__ */
|
|
973
|
+
var starDotStarTest = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (f) => !f.startsWith(".") && f.includes("."), "starDotStarTest");
|
|
974
|
+
var starDotStarTestDot = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (f) => f !== "." && f !== ".." && f.includes("."), "starDotStarTestDot");
|
|
957
975
|
var dotStarRE = /^\.\*+$/;
|
|
958
|
-
var dotStarTest = /* @__PURE__ */
|
|
976
|
+
var dotStarTest = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (f) => f !== "." && f !== ".." && f.startsWith("."), "dotStarTest");
|
|
959
977
|
var starRE = /^\*+$/;
|
|
960
|
-
var starTest = /* @__PURE__ */
|
|
961
|
-
var starTestDot = /* @__PURE__ */
|
|
978
|
+
var starTest = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (f) => f.length !== 0 && !f.startsWith("."), "starTest");
|
|
979
|
+
var starTestDot = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (f) => f.length !== 0 && f !== "." && f !== "..", "starTestDot");
|
|
962
980
|
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
963
|
-
var qmarksTestNocase = /* @__PURE__ */
|
|
981
|
+
var qmarksTestNocase = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, ([$0, ext2 = ""]) => {
|
|
964
982
|
const noext = qmarksTestNoExt([
|
|
965
983
|
$0
|
|
966
984
|
]);
|
|
@@ -968,7 +986,7 @@ var qmarksTestNocase = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, ([$0
|
|
|
968
986
|
ext2 = ext2.toLowerCase();
|
|
969
987
|
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
970
988
|
}, "qmarksTestNocase");
|
|
971
|
-
var qmarksTestNocaseDot = /* @__PURE__ */
|
|
989
|
+
var qmarksTestNocaseDot = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, ([$0, ext2 = ""]) => {
|
|
972
990
|
const noext = qmarksTestNoExtDot([
|
|
973
991
|
$0
|
|
974
992
|
]);
|
|
@@ -976,23 +994,23 @@ var qmarksTestNocaseDot = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (
|
|
|
976
994
|
ext2 = ext2.toLowerCase();
|
|
977
995
|
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
978
996
|
}, "qmarksTestNocaseDot");
|
|
979
|
-
var qmarksTestDot = /* @__PURE__ */
|
|
997
|
+
var qmarksTestDot = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, ([$0, ext2 = ""]) => {
|
|
980
998
|
const noext = qmarksTestNoExtDot([
|
|
981
999
|
$0
|
|
982
1000
|
]);
|
|
983
1001
|
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
984
1002
|
}, "qmarksTestDot");
|
|
985
|
-
var qmarksTest = /* @__PURE__ */
|
|
1003
|
+
var qmarksTest = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, ([$0, ext2 = ""]) => {
|
|
986
1004
|
const noext = qmarksTestNoExt([
|
|
987
1005
|
$0
|
|
988
1006
|
]);
|
|
989
1007
|
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
990
1008
|
}, "qmarksTest");
|
|
991
|
-
var qmarksTestNoExt = /* @__PURE__ */
|
|
1009
|
+
var qmarksTestNoExt = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, ([$0]) => {
|
|
992
1010
|
const len = $0.length;
|
|
993
1011
|
return (f) => f.length === len && !f.startsWith(".");
|
|
994
1012
|
}, "qmarksTestNoExt");
|
|
995
|
-
var qmarksTestNoExtDot = /* @__PURE__ */
|
|
1013
|
+
var qmarksTestNoExtDot = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, ([$0]) => {
|
|
996
1014
|
const len = $0.length;
|
|
997
1015
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
998
1016
|
}, "qmarksTestNoExtDot");
|
|
@@ -1013,19 +1031,19 @@ var qmark2 = "[^/]";
|
|
|
1013
1031
|
var star2 = qmark2 + "*?";
|
|
1014
1032
|
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1015
1033
|
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1016
|
-
var filter = /* @__PURE__ */
|
|
1034
|
+
var filter = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern, options = {}) => (p) => minimatch(p, pattern, options), "filter");
|
|
1017
1035
|
minimatch.filter = filter;
|
|
1018
|
-
var ext = /* @__PURE__ */
|
|
1019
|
-
var defaults = /* @__PURE__ */
|
|
1036
|
+
var ext = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (a, b = {}) => Object.assign({}, a, b), "ext");
|
|
1037
|
+
var defaults = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (def) => {
|
|
1020
1038
|
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
1021
1039
|
return minimatch;
|
|
1022
1040
|
}
|
|
1023
1041
|
const orig = minimatch;
|
|
1024
|
-
const m = /* @__PURE__ */
|
|
1042
|
+
const m = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (p, pattern, options = {}) => orig(p, pattern, ext(def, options)), "m");
|
|
1025
1043
|
return Object.assign(m, {
|
|
1026
1044
|
Minimatch: class Minimatch extends orig.Minimatch {
|
|
1027
1045
|
static {
|
|
1028
|
-
|
|
1046
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Minimatch");
|
|
1029
1047
|
}
|
|
1030
1048
|
constructor(pattern, options = {}) {
|
|
1031
1049
|
super(pattern, ext(def, options));
|
|
@@ -1036,7 +1054,7 @@ var defaults = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (def) => {
|
|
|
1036
1054
|
},
|
|
1037
1055
|
AST: class AST extends orig.AST {
|
|
1038
1056
|
static {
|
|
1039
|
-
|
|
1057
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "AST");
|
|
1040
1058
|
}
|
|
1041
1059
|
/* c8 ignore start */
|
|
1042
1060
|
constructor(type, parent, options = {}) {
|
|
@@ -1047,19 +1065,19 @@ var defaults = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (def) => {
|
|
|
1047
1065
|
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
1048
1066
|
}
|
|
1049
1067
|
},
|
|
1050
|
-
unescape: /* @__PURE__ */
|
|
1051
|
-
escape: /* @__PURE__ */
|
|
1052
|
-
filter: /* @__PURE__ */
|
|
1053
|
-
defaults: /* @__PURE__ */
|
|
1054
|
-
makeRe: /* @__PURE__ */
|
|
1055
|
-
braceExpand: /* @__PURE__ */
|
|
1056
|
-
match: /* @__PURE__ */
|
|
1068
|
+
unescape: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s, options = {}) => orig.unescape(s, ext(def, options)), "unescape"),
|
|
1069
|
+
escape: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s, options = {}) => orig.escape(s, ext(def, options)), "escape"),
|
|
1070
|
+
filter: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern, options = {}) => orig.filter(pattern, ext(def, options)), "filter"),
|
|
1071
|
+
defaults: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (options) => orig.defaults(ext(def, options)), "defaults"),
|
|
1072
|
+
makeRe: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)), "makeRe"),
|
|
1073
|
+
braceExpand: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)), "braceExpand"),
|
|
1074
|
+
match: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)), "match"),
|
|
1057
1075
|
sep: orig.sep,
|
|
1058
1076
|
GLOBSTAR
|
|
1059
1077
|
});
|
|
1060
1078
|
}, "defaults");
|
|
1061
1079
|
minimatch.defaults = defaults;
|
|
1062
|
-
var braceExpand = /* @__PURE__ */
|
|
1080
|
+
var braceExpand = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern, options = {}) => {
|
|
1063
1081
|
assertValidPattern(pattern);
|
|
1064
1082
|
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
1065
1083
|
return [
|
|
@@ -1069,9 +1087,9 @@ var braceExpand = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (pattern,
|
|
|
1069
1087
|
return (0, import_brace_expansion.default)(pattern);
|
|
1070
1088
|
}, "braceExpand");
|
|
1071
1089
|
minimatch.braceExpand = braceExpand;
|
|
1072
|
-
var makeRe = /* @__PURE__ */
|
|
1090
|
+
var makeRe = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern, options = {}) => new Minimatch(pattern, options).makeRe(), "makeRe");
|
|
1073
1091
|
minimatch.makeRe = makeRe;
|
|
1074
|
-
var match = /* @__PURE__ */
|
|
1092
|
+
var match = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (list, pattern, options = {}) => {
|
|
1075
1093
|
const mm = new Minimatch(pattern, options);
|
|
1076
1094
|
list = list.filter((f) => mm.match(f));
|
|
1077
1095
|
if (mm.options.nonull && !list.length) {
|
|
@@ -1081,10 +1099,10 @@ var match = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (list, pattern,
|
|
|
1081
1099
|
}, "match");
|
|
1082
1100
|
minimatch.match = match;
|
|
1083
1101
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1084
|
-
var regExpEscape2 = /* @__PURE__ */
|
|
1102
|
+
var regExpEscape2 = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
|
|
1085
1103
|
var Minimatch = class {
|
|
1086
1104
|
static {
|
|
1087
|
-
|
|
1105
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Minimatch");
|
|
1088
1106
|
}
|
|
1089
1107
|
|
|
1090
1108
|
|
|
@@ -1697,13 +1715,18 @@ minimatch.escape = escape;
|
|
|
1697
1715
|
minimatch.unescape = unescape;
|
|
1698
1716
|
|
|
1699
1717
|
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/glob.js
|
|
1718
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
1700
1719
|
var _url = require('url');
|
|
1701
1720
|
|
|
1721
|
+
// ../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.js
|
|
1722
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
1723
|
+
|
|
1702
1724
|
// ../../node_modules/.pnpm/lru-cache@11.0.2/node_modules/lru-cache/dist/esm/index.js
|
|
1725
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
1703
1726
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
1704
1727
|
var warned = /* @__PURE__ */ new Set();
|
|
1705
1728
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
1706
|
-
var emitWarning = /* @__PURE__ */
|
|
1729
|
+
var emitWarning = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (msg, type, code, fn) => {
|
|
1707
1730
|
typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
|
|
1708
1731
|
}, "emitWarning");
|
|
1709
1732
|
var AC = globalThis.AbortController;
|
|
@@ -1711,7 +1734,7 @@ var AS = globalThis.AbortSignal;
|
|
|
1711
1734
|
if (typeof AC === "undefined") {
|
|
1712
1735
|
AS = (_class = class AbortSignal {constructor() { _class.prototype.__init.call(this);_class.prototype.__init2.call(this); }
|
|
1713
1736
|
static {
|
|
1714
|
-
|
|
1737
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "AbortSignal");
|
|
1715
1738
|
}
|
|
1716
1739
|
|
|
1717
1740
|
__init() {this._onabort = []}
|
|
@@ -1723,7 +1746,7 @@ if (typeof AC === "undefined") {
|
|
|
1723
1746
|
}, _class);
|
|
1724
1747
|
AC = (_class2 = class AbortController {
|
|
1725
1748
|
static {
|
|
1726
|
-
|
|
1749
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "AbortController");
|
|
1727
1750
|
}
|
|
1728
1751
|
constructor() {;_class2.prototype.__init3.call(this);
|
|
1729
1752
|
warnACPolyfill();
|
|
@@ -1740,19 +1763,19 @@ if (typeof AC === "undefined") {
|
|
|
1740
1763
|
}
|
|
1741
1764
|
}, _class2);
|
|
1742
1765
|
let printACPolyfillWarning = _optionalChain([PROCESS, 'access', _20 => _20.env, 'optionalAccess', _21 => _21.LRU_CACHE_IGNORE_AC_WARNING]) !== "1";
|
|
1743
|
-
const warnACPolyfill = /* @__PURE__ */
|
|
1766
|
+
const warnACPolyfill = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
1744
1767
|
if (!printACPolyfillWarning) return;
|
|
1745
1768
|
printACPolyfillWarning = false;
|
|
1746
1769
|
emitWarning("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", warnACPolyfill);
|
|
1747
1770
|
}, "warnACPolyfill");
|
|
1748
1771
|
}
|
|
1749
|
-
var shouldWarn = /* @__PURE__ */
|
|
1772
|
+
var shouldWarn = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (code) => !warned.has(code), "shouldWarn");
|
|
1750
1773
|
var TYPE = Symbol("type");
|
|
1751
|
-
var isPosInt = /* @__PURE__ */
|
|
1752
|
-
var getUintArray = /* @__PURE__ */
|
|
1774
|
+
var isPosInt = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (n) => n && n === Math.floor(n) && n > 0 && isFinite(n), "isPosInt");
|
|
1775
|
+
var getUintArray = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null, "getUintArray");
|
|
1753
1776
|
var ZeroArray = class ZeroArray2 extends Array {
|
|
1754
1777
|
static {
|
|
1755
|
-
|
|
1778
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "ZeroArray");
|
|
1756
1779
|
}
|
|
1757
1780
|
constructor(size) {
|
|
1758
1781
|
super(size);
|
|
@@ -1761,7 +1784,7 @@ var ZeroArray = class ZeroArray2 extends Array {
|
|
|
1761
1784
|
};
|
|
1762
1785
|
var Stack = class Stack2 {
|
|
1763
1786
|
static {
|
|
1764
|
-
|
|
1787
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Stack");
|
|
1765
1788
|
}
|
|
1766
1789
|
|
|
1767
1790
|
|
|
@@ -1791,7 +1814,7 @@ var Stack = class Stack2 {
|
|
|
1791
1814
|
};
|
|
1792
1815
|
var LRUCache = (_class3 = class _LRUCache {
|
|
1793
1816
|
static {
|
|
1794
|
-
|
|
1817
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "LRUCache");
|
|
1795
1818
|
}
|
|
1796
1819
|
// options that cannot be changed without disaster
|
|
1797
1820
|
#max;
|
|
@@ -1906,12 +1929,12 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
1906
1929
|
},
|
|
1907
1930
|
free: c.#free,
|
|
1908
1931
|
// methods
|
|
1909
|
-
isBackgroundFetch: /* @__PURE__ */
|
|
1910
|
-
backgroundFetch: /* @__PURE__ */
|
|
1911
|
-
moveToTail: /* @__PURE__ */
|
|
1912
|
-
indexes: /* @__PURE__ */
|
|
1913
|
-
rindexes: /* @__PURE__ */
|
|
1914
|
-
isStale: /* @__PURE__ */
|
|
1932
|
+
isBackgroundFetch: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (p) => c.#isBackgroundFetch(p), "isBackgroundFetch"),
|
|
1933
|
+
backgroundFetch: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (k, index, options, context) => c.#backgroundFetch(k, index, options, context), "backgroundFetch"),
|
|
1934
|
+
moveToTail: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (index) => c.#moveToTail(index), "moveToTail"),
|
|
1935
|
+
indexes: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (options) => c.#indexes(options), "indexes"),
|
|
1936
|
+
rindexes: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (options) => c.#rindexes(options), "rindexes"),
|
|
1937
|
+
isStale: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (index) => c.#isStale(index), "isStale")
|
|
1915
1938
|
};
|
|
1916
1939
|
}
|
|
1917
1940
|
// Protected read-only members
|
|
@@ -2096,7 +2119,7 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
2096
2119
|
}
|
|
2097
2120
|
};
|
|
2098
2121
|
let cachedNow = 0;
|
|
2099
|
-
const getNow = /* @__PURE__ */
|
|
2122
|
+
const getNow = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
2100
2123
|
const n = perf.now();
|
|
2101
2124
|
if (this.ttlResolution > 0) {
|
|
2102
2125
|
cachedNow = n;
|
|
@@ -2127,14 +2150,14 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
2127
2150
|
};
|
|
2128
2151
|
}
|
|
2129
2152
|
// conditionally set private methods related to TTL
|
|
2130
|
-
#updateItemAge = /* @__PURE__ */
|
|
2153
|
+
#updateItemAge = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
2131
2154
|
}, "#updateItemAge");
|
|
2132
|
-
#statusTTL = /* @__PURE__ */
|
|
2155
|
+
#statusTTL = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
2133
2156
|
}, "#statusTTL");
|
|
2134
|
-
#setItemTTL = /* @__PURE__ */
|
|
2157
|
+
#setItemTTL = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
2135
2158
|
}, "#setItemTTL");
|
|
2136
2159
|
/* c8 ignore stop */
|
|
2137
|
-
#isStale = /* @__PURE__ */
|
|
2160
|
+
#isStale = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => false, "#isStale");
|
|
2138
2161
|
#initializeSizeTracking() {
|
|
2139
2162
|
const sizes = new ZeroArray(this.#max);
|
|
2140
2163
|
this.#calculatedSize = 0;
|
|
@@ -2177,11 +2200,11 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
2177
2200
|
}
|
|
2178
2201
|
};
|
|
2179
2202
|
}
|
|
2180
|
-
#removeItemSize = /* @__PURE__ */
|
|
2203
|
+
#removeItemSize = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (_i) => {
|
|
2181
2204
|
}, "#removeItemSize");
|
|
2182
|
-
#addItemSize = /* @__PURE__ */
|
|
2205
|
+
#addItemSize = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (_i, _s, _st) => {
|
|
2183
2206
|
}, "#addItemSize");
|
|
2184
|
-
#requireSize = /* @__PURE__ */
|
|
2207
|
+
#requireSize = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (_k, _v, size, sizeCalculation) => {
|
|
2185
2208
|
if (size || sizeCalculation) {
|
|
2186
2209
|
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
2187
2210
|
}
|
|
@@ -2728,7 +2751,7 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
2728
2751
|
options,
|
|
2729
2752
|
context
|
|
2730
2753
|
};
|
|
2731
|
-
const cb = /* @__PURE__ */
|
|
2754
|
+
const cb = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (v2, updateCache = false) => {
|
|
2732
2755
|
const { aborted } = ac.signal;
|
|
2733
2756
|
const ignoreAbort = options.ignoreFetchAbort && v2 !== void 0;
|
|
2734
2757
|
if (options.status) {
|
|
@@ -2758,14 +2781,14 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
2758
2781
|
}
|
|
2759
2782
|
return v2;
|
|
2760
2783
|
}, "cb");
|
|
2761
|
-
const eb = /* @__PURE__ */
|
|
2784
|
+
const eb = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (er) => {
|
|
2762
2785
|
if (options.status) {
|
|
2763
2786
|
options.status.fetchRejected = true;
|
|
2764
2787
|
options.status.fetchError = er;
|
|
2765
2788
|
}
|
|
2766
2789
|
return fetchFail(er);
|
|
2767
2790
|
}, "eb");
|
|
2768
|
-
const fetchFail = /* @__PURE__ */
|
|
2791
|
+
const fetchFail = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (er) => {
|
|
2769
2792
|
const { aborted } = ac.signal;
|
|
2770
2793
|
const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
|
|
2771
2794
|
const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
|
|
@@ -2788,7 +2811,7 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
2788
2811
|
throw er;
|
|
2789
2812
|
}
|
|
2790
2813
|
}, "fetchFail");
|
|
2791
|
-
const pcall = /* @__PURE__ */
|
|
2814
|
+
const pcall = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (res, rej) => {
|
|
2792
2815
|
const fmp = _optionalChain([this, 'access', _47 => _47.#fetchMethod, 'optionalCall', _48 => _48(k, v, fetchOpts)]);
|
|
2793
2816
|
if (fmp && fmp instanceof Promise) {
|
|
2794
2817
|
fmp.then((v2) => res(v2 === void 0 ? void 0 : v2), rej);
|
|
@@ -2797,7 +2820,7 @@ var LRUCache = (_class3 = class _LRUCache {
|
|
|
2797
2820
|
if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
|
|
2798
2821
|
res(void 0);
|
|
2799
2822
|
if (options.allowStaleOnFetchAbort) {
|
|
2800
|
-
res = /* @__PURE__ */
|
|
2823
|
+
res = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (v2) => cb(v2, true), "res");
|
|
2801
2824
|
}
|
|
2802
2825
|
}
|
|
2803
2826
|
});
|
|
@@ -3104,6 +3127,7 @@ var _fs = require('fs'); var actualFS = _interopRequireWildcard(_fs);
|
|
|
3104
3127
|
var _promises = require('fs/promises');
|
|
3105
3128
|
|
|
3106
3129
|
// ../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js
|
|
3130
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
3107
3131
|
var _events = require('events');
|
|
3108
3132
|
var _stream = require('stream'); var _stream2 = _interopRequireDefault(_stream);
|
|
3109
3133
|
var _string_decoder = require('string_decoder');
|
|
@@ -3111,10 +3135,10 @@ var proc = typeof process === "object" && process ? process : {
|
|
|
3111
3135
|
stdout: null,
|
|
3112
3136
|
stderr: null
|
|
3113
3137
|
};
|
|
3114
|
-
var isStream = /* @__PURE__ */
|
|
3115
|
-
var isReadable = /* @__PURE__ */
|
|
3138
|
+
var isStream = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof _stream2.default || isReadable(s) || isWritable(s)), "isStream");
|
|
3139
|
+
var isReadable = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => !!s && typeof s === "object" && s instanceof _events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
|
|
3116
3140
|
s.pipe !== _stream2.default.Writable.prototype.pipe, "isReadable");
|
|
3117
|
-
var isWritable = /* @__PURE__ */
|
|
3141
|
+
var isWritable = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => !!s && typeof s === "object" && s instanceof _events.EventEmitter && typeof s.write === "function" && typeof s.end === "function", "isWritable");
|
|
3118
3142
|
var EOF = Symbol("EOF");
|
|
3119
3143
|
var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
|
|
3120
3144
|
var EMITTED_END = Symbol("emittedEnd");
|
|
@@ -3146,14 +3170,14 @@ var ABORTED = Symbol("aborted");
|
|
|
3146
3170
|
var SIGNAL = Symbol("signal");
|
|
3147
3171
|
var DATALISTENERS = Symbol("dataListeners");
|
|
3148
3172
|
var DISCARDED = Symbol("discarded");
|
|
3149
|
-
var defer = /* @__PURE__ */
|
|
3150
|
-
var nodefer = /* @__PURE__ */
|
|
3151
|
-
var isEndish = /* @__PURE__ */
|
|
3152
|
-
var isArrayBufferLike = /* @__PURE__ */
|
|
3153
|
-
var isArrayBufferView = /* @__PURE__ */
|
|
3173
|
+
var defer = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (fn) => Promise.resolve().then(fn), "defer");
|
|
3174
|
+
var nodefer = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (fn) => fn(), "nodefer");
|
|
3175
|
+
var isEndish = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (ev) => ev === "end" || ev === "finish" || ev === "prefinish", "isEndish");
|
|
3176
|
+
var isArrayBufferLike = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (b) => b instanceof ArrayBuffer || !!b && typeof b === "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0, "isArrayBufferLike");
|
|
3177
|
+
var isArrayBufferView = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b), "isArrayBufferView");
|
|
3154
3178
|
var Pipe = class Pipe2 {
|
|
3155
3179
|
static {
|
|
3156
|
-
|
|
3180
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Pipe");
|
|
3157
3181
|
}
|
|
3158
3182
|
|
|
3159
3183
|
|
|
@@ -3181,7 +3205,7 @@ var Pipe = class Pipe2 {
|
|
|
3181
3205
|
};
|
|
3182
3206
|
var PipeProxyErrors = class PipeProxyErrors2 extends Pipe {
|
|
3183
3207
|
static {
|
|
3184
|
-
|
|
3208
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PipeProxyErrors");
|
|
3185
3209
|
}
|
|
3186
3210
|
unpipe() {
|
|
3187
3211
|
this.src.removeListener("error", this.proxyErrors);
|
|
@@ -3193,11 +3217,11 @@ var PipeProxyErrors = class PipeProxyErrors2 extends Pipe {
|
|
|
3193
3217
|
src.on("error", this.proxyErrors);
|
|
3194
3218
|
}
|
|
3195
3219
|
};
|
|
3196
|
-
var isObjectModeOptions = /* @__PURE__ */
|
|
3197
|
-
var isEncodingOptions = /* @__PURE__ */
|
|
3220
|
+
var isObjectModeOptions = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (o) => !!o.objectMode, "isObjectModeOptions");
|
|
3221
|
+
var isEncodingOptions = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer", "isEncodingOptions");
|
|
3198
3222
|
var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
3199
3223
|
static {
|
|
3200
|
-
|
|
3224
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Minipass");
|
|
3201
3225
|
}
|
|
3202
3226
|
__init5() {this[FLOWING] = false}
|
|
3203
3227
|
__init6() {this[PAUSED] = false}
|
|
@@ -3252,12 +3276,12 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3252
3276
|
this[DECODER] = this[ENCODING] ? new (0, _string_decoder.StringDecoder)(this[ENCODING]) : null;
|
|
3253
3277
|
if (options && options.debugExposeBuffer === true) {
|
|
3254
3278
|
Object.defineProperty(this, "buffer", {
|
|
3255
|
-
get: /* @__PURE__ */
|
|
3279
|
+
get: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => this[BUFFER], "get")
|
|
3256
3280
|
});
|
|
3257
3281
|
}
|
|
3258
3282
|
if (options && options.debugExposePipes === true) {
|
|
3259
3283
|
Object.defineProperty(this, "pipes", {
|
|
3260
|
-
get: /* @__PURE__ */
|
|
3284
|
+
get: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => this[PIPES], "get")
|
|
3261
3285
|
});
|
|
3262
3286
|
}
|
|
3263
3287
|
const { signal } = options;
|
|
@@ -3812,7 +3836,7 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3812
3836
|
[Symbol.asyncIterator]() {
|
|
3813
3837
|
this[DISCARDED] = false;
|
|
3814
3838
|
let stopped = false;
|
|
3815
|
-
const stop = /* @__PURE__ */
|
|
3839
|
+
const stop = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, async () => {
|
|
3816
3840
|
this.pause();
|
|
3817
3841
|
stopped = true;
|
|
3818
3842
|
return {
|
|
@@ -3820,7 +3844,7 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3820
3844
|
done: true
|
|
3821
3845
|
};
|
|
3822
3846
|
}, "stop");
|
|
3823
|
-
const next = /* @__PURE__ */
|
|
3847
|
+
const next = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
3824
3848
|
if (stopped) return stop();
|
|
3825
3849
|
const res = this.read();
|
|
3826
3850
|
if (res !== null) return Promise.resolve({
|
|
@@ -3830,14 +3854,14 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3830
3854
|
if (this[EOF]) return stop();
|
|
3831
3855
|
let resolve;
|
|
3832
3856
|
let reject;
|
|
3833
|
-
const onerr = /* @__PURE__ */
|
|
3857
|
+
const onerr = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (er) => {
|
|
3834
3858
|
this.off("data", ondata);
|
|
3835
3859
|
this.off("end", onend);
|
|
3836
3860
|
this.off(DESTROYED, ondestroy);
|
|
3837
3861
|
stop();
|
|
3838
3862
|
reject(er);
|
|
3839
3863
|
}, "onerr");
|
|
3840
|
-
const ondata = /* @__PURE__ */
|
|
3864
|
+
const ondata = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (value) => {
|
|
3841
3865
|
this.off("error", onerr);
|
|
3842
3866
|
this.off("end", onend);
|
|
3843
3867
|
this.off(DESTROYED, ondestroy);
|
|
@@ -3847,7 +3871,7 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3847
3871
|
done: !!this[EOF]
|
|
3848
3872
|
});
|
|
3849
3873
|
}, "ondata");
|
|
3850
|
-
const onend = /* @__PURE__ */
|
|
3874
|
+
const onend = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
3851
3875
|
this.off("error", onerr);
|
|
3852
3876
|
this.off("data", ondata);
|
|
3853
3877
|
this.off(DESTROYED, ondestroy);
|
|
@@ -3857,7 +3881,7 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3857
3881
|
value: void 0
|
|
3858
3882
|
});
|
|
3859
3883
|
}, "onend");
|
|
3860
|
-
const ondestroy = /* @__PURE__ */
|
|
3884
|
+
const ondestroy = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => onerr(new Error("stream destroyed")), "ondestroy");
|
|
3861
3885
|
return new Promise((res2, rej) => {
|
|
3862
3886
|
reject = rej;
|
|
3863
3887
|
resolve = res2;
|
|
@@ -3885,7 +3909,7 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3885
3909
|
[Symbol.iterator]() {
|
|
3886
3910
|
this[DISCARDED] = false;
|
|
3887
3911
|
let stopped = false;
|
|
3888
|
-
const stop = /* @__PURE__ */
|
|
3912
|
+
const stop = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
3889
3913
|
this.pause();
|
|
3890
3914
|
this.off(ERROR, stop);
|
|
3891
3915
|
this.off(DESTROYED, stop);
|
|
@@ -3896,7 +3920,7 @@ var Minipass = (_class4 = class extends _events.EventEmitter {
|
|
|
3896
3920
|
value: void 0
|
|
3897
3921
|
};
|
|
3898
3922
|
}, "stop");
|
|
3899
|
-
const next = /* @__PURE__ */
|
|
3923
|
+
const next = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
3900
3924
|
if (stopped) return stop();
|
|
3901
3925
|
const value = this.read();
|
|
3902
3926
|
return value === null ? stop() : {
|
|
@@ -3971,7 +3995,7 @@ var defaultFS = {
|
|
|
3971
3995
|
realpath: _promises.realpath
|
|
3972
3996
|
}
|
|
3973
3997
|
};
|
|
3974
|
-
var fsFromOption = /* @__PURE__ */
|
|
3998
|
+
var fsFromOption = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS ? defaultFS : {
|
|
3975
3999
|
...defaultFS,
|
|
3976
4000
|
...fsOption,
|
|
3977
4001
|
promises: {
|
|
@@ -3980,7 +4004,7 @@ var fsFromOption = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (fsOptio
|
|
|
3980
4004
|
}
|
|
3981
4005
|
}, "fsFromOption");
|
|
3982
4006
|
var uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i;
|
|
3983
|
-
var uncToDrive = /* @__PURE__ */
|
|
4007
|
+
var uncToDrive = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (rootPath) => rootPath.replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\"), "uncToDrive");
|
|
3984
4008
|
var eitherSep = /[\\\/]/;
|
|
3985
4009
|
var UNKNOWN = 0;
|
|
3986
4010
|
var IFIFO = 1;
|
|
@@ -4000,9 +4024,9 @@ var ENOREADLINK = 256;
|
|
|
4000
4024
|
var ENOREALPATH = 512;
|
|
4001
4025
|
var ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
|
|
4002
4026
|
var TYPEMASK = 1023;
|
|
4003
|
-
var entToType = /* @__PURE__ */
|
|
4027
|
+
var entToType = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN, "entToType");
|
|
4004
4028
|
var normalizeCache = /* @__PURE__ */ new Map();
|
|
4005
|
-
var normalize = /* @__PURE__ */
|
|
4029
|
+
var normalize = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => {
|
|
4006
4030
|
const c = normalizeCache.get(s);
|
|
4007
4031
|
if (c) return c;
|
|
4008
4032
|
const n = s.normalize("NFKD");
|
|
@@ -4010,7 +4034,7 @@ var normalize = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (s) => {
|
|
|
4010
4034
|
return n;
|
|
4011
4035
|
}, "normalize");
|
|
4012
4036
|
var normalizeNocaseCache = /* @__PURE__ */ new Map();
|
|
4013
|
-
var normalizeNocase = /* @__PURE__ */
|
|
4037
|
+
var normalizeNocase = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (s) => {
|
|
4014
4038
|
const c = normalizeNocaseCache.get(s);
|
|
4015
4039
|
if (c) return c;
|
|
4016
4040
|
const n = normalize(s.toLowerCase());
|
|
@@ -4019,7 +4043,7 @@ var normalizeNocase = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (s) =
|
|
|
4019
4043
|
}, "normalizeNocase");
|
|
4020
4044
|
var ResolveCache = class extends LRUCache {
|
|
4021
4045
|
static {
|
|
4022
|
-
|
|
4046
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "ResolveCache");
|
|
4023
4047
|
}
|
|
4024
4048
|
constructor() {
|
|
4025
4049
|
super({
|
|
@@ -4029,20 +4053,20 @@ var ResolveCache = class extends LRUCache {
|
|
|
4029
4053
|
};
|
|
4030
4054
|
var ChildrenCache = class extends LRUCache {
|
|
4031
4055
|
static {
|
|
4032
|
-
|
|
4056
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "ChildrenCache");
|
|
4033
4057
|
}
|
|
4034
4058
|
constructor(maxSize = 16 * 1024) {
|
|
4035
4059
|
super({
|
|
4036
4060
|
maxSize,
|
|
4037
4061
|
// parent + children
|
|
4038
|
-
sizeCalculation: /* @__PURE__ */
|
|
4062
|
+
sizeCalculation: /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (a) => a.length + 1, "sizeCalculation")
|
|
4039
4063
|
});
|
|
4040
4064
|
}
|
|
4041
4065
|
};
|
|
4042
4066
|
var setAsCwd = Symbol("PathScurry setAsCwd");
|
|
4043
4067
|
var PathBase = (_class5 = class {
|
|
4044
4068
|
static {
|
|
4045
|
-
|
|
4069
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PathBase");
|
|
4046
4070
|
}
|
|
4047
4071
|
/**
|
|
4048
4072
|
* the basename of this path
|
|
@@ -4823,7 +4847,7 @@ var PathBase = (_class5 = class {
|
|
|
4823
4847
|
if (this.#asyncReaddirInFlight) {
|
|
4824
4848
|
await this.#asyncReaddirInFlight;
|
|
4825
4849
|
} else {
|
|
4826
|
-
let resolve = /* @__PURE__ */
|
|
4850
|
+
let resolve = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
4827
4851
|
}, "resolve");
|
|
4828
4852
|
this.#asyncReaddirInFlight = new Promise((res) => resolve = res);
|
|
4829
4853
|
try {
|
|
@@ -4940,7 +4964,7 @@ var PathBase = (_class5 = class {
|
|
|
4940
4964
|
}, _class5);
|
|
4941
4965
|
var PathWin32 = (_class6 = class _PathWin32 extends PathBase {
|
|
4942
4966
|
static {
|
|
4943
|
-
|
|
4967
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PathWin32");
|
|
4944
4968
|
}
|
|
4945
4969
|
/**
|
|
4946
4970
|
* Separator for generating path strings.
|
|
@@ -4996,7 +5020,7 @@ var PathWin32 = (_class6 = class _PathWin32 extends PathBase {
|
|
|
4996
5020
|
}, _class6);
|
|
4997
5021
|
var PathPosix = (_class7 = class _PathPosix extends PathBase {
|
|
4998
5022
|
static {
|
|
4999
|
-
|
|
5023
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PathPosix");
|
|
5000
5024
|
}
|
|
5001
5025
|
/**
|
|
5002
5026
|
* separator for parsing path strings
|
|
@@ -5036,7 +5060,7 @@ var PathPosix = (_class7 = class _PathPosix extends PathBase {
|
|
|
5036
5060
|
}, _class7);
|
|
5037
5061
|
var PathScurryBase = class {
|
|
5038
5062
|
static {
|
|
5039
|
-
|
|
5063
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PathScurryBase");
|
|
5040
5064
|
}
|
|
5041
5065
|
/**
|
|
5042
5066
|
* The root Path entry for the current working directory of this Scurry
|
|
@@ -5345,7 +5369,7 @@ var PathScurryBase = class {
|
|
|
5345
5369
|
results.push(withFileTypes ? entry : entry.fullpath());
|
|
5346
5370
|
}
|
|
5347
5371
|
const dirs = /* @__PURE__ */ new Set();
|
|
5348
|
-
const walk = /* @__PURE__ */
|
|
5372
|
+
const walk = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (dir, cb) => {
|
|
5349
5373
|
dirs.add(dir);
|
|
5350
5374
|
dir.readdirCB((er, entries) => {
|
|
5351
5375
|
if (er) {
|
|
@@ -5353,7 +5377,7 @@ var PathScurryBase = class {
|
|
|
5353
5377
|
}
|
|
5354
5378
|
let len = entries.length;
|
|
5355
5379
|
if (!len) return cb();
|
|
5356
|
-
const next = /* @__PURE__ */
|
|
5380
|
+
const next = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
5357
5381
|
if (--len === 0) {
|
|
5358
5382
|
cb();
|
|
5359
5383
|
}
|
|
@@ -5494,7 +5518,7 @@ var PathScurryBase = class {
|
|
|
5494
5518
|
entry
|
|
5495
5519
|
];
|
|
5496
5520
|
let processing = 0;
|
|
5497
|
-
const process1 = /* @__PURE__ */
|
|
5521
|
+
const process1 = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
5498
5522
|
let paused = false;
|
|
5499
5523
|
while (!paused) {
|
|
5500
5524
|
const dir = queue.shift();
|
|
@@ -5504,7 +5528,7 @@ var PathScurryBase = class {
|
|
|
5504
5528
|
}
|
|
5505
5529
|
processing++;
|
|
5506
5530
|
dirs.add(dir);
|
|
5507
|
-
const onReaddir = /* @__PURE__ */
|
|
5531
|
+
const onReaddir = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (er, entries, didRealpaths = false) => {
|
|
5508
5532
|
if (er) return results.emit("error", er);
|
|
5509
5533
|
if (follow && !didRealpaths) {
|
|
5510
5534
|
const promises = [];
|
|
@@ -5565,7 +5589,7 @@ var PathScurryBase = class {
|
|
|
5565
5589
|
entry
|
|
5566
5590
|
];
|
|
5567
5591
|
let processing = 0;
|
|
5568
|
-
const process1 = /* @__PURE__ */
|
|
5592
|
+
const process1 = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
5569
5593
|
let paused = false;
|
|
5570
5594
|
while (!paused) {
|
|
5571
5595
|
const dir = queue.shift();
|
|
@@ -5608,7 +5632,7 @@ var PathScurryBase = class {
|
|
|
5608
5632
|
};
|
|
5609
5633
|
var PathScurryWin32 = (_class8 = class extends PathScurryBase {
|
|
5610
5634
|
static {
|
|
5611
|
-
|
|
5635
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PathScurryWin32");
|
|
5612
5636
|
}
|
|
5613
5637
|
/**
|
|
5614
5638
|
* separator for generating path strings
|
|
@@ -5648,7 +5672,7 @@ var PathScurryWin32 = (_class8 = class extends PathScurryBase {
|
|
|
5648
5672
|
}, _class8);
|
|
5649
5673
|
var PathScurryPosix = (_class9 = class extends PathScurryBase {
|
|
5650
5674
|
static {
|
|
5651
|
-
|
|
5675
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PathScurryPosix");
|
|
5652
5676
|
}
|
|
5653
5677
|
/**
|
|
5654
5678
|
* separator for generating path strings
|
|
@@ -5685,7 +5709,7 @@ var PathScurryPosix = (_class9 = class extends PathScurryBase {
|
|
|
5685
5709
|
}, _class9);
|
|
5686
5710
|
var PathScurryDarwin = class extends PathScurryPosix {
|
|
5687
5711
|
static {
|
|
5688
|
-
|
|
5712
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "PathScurryDarwin");
|
|
5689
5713
|
}
|
|
5690
5714
|
constructor(cwd = process.cwd(), opts = {}) {
|
|
5691
5715
|
const { nocase = true } = opts;
|
|
@@ -5699,11 +5723,12 @@ var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
|
5699
5723
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
5700
5724
|
|
|
5701
5725
|
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/pattern.js
|
|
5702
|
-
|
|
5703
|
-
var
|
|
5726
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
5727
|
+
var isPatternList = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pl) => pl.length >= 1, "isPatternList");
|
|
5728
|
+
var isGlobList = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (gl) => gl.length >= 1, "isGlobList");
|
|
5704
5729
|
var Pattern = class _Pattern {
|
|
5705
5730
|
static {
|
|
5706
|
-
|
|
5731
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Pattern");
|
|
5707
5732
|
}
|
|
5708
5733
|
#patternList;
|
|
5709
5734
|
#globList;
|
|
@@ -5887,11 +5912,15 @@ var Pattern = class _Pattern {
|
|
|
5887
5912
|
}
|
|
5888
5913
|
};
|
|
5889
5914
|
|
|
5915
|
+
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/walker.js
|
|
5916
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
5917
|
+
|
|
5890
5918
|
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/ignore.js
|
|
5919
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
5891
5920
|
var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
5892
5921
|
var Ignore = class {
|
|
5893
5922
|
static {
|
|
5894
|
-
|
|
5923
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Ignore");
|
|
5895
5924
|
}
|
|
5896
5925
|
|
|
5897
5926
|
|
|
@@ -5969,9 +5998,10 @@ var Ignore = class {
|
|
|
5969
5998
|
};
|
|
5970
5999
|
|
|
5971
6000
|
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/processor.js
|
|
6001
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
5972
6002
|
var HasWalkedCache = class _HasWalkedCache {
|
|
5973
6003
|
static {
|
|
5974
|
-
|
|
6004
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "HasWalkedCache");
|
|
5975
6005
|
}
|
|
5976
6006
|
|
|
5977
6007
|
constructor(store = /* @__PURE__ */ new Map()) {
|
|
@@ -5994,7 +6024,7 @@ var HasWalkedCache = class _HasWalkedCache {
|
|
|
5994
6024
|
};
|
|
5995
6025
|
var MatchRecord = (_class10 = class {constructor() { _class10.prototype.__init28.call(this); }
|
|
5996
6026
|
static {
|
|
5997
|
-
|
|
6027
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "MatchRecord");
|
|
5998
6028
|
}
|
|
5999
6029
|
__init28() {this.store = /* @__PURE__ */ new Map()}
|
|
6000
6030
|
add(target, absolute, ifDir) {
|
|
@@ -6015,7 +6045,7 @@ var MatchRecord = (_class10 = class {constructor() { _class10.prototype.__init28
|
|
|
6015
6045
|
}, _class10);
|
|
6016
6046
|
var SubWalks = (_class11 = class {constructor() { _class11.prototype.__init29.call(this); }
|
|
6017
6047
|
static {
|
|
6018
|
-
|
|
6048
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "SubWalks");
|
|
6019
6049
|
}
|
|
6020
6050
|
__init29() {this.store = /* @__PURE__ */ new Map()}
|
|
6021
6051
|
add(target, pattern) {
|
|
@@ -6052,7 +6082,7 @@ var SubWalks = (_class11 = class {constructor() { _class11.prototype.__init29.ca
|
|
|
6052
6082
|
}, _class11);
|
|
6053
6083
|
var Processor = (_class12 = class _Processor {
|
|
6054
6084
|
static {
|
|
6055
|
-
|
|
6085
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Processor");
|
|
6056
6086
|
}
|
|
6057
6087
|
|
|
6058
6088
|
__init30() {this.matches = new MatchRecord()}
|
|
@@ -6208,12 +6238,12 @@ var Processor = (_class12 = class _Processor {
|
|
|
6208
6238
|
}, _class12);
|
|
6209
6239
|
|
|
6210
6240
|
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/walker.js
|
|
6211
|
-
var makeIgnore = /* @__PURE__ */
|
|
6241
|
+
var makeIgnore = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (ignore, opts) => typeof ignore === "string" ? new Ignore([
|
|
6212
6242
|
ignore
|
|
6213
6243
|
], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore, "makeIgnore");
|
|
6214
6244
|
var GlobUtil = (_class13 = class {
|
|
6215
6245
|
static {
|
|
6216
|
-
|
|
6246
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "GlobUtil");
|
|
6217
6247
|
}
|
|
6218
6248
|
|
|
6219
6249
|
|
|
@@ -6356,7 +6386,7 @@ var GlobUtil = (_class13 = class {
|
|
|
6356
6386
|
}
|
|
6357
6387
|
processor.processPatterns(target, patterns);
|
|
6358
6388
|
let tasks = 1;
|
|
6359
|
-
const next = /* @__PURE__ */
|
|
6389
|
+
const next = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
6360
6390
|
if (--tasks === 0) cb();
|
|
6361
6391
|
}, "next");
|
|
6362
6392
|
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
@@ -6380,7 +6410,7 @@ var GlobUtil = (_class13 = class {
|
|
|
6380
6410
|
walkCB3(target, entries, processor, cb) {
|
|
6381
6411
|
processor = processor.filterEntries(target, entries);
|
|
6382
6412
|
let tasks = 1;
|
|
6383
|
-
const next = /* @__PURE__ */
|
|
6413
|
+
const next = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
6384
6414
|
if (--tasks === 0) cb();
|
|
6385
6415
|
}, "next");
|
|
6386
6416
|
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
@@ -6407,7 +6437,7 @@ var GlobUtil = (_class13 = class {
|
|
|
6407
6437
|
}
|
|
6408
6438
|
processor.processPatterns(target, patterns);
|
|
6409
6439
|
let tasks = 1;
|
|
6410
|
-
const next = /* @__PURE__ */
|
|
6440
|
+
const next = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
6411
6441
|
if (--tasks === 0) cb();
|
|
6412
6442
|
}, "next");
|
|
6413
6443
|
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
@@ -6427,7 +6457,7 @@ var GlobUtil = (_class13 = class {
|
|
|
6427
6457
|
walkCB3Sync(target, entries, processor, cb) {
|
|
6428
6458
|
processor = processor.filterEntries(target, entries);
|
|
6429
6459
|
let tasks = 1;
|
|
6430
|
-
const next = /* @__PURE__ */
|
|
6460
|
+
const next = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, () => {
|
|
6431
6461
|
if (--tasks === 0) cb();
|
|
6432
6462
|
}, "next");
|
|
6433
6463
|
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
@@ -6443,7 +6473,7 @@ var GlobUtil = (_class13 = class {
|
|
|
6443
6473
|
}, _class13);
|
|
6444
6474
|
var GlobWalker = (_class14 = class extends GlobUtil {
|
|
6445
6475
|
static {
|
|
6446
|
-
|
|
6476
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "GlobWalker");
|
|
6447
6477
|
}
|
|
6448
6478
|
__init35() {this.matches = /* @__PURE__ */ new Set()}
|
|
6449
6479
|
constructor(patterns, path2, opts) {
|
|
@@ -6481,7 +6511,7 @@ var GlobWalker = (_class14 = class extends GlobUtil {
|
|
|
6481
6511
|
}, _class14);
|
|
6482
6512
|
var GlobStream = class extends GlobUtil {
|
|
6483
6513
|
static {
|
|
6484
|
-
|
|
6514
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "GlobStream");
|
|
6485
6515
|
}
|
|
6486
6516
|
|
|
6487
6517
|
constructor(patterns, path2, opts) {
|
|
@@ -6521,7 +6551,7 @@ var GlobStream = class extends GlobUtil {
|
|
|
6521
6551
|
var defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
6522
6552
|
var Glob = class {
|
|
6523
6553
|
static {
|
|
6524
|
-
|
|
6554
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, this, "Glob");
|
|
6525
6555
|
}
|
|
6526
6556
|
|
|
6527
6557
|
|
|
@@ -6727,7 +6757,8 @@ var Glob = class {
|
|
|
6727
6757
|
};
|
|
6728
6758
|
|
|
6729
6759
|
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/has-magic.js
|
|
6730
|
-
|
|
6760
|
+
_chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
|
|
6761
|
+
var hasMagic = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (pattern, options = {}) => {
|
|
6731
6762
|
if (!Array.isArray(pattern)) {
|
|
6732
6763
|
pattern = [
|
|
6733
6764
|
pattern
|
|
@@ -6743,27 +6774,27 @@ var hasMagic = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (pattern, op
|
|
|
6743
6774
|
function globStreamSync(pattern, options = {}) {
|
|
6744
6775
|
return new Glob(pattern, options).streamSync();
|
|
6745
6776
|
}
|
|
6746
|
-
|
|
6777
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, globStreamSync, "globStreamSync");
|
|
6747
6778
|
function globStream(pattern, options = {}) {
|
|
6748
6779
|
return new Glob(pattern, options).stream();
|
|
6749
6780
|
}
|
|
6750
|
-
|
|
6781
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, globStream, "globStream");
|
|
6751
6782
|
function globSync(pattern, options = {}) {
|
|
6752
6783
|
return new Glob(pattern, options).walkSync();
|
|
6753
6784
|
}
|
|
6754
|
-
|
|
6785
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, globSync, "globSync");
|
|
6755
6786
|
async function glob_(pattern, options = {}) {
|
|
6756
6787
|
return new Glob(pattern, options).walk();
|
|
6757
6788
|
}
|
|
6758
|
-
|
|
6789
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, glob_, "glob_");
|
|
6759
6790
|
function globIterateSync(pattern, options = {}) {
|
|
6760
6791
|
return new Glob(pattern, options).iterateSync();
|
|
6761
6792
|
}
|
|
6762
|
-
|
|
6793
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, globIterateSync, "globIterateSync");
|
|
6763
6794
|
function globIterate(pattern, options = {}) {
|
|
6764
6795
|
return new Glob(pattern, options).iterate();
|
|
6765
6796
|
}
|
|
6766
|
-
|
|
6797
|
+
_chunkVCSZBLKUcjs.__name.call(void 0, globIterate, "globIterate");
|
|
6767
6798
|
var streamSync = globStreamSync;
|
|
6768
6799
|
var stream = Object.assign(globStream, {
|
|
6769
6800
|
sync: globStreamSync
|
|
@@ -6797,8 +6828,8 @@ glob.glob = glob;
|
|
|
6797
6828
|
|
|
6798
6829
|
// src/generate.ts
|
|
6799
6830
|
var _loader = require('untyped/loader');
|
|
6800
|
-
var getGenerateAction = /* @__PURE__ */
|
|
6801
|
-
|
|
6831
|
+
var getGenerateAction = /* @__PURE__ */ _chunkVCSZBLKUcjs.__name.call(void 0, (config) => async (options) => {
|
|
6832
|
+
_chunkYU5YP27Qcjs.writeTrace.call(void 0, `Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
|
|
6802
6833
|
console.log(glob);
|
|
6803
6834
|
const files = await glob(options.entry || "**/{untyped.ts,*.untyped.ts}", {
|
|
6804
6835
|
ignore: [
|
|
@@ -6815,21 +6846,21 @@ var getGenerateAction = /* @__PURE__ */ _chunkNYKCIVTCjs.__name.call(void 0, (co
|
|
|
6815
6846
|
});
|
|
6816
6847
|
console.log(files);
|
|
6817
6848
|
const cache = !Boolean(process.env.CI) && !Boolean(process.env.STORM_CI) && !config.skipCache;
|
|
6818
|
-
|
|
6849
|
+
_chunkYU5YP27Qcjs.writeTrace.call(void 0, cache ? `Skipping jiti cache because ${Boolean(process.env.CI) ? '`process.env.CI` is set to "true"' : Boolean(process.env.STORM_CI) ? '`process.env.STORM_CI` is set to "true"' : config.skipCache ? "`skipCache` in the Storm configuration file is set to `true`" : "<INVALID REASON>"}` : "Will use jiti cache while parsing schema files", config);
|
|
6819
6850
|
await Promise.all(files.map(async (file) => {
|
|
6820
|
-
|
|
6851
|
+
_chunkYU5YP27Qcjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkVCSZBLKUcjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
|
|
6821
6852
|
let schema;
|
|
6822
6853
|
try {
|
|
6823
|
-
schema = await _loader.loadSchema.call(void 0,
|
|
6854
|
+
schema = await _loader.loadSchema.call(void 0, _chunkVCSZBLKUcjs.joinPaths.call(void 0, file.parentPath, file.name), {
|
|
6824
6855
|
jiti: {
|
|
6825
|
-
debug:
|
|
6826
|
-
fsCache: cache &&
|
|
6856
|
+
debug: _chunkYU5YP27Qcjs.isVerbose.call(void 0, config.logLevel),
|
|
6857
|
+
fsCache: cache && _chunkVCSZBLKUcjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
6827
6858
|
moduleCache: cache,
|
|
6828
6859
|
interopDefault: true
|
|
6829
6860
|
}
|
|
6830
6861
|
});
|
|
6831
6862
|
} catch (error) {
|
|
6832
|
-
|
|
6863
|
+
_chunkYU5YP27Qcjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkVCSZBLKUcjs.joinPaths.call(void 0, file.parentPath, file.name)}
|
|
6833
6864
|
|
|
6834
6865
|
Error:
|
|
6835
6866
|
${_optionalChain([error, 'optionalAccess', _143 => _143.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _144 => _144.stack]) ? `
|
|
@@ -6841,9 +6872,9 @@ ${JSON.stringify(schema)}
|
|
|
6841
6872
|
throw error;
|
|
6842
6873
|
}
|
|
6843
6874
|
const promises = [];
|
|
6844
|
-
promises.push(
|
|
6845
|
-
promises.push(
|
|
6846
|
-
promises.push(
|
|
6875
|
+
promises.push(_chunkBFSI6OL7cjs.generateDeclarationFile.call(void 0, schema, file, config));
|
|
6876
|
+
promises.push(_chunkCLGOYXO6cjs.generateMarkdownFile.call(void 0, schema, file, config));
|
|
6877
|
+
promises.push(_chunkUCWWPTWVcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
|
|
6847
6878
|
return Promise.all(promises);
|
|
6848
6879
|
}));
|
|
6849
6880
|
}, "getGenerateAction");
|