@storm-software/untyped 0.10.9 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/untyped.cjs +170 -72
- package/bin/untyped.js +170 -72
- package/dist/{chunk-ZN2NO4H2.js → chunk-27RFMF5P.js} +6 -11
- package/dist/{chunk-QKT2QMKJ.cjs → chunk-2F6YHVL3.cjs} +7 -7
- package/dist/chunk-2TJERUMJ.cjs +6 -0
- package/dist/{chunk-ZXDL4C5R.cjs → chunk-5PHT3YNC.cjs} +191 -196
- package/dist/{chunk-ZRWTUFWM.js → chunk-AQVE6XZK.js} +2 -2
- package/dist/{chunk-ZMD64DNM.cjs → chunk-B75SC6IV.cjs} +8 -8
- package/dist/chunk-BTRJB2UN.js +194 -0
- package/dist/chunk-F5WNAG3D.cjs +194 -0
- package/dist/{chunk-CFOAJWAE.js → chunk-FBUO2VZ3.js} +1 -1
- package/dist/{chunk-XFMXMHTD.cjs → chunk-GIXTWFTH.cjs} +202 -202
- package/dist/{chunk-EEKAGW4F.js → chunk-ISJA5MP7.js} +1 -1
- package/dist/{chunk-MNZPWZ6S.js → chunk-JGPO2ACZ.js} +2 -2
- package/dist/{chunk-ZLUCZD2A.js → chunk-TQHCRCMQ.js} +2 -2
- package/dist/{chunk-ATFT6DWG.cjs → chunk-TYQJMJQO.cjs} +9 -9
- package/dist/generate.cjs +7 -7
- package/dist/generate.js +6 -6
- package/dist/index.cjs +9 -9
- package/dist/index.js +7 -7
- package/dist/utilities.cjs +2 -2
- package/dist/utilities.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2MAJIAMM.js +0 -91
- package/dist/chunk-D7L4X6XI.cjs +0 -91
- package/dist/chunk-YIYV24YP.cjs +0 -6
package/bin/untyped.js
CHANGED
|
@@ -2428,16 +2428,16 @@ var require_jiti = __commonJS({
|
|
|
2428
2428
|
__name(dist_joinURL, "dist_joinURL");
|
|
2429
2429
|
Symbol.for("ufo:protocolRelative");
|
|
2430
2430
|
Object.defineProperty;
|
|
2431
|
-
const
|
|
2432
|
-
function
|
|
2433
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
2431
|
+
const _DRIVE_LETTER_START_RE4 = /^[A-Za-z]:\//;
|
|
2432
|
+
function normalizeWindowsPath4(input = "") {
|
|
2433
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE4, (r4) => r4.toUpperCase()) : input;
|
|
2434
2434
|
}
|
|
2435
|
-
__name(
|
|
2436
|
-
const
|
|
2435
|
+
__name(normalizeWindowsPath4, "normalizeWindowsPath");
|
|
2436
|
+
const _UNC_REGEX4 = /^[/\\]{2}/, _IS_ABSOLUTE_RE4 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE4 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = /* @__PURE__ */ __name(function(path5) {
|
|
2437
2437
|
if (0 === path5.length) return ".";
|
|
2438
|
-
const isUNCPath = (path5 =
|
|
2439
|
-
return 0 === (path5 =
|
|
2440
|
-
}, "pathe_ff20891b_normalize"),
|
|
2438
|
+
const isUNCPath = (path5 = normalizeWindowsPath4(path5)).match(_UNC_REGEX4), isPathAbsolute = isAbsolute4(path5), trailingSeparator = "/" === path5[path5.length - 1];
|
|
2439
|
+
return 0 === (path5 = normalizeString4(path5, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path5 += "/"), _DRIVE_LETTER_RE4.test(path5) && (path5 += "/"), isUNCPath ? isPathAbsolute ? `//${path5}` : `//./${path5}` : isPathAbsolute && !isAbsolute4(path5) ? `/${path5}` : path5);
|
|
2440
|
+
}, "pathe_ff20891b_normalize"), join5 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2441
2441
|
if (0 === arguments_.length) return ".";
|
|
2442
2442
|
let joined;
|
|
2443
2443
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
@@ -2445,13 +2445,13 @@ var require_jiti = __commonJS({
|
|
|
2445
2445
|
}, "join");
|
|
2446
2446
|
const resolve4 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2447
2447
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
2448
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
2448
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath4(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
2449
2449
|
const path5 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
2450
|
-
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute =
|
|
2450
|
+
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute = isAbsolute4(path5));
|
|
2451
2451
|
}
|
|
2452
|
-
return resolvedPath =
|
|
2452
|
+
return resolvedPath = normalizeString4(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute4(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
2453
2453
|
}, "resolve");
|
|
2454
|
-
function
|
|
2454
|
+
function normalizeString4(path5, allowAboveRoot) {
|
|
2455
2455
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
2456
2456
|
for (let index = 0; index <= path5.length; ++index) {
|
|
2457
2457
|
if (index < path5.length) char = path5[index];
|
|
@@ -2480,17 +2480,17 @@ var require_jiti = __commonJS({
|
|
|
2480
2480
|
}
|
|
2481
2481
|
return res;
|
|
2482
2482
|
}
|
|
2483
|
-
__name(
|
|
2484
|
-
const
|
|
2485
|
-
return
|
|
2483
|
+
__name(normalizeString4, "normalizeString");
|
|
2484
|
+
const isAbsolute4 = /* @__PURE__ */ __name(function(p2) {
|
|
2485
|
+
return _IS_ABSOLUTE_RE4.test(p2);
|
|
2486
2486
|
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/, extname4 = /* @__PURE__ */ __name(function(p2) {
|
|
2487
|
-
const match = _EXTNAME_RE2.exec(
|
|
2487
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath4(p2));
|
|
2488
2488
|
return match && match[1] || "";
|
|
2489
2489
|
}, "extname"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
2490
|
-
const segments =
|
|
2491
|
-
return 1 === segments.length &&
|
|
2490
|
+
const segments = normalizeWindowsPath4(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
2491
|
+
return 1 === segments.length && _DRIVE_LETTER_RE4.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute4(p2) ? "/" : ".");
|
|
2492
2492
|
}, "pathe_ff20891b_dirname"), basename3 = /* @__PURE__ */ __name(function(p2, extension) {
|
|
2493
|
-
const lastSegment =
|
|
2493
|
+
const lastSegment = normalizeWindowsPath4(p2).split("/").pop();
|
|
2494
2494
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
2495
2495
|
}, "basename"), external_node_url_namespaceObject = __require("node:url"), external_node_assert_namespaceObject = __require("node:assert"), external_node_process_namespaceObject = __require("node:process"), external_node_path_namespaceObject = __require("node:path"), external_node_v8_namespaceObject = __require("node:v8"), external_node_util_namespaceObject = __require("node:util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
|
|
2496
2496
|
function normalizeSlash2(path5) {
|
|
@@ -2978,7 +2978,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2978
2978
|
}
|
|
2979
2979
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
2980
2980
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
2981
|
-
if (id.startsWith("file://") && (id = fileURLToPath3(id)),
|
|
2981
|
+
if (id.startsWith("file://") && (id = fileURLToPath3(id)), isAbsolute4(id)) try {
|
|
2982
2982
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL2(id);
|
|
2983
2983
|
} catch (error) {
|
|
2984
2984
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -3135,17 +3135,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3135
3135
|
let resolved, lastError;
|
|
3136
3136
|
if (ctx.isNativeRe.test(id)) return id;
|
|
3137
3137
|
ctx.alias && (id = function(path5, aliases2) {
|
|
3138
|
-
const _path =
|
|
3138
|
+
const _path = normalizeWindowsPath4(path5);
|
|
3139
3139
|
aliases2 = normalizeAliases(aliases2);
|
|
3140
3140
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
3141
3141
|
if (!_path.startsWith(alias)) continue;
|
|
3142
3142
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
3143
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
3143
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join5(to, _path.slice(alias.length));
|
|
3144
3144
|
}
|
|
3145
3145
|
return _path;
|
|
3146
3146
|
}(id, ctx.alias));
|
|
3147
3147
|
let parentURL = options?.parentURL || ctx.url;
|
|
3148
|
-
isDir(parentURL) && (parentURL =
|
|
3148
|
+
isDir(parentURL) && (parentURL = join5(parentURL, "_index.js"));
|
|
3149
3149
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
3150
3150
|
for (const conditions of conditionSets) {
|
|
3151
3151
|
try {
|
|
@@ -3216,7 +3216,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3216
3216
|
__name(jitiRequire, "jitiRequire");
|
|
3217
3217
|
function nativeImportOrRequire(ctx, id, async) {
|
|
3218
3218
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
3219
|
-
return _5 &&
|
|
3219
|
+
return _5 && isAbsolute4(id2) ? pathToFileURL2(id2) : id2;
|
|
3220
3220
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3221
3221
|
}
|
|
3222
3222
|
__name(nativeImportOrRequire, "nativeImportOrRequire");
|
|
@@ -3229,7 +3229,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3229
3229
|
return path5.match(FILENAME_RE)?.[2];
|
|
3230
3230
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
3231
3231
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
3232
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
3232
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join5(cacheDir, cacheName);
|
|
3233
3233
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3234
3234
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3235
3235
|
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -3242,13 +3242,13 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3242
3242
|
function prepareCacheDir(ctx) {
|
|
3243
3243
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3244
3244
|
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
3245
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
3245
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join5(nmDir, ".cache/jiti");
|
|
3246
3246
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
3247
3247
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
3248
3248
|
const _env = process.env.TMPDIR;
|
|
3249
3249
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
3250
3250
|
}
|
|
3251
|
-
return
|
|
3251
|
+
return join5(_tmpDir, "jiti");
|
|
3252
3252
|
}(ctx)), ctx.opts.fsCache) try {
|
|
3253
3253
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
3254
3254
|
try {
|
|
@@ -3273,9 +3273,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3273
3273
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3274
3274
|
const id = evalOptions.id || (evalOptions.filename ? basename3(evalOptions.filename) : `_jitiEval.${evalOptions.ext || (evalOptions.async ? "mjs" : "js")}`), filename = evalOptions.filename || jitiResolve(ctx, id, { async: evalOptions.async }), ext = evalOptions.ext || extname4(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = /\.[cm]?tsx?$/.test(ext), isESM = ".mjs" === ext || ".js" === ext && "module" === function(path5) {
|
|
3275
3275
|
for (; path5 && "." !== path5 && "/" !== path5; ) {
|
|
3276
|
-
path5 =
|
|
3276
|
+
path5 = join5(path5, "..");
|
|
3277
3277
|
try {
|
|
3278
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
3278
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join5(path5, "package.json"), "utf8");
|
|
3279
3279
|
try {
|
|
3280
3280
|
return JSON.parse(pkg);
|
|
3281
3281
|
} catch {
|
|
@@ -3341,7 +3341,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3341
3341
|
const deprecatOverrides = {};
|
|
3342
3342
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3343
3343
|
}(userOptions), alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : void 0, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
|
|
3344
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
3344
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join5(filename, "_index.js"));
|
|
3345
3345
|
const url = pathToFileURL2(filename), additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), nativeRequire = parentContext.createRequire(isWindows ? filename.replace(/\//g, "\\") : filename), ctx = { filename, url, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
|
|
3346
3346
|
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3347
3347
|
const jiti = Object.assign(function(id) {
|
|
@@ -30330,17 +30330,17 @@ ${trace}`);
|
|
|
30330
30330
|
}
|
|
30331
30331
|
__name(importMetaResolvePlugin, "importMetaResolvePlugin");
|
|
30332
30332
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
30333
|
-
const
|
|
30334
|
-
function
|
|
30335
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
30333
|
+
const _DRIVE_LETTER_START_RE4 = /^[A-Za-z]:\//;
|
|
30334
|
+
function normalizeWindowsPath4(input = "") {
|
|
30335
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE4, (r4) => r4.toUpperCase()) : input;
|
|
30336
30336
|
}
|
|
30337
|
-
__name(
|
|
30338
|
-
const
|
|
30337
|
+
__name(normalizeWindowsPath4, "normalizeWindowsPath");
|
|
30338
|
+
const _IS_ABSOLUTE_RE4 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE4 = /^[A-Za-z]:$/;
|
|
30339
30339
|
const pathe_ff20891b_isAbsolute = /* @__PURE__ */ __name(function(p2) {
|
|
30340
|
-
return
|
|
30340
|
+
return _IS_ABSOLUTE_RE4.test(p2);
|
|
30341
30341
|
}, "pathe_ff20891b_isAbsolute"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
30342
|
-
const segments =
|
|
30343
|
-
return 1 === segments.length &&
|
|
30342
|
+
const segments = normalizeWindowsPath4(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
30343
|
+
return 1 === segments.length && _DRIVE_LETTER_RE4.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
30344
30344
|
}, "pathe_ff20891b_dirname");
|
|
30345
30345
|
var astralIdentifierCodes2 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes2 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierStartChars2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", reservedWords2 = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, ecma5AndLessKeywords2 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", keywords$12 = { 5: ecma5AndLessKeywords2, "5module": ecma5AndLessKeywords2 + " export import", 6: ecma5AndLessKeywords2 + " const class extends export import super" }, keywordRelationalOperator2 = /^in(stanceof)?$/, nonASCIIidentifierStart2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "]"), nonASCIIidentifier2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");
|
|
30346
30346
|
function isInAstralSet2(code, set) {
|
|
@@ -45492,11 +45492,11 @@ var require_winchars = __commonJS({
|
|
|
45492
45492
|
var require_strip_absolute_path = __commonJS({
|
|
45493
45493
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports, module) {
|
|
45494
45494
|
init_esm_shims();
|
|
45495
|
-
var { isAbsolute:
|
|
45495
|
+
var { isAbsolute: isAbsolute4, parse: parse7 } = __require("path").win32;
|
|
45496
45496
|
module.exports = (path5) => {
|
|
45497
45497
|
let r4 = "";
|
|
45498
45498
|
let parsed = parse7(path5);
|
|
45499
|
-
while (
|
|
45499
|
+
while (isAbsolute4(path5) || parsed.root) {
|
|
45500
45500
|
const root = path5.charAt(0) === "/" && path5.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
45501
45501
|
path5 = path5.slice(root.length);
|
|
45502
45502
|
r4 += root;
|
|
@@ -48598,7 +48598,7 @@ var require_path_reservations = __commonJS({
|
|
|
48598
48598
|
var assert2 = __require("assert");
|
|
48599
48599
|
var normalize3 = require_normalize_unicode();
|
|
48600
48600
|
var stripSlashes = require_strip_trailing_slashes();
|
|
48601
|
-
var { join:
|
|
48601
|
+
var { join: join5 } = __require("path");
|
|
48602
48602
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
48603
48603
|
var isWindows = platform === "win32";
|
|
48604
48604
|
module.exports = () => {
|
|
@@ -48607,7 +48607,7 @@ var require_path_reservations = __commonJS({
|
|
|
48607
48607
|
const getDirs = /* @__PURE__ */ __name((path5) => {
|
|
48608
48608
|
const dirs = path5.split("/").slice(0, -1).reduce((set, path6) => {
|
|
48609
48609
|
if (set.length) {
|
|
48610
|
-
path6 =
|
|
48610
|
+
path6 = join5(set[set.length - 1], path6);
|
|
48611
48611
|
}
|
|
48612
48612
|
set.push(path6 || "/");
|
|
48613
48613
|
return set;
|
|
@@ -48679,7 +48679,7 @@ var require_path_reservations = __commonJS({
|
|
|
48679
48679
|
paths = isWindows ? [
|
|
48680
48680
|
"win32 parallelization disabled"
|
|
48681
48681
|
] : paths.map((p2) => {
|
|
48682
|
-
return stripSlashes(
|
|
48682
|
+
return stripSlashes(join5(normalize3(p2))).toLowerCase();
|
|
48683
48683
|
});
|
|
48684
48684
|
const dirs = new Set(paths.map((path5) => getDirs(path5)).reduce((a2, b6) => a2.concat(b6)));
|
|
48685
48685
|
reservations.set(fn2, {
|
|
@@ -94691,32 +94691,135 @@ var COLOR_KEYS = [
|
|
|
94691
94691
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
94692
94692
|
import { existsSync as existsSync6 } from "node:fs";
|
|
94693
94693
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
94694
|
-
import { join as
|
|
94694
|
+
import { join as join4 } from "node:path";
|
|
94695
94695
|
|
|
94696
94696
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
94697
94697
|
init_esm_shims();
|
|
94698
|
-
|
|
94699
|
-
|
|
94700
|
-
|
|
94701
|
-
|
|
94702
|
-
var correctPaths = /* @__PURE__ */ __name((path5) => {
|
|
94703
|
-
if (!path5) {
|
|
94704
|
-
return "";
|
|
94705
|
-
}
|
|
94706
|
-
if (path5.includes("\\")) {
|
|
94707
|
-
if (!path5.toUpperCase().startsWith("C:")) {
|
|
94708
|
-
path5 = `C:${path5}`;
|
|
94709
|
-
}
|
|
94710
|
-
return path5.replaceAll("/", "\\");
|
|
94698
|
+
var _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
94699
|
+
function normalizeWindowsPath3(input = "") {
|
|
94700
|
+
if (!input) {
|
|
94701
|
+
return input;
|
|
94711
94702
|
}
|
|
94712
|
-
return
|
|
94703
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase());
|
|
94704
|
+
}
|
|
94705
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
94706
|
+
var _UNC_REGEX3 = /^[/\\]{2}/;
|
|
94707
|
+
var _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
94708
|
+
var _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
94709
|
+
var correctPaths = /* @__PURE__ */ __name(function(path5) {
|
|
94710
|
+
if (!path5 || path5.length === 0) {
|
|
94711
|
+
return ".";
|
|
94712
|
+
}
|
|
94713
|
+
path5 = normalizeWindowsPath3(path5);
|
|
94714
|
+
const isUNCPath = path5.match(_UNC_REGEX3);
|
|
94715
|
+
const isPathAbsolute = isAbsolute3(path5);
|
|
94716
|
+
const trailingSeparator = path5[path5.length - 1] === "/";
|
|
94717
|
+
path5 = normalizeString3(path5, !isPathAbsolute);
|
|
94718
|
+
if (path5.length === 0) {
|
|
94719
|
+
if (isPathAbsolute) {
|
|
94720
|
+
return "/";
|
|
94721
|
+
}
|
|
94722
|
+
return trailingSeparator ? "./" : ".";
|
|
94723
|
+
}
|
|
94724
|
+
if (trailingSeparator) {
|
|
94725
|
+
path5 += "/";
|
|
94726
|
+
}
|
|
94727
|
+
if (_DRIVE_LETTER_RE3.test(path5)) {
|
|
94728
|
+
path5 += "/";
|
|
94729
|
+
}
|
|
94730
|
+
if (isUNCPath) {
|
|
94731
|
+
if (!isPathAbsolute) {
|
|
94732
|
+
return `//./${path5}`;
|
|
94733
|
+
}
|
|
94734
|
+
return `//${path5}`;
|
|
94735
|
+
}
|
|
94736
|
+
return isPathAbsolute && !isAbsolute3(path5) ? `/${path5}` : path5;
|
|
94713
94737
|
}, "correctPaths");
|
|
94714
|
-
var joinPaths = /* @__PURE__ */ __name((...
|
|
94715
|
-
|
|
94716
|
-
|
|
94738
|
+
var joinPaths = /* @__PURE__ */ __name(function(...segments) {
|
|
94739
|
+
let path5 = "";
|
|
94740
|
+
for (const seg of segments) {
|
|
94741
|
+
if (!seg) {
|
|
94742
|
+
continue;
|
|
94743
|
+
}
|
|
94744
|
+
if (path5.length > 0) {
|
|
94745
|
+
const pathTrailing = path5[path5.length - 1] === "/";
|
|
94746
|
+
const segLeading = seg[0] === "/";
|
|
94747
|
+
const both = pathTrailing && segLeading;
|
|
94748
|
+
if (both) {
|
|
94749
|
+
path5 += seg.slice(1);
|
|
94750
|
+
} else {
|
|
94751
|
+
path5 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
94752
|
+
}
|
|
94753
|
+
} else {
|
|
94754
|
+
path5 += seg;
|
|
94755
|
+
}
|
|
94717
94756
|
}
|
|
94718
|
-
return correctPaths(
|
|
94757
|
+
return correctPaths(path5);
|
|
94719
94758
|
}, "joinPaths");
|
|
94759
|
+
function normalizeString3(path5, allowAboveRoot) {
|
|
94760
|
+
let res = "";
|
|
94761
|
+
let lastSegmentLength = 0;
|
|
94762
|
+
let lastSlash = -1;
|
|
94763
|
+
let dots = 0;
|
|
94764
|
+
let char = null;
|
|
94765
|
+
for (let index = 0; index <= path5.length; ++index) {
|
|
94766
|
+
if (index < path5.length) {
|
|
94767
|
+
char = path5[index];
|
|
94768
|
+
} else if (char === "/") {
|
|
94769
|
+
break;
|
|
94770
|
+
} else {
|
|
94771
|
+
char = "/";
|
|
94772
|
+
}
|
|
94773
|
+
if (char === "/") {
|
|
94774
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
94775
|
+
} else if (dots === 2) {
|
|
94776
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
94777
|
+
if (res.length > 2) {
|
|
94778
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
94779
|
+
if (lastSlashIndex === -1) {
|
|
94780
|
+
res = "";
|
|
94781
|
+
lastSegmentLength = 0;
|
|
94782
|
+
} else {
|
|
94783
|
+
res = res.slice(0, lastSlashIndex);
|
|
94784
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
94785
|
+
}
|
|
94786
|
+
lastSlash = index;
|
|
94787
|
+
dots = 0;
|
|
94788
|
+
continue;
|
|
94789
|
+
} else if (res.length > 0) {
|
|
94790
|
+
res = "";
|
|
94791
|
+
lastSegmentLength = 0;
|
|
94792
|
+
lastSlash = index;
|
|
94793
|
+
dots = 0;
|
|
94794
|
+
continue;
|
|
94795
|
+
}
|
|
94796
|
+
}
|
|
94797
|
+
if (allowAboveRoot) {
|
|
94798
|
+
res += res.length > 0 ? "/.." : "..";
|
|
94799
|
+
lastSegmentLength = 2;
|
|
94800
|
+
}
|
|
94801
|
+
} else {
|
|
94802
|
+
if (res.length > 0) {
|
|
94803
|
+
res += `/${path5.slice(lastSlash + 1, index)}`;
|
|
94804
|
+
} else {
|
|
94805
|
+
res = path5.slice(lastSlash + 1, index);
|
|
94806
|
+
}
|
|
94807
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
94808
|
+
}
|
|
94809
|
+
lastSlash = index;
|
|
94810
|
+
dots = 0;
|
|
94811
|
+
} else if (char === "." && dots !== -1) {
|
|
94812
|
+
++dots;
|
|
94813
|
+
} else {
|
|
94814
|
+
dots = -1;
|
|
94815
|
+
}
|
|
94816
|
+
}
|
|
94817
|
+
return res;
|
|
94818
|
+
}
|
|
94819
|
+
__name(normalizeString3, "normalizeString");
|
|
94820
|
+
var isAbsolute3 = /* @__PURE__ */ __name(function(p2) {
|
|
94821
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
94822
|
+
}, "isAbsolute");
|
|
94720
94823
|
|
|
94721
94824
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
94722
94825
|
init_esm_shims();
|
|
@@ -94724,16 +94827,16 @@ init_esm_shims();
|
|
|
94724
94827
|
// ../config-tools/src/utilities/find-up.ts
|
|
94725
94828
|
init_esm_shims();
|
|
94726
94829
|
import { existsSync as existsSync5 } from "node:fs";
|
|
94727
|
-
import { join as
|
|
94830
|
+
import { join as join3 } from "node:path";
|
|
94728
94831
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
94729
94832
|
var depth = 0;
|
|
94730
94833
|
function findFolderUp(startPath, endFileNames) {
|
|
94731
94834
|
const _startPath = startPath ?? process.cwd();
|
|
94732
|
-
if (endFileNames.some((endFileName) => existsSync5(
|
|
94835
|
+
if (endFileNames.some((endFileName) => existsSync5(join3(_startPath, endFileName)))) {
|
|
94733
94836
|
return _startPath;
|
|
94734
94837
|
}
|
|
94735
94838
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
94736
|
-
const parent =
|
|
94839
|
+
const parent = join3(_startPath, "..");
|
|
94737
94840
|
return findFolderUp(parent, endFileNames);
|
|
94738
94841
|
}
|
|
94739
94842
|
return void 0;
|
|
@@ -94830,7 +94933,7 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
94830
94933
|
let namespace = void 0;
|
|
94831
94934
|
let repository = void 0;
|
|
94832
94935
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
94833
|
-
if (existsSync6(
|
|
94936
|
+
if (existsSync6(join4(workspaceRoot, "package.json"))) {
|
|
94834
94937
|
const file = await readFile4(joinPaths(workspaceRoot, "package.json"), "utf8");
|
|
94835
94938
|
if (file) {
|
|
94836
94939
|
const packageJson = JSON.parse(file);
|
|
@@ -96672,7 +96775,6 @@ __name(generateMarkdownFile, "generateMarkdownFile");
|
|
|
96672
96775
|
// src/generate.ts
|
|
96673
96776
|
var getGenerateAction = /* @__PURE__ */ __name((config) => async (options) => {
|
|
96674
96777
|
writeTrace(`Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
|
|
96675
|
-
console.log(glob);
|
|
96676
96778
|
const files = await glob(options.entry || "**/{untyped.ts,*.untyped.ts}", {
|
|
96677
96779
|
ignore: [
|
|
96678
96780
|
"**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
|
|
@@ -96686,9 +96788,6 @@ var getGenerateAction = /* @__PURE__ */ __name((config) => async (options) => {
|
|
|
96686
96788
|
withFileTypes: true,
|
|
96687
96789
|
cwd: config.workspaceRoot
|
|
96688
96790
|
});
|
|
96689
|
-
console.log(files);
|
|
96690
|
-
const cache2 = !Boolean(process.env.CI) && !Boolean(process.env.STORM_CI) && !config.skipCache;
|
|
96691
|
-
writeTrace(cache2 ? `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);
|
|
96692
96791
|
await Promise.all(files.map(async (file) => {
|
|
96693
96792
|
writeTrace(`Generating files for schema file: ${joinPaths(file.parentPath, file.name)}`, config);
|
|
96694
96793
|
let schema;
|
|
@@ -96696,8 +96795,7 @@ var getGenerateAction = /* @__PURE__ */ __name((config) => async (options) => {
|
|
|
96696
96795
|
schema = await loadSchema(joinPaths(file.parentPath, file.name), {
|
|
96697
96796
|
jiti: {
|
|
96698
96797
|
debug: isVerbose(config.logLevel),
|
|
96699
|
-
fsCache:
|
|
96700
|
-
moduleCache: cache2,
|
|
96798
|
+
fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
96701
96799
|
interopDefault: true
|
|
96702
96800
|
}
|
|
96703
96801
|
});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateDeclarationFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JGPO2ACZ.js";
|
|
4
4
|
import {
|
|
5
5
|
generateJsonSchemaFile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AQVE6XZK.js";
|
|
7
7
|
import {
|
|
8
8
|
generateMarkdownFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TQHCRCMQ.js";
|
|
10
10
|
import {
|
|
11
11
|
isVerbose,
|
|
12
12
|
writeError,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FBUO2VZ3.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__name,
|
|
18
18
|
__toESM,
|
|
19
19
|
init_esm_shims,
|
|
20
20
|
joinPaths
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BTRJB2UN.js";
|
|
22
22
|
|
|
23
23
|
// ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
|
|
24
24
|
var require_balanced_match = __commonJS({
|
|
@@ -6830,7 +6830,6 @@ glob.glob = glob;
|
|
|
6830
6830
|
import { loadSchema } from "untyped/loader";
|
|
6831
6831
|
var getGenerateAction = /* @__PURE__ */ __name((config) => async (options) => {
|
|
6832
6832
|
writeTrace(`Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
|
|
6833
|
-
console.log(glob);
|
|
6834
6833
|
const files = await glob(options.entry || "**/{untyped.ts,*.untyped.ts}", {
|
|
6835
6834
|
ignore: [
|
|
6836
6835
|
"**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
|
|
@@ -6844,9 +6843,6 @@ var getGenerateAction = /* @__PURE__ */ __name((config) => async (options) => {
|
|
|
6844
6843
|
withFileTypes: true,
|
|
6845
6844
|
cwd: config.workspaceRoot
|
|
6846
6845
|
});
|
|
6847
|
-
console.log(files);
|
|
6848
|
-
const cache = !Boolean(process.env.CI) && !Boolean(process.env.STORM_CI) && !config.skipCache;
|
|
6849
|
-
writeTrace(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);
|
|
6850
6846
|
await Promise.all(files.map(async (file) => {
|
|
6851
6847
|
writeTrace(`Generating files for schema file: ${joinPaths(file.parentPath, file.name)}`, config);
|
|
6852
6848
|
let schema;
|
|
@@ -6854,8 +6850,7 @@ var getGenerateAction = /* @__PURE__ */ __name((config) => async (options) => {
|
|
|
6854
6850
|
schema = await loadSchema(joinPaths(file.parentPath, file.name), {
|
|
6855
6851
|
jiti: {
|
|
6856
6852
|
debug: isVerbose(config.logLevel),
|
|
6857
|
-
fsCache:
|
|
6858
|
-
moduleCache: cache,
|
|
6853
|
+
fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
6859
6854
|
interopDefault: true
|
|
6860
6855
|
}
|
|
6861
6856
|
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGIXTWFTHcjs = require('./chunk-GIXTWFTH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkF5WNAG3Dcjs = require('./chunk-F5WNAG3D.cjs');
|
|
10
10
|
|
|
11
11
|
// src/generators/json-schema.ts
|
|
12
|
-
|
|
12
|
+
_chunkF5WNAG3Dcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _promises = require('fs/promises');
|
|
14
14
|
function generateJsonSchemaFile(schema, file, config) {
|
|
15
15
|
try {
|
|
16
|
-
const jsonSchema =
|
|
17
|
-
|
|
16
|
+
const jsonSchema = _chunkF5WNAG3Dcjs.getOutputFile.call(void 0, file, "json");
|
|
17
|
+
_chunkGIXTWFTHcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
|
|
18
18
|
return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
_chunkGIXTWFTHcjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
|
|
21
21
|
|
|
22
22
|
Error:
|
|
23
23
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -29,7 +29,7 @@ ${JSON.stringify(schema)}
|
|
|
29
29
|
throw error;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
_chunkF5WNAG3Dcjs.__name.call(void 0, generateJsonSchemaFile, "generateJsonSchemaFile");
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|