@storm-software/linting-tools 1.125.39 → 1.125.41
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 +2 -1
- package/bin/lint.cjs +606 -587
- package/bin/lint.js +606 -587
- package/dist/index.cjs +606 -587
- package/dist/index.d.cts +18 -22
- package/dist/index.d.ts +18 -22
- package/dist/index.js +606 -587
- package/package.json +2 -2
package/bin/lint.js
CHANGED
|
@@ -2096,16 +2096,16 @@ var require_jiti = __commonJS({
|
|
|
2096
2096
|
const [s0, ...s] = path32.split("?");
|
|
2097
2097
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
2098
2098
|
}
|
|
2099
|
-
function isNonEmptyURL(
|
|
2100
|
-
return
|
|
2099
|
+
function isNonEmptyURL(url3) {
|
|
2100
|
+
return url3 && "/" !== url3;
|
|
2101
2101
|
}
|
|
2102
2102
|
function dist_joinURL(base2, ...input) {
|
|
2103
|
-
let
|
|
2104
|
-
for (const segment of input.filter((url22) => isNonEmptyURL(url22))) if (
|
|
2103
|
+
let url3 = base2 || "";
|
|
2104
|
+
for (const segment of input.filter((url22) => isNonEmptyURL(url22))) if (url3) {
|
|
2105
2105
|
const _segment = segment.replace(JOIN_LEADING_SLASH_RE, "");
|
|
2106
|
-
|
|
2107
|
-
} else
|
|
2108
|
-
return
|
|
2106
|
+
url3 = withTrailingSlash(url3) + _segment;
|
|
2107
|
+
} else url3 = segment;
|
|
2108
|
+
return url3;
|
|
2109
2109
|
}
|
|
2110
2110
|
Symbol.for("ufo:protocolRelative");
|
|
2111
2111
|
Object.defineProperty;
|
|
@@ -2284,8 +2284,8 @@ var require_jiti = __commonJS({
|
|
|
2284
2284
|
}
|
|
2285
2285
|
return { pjsonPath: (0, external_node_url_namespaceObject.fileURLToPath)(packageJSONUrl), exists: false, type: "none" };
|
|
2286
2286
|
}
|
|
2287
|
-
function getPackageType2(
|
|
2288
|
-
return getPackageScopeConfig2(
|
|
2287
|
+
function getPackageType2(url3) {
|
|
2288
|
+
return getPackageScopeConfig2(url3).type;
|
|
2289
2289
|
}
|
|
2290
2290
|
const { ERR_UNKNOWN_FILE_EXTENSION: ERR_UNKNOWN_FILE_EXTENSION2 } = codes3, dist_hasOwnProperty = {}.hasOwnProperty, extensionFormatMap2 = { __proto__: null, ".cjs": "commonjs", ".js": "module", ".json": "json", ".mjs": "module" };
|
|
2291
2291
|
const protocolHandlers2 = { __proto__: null, "data:": function(parsed) {
|
|
@@ -2293,9 +2293,9 @@ var require_jiti = __commonJS({
|
|
|
2293
2293
|
return function(mime2) {
|
|
2294
2294
|
return mime2 && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime2) ? "module" : "application/json" === mime2 ? "json" : null;
|
|
2295
2295
|
}(mime);
|
|
2296
|
-
}, "file:": function(
|
|
2297
|
-
const value2 = function(
|
|
2298
|
-
const pathname =
|
|
2296
|
+
}, "file:": function(url3, _context, ignoreErrors) {
|
|
2297
|
+
const value2 = function(url4) {
|
|
2298
|
+
const pathname = url4.pathname;
|
|
2299
2299
|
let index2 = pathname.length;
|
|
2300
2300
|
for (; index2--; ) {
|
|
2301
2301
|
const code = pathname.codePointAt(index2);
|
|
@@ -2303,19 +2303,19 @@ var require_jiti = __commonJS({
|
|
|
2303
2303
|
if (46 === code) return 47 === pathname.codePointAt(index2 - 1) ? "" : pathname.slice(index2);
|
|
2304
2304
|
}
|
|
2305
2305
|
return "";
|
|
2306
|
-
}(
|
|
2306
|
+
}(url3);
|
|
2307
2307
|
if (".js" === value2) {
|
|
2308
|
-
const packageType = getPackageType2(
|
|
2308
|
+
const packageType = getPackageType2(url3);
|
|
2309
2309
|
return "none" !== packageType ? packageType : "commonjs";
|
|
2310
2310
|
}
|
|
2311
2311
|
if ("" === value2) {
|
|
2312
|
-
const packageType = getPackageType2(
|
|
2312
|
+
const packageType = getPackageType2(url3);
|
|
2313
2313
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
2314
2314
|
}
|
|
2315
2315
|
const format6 = extensionFormatMap2[value2];
|
|
2316
2316
|
if (format6) return format6;
|
|
2317
2317
|
if (ignoreErrors) return;
|
|
2318
|
-
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(
|
|
2318
|
+
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url3);
|
|
2319
2319
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
2320
2320
|
}, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
|
|
2321
2321
|
function getHttpProtocolModuleFormat2() {
|
|
@@ -2326,14 +2326,14 @@ var require_jiti = __commonJS({
|
|
|
2326
2326
|
const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request2);
|
|
2327
2327
|
external_node_process_namespaceObject.emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request2}" ${request2 === match4 ? "" : `matched to "${match4}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base2 ? ` imported from ${(0, external_node_url_namespaceObject.fileURLToPath)(base2)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
2328
2328
|
}
|
|
2329
|
-
function emitLegacyIndexDeprecation2(
|
|
2329
|
+
function emitLegacyIndexDeprecation2(url3, packageJsonUrl, base2, main2) {
|
|
2330
2330
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
2331
|
-
const format6 = function(
|
|
2332
|
-
const protocol =
|
|
2333
|
-
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](
|
|
2334
|
-
}(
|
|
2331
|
+
const format6 = function(url4, context) {
|
|
2332
|
+
const protocol = url4.protocol;
|
|
2333
|
+
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url4, context, true) || null;
|
|
2334
|
+
}(url3, { parentURL: base2.href });
|
|
2335
2335
|
if ("module" !== format6) return;
|
|
2336
|
-
const urlPath = (0, external_node_url_namespaceObject.fileURLToPath)(
|
|
2336
|
+
const urlPath = (0, external_node_url_namespaceObject.fileURLToPath)(url3.href), packagePath = (0, external_node_url_namespaceObject.fileURLToPath)(new external_node_url_namespaceObject.URL(".", packageJsonUrl)), basePath = (0, external_node_url_namespaceObject.fileURLToPath)(base2);
|
|
2337
2337
|
main2 ? external_node_path_namespaceObject.resolve(packagePath, main2) !== urlPath && external_node_process_namespaceObject.emitWarning(`Package ${packagePath} has a "main" field set to "${main2}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
2338
2338
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : external_node_process_namespaceObject.emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
2339
2339
|
Default "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
|
|
@@ -2344,8 +2344,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2344
2344
|
} catch {
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
function fileExists2(
|
|
2348
|
-
const stats2 = (0, external_node_fs_namespaceObject.statSync)(
|
|
2347
|
+
function fileExists2(url3) {
|
|
2348
|
+
const stats2 = (0, external_node_fs_namespaceObject.statSync)(url3, { throwIfNoEntry: false }), isFile2 = stats2 ? stats2.isFile() : void 0;
|
|
2349
2349
|
return null != isFile2 && isFile2;
|
|
2350
2350
|
}
|
|
2351
2351
|
function legacyMainResolve2(packageJsonUrl, packageConfig, base2) {
|
|
@@ -2615,9 +2615,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2615
2615
|
return (0, external_node_url_namespaceObject.pathToFileURL)(fileURLToPath26(id)).toString();
|
|
2616
2616
|
}
|
|
2617
2617
|
const DEFAULT_CONDITIONS_SET2 = /* @__PURE__ */ new Set(["node", "import"]), DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"], NOT_FOUND_ERRORS = /* @__PURE__ */ new Set(["ERR_MODULE_NOT_FOUND", "ERR_UNSUPPORTED_DIR_IMPORT", "MODULE_NOT_FOUND", "ERR_PACKAGE_PATH_NOT_EXPORTED"]);
|
|
2618
|
-
function _tryModuleResolve(id,
|
|
2618
|
+
function _tryModuleResolve(id, url3, conditions) {
|
|
2619
2619
|
try {
|
|
2620
|
-
return moduleResolve2(id,
|
|
2620
|
+
return moduleResolve2(id, url3, conditions);
|
|
2621
2621
|
} catch (error2) {
|
|
2622
2622
|
if (!NOT_FOUND_ERRORS.has(error2?.code)) throw error2;
|
|
2623
2623
|
}
|
|
@@ -2634,17 +2634,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2634
2634
|
} catch (error2) {
|
|
2635
2635
|
if ("ENOENT" !== error2?.code) throw error2;
|
|
2636
2636
|
}
|
|
2637
|
-
const conditionsSet = options.conditions ? new Set(options.conditions) : DEFAULT_CONDITIONS_SET2, _urls = (Array.isArray(options.url) ? options.url : [options.url]).filter(Boolean).map((
|
|
2637
|
+
const conditionsSet = options.conditions ? new Set(options.conditions) : DEFAULT_CONDITIONS_SET2, _urls = (Array.isArray(options.url) ? options.url : [options.url]).filter(Boolean).map((url3) => new URL(function(id2) {
|
|
2638
2638
|
return "string" != typeof id2 && (id2 = id2.toString()), /(node|data|http|https|file):/.test(id2) ? id2 : BUILTIN_MODULES.has(id2) ? "node:" + id2 : "file://" + encodeURI(normalizeSlash(id2));
|
|
2639
|
-
}(
|
|
2639
|
+
}(url3.toString())));
|
|
2640
2640
|
0 === _urls.length && _urls.push(new URL(pathToFileURL7(process.cwd())));
|
|
2641
2641
|
const urls = [..._urls];
|
|
2642
|
-
for (const
|
|
2642
|
+
for (const url3 of _urls) "file:" === url3.protocol && urls.push(new URL("./", url3), new URL(dist_joinURL(url3.pathname, "_index.js"), url3), new URL("node_modules", url3));
|
|
2643
2643
|
let resolved;
|
|
2644
|
-
for (const
|
|
2645
|
-
if (resolved = _tryModuleResolve(id,
|
|
2644
|
+
for (const url3 of urls) {
|
|
2645
|
+
if (resolved = _tryModuleResolve(id, url3, conditionsSet), resolved) break;
|
|
2646
2646
|
for (const prefix of ["", "/index"]) {
|
|
2647
|
-
for (const extension of options.extensions || DEFAULT_EXTENSIONS) if (resolved = _tryModuleResolve(dist_joinURL(id, prefix) + extension,
|
|
2647
|
+
for (const extension of options.extensions || DEFAULT_EXTENSIONS) if (resolved = _tryModuleResolve(dist_joinURL(id, prefix) + extension, url3, conditionsSet), resolved) break;
|
|
2648
2648
|
if (resolved) break;
|
|
2649
2649
|
}
|
|
2650
2650
|
if (resolved) break;
|
|
@@ -2970,7 +2970,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2970
2970
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
2971
2971
|
}(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((m) => escapeStringRegexp(m)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m) => escapeStringRegexp(m)).join("|")})/`);
|
|
2972
2972
|
filename || (filename = process.cwd()), !isNested && isDir2(filename) && (filename = join8(filename, "_index.js"));
|
|
2973
|
-
const
|
|
2973
|
+
const url3 = pathToFileURL7(filename), additionalExts = [...opts.extensions].filter((ext3) => ".js" !== ext3), nativeRequire = parentContext.createRequire(isWindows4 ? filename.replace(/\//g, "\\") : filename), ctx = { filename, url: url3, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
|
|
2974
2974
|
isNested || debug14(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
2975
2975
|
const jiti = Object.assign(function(id) {
|
|
2976
2976
|
return jitiRequire(ctx, id, { async: false });
|
|
@@ -2981,7 +2981,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2981
2981
|
return opts2?.default ? mod?.default ?? mod : mod;
|
|
2982
2982
|
}, esmResolve(id, opts2) {
|
|
2983
2983
|
"string" == typeof opts2 && (opts2 = { parentURL: opts2 });
|
|
2984
|
-
const resolved = jitiResolve(ctx, id, { parentURL:
|
|
2984
|
+
const resolved = jitiResolve(ctx, id, { parentURL: url3, ...opts2, async: true });
|
|
2985
2985
|
return !resolved || "string" != typeof resolved || resolved.startsWith("file://") ? resolved : pathToFileURL7(resolved);
|
|
2986
2986
|
} });
|
|
2987
2987
|
return jiti;
|
|
@@ -3223,28 +3223,28 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3223
3223
|
}
|
|
3224
3224
|
function parseUrl2(input) {
|
|
3225
3225
|
if (isSchemeRelativeUrl(input)) {
|
|
3226
|
-
const
|
|
3227
|
-
return
|
|
3226
|
+
const url4 = parseAbsoluteUrl("http:" + input);
|
|
3227
|
+
return url4.scheme = "", url4.type = 6, url4;
|
|
3228
3228
|
}
|
|
3229
3229
|
if (isAbsolutePath2(input)) {
|
|
3230
|
-
const
|
|
3231
|
-
return
|
|
3230
|
+
const url4 = parseAbsoluteUrl("http://foo.com" + input);
|
|
3231
|
+
return url4.scheme = "", url4.host = "", url4.type = 5, url4;
|
|
3232
3232
|
}
|
|
3233
3233
|
if (isFileUrl(input)) return parseFileUrl(input);
|
|
3234
3234
|
if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input);
|
|
3235
|
-
const
|
|
3236
|
-
return
|
|
3235
|
+
const url3 = parseAbsoluteUrl("http://foo.com/" + input);
|
|
3236
|
+
return url3.scheme = "", url3.host = "", url3.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1, url3;
|
|
3237
3237
|
}
|
|
3238
3238
|
function stripPathFilename(path32) {
|
|
3239
3239
|
if (path32.endsWith("/..")) return path32;
|
|
3240
3240
|
const index2 = path32.lastIndexOf("/");
|
|
3241
3241
|
return path32.slice(0, index2 + 1);
|
|
3242
3242
|
}
|
|
3243
|
-
function mergePaths(
|
|
3244
|
-
normalizePath3(base2, base2.type), "/" ===
|
|
3243
|
+
function mergePaths(url3, base2) {
|
|
3244
|
+
normalizePath3(base2, base2.type), "/" === url3.path ? url3.path = base2.path : url3.path = stripPathFilename(base2.path) + url3.path;
|
|
3245
3245
|
}
|
|
3246
|
-
function normalizePath3(
|
|
3247
|
-
const rel = type2 <= 4, pieces =
|
|
3246
|
+
function normalizePath3(url3, type2) {
|
|
3247
|
+
const rel = type2 <= 4, pieces = url3.path.split("/");
|
|
3248
3248
|
let pointer = 1, positive = 0, addTrailingSlash2 = false;
|
|
3249
3249
|
for (let i = 1; i < pieces.length; i++) {
|
|
3250
3250
|
const piece = pieces[i];
|
|
@@ -3252,43 +3252,43 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3252
3252
|
}
|
|
3253
3253
|
let path32 = "";
|
|
3254
3254
|
for (let i = 1; i < pointer; i++) path32 += "/" + pieces[i];
|
|
3255
|
-
(!path32 || addTrailingSlash2 && !path32.endsWith("/..")) && (path32 += "/"),
|
|
3255
|
+
(!path32 || addTrailingSlash2 && !path32.endsWith("/..")) && (path32 += "/"), url3.path = path32;
|
|
3256
3256
|
}
|
|
3257
3257
|
function resolve11(input, base2) {
|
|
3258
3258
|
if (!input && !base2) return "";
|
|
3259
|
-
const
|
|
3260
|
-
let inputType =
|
|
3259
|
+
const url3 = parseUrl2(input);
|
|
3260
|
+
let inputType = url3.type;
|
|
3261
3261
|
if (base2 && 7 !== inputType) {
|
|
3262
3262
|
const baseUrl = parseUrl2(base2), baseType = baseUrl.type;
|
|
3263
3263
|
switch (inputType) {
|
|
3264
3264
|
case 1:
|
|
3265
|
-
|
|
3265
|
+
url3.hash = baseUrl.hash;
|
|
3266
3266
|
case 2:
|
|
3267
|
-
|
|
3267
|
+
url3.query = baseUrl.query;
|
|
3268
3268
|
case 3:
|
|
3269
3269
|
case 4:
|
|
3270
|
-
mergePaths(
|
|
3270
|
+
mergePaths(url3, baseUrl);
|
|
3271
3271
|
case 5:
|
|
3272
|
-
|
|
3272
|
+
url3.user = baseUrl.user, url3.host = baseUrl.host, url3.port = baseUrl.port;
|
|
3273
3273
|
case 6:
|
|
3274
|
-
|
|
3274
|
+
url3.scheme = baseUrl.scheme;
|
|
3275
3275
|
}
|
|
3276
3276
|
baseType > inputType && (inputType = baseType);
|
|
3277
3277
|
}
|
|
3278
|
-
normalizePath3(
|
|
3279
|
-
const queryHash =
|
|
3278
|
+
normalizePath3(url3, inputType);
|
|
3279
|
+
const queryHash = url3.query + url3.hash;
|
|
3280
3280
|
switch (inputType) {
|
|
3281
3281
|
case 2:
|
|
3282
3282
|
case 3:
|
|
3283
3283
|
return queryHash;
|
|
3284
3284
|
case 4: {
|
|
3285
|
-
const path32 =
|
|
3285
|
+
const path32 = url3.path.slice(1);
|
|
3286
3286
|
return path32 ? isRelative2(base2 || input) && !isRelative2(path32) ? "./" + path32 + queryHash : path32 + queryHash : queryHash || ".";
|
|
3287
3287
|
}
|
|
3288
3288
|
case 5:
|
|
3289
|
-
return
|
|
3289
|
+
return url3.path + queryHash;
|
|
3290
3290
|
default:
|
|
3291
|
-
return
|
|
3291
|
+
return url3.scheme + "//" + url3.user + url3.host + url3.port + url3.path + queryHash;
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
3294
|
return resolve11;
|
|
@@ -5262,7 +5262,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5262
5262
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
5263
5263
|
return opts ? descriptors(dirname7, opts, `${alias}.overrides[${index2}].env["${envName}"]`) : null;
|
|
5264
5264
|
}
|
|
5265
|
-
function makeChainWalker({ root, env: env5, overrides, overridesEnv, createLogger:
|
|
5265
|
+
function makeChainWalker({ root, env: env5, overrides, overridesEnv, createLogger: createLogger3 }) {
|
|
5266
5266
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
5267
5267
|
const { dirname: dirname7 } = input, flattenedConfigs = [], rootOpts = root(input);
|
|
5268
5268
|
if (configIsApplicable(rootOpts, dirname7, context, input.filepath)) {
|
|
@@ -5278,7 +5278,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5278
5278
|
});
|
|
5279
5279
|
}
|
|
5280
5280
|
if (flattenedConfigs.some(({ config: { options: { ignore: ignore4, only } } }) => shouldIgnore(context, ignore4, only, dirname7))) return null;
|
|
5281
|
-
const chain = emptyChain(), logger =
|
|
5281
|
+
const chain = emptyChain(), logger = createLogger3(input, context, baseLogger);
|
|
5282
5282
|
for (const { config: config2, index: index2, envName } of flattenedConfigs) {
|
|
5283
5283
|
if (!(yield* mergeExtendsChain(chain, config2.options, dirname7, context, files, baseLogger))) return null;
|
|
5284
5284
|
logger(config2, index2, envName), yield* mergeChainOpts(chain, config2);
|
|
@@ -5745,9 +5745,9 @@ from ${dirname7}`);
|
|
|
5745
5745
|
return null == module2 || !module2.__esModule && "Module" !== module2[Symbol.toStringTag] ? module2 : module2.default || (arguments[1] ? module2 : void 0);
|
|
5746
5746
|
}
|
|
5747
5747
|
const loadMjsFromPath = (0, _rewriteStackTrace.endHiddenCallStack)((n = function* (filepath) {
|
|
5748
|
-
const
|
|
5748
|
+
const url3 = (0, _url2().pathToFileURL)(filepath).toString() + "?import";
|
|
5749
5749
|
if (!import_) throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath);
|
|
5750
|
-
return yield import_(
|
|
5750
|
+
return yield import_(url3);
|
|
5751
5751
|
}, _loadMjsFromPath = function() {
|
|
5752
5752
|
var t = this, e = arguments;
|
|
5753
5753
|
return new Promise(function(r, o) {
|
|
@@ -7050,7 +7050,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
7050
7050
|
};
|
|
7051
7051
|
const pluginNameMap = { asyncDoExpressions: { syntax: { name: "@babel/plugin-syntax-async-do-expressions", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions" } }, decimal: { syntax: { name: "@babel/plugin-syntax-decimal", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal" } }, decorators: { syntax: { name: "@babel/plugin-syntax-decorators", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators" }, transform: { name: "@babel/plugin-proposal-decorators", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators" } }, doExpressions: { syntax: { name: "@babel/plugin-syntax-do-expressions", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions" }, transform: { name: "@babel/plugin-proposal-do-expressions", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions" } }, exportDefaultFrom: { syntax: { name: "@babel/plugin-syntax-export-default-from", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from" }, transform: { name: "@babel/plugin-proposal-export-default-from", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from" } }, flow: { syntax: { name: "@babel/plugin-syntax-flow", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow" }, transform: { name: "@babel/preset-flow", url: "https://github.com/babel/babel/tree/main/packages/babel-preset-flow" } }, functionBind: { syntax: { name: "@babel/plugin-syntax-function-bind", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind" }, transform: { name: "@babel/plugin-proposal-function-bind", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind" } }, functionSent: { syntax: { name: "@babel/plugin-syntax-function-sent", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent" }, transform: { name: "@babel/plugin-proposal-function-sent", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent" } }, jsx: { syntax: { name: "@babel/plugin-syntax-jsx", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx" }, transform: { name: "@babel/preset-react", url: "https://github.com/babel/babel/tree/main/packages/babel-preset-react" } }, pipelineOperator: { syntax: { name: "@babel/plugin-syntax-pipeline-operator", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator" }, transform: { name: "@babel/plugin-proposal-pipeline-operator", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator" } }, recordAndTuple: { syntax: { name: "@babel/plugin-syntax-record-and-tuple", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple" } }, throwExpressions: { syntax: { name: "@babel/plugin-syntax-throw-expressions", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions" }, transform: { name: "@babel/plugin-proposal-throw-expressions", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions" } }, typescript: { syntax: { name: "@babel/plugin-syntax-typescript", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript" }, transform: { name: "@babel/preset-typescript", url: "https://github.com/babel/babel/tree/main/packages/babel-preset-typescript" } } };
|
|
7052
7052
|
Object.assign(pluginNameMap, { asyncGenerators: { syntax: { name: "@babel/plugin-syntax-async-generators", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators" }, transform: { name: "@babel/plugin-transform-async-generator-functions", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions" } }, classProperties: { syntax: { name: "@babel/plugin-syntax-class-properties", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" }, transform: { name: "@babel/plugin-transform-class-properties", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" } }, classPrivateProperties: { syntax: { name: "@babel/plugin-syntax-class-properties", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" }, transform: { name: "@babel/plugin-transform-class-properties", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" } }, classPrivateMethods: { syntax: { name: "@babel/plugin-syntax-class-properties", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" }, transform: { name: "@babel/plugin-transform-private-methods", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods" } }, classStaticBlock: { syntax: { name: "@babel/plugin-syntax-class-static-block", url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block" }, transform: { name: "@babel/plugin-transform-class-static-block", url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block" } }, dynamicImport: { syntax: { name: "@babel/plugin-syntax-dynamic-import", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import" } }, exportNamespaceFrom: { syntax: { name: "@babel/plugin-syntax-export-namespace-from", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from" }, transform: { name: "@babel/plugin-transform-export-namespace-from", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from" } }, importAssertions: { syntax: { name: "@babel/plugin-syntax-import-assertions", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions" } }, importAttributes: { syntax: { name: "@babel/plugin-syntax-import-attributes", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes" } }, importMeta: { syntax: { name: "@babel/plugin-syntax-import-meta", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta" } }, logicalAssignment: { syntax: { name: "@babel/plugin-syntax-logical-assignment-operators", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators" }, transform: { name: "@babel/plugin-transform-logical-assignment-operators", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators" } }, moduleStringNames: { syntax: { name: "@babel/plugin-syntax-module-string-names", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names" } }, numericSeparator: { syntax: { name: "@babel/plugin-syntax-numeric-separator", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator" }, transform: { name: "@babel/plugin-transform-numeric-separator", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator" } }, nullishCoalescingOperator: { syntax: { name: "@babel/plugin-syntax-nullish-coalescing-operator", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator" }, transform: { name: "@babel/plugin-transform-nullish-coalescing-operator", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator" } }, objectRestSpread: { syntax: { name: "@babel/plugin-syntax-object-rest-spread", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread" }, transform: { name: "@babel/plugin-transform-object-rest-spread", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread" } }, optionalCatchBinding: { syntax: { name: "@babel/plugin-syntax-optional-catch-binding", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding" }, transform: { name: "@babel/plugin-transform-optional-catch-binding", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding" } }, optionalChaining: { syntax: { name: "@babel/plugin-syntax-optional-chaining", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining" }, transform: { name: "@babel/plugin-transform-optional-chaining", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining" } }, privateIn: { syntax: { name: "@babel/plugin-syntax-private-property-in-object", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object" }, transform: { name: "@babel/plugin-transform-private-property-in-object", url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object" } }, regexpUnicodeSets: { syntax: { name: "@babel/plugin-syntax-unicode-sets-regex", url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md" }, transform: { name: "@babel/plugin-transform-unicode-sets-regex", url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md" } } });
|
|
7053
|
-
const getNameURLCombination = ({ name: name3, url:
|
|
7053
|
+
const getNameURLCombination = ({ name: name3, url: url3 }) => `${name3} (${url3})`;
|
|
7054
7054
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/tools/build-external-helpers.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
7055
7055
|
"use strict";
|
|
7056
7056
|
function helpers2() {
|
|
@@ -7723,8 +7723,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
7723
7723
|
return new Set(conditions2);
|
|
7724
7724
|
}
|
|
7725
7725
|
return DEFAULT_CONDITIONS_SET2;
|
|
7726
|
-
}(context.conditions),
|
|
7727
|
-
return { url:
|
|
7726
|
+
}(context.conditions), url3 = moduleResolve2(specifier2, new (_url2()).URL(parentURL), conditions, false);
|
|
7727
|
+
return { url: url3.href, format: defaultGetFormatWithoutErrors2(url3, { parentURL }) };
|
|
7728
7728
|
}(specifier, { parentURL: parent }).url;
|
|
7729
7729
|
} catch (error2) {
|
|
7730
7730
|
const exception2 = error2;
|
|
@@ -7841,8 +7841,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
7841
7841
|
}
|
|
7842
7842
|
return { pjsonPath: (0, _url2().fileURLToPath)(packageJSONUrl), exists: false, type: "none" };
|
|
7843
7843
|
}
|
|
7844
|
-
function getPackageType2(
|
|
7845
|
-
return getPackageScopeConfig2(
|
|
7844
|
+
function getPackageType2(url3) {
|
|
7845
|
+
return getPackageScopeConfig2(url3).type;
|
|
7846
7846
|
}
|
|
7847
7847
|
const { ERR_UNKNOWN_FILE_EXTENSION: ERR_UNKNOWN_FILE_EXTENSION2 } = codes3, hasOwnProperty5 = {}.hasOwnProperty, extensionFormatMap2 = { __proto__: null, ".cjs": "commonjs", ".js": "module", ".json": "json", ".mjs": "module" };
|
|
7848
7848
|
const protocolHandlers2 = { __proto__: null, "data:": function(parsed) {
|
|
@@ -7850,9 +7850,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
7850
7850
|
return function(mime2) {
|
|
7851
7851
|
return mime2 && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime2) ? "module" : "application/json" === mime2 ? "json" : null;
|
|
7852
7852
|
}(mime);
|
|
7853
|
-
}, "file:": function(
|
|
7854
|
-
const value2 = function(
|
|
7855
|
-
const pathname =
|
|
7853
|
+
}, "file:": function(url3, _context, ignoreErrors) {
|
|
7854
|
+
const value2 = function(url4) {
|
|
7855
|
+
const pathname = url4.pathname;
|
|
7856
7856
|
let index2 = pathname.length;
|
|
7857
7857
|
for (; index2--; ) {
|
|
7858
7858
|
const code = pathname.codePointAt(index2);
|
|
@@ -7860,26 +7860,26 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
7860
7860
|
if (46 === code) return 47 === pathname.codePointAt(index2 - 1) ? "" : pathname.slice(index2);
|
|
7861
7861
|
}
|
|
7862
7862
|
return "";
|
|
7863
|
-
}(
|
|
7863
|
+
}(url3);
|
|
7864
7864
|
if (".js" === value2) {
|
|
7865
|
-
const packageType = getPackageType2(
|
|
7865
|
+
const packageType = getPackageType2(url3);
|
|
7866
7866
|
return "none" !== packageType ? packageType : "commonjs";
|
|
7867
7867
|
}
|
|
7868
7868
|
if ("" === value2) {
|
|
7869
|
-
const packageType = getPackageType2(
|
|
7869
|
+
const packageType = getPackageType2(url3);
|
|
7870
7870
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
7871
7871
|
}
|
|
7872
7872
|
const format6 = extensionFormatMap2[value2];
|
|
7873
7873
|
if (format6) return format6;
|
|
7874
7874
|
if (ignoreErrors) return;
|
|
7875
|
-
const filepath = (0, _url2().fileURLToPath)(
|
|
7875
|
+
const filepath = (0, _url2().fileURLToPath)(url3);
|
|
7876
7876
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
7877
7877
|
}, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
|
|
7878
7878
|
function getHttpProtocolModuleFormat2() {
|
|
7879
7879
|
}
|
|
7880
|
-
function defaultGetFormatWithoutErrors2(
|
|
7881
|
-
const protocol =
|
|
7882
|
-
return hasOwnProperty5.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](
|
|
7880
|
+
function defaultGetFormatWithoutErrors2(url3, context) {
|
|
7881
|
+
const protocol = url3.protocol;
|
|
7882
|
+
return hasOwnProperty5.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url3, context, true) || null;
|
|
7883
7883
|
}
|
|
7884
7884
|
const { ERR_INVALID_ARG_VALUE: ERR_INVALID_ARG_VALUE2 } = codes3, DEFAULT_CONDITIONS2 = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS2);
|
|
7885
7885
|
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG3, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_RESOLVE_REQUEST: ERR_UNSUPPORTED_RESOLVE_REQUEST2 } = codes3, own10 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSeparatorRegEx2 = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
|
|
@@ -7888,10 +7888,10 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
7888
7888
|
const pjsonPath = (0, _url2().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request2);
|
|
7889
7889
|
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request2}" ${request2 === match4 ? "" : `matched to "${match4}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base2 ? ` imported from ${(0, _url2().fileURLToPath)(base2)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
7890
7890
|
}
|
|
7891
|
-
function emitLegacyIndexDeprecation2(
|
|
7891
|
+
function emitLegacyIndexDeprecation2(url3, packageJsonUrl, base2, main2) {
|
|
7892
7892
|
if (_process().noDeprecation) return;
|
|
7893
|
-
if ("module" !== defaultGetFormatWithoutErrors2(
|
|
7894
|
-
const urlPath = (0, _url2().fileURLToPath)(
|
|
7893
|
+
if ("module" !== defaultGetFormatWithoutErrors2(url3, { parentURL: base2.href })) return;
|
|
7894
|
+
const urlPath = (0, _url2().fileURLToPath)(url3.href), packagePath = (0, _url2().fileURLToPath)(new (_url2()).URL(".", packageJsonUrl)), basePath = (0, _url2().fileURLToPath)(base2);
|
|
7895
7895
|
main2 ? _path().resolve(packagePath, main2) !== urlPath && _process().emitWarning(`Package ${packagePath} has a "main" field set to "${main2}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
7896
7896
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : _process().emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
7897
7897
|
Default "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
|
|
@@ -7902,8 +7902,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
7902
7902
|
} catch (_unused2) {
|
|
7903
7903
|
}
|
|
7904
7904
|
}
|
|
7905
|
-
function fileExists2(
|
|
7906
|
-
const stats2 = (0, _fs().statSync)(
|
|
7905
|
+
function fileExists2(url3) {
|
|
7906
|
+
const stats2 = (0, _fs().statSync)(url3, { throwIfNoEntry: false }), isFile2 = stats2 ? stats2.isFile() : void 0;
|
|
7907
7907
|
return null != isFile2 && isFile2;
|
|
7908
7908
|
}
|
|
7909
7909
|
function legacyMainResolve2(packageJsonUrl, packageConfig, base2) {
|
|
@@ -79245,34 +79245,34 @@ var require_util3 = __commonJS({
|
|
|
79245
79245
|
}
|
|
79246
79246
|
exports2.urlParse = urlParse;
|
|
79247
79247
|
function urlGenerate(aParsedUrl) {
|
|
79248
|
-
var
|
|
79248
|
+
var url3 = "";
|
|
79249
79249
|
if (aParsedUrl.scheme) {
|
|
79250
|
-
|
|
79250
|
+
url3 += aParsedUrl.scheme + ":";
|
|
79251
79251
|
}
|
|
79252
|
-
|
|
79252
|
+
url3 += "//";
|
|
79253
79253
|
if (aParsedUrl.auth) {
|
|
79254
|
-
|
|
79254
|
+
url3 += aParsedUrl.auth + "@";
|
|
79255
79255
|
}
|
|
79256
79256
|
if (aParsedUrl.host) {
|
|
79257
|
-
|
|
79257
|
+
url3 += aParsedUrl.host;
|
|
79258
79258
|
}
|
|
79259
79259
|
if (aParsedUrl.port) {
|
|
79260
|
-
|
|
79260
|
+
url3 += ":" + aParsedUrl.port;
|
|
79261
79261
|
}
|
|
79262
79262
|
if (aParsedUrl.path) {
|
|
79263
|
-
|
|
79263
|
+
url3 += aParsedUrl.path;
|
|
79264
79264
|
}
|
|
79265
|
-
return
|
|
79265
|
+
return url3;
|
|
79266
79266
|
}
|
|
79267
79267
|
exports2.urlGenerate = urlGenerate;
|
|
79268
79268
|
function normalize6(aPath) {
|
|
79269
79269
|
var path32 = aPath;
|
|
79270
|
-
var
|
|
79271
|
-
if (
|
|
79272
|
-
if (!
|
|
79270
|
+
var url3 = urlParse(aPath);
|
|
79271
|
+
if (url3) {
|
|
79272
|
+
if (!url3.path) {
|
|
79273
79273
|
return aPath;
|
|
79274
79274
|
}
|
|
79275
|
-
path32 =
|
|
79275
|
+
path32 = url3.path;
|
|
79276
79276
|
}
|
|
79277
79277
|
var isAbsolute3 = exports2.isAbsolute(path32);
|
|
79278
79278
|
var parts = path32.split(/\/+/);
|
|
@@ -79296,9 +79296,9 @@ var require_util3 = __commonJS({
|
|
|
79296
79296
|
if (path32 === "") {
|
|
79297
79297
|
path32 = isAbsolute3 ? "/" : ".";
|
|
79298
79298
|
}
|
|
79299
|
-
if (
|
|
79300
|
-
|
|
79301
|
-
return urlGenerate(
|
|
79299
|
+
if (url3) {
|
|
79300
|
+
url3.path = path32;
|
|
79301
|
+
return urlGenerate(url3);
|
|
79302
79302
|
}
|
|
79303
79303
|
return path32;
|
|
79304
79304
|
}
|
|
@@ -80393,13 +80393,13 @@ var require_source_map_consumer = __commonJS({
|
|
|
80393
80393
|
if (this.sourceRoot != null) {
|
|
80394
80394
|
relativeSource = util2.relative(this.sourceRoot, relativeSource);
|
|
80395
80395
|
}
|
|
80396
|
-
var
|
|
80397
|
-
if (this.sourceRoot != null && (
|
|
80396
|
+
var url3;
|
|
80397
|
+
if (this.sourceRoot != null && (url3 = util2.urlParse(this.sourceRoot))) {
|
|
80398
80398
|
var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
|
|
80399
|
-
if (
|
|
80399
|
+
if (url3.scheme == "file" && this._sources.has(fileUriAbsPath)) {
|
|
80400
80400
|
return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
|
|
80401
80401
|
}
|
|
80402
|
-
if ((!
|
|
80402
|
+
if ((!url3.path || url3.path == "/") && this._sources.has("/" + relativeSource)) {
|
|
80403
80403
|
return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
|
|
80404
80404
|
}
|
|
80405
80405
|
}
|
|
@@ -81027,17 +81027,17 @@ var require_source_map_support = __commonJS({
|
|
|
81027
81027
|
}
|
|
81028
81028
|
return fileContentsCache[path33] = contents;
|
|
81029
81029
|
});
|
|
81030
|
-
function supportRelativeURL(file,
|
|
81031
|
-
if (!file) return
|
|
81030
|
+
function supportRelativeURL(file, url3) {
|
|
81031
|
+
if (!file) return url3;
|
|
81032
81032
|
var dir = path32.dirname(file);
|
|
81033
81033
|
var match4 = /^\w+:\/\/[^\/]*/.exec(dir);
|
|
81034
81034
|
var protocol = match4 ? match4[0] : "";
|
|
81035
81035
|
var startPath = dir.slice(protocol.length);
|
|
81036
81036
|
if (protocol && /^\/\w\:/.test(startPath)) {
|
|
81037
81037
|
protocol += "/";
|
|
81038
|
-
return protocol + path32.resolve(dir.slice(protocol.length),
|
|
81038
|
+
return protocol + path32.resolve(dir.slice(protocol.length), url3).replace(/\\/g, "/");
|
|
81039
81039
|
}
|
|
81040
|
-
return protocol + path32.resolve(dir.slice(protocol.length),
|
|
81040
|
+
return protocol + path32.resolve(dir.slice(protocol.length), url3);
|
|
81041
81041
|
}
|
|
81042
81042
|
function retrieveSourceMapURL(source) {
|
|
81043
81043
|
var fileData;
|
|
@@ -81095,8 +81095,8 @@ var require_source_map_support = __commonJS({
|
|
|
81095
81095
|
sourceMap.map.sources.forEach(function(source, i) {
|
|
81096
81096
|
var contents = sourceMap.map.sourcesContent[i];
|
|
81097
81097
|
if (contents) {
|
|
81098
|
-
var
|
|
81099
|
-
fileContentsCache[
|
|
81098
|
+
var url3 = supportRelativeURL(sourceMap.url, source);
|
|
81099
|
+
fileContentsCache[url3] = contents;
|
|
81100
81100
|
}
|
|
81101
81101
|
});
|
|
81102
81102
|
}
|
|
@@ -90118,18 +90118,18 @@ ${lanes.join("\n")}
|
|
|
90118
90118
|
const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
|
|
90119
90119
|
for (const node of profile.nodes) {
|
|
90120
90120
|
if (node.callFrame.url) {
|
|
90121
|
-
const
|
|
90122
|
-
if (containsPath(fileUrlRoot,
|
|
90121
|
+
const url3 = normalizeSlashes(node.callFrame.url);
|
|
90122
|
+
if (containsPath(fileUrlRoot, url3, useCaseSensitiveFileNames2)) {
|
|
90123
90123
|
node.callFrame.url = getRelativePathToDirectoryOrUrl(
|
|
90124
90124
|
fileUrlRoot,
|
|
90125
|
-
|
|
90125
|
+
url3,
|
|
90126
90126
|
fileUrlRoot,
|
|
90127
90127
|
createGetCanonicalFileName(useCaseSensitiveFileNames2),
|
|
90128
90128
|
/*isAbsolutePathAnUrl*/
|
|
90129
90129
|
true
|
|
90130
90130
|
);
|
|
90131
|
-
} else if (!nativePattern.test(
|
|
90132
|
-
node.callFrame.url = (remappedPaths.has(
|
|
90131
|
+
} else if (!nativePattern.test(url3)) {
|
|
90132
|
+
node.callFrame.url = (remappedPaths.has(url3) ? remappedPaths : remappedPaths.set(url3, `external${externalFileCounter}.js`)).get(url3);
|
|
90133
90133
|
externalFileCounter++;
|
|
90134
90134
|
}
|
|
90135
90135
|
}
|
|
@@ -90418,11 +90418,11 @@ ${lanes.join("\n")}
|
|
|
90418
90418
|
function isVolumeCharacter(charCode) {
|
|
90419
90419
|
return charCode >= 97 && charCode <= 122 || charCode >= 65 && charCode <= 90;
|
|
90420
90420
|
}
|
|
90421
|
-
function getFileUrlVolumeSeparatorEnd(
|
|
90422
|
-
const ch0 =
|
|
90421
|
+
function getFileUrlVolumeSeparatorEnd(url3, start) {
|
|
90422
|
+
const ch0 = url3.charCodeAt(start);
|
|
90423
90423
|
if (ch0 === 58) return start + 1;
|
|
90424
|
-
if (ch0 === 37 &&
|
|
90425
|
-
const ch2 =
|
|
90424
|
+
if (ch0 === 37 && url3.charCodeAt(start + 1) === 51) {
|
|
90425
|
+
const ch2 = url3.charCodeAt(start + 2);
|
|
90426
90426
|
if (ch2 === 97 || ch2 === 65) return start + 3;
|
|
90427
90427
|
}
|
|
90428
90428
|
return -1;
|
|
@@ -292761,7 +292761,7 @@ var require_type_defs = __commonJS({
|
|
|
292761
292761
|
"../../node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/type-defs.js"(exports2, module) {
|
|
292762
292762
|
init_esm_shims();
|
|
292763
292763
|
var __import___debug = __toESM(require_debug());
|
|
292764
|
-
var
|
|
292764
|
+
var url3 = __import_url2;
|
|
292765
292765
|
var path32 = __import_path39;
|
|
292766
292766
|
var Stream3 = __import_stream6.Stream;
|
|
292767
292767
|
var os7 = __import_os9;
|
|
@@ -292817,7 +292817,7 @@ var require_type_defs = __commonJS({
|
|
|
292817
292817
|
data[k] = val;
|
|
292818
292818
|
}
|
|
292819
292819
|
function validateUrl(data, k, val) {
|
|
292820
|
-
val =
|
|
292820
|
+
val = url3.parse(String(val));
|
|
292821
292821
|
if (!val.host) {
|
|
292822
292822
|
return false;
|
|
292823
292823
|
}
|
|
@@ -292832,7 +292832,7 @@ var require_type_defs = __commonJS({
|
|
|
292832
292832
|
module.exports = {
|
|
292833
292833
|
String: { type: String, validate: validateString },
|
|
292834
292834
|
Boolean: { type: Boolean, validate: validateBoolean },
|
|
292835
|
-
url: { type:
|
|
292835
|
+
url: { type: url3, validate: validateUrl },
|
|
292836
292836
|
Number: { type: Number, validate: validateNumber },
|
|
292837
292837
|
path: { type: path32, validate: validatePath },
|
|
292838
292838
|
Stream: { type: Stream3, validate: validateStream },
|
|
@@ -293511,8 +293511,8 @@ var require_nerf_dart = __commonJS({
|
|
|
293511
293511
|
"../../node_modules/.pnpm/@npmcli+config@8.3.4/node_modules/@npmcli/config/lib/nerf-dart.js"(exports2, module) {
|
|
293512
293512
|
init_esm_shims();
|
|
293513
293513
|
var { URL: URL3 } = __import_node_url;
|
|
293514
|
-
module.exports = (
|
|
293515
|
-
const parsed = new URL3(
|
|
293514
|
+
module.exports = (url3) => {
|
|
293515
|
+
const parsed = new URL3(url3);
|
|
293516
293516
|
const from = `${parsed.protocol}//${parsed.host}${parsed.pathname}`;
|
|
293517
293517
|
const rel = new URL3(".", from);
|
|
293518
293518
|
const res = `//${rel.host}${rel.pathname}`;
|
|
@@ -293986,13 +293986,13 @@ var require_hosts = __commonJS({
|
|
|
293986
293986
|
filetemplate: ({ auth: auth7, user, project, committish, path: path32 }) => `https://${maybeJoin(auth7, "@")}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish || "HEAD")}/${path32}`,
|
|
293987
293987
|
gittemplate: ({ auth: auth7, domain, user, project, committish }) => `git://${maybeJoin(auth7, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
|
|
293988
293988
|
tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish || "HEAD")}`,
|
|
293989
|
-
extract: (
|
|
293990
|
-
let [, user, project, type2, committish] =
|
|
293989
|
+
extract: (url3) => {
|
|
293990
|
+
let [, user, project, type2, committish] = url3.pathname.split("/", 5);
|
|
293991
293991
|
if (type2 && type2 !== "tree") {
|
|
293992
293992
|
return;
|
|
293993
293993
|
}
|
|
293994
293994
|
if (!type2) {
|
|
293995
|
-
committish =
|
|
293995
|
+
committish = url3.hash.slice(1);
|
|
293996
293996
|
}
|
|
293997
293997
|
if (project && project.endsWith(".git")) {
|
|
293998
293998
|
project = project.slice(0, -4);
|
|
@@ -294011,8 +294011,8 @@ var require_hosts = __commonJS({
|
|
|
294011
294011
|
editpath: "?mode=edit",
|
|
294012
294012
|
edittemplate: ({ domain, user, project, committish, treepath, path: path32, editpath }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish || "HEAD"), "/", path32, editpath)}`,
|
|
294013
294013
|
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish || "HEAD")}.tar.gz`,
|
|
294014
|
-
extract: (
|
|
294015
|
-
let [, user, project, aux] =
|
|
294014
|
+
extract: (url3) => {
|
|
294015
|
+
let [, user, project, aux] = url3.pathname.split("/", 4);
|
|
294016
294016
|
if (["get"].includes(aux)) {
|
|
294017
294017
|
return;
|
|
294018
294018
|
}
|
|
@@ -294022,7 +294022,7 @@ var require_hosts = __commonJS({
|
|
|
294022
294022
|
if (!user || !project) {
|
|
294023
294023
|
return;
|
|
294024
294024
|
}
|
|
294025
|
-
return { user, project, committish:
|
|
294025
|
+
return { user, project, committish: url3.hash.slice(1) };
|
|
294026
294026
|
}
|
|
294027
294027
|
};
|
|
294028
294028
|
hosts.gitlab = {
|
|
@@ -294033,8 +294033,8 @@ var require_hosts = __commonJS({
|
|
|
294033
294033
|
editpath: "-/edit",
|
|
294034
294034
|
httpstemplate: ({ auth: auth7, domain, user, project, committish }) => `git+https://${maybeJoin(auth7, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
|
|
294035
294035
|
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish || "HEAD")}`,
|
|
294036
|
-
extract: (
|
|
294037
|
-
const path32 =
|
|
294036
|
+
extract: (url3) => {
|
|
294037
|
+
const path32 = url3.pathname.slice(1);
|
|
294038
294038
|
if (path32.includes("/-/") || path32.includes("/archive.tar.gz")) {
|
|
294039
294039
|
return;
|
|
294040
294040
|
}
|
|
@@ -294047,7 +294047,7 @@ var require_hosts = __commonJS({
|
|
|
294047
294047
|
if (!user || !project) {
|
|
294048
294048
|
return;
|
|
294049
294049
|
}
|
|
294050
|
-
return { user, project, committish:
|
|
294050
|
+
return { user, project, committish: url3.hash.slice(1) };
|
|
294051
294051
|
}
|
|
294052
294052
|
};
|
|
294053
294053
|
hosts.gist = {
|
|
@@ -294068,8 +294068,8 @@ var require_hosts = __commonJS({
|
|
|
294068
294068
|
bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,
|
|
294069
294069
|
gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin("#", committish)}`,
|
|
294070
294070
|
tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish || "HEAD")}`,
|
|
294071
|
-
extract: (
|
|
294072
|
-
let [, user, project, aux] =
|
|
294071
|
+
extract: (url3) => {
|
|
294072
|
+
let [, user, project, aux] = url3.pathname.split("/", 4);
|
|
294073
294073
|
if (aux === "raw") {
|
|
294074
294074
|
return;
|
|
294075
294075
|
}
|
|
@@ -294083,7 +294083,7 @@ var require_hosts = __commonJS({
|
|
|
294083
294083
|
if (project.endsWith(".git")) {
|
|
294084
294084
|
project = project.slice(0, -4);
|
|
294085
294085
|
}
|
|
294086
|
-
return { user, project, committish:
|
|
294086
|
+
return { user, project, committish: url3.hash.slice(1) };
|
|
294087
294087
|
},
|
|
294088
294088
|
hashformat: function(fragment) {
|
|
294089
294089
|
return fragment && "file-" + formatHashFragment(fragment);
|
|
@@ -294098,8 +294098,8 @@ var require_hosts = __commonJS({
|
|
|
294098
294098
|
httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
|
|
294099
294099
|
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || "HEAD"}.tar.gz`,
|
|
294100
294100
|
bugstemplate: () => null,
|
|
294101
|
-
extract: (
|
|
294102
|
-
let [, user, project, aux] =
|
|
294101
|
+
extract: (url3) => {
|
|
294102
|
+
let [, user, project, aux] = url3.pathname.split("/", 4);
|
|
294103
294103
|
if (["archive"].includes(aux)) {
|
|
294104
294104
|
return;
|
|
294105
294105
|
}
|
|
@@ -294109,7 +294109,7 @@ var require_hosts = __commonJS({
|
|
|
294109
294109
|
if (!user || !project) {
|
|
294110
294110
|
return;
|
|
294111
294111
|
}
|
|
294112
|
-
return { user, project, committish:
|
|
294112
|
+
return { user, project, committish: url3.hash.slice(1) };
|
|
294113
294113
|
}
|
|
294114
294114
|
};
|
|
294115
294115
|
for (const [name3, host] of Object.entries(hosts)) {
|
|
@@ -294124,14 +294124,14 @@ import * as __import_url3 from "url";
|
|
|
294124
294124
|
var require_parse_url = __commonJS({
|
|
294125
294125
|
"../../node_modules/.pnpm/hosted-git-info@7.0.2/node_modules/hosted-git-info/lib/parse-url.js"(exports2, module) {
|
|
294126
294126
|
init_esm_shims();
|
|
294127
|
-
var
|
|
294127
|
+
var url3 = __import_url3;
|
|
294128
294128
|
var lastIndexOfBefore = (str2, char, beforeChar) => {
|
|
294129
294129
|
const startPosition = str2.indexOf(beforeChar);
|
|
294130
294130
|
return str2.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
|
|
294131
294131
|
};
|
|
294132
294132
|
var safeUrl = (u) => {
|
|
294133
294133
|
try {
|
|
294134
|
-
return new
|
|
294134
|
+
return new url3.URL(u);
|
|
294135
294135
|
} catch {
|
|
294136
294136
|
}
|
|
294137
294137
|
};
|
|
@@ -294323,8 +294323,8 @@ var require_lib10 = __commonJS({
|
|
|
294323
294323
|
}
|
|
294324
294324
|
return cache5.get(key);
|
|
294325
294325
|
}
|
|
294326
|
-
static parseUrl(
|
|
294327
|
-
return parseUrl2(
|
|
294326
|
+
static parseUrl(url3) {
|
|
294327
|
+
return parseUrl2(url3);
|
|
294328
294328
|
}
|
|
294329
294329
|
#fill(template2, opts) {
|
|
294330
294330
|
if (typeof template2 !== "function") {
|
|
@@ -303204,7 +303204,7 @@ var require_fixer = __commonJS({
|
|
|
303204
303204
|
var moduleBuiltin = __import_node_module;
|
|
303205
303205
|
var depTypes = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
303206
303206
|
var extractDescription = __import___extract_description;
|
|
303207
|
-
var
|
|
303207
|
+
var url3 = __import_url6;
|
|
303208
303208
|
var typos = typos_exports;
|
|
303209
303209
|
var isEmail = (str2) => str2.includes("@") && str2.indexOf("@") < str2.lastIndexOf(".");
|
|
303210
303210
|
module.exports = {
|
|
@@ -303447,7 +303447,7 @@ var require_fixer = __commonJS({
|
|
|
303447
303447
|
if (typeof data.bugs === "string") {
|
|
303448
303448
|
if (isEmail(data.bugs)) {
|
|
303449
303449
|
data.bugs = { email: data.bugs };
|
|
303450
|
-
} else if (
|
|
303450
|
+
} else if (url3.parse(data.bugs).protocol) {
|
|
303451
303451
|
data.bugs = { url: data.bugs };
|
|
303452
303452
|
} else {
|
|
303453
303453
|
this.warn("nonEmailUrlBugsString");
|
|
@@ -303457,7 +303457,7 @@ var require_fixer = __commonJS({
|
|
|
303457
303457
|
var oldBugs = data.bugs;
|
|
303458
303458
|
data.bugs = {};
|
|
303459
303459
|
if (oldBugs.url) {
|
|
303460
|
-
if (typeof oldBugs.url === "string" &&
|
|
303460
|
+
if (typeof oldBugs.url === "string" && url3.parse(oldBugs.url).protocol) {
|
|
303461
303461
|
data.bugs.url = oldBugs.url;
|
|
303462
303462
|
} else {
|
|
303463
303463
|
this.warn("nonUrlBugsUrlField");
|
|
@@ -303491,7 +303491,7 @@ var require_fixer = __commonJS({
|
|
|
303491
303491
|
this.warn("nonUrlHomepage");
|
|
303492
303492
|
return delete data.homepage;
|
|
303493
303493
|
}
|
|
303494
|
-
if (!
|
|
303494
|
+
if (!url3.parse(data.homepage).protocol) {
|
|
303495
303495
|
data.homepage = "http://" + data.homepage;
|
|
303496
303496
|
}
|
|
303497
303497
|
},
|
|
@@ -305418,10 +305418,10 @@ var require_lib22 = __commonJS({
|
|
|
305418
305418
|
conf[_loadError] = null;
|
|
305419
305419
|
if (where === "user") {
|
|
305420
305420
|
const nerfed = nerfDart(this.get("registry"));
|
|
305421
|
-
const
|
|
305422
|
-
if (
|
|
305421
|
+
const email3 = this.get(`${nerfed}:email`, "user");
|
|
305422
|
+
if (email3) {
|
|
305423
305423
|
this.delete(`${nerfed}:email`, "user");
|
|
305424
|
-
this.set("email",
|
|
305424
|
+
this.set("email", email3, "user");
|
|
305425
305425
|
}
|
|
305426
305426
|
}
|
|
305427
305427
|
const iniData = ini2.stringify(conf.raw).trim() + "\n";
|
|
@@ -305446,9 +305446,9 @@ var require_lib22 = __commonJS({
|
|
|
305446
305446
|
this.delete(`_auth`, level);
|
|
305447
305447
|
this.delete(`_password`, level);
|
|
305448
305448
|
this.delete(`username`, level);
|
|
305449
|
-
const
|
|
305450
|
-
if (
|
|
305451
|
-
this.set("email",
|
|
305449
|
+
const email3 = this.get(`${nerfed}:email`, level);
|
|
305450
|
+
if (email3) {
|
|
305451
|
+
this.set("email", email3, level);
|
|
305452
305452
|
}
|
|
305453
305453
|
}
|
|
305454
305454
|
this.delete(`${nerfed}:_authToken`, level);
|
|
@@ -305491,12 +305491,12 @@ var require_lib22 = __commonJS({
|
|
|
305491
305491
|
const nerfed = nerfDart(uri);
|
|
305492
305492
|
const def = nerfDart(this.get("registry"));
|
|
305493
305493
|
const creds = {};
|
|
305494
|
-
const
|
|
305495
|
-
if (
|
|
305494
|
+
const email3 = this.get(`${nerfed}:email`) || this.get("email");
|
|
305495
|
+
if (email3) {
|
|
305496
305496
|
if (nerfed === def) {
|
|
305497
|
-
this.set("email",
|
|
305497
|
+
this.set("email", email3, "user");
|
|
305498
305498
|
}
|
|
305499
|
-
creds.email =
|
|
305499
|
+
creds.email = email3;
|
|
305500
305500
|
}
|
|
305501
305501
|
const certfileReg = this.get(`${nerfed}:certfile`);
|
|
305502
305502
|
const keyfileReg = this.get(`${nerfed}:keyfile`);
|
|
@@ -305609,7 +305609,7 @@ var require_definition = __commonJS({
|
|
|
305609
305609
|
var {
|
|
305610
305610
|
semver: { type: semver8 },
|
|
305611
305611
|
Umask: { type: Umask },
|
|
305612
|
-
url: { type:
|
|
305612
|
+
url: { type: url3 },
|
|
305613
305613
|
path: { type: path32 }
|
|
305614
305614
|
} = __import____typeDefs_js;
|
|
305615
305615
|
var Definition = class {
|
|
@@ -305737,7 +305737,7 @@ ${noEnvExport}`);
|
|
|
305737
305737
|
return "Path";
|
|
305738
305738
|
case semver8:
|
|
305739
305739
|
return "SemVer string";
|
|
305740
|
-
case
|
|
305740
|
+
case url3:
|
|
305741
305741
|
return "URL";
|
|
305742
305742
|
default:
|
|
305743
305743
|
return describeValue(type2);
|
|
@@ -306300,7 +306300,7 @@ var require_definitions = __commonJS({
|
|
|
306300
306300
|
var {
|
|
306301
306301
|
semver: { type: Semver },
|
|
306302
306302
|
Umask: { type: Umask },
|
|
306303
|
-
url: { type:
|
|
306303
|
+
url: { type: url3 },
|
|
306304
306304
|
path: { type: path32 }
|
|
306305
306305
|
} = __import____typeDefs_js;
|
|
306306
306306
|
var flatten3 = (key, obj2, flatOptions) => {
|
|
@@ -306998,7 +306998,7 @@ var require_definitions = __commonJS({
|
|
|
306998
306998
|
}),
|
|
306999
306999
|
"https-proxy": new Definition("https-proxy", {
|
|
307000
307000
|
default: null,
|
|
307001
|
-
type: [null,
|
|
307001
|
+
type: [null, url3],
|
|
307002
307002
|
description: `
|
|
307003
307003
|
A proxy to use for outgoing https requests. If the \`HTTPS_PROXY\` or
|
|
307004
307004
|
\`https_proxy\` or \`HTTP_PROXY\` or \`http_proxy\` environment variables
|
|
@@ -307093,7 +307093,7 @@ var require_definitions = __commonJS({
|
|
|
307093
307093
|
}),
|
|
307094
307094
|
"init-author-url": new Definition("init-author-url", {
|
|
307095
307095
|
default: "",
|
|
307096
|
-
type: ["",
|
|
307096
|
+
type: ["", url3],
|
|
307097
307097
|
hint: "<url>",
|
|
307098
307098
|
description: `
|
|
307099
307099
|
The value \`npm init\` should use by default for the package author's homepage.
|
|
@@ -307150,7 +307150,7 @@ var require_definitions = __commonJS({
|
|
|
307150
307150
|
}),
|
|
307151
307151
|
"init.author.url": new Definition("init.author.url", {
|
|
307152
307152
|
default: "",
|
|
307153
|
-
type: ["",
|
|
307153
|
+
type: ["", url3],
|
|
307154
307154
|
deprecated: `
|
|
307155
307155
|
Use \`--init-author-url\` instead.
|
|
307156
307156
|
`,
|
|
@@ -307743,7 +307743,7 @@ var require_definitions = __commonJS({
|
|
|
307743
307743
|
}),
|
|
307744
307744
|
proxy: new Definition("proxy", {
|
|
307745
307745
|
default: null,
|
|
307746
|
-
type: [null, false,
|
|
307746
|
+
type: [null, false, url3],
|
|
307747
307747
|
// allow proxy to be disabled explicitly
|
|
307748
307748
|
description: `
|
|
307749
307749
|
A proxy to use for outgoing http requests. If the \`HTTP_PROXY\` or
|
|
@@ -307771,7 +307771,7 @@ var require_definitions = __commonJS({
|
|
|
307771
307771
|
}),
|
|
307772
307772
|
registry: new Definition("registry", {
|
|
307773
307773
|
default: "https://registry.npmjs.org/",
|
|
307774
|
-
type:
|
|
307774
|
+
type: url3,
|
|
307775
307775
|
description: `
|
|
307776
307776
|
The base URL of the npm registry.
|
|
307777
307777
|
`,
|
|
@@ -314017,7 +314017,7 @@ import * as __import_url7 from "url";
|
|
|
314017
314017
|
var require_parse_github_url = __commonJS({
|
|
314018
314018
|
"../../node_modules/.pnpm/parse-github-url@1.0.3/node_modules/parse-github-url/index.js"(exports2, module) {
|
|
314019
314019
|
init_esm_shims();
|
|
314020
|
-
var
|
|
314020
|
+
var url3 = __import_url7;
|
|
314021
314021
|
var cache5 = { __proto__: null };
|
|
314022
314022
|
function isChecksum(str2) {
|
|
314023
314023
|
return /^[a-f0-9]{40}$/i.test(str2);
|
|
@@ -314056,12 +314056,12 @@ var require_parse_github_url = __commonJS({
|
|
|
314056
314056
|
if (str2.indexOf("git@gist") !== -1 || str2.indexOf("//gist") !== -1) {
|
|
314057
314057
|
return null;
|
|
314058
314058
|
}
|
|
314059
|
-
var obj2 =
|
|
314059
|
+
var obj2 = url3.parse(str2);
|
|
314060
314060
|
if (typeof obj2.path !== "string" || !obj2.path.length || typeof obj2.pathname !== "string" || !obj2.pathname.length) {
|
|
314061
314061
|
return null;
|
|
314062
314062
|
}
|
|
314063
314063
|
if (!obj2.host && /^git@/.test(str2) === true) {
|
|
314064
|
-
obj2.host =
|
|
314064
|
+
obj2.host = url3.parse("http://" + str2.replace(/git@([^:]+):/, "$1/")).host;
|
|
314065
314065
|
}
|
|
314066
314066
|
obj2.path = trimSlash(obj2.path);
|
|
314067
314067
|
obj2.pathname = trimSlash(obj2.pathname);
|
|
@@ -320568,11 +320568,11 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
320568
320568
|
inst._zod.check = (payload) => {
|
|
320569
320569
|
try {
|
|
320570
320570
|
const orig = payload.value;
|
|
320571
|
-
const
|
|
320572
|
-
const href =
|
|
320571
|
+
const url3 = new URL(orig);
|
|
320572
|
+
const href = url3.href;
|
|
320573
320573
|
if (def.hostname) {
|
|
320574
320574
|
def.hostname.lastIndex = 0;
|
|
320575
|
-
if (!def.hostname.test(
|
|
320575
|
+
if (!def.hostname.test(url3.hostname)) {
|
|
320576
320576
|
payload.issues.push({
|
|
320577
320577
|
code: "invalid_format",
|
|
320578
320578
|
format: "url",
|
|
@@ -320586,7 +320586,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
320586
320586
|
}
|
|
320587
320587
|
if (def.protocol) {
|
|
320588
320588
|
def.protocol.lastIndex = 0;
|
|
320589
|
-
if (!def.protocol.test(
|
|
320589
|
+
if (!def.protocol.test(url3.protocol.endsWith(":") ? url3.protocol.slice(0, -1) : url3.protocol)) {
|
|
320590
320590
|
payload.issues.push({
|
|
320591
320591
|
code: "invalid_format",
|
|
320592
320592
|
format: "url",
|
|
@@ -322195,6 +322195,9 @@ var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
|
|
|
322195
322195
|
$ZodEmail.init(inst, def);
|
|
322196
322196
|
ZodStringFormat.init(inst, def);
|
|
322197
322197
|
});
|
|
322198
|
+
function email2(params) {
|
|
322199
|
+
return _email(ZodEmail, params);
|
|
322200
|
+
}
|
|
322198
322201
|
var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
|
|
322199
322202
|
$ZodGUID.init(inst, def);
|
|
322200
322203
|
ZodStringFormat.init(inst, def);
|
|
@@ -322207,6 +322210,9 @@ var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
|
|
|
322207
322210
|
$ZodURL.init(inst, def);
|
|
322208
322211
|
ZodStringFormat.init(inst, def);
|
|
322209
322212
|
});
|
|
322213
|
+
function url(params) {
|
|
322214
|
+
return _url(ZodURL, params);
|
|
322215
|
+
}
|
|
322210
322216
|
var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
|
|
322211
322217
|
$ZodEmoji.init(inst, def);
|
|
322212
322218
|
ZodStringFormat.init(inst, def);
|
|
@@ -322678,7 +322684,7 @@ var SingleThemeColorConfigSchema = object({
|
|
|
322678
322684
|
positive: PositiveColorSchema,
|
|
322679
322685
|
negative: NegativeColorSchema
|
|
322680
322686
|
});
|
|
322681
|
-
var RegistryUrlConfigSchema =
|
|
322687
|
+
var RegistryUrlConfigSchema = url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
322682
322688
|
var RegistryConfigSchema = object({
|
|
322683
322689
|
github: RegistryUrlConfigSchema,
|
|
322684
322690
|
npm: RegistryUrlConfigSchema,
|
|
@@ -322705,7 +322711,7 @@ var WorkspaceBotConfigSchema = object({
|
|
|
322705
322711
|
name: string2().trim().default("stormie-bot").describe(
|
|
322706
322712
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
322707
322713
|
),
|
|
322708
|
-
email:
|
|
322714
|
+
email: email2().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
322709
322715
|
}).describe(
|
|
322710
322716
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
322711
322717
|
);
|
|
@@ -322748,16 +322754,16 @@ var WorkspaceDirectoryConfigSchema = object({
|
|
|
322748
322754
|
);
|
|
322749
322755
|
var errorConfigSchema = object({
|
|
322750
322756
|
codesFile: string2().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
322751
|
-
url:
|
|
322757
|
+
url: url().optional().describe(
|
|
322752
322758
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
322753
322759
|
)
|
|
322754
322760
|
}).describe("The workspace's error config used during the error process");
|
|
322755
322761
|
var organizationConfigSchema = object({
|
|
322756
322762
|
name: string2().trim().describe("The name of the organization"),
|
|
322757
322763
|
description: string2().trim().optional().describe("A description of the organization"),
|
|
322758
|
-
logo:
|
|
322759
|
-
icon:
|
|
322760
|
-
url:
|
|
322764
|
+
logo: url().optional().describe("A URL to the organization's logo image"),
|
|
322765
|
+
icon: url().optional().describe("A URL to the organization's icon image"),
|
|
322766
|
+
url: url().optional().describe(
|
|
322761
322767
|
"A URL to a page that provides more information about the organization"
|
|
322762
322768
|
)
|
|
322763
322769
|
}).describe("The workspace's organization details");
|
|
@@ -322777,12 +322783,12 @@ var stormWorkspaceConfigSchema = object({
|
|
|
322777
322783
|
),
|
|
322778
322784
|
repository: string2().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
322779
322785
|
license: string2().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
322780
|
-
homepage:
|
|
322781
|
-
docs:
|
|
322782
|
-
portal:
|
|
322783
|
-
licensing:
|
|
322784
|
-
contact:
|
|
322785
|
-
support:
|
|
322786
|
+
homepage: url().optional().describe("The homepage of the workspace"),
|
|
322787
|
+
docs: url().optional().describe("The documentation site for the workspace"),
|
|
322788
|
+
portal: url().optional().describe("The development portal site for the workspace"),
|
|
322789
|
+
licensing: url().optional().describe("The licensing site for the workspace"),
|
|
322790
|
+
contact: url().optional().describe("The contact site for the workspace"),
|
|
322791
|
+
support: url().optional().describe(
|
|
322786
322792
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
322787
322793
|
),
|
|
322788
322794
|
branch: string2().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -322792,7 +322798,7 @@ var stormWorkspaceConfigSchema = object({
|
|
|
322792
322798
|
release: WorkspaceReleaseConfigSchema,
|
|
322793
322799
|
socials: WorkspaceSocialsConfigSchema,
|
|
322794
322800
|
error: errorConfigSchema,
|
|
322795
|
-
mode:
|
|
322801
|
+
mode: string2().trim().default("production").describe("The current runtime environment mode for the package"),
|
|
322796
322802
|
workspaceRoot: string2().trim().describe("The root directory of the workspace"),
|
|
322797
322803
|
skipCache: boolean2().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
322798
322804
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -334834,22 +334840,22 @@ import Path from "node:path";
|
|
|
334834
334840
|
import { pathToFileURL as pathToFileURL2 } from "node:url";
|
|
334835
334841
|
import { fileURLToPath as fileURLToPath4, pathToFileURL } from "node:url";
|
|
334836
334842
|
var isURLRegEx = /^(\w[\w-]{1,63}:\/|data:|stdin:)/i;
|
|
334837
|
-
function toURL(
|
|
334838
|
-
return normalizeWindowsUrl(
|
|
334839
|
-
}
|
|
334840
|
-
function urlParent(
|
|
334841
|
-
|
|
334842
|
-
if (
|
|
334843
|
-
return
|
|
334844
|
-
}
|
|
334845
|
-
const hasTrailingSlash =
|
|
334846
|
-
if (!
|
|
334847
|
-
if (!
|
|
334848
|
-
const parts =
|
|
334843
|
+
function toURL(url3, relativeTo) {
|
|
334844
|
+
return normalizeWindowsUrl(url3 instanceof URL ? url3 : new URL(url3, relativeTo));
|
|
334845
|
+
}
|
|
334846
|
+
function urlParent(url3) {
|
|
334847
|
+
url3 = toURL(url3);
|
|
334848
|
+
if (url3.protocol === "data:") {
|
|
334849
|
+
return url3;
|
|
334850
|
+
}
|
|
334851
|
+
const hasTrailingSlash = url3.pathname.endsWith("/");
|
|
334852
|
+
if (!url3.pathname.startsWith("/")) {
|
|
334853
|
+
if (!url3.pathname) return url3;
|
|
334854
|
+
const parts = url3.pathname.split("/").slice(0, hasTrailingSlash ? -2 : -1);
|
|
334849
334855
|
const pathname = parts.join("/") + "/";
|
|
334850
|
-
return new URL(
|
|
334856
|
+
return new URL(url3.protocol + (url3.host ? "//" + url3.host : "") + pathname + url3.search + url3.hash);
|
|
334851
334857
|
}
|
|
334852
|
-
return new URL(hasTrailingSlash ? ".." : ".",
|
|
334858
|
+
return new URL(hasTrailingSlash ? ".." : ".", url3);
|
|
334853
334859
|
}
|
|
334854
334860
|
var urlDirname = urlParent;
|
|
334855
334861
|
function basenameOfUrlPathname(path32) {
|
|
@@ -334860,13 +334866,13 @@ function basenameOfUrlPathname(path32) {
|
|
|
334860
334866
|
function isUrlLike(filename) {
|
|
334861
334867
|
return filename instanceof URL || isURLRegEx.test(filename);
|
|
334862
334868
|
}
|
|
334863
|
-
function hasProtocol(
|
|
334869
|
+
function hasProtocol(url3, protocol) {
|
|
334864
334870
|
protocol = protocol.endsWith(":") ? protocol : protocol + ":";
|
|
334865
|
-
return typeof
|
|
334871
|
+
return typeof url3 === "string" ? url3.startsWith(protocol) : url3.protocol === protocol;
|
|
334866
334872
|
}
|
|
334867
|
-
function addTrailingSlash(
|
|
334868
|
-
if (
|
|
334869
|
-
const urlWithSlash = new URL(
|
|
334873
|
+
function addTrailingSlash(url3) {
|
|
334874
|
+
if (url3.pathname.endsWith("/")) return url3;
|
|
334875
|
+
const urlWithSlash = new URL(url3.href);
|
|
334870
334876
|
urlWithSlash.pathname += "/";
|
|
334871
334877
|
return urlWithSlash;
|
|
334872
334878
|
}
|
|
@@ -334894,60 +334900,60 @@ function urlToUrlRelative(urlFrom, urlTo) {
|
|
|
334894
334900
|
}
|
|
334895
334901
|
var regExpWindowsPath = /^[\\/]([a-zA-Z]:[\\/])/;
|
|
334896
334902
|
var badUncLocalhostUrl = /^(\/+[a-zA-Z])\$/;
|
|
334897
|
-
function normalizeWindowsUrl(
|
|
334898
|
-
|
|
334899
|
-
if (
|
|
334900
|
-
let pathname =
|
|
334901
|
-
if (!
|
|
334903
|
+
function normalizeWindowsUrl(url3) {
|
|
334904
|
+
url3 = typeof url3 === "string" ? new URL(url3) : url3;
|
|
334905
|
+
if (url3.protocol === "file:") {
|
|
334906
|
+
let pathname = url3.pathname.replaceAll("%3A", ":").replaceAll("%3a", ":").replaceAll("%24", "$");
|
|
334907
|
+
if (!url3.host) {
|
|
334902
334908
|
pathname = pathname.replace(badUncLocalhostUrl, "$1:");
|
|
334903
334909
|
}
|
|
334904
334910
|
pathname = pathname.replace(regExpWindowsPath, (d) => d.toUpperCase());
|
|
334905
|
-
if (pathname !==
|
|
334906
|
-
|
|
334907
|
-
|
|
334908
|
-
return fixUncUrl(
|
|
334911
|
+
if (pathname !== url3.pathname) {
|
|
334912
|
+
url3 = new URL(url3);
|
|
334913
|
+
url3.pathname = pathname;
|
|
334914
|
+
return fixUncUrl(url3);
|
|
334909
334915
|
}
|
|
334910
334916
|
}
|
|
334911
|
-
return fixUncUrl(
|
|
334917
|
+
return fixUncUrl(url3);
|
|
334912
334918
|
}
|
|
334913
|
-
function fixUncUrl(
|
|
334914
|
-
if (
|
|
334915
|
-
return new URL(
|
|
334919
|
+
function fixUncUrl(url3) {
|
|
334920
|
+
if (url3.href.startsWith("file:////")) {
|
|
334921
|
+
return new URL(url3.href.replace(/^file:\/{4}/, "file://"));
|
|
334916
334922
|
}
|
|
334917
|
-
return
|
|
334923
|
+
return url3;
|
|
334918
334924
|
}
|
|
334919
334925
|
var regMatchFilename = /filename=([^;,]*)/;
|
|
334920
|
-
function urlBasename(
|
|
334926
|
+
function urlBasename(url3) {
|
|
334921
334927
|
function guessDataUrlName(header) {
|
|
334922
334928
|
const filenameMatch = header.match(regMatchFilename);
|
|
334923
334929
|
if (filenameMatch) return filenameMatch[1];
|
|
334924
334930
|
const mime = header.split(";", 1)[0];
|
|
334925
334931
|
return mime.replaceAll(/\W/g, ".");
|
|
334926
334932
|
}
|
|
334927
|
-
|
|
334928
|
-
if (
|
|
334929
|
-
return guessDataUrlName(
|
|
334933
|
+
url3 = toURL(url3);
|
|
334934
|
+
if (url3.protocol === "data:") {
|
|
334935
|
+
return guessDataUrlName(url3.pathname.split(",", 1)[0]);
|
|
334930
334936
|
}
|
|
334931
|
-
return basenameOfUrlPathname(
|
|
334937
|
+
return basenameOfUrlPathname(url3.pathname);
|
|
334932
334938
|
}
|
|
334933
|
-
function isDataURL(
|
|
334934
|
-
return hasProtocol(
|
|
334939
|
+
function isDataURL(url3) {
|
|
334940
|
+
return hasProtocol(url3, "data:");
|
|
334935
334941
|
}
|
|
334936
334942
|
var isWindows2 = process.platform === "win32";
|
|
334937
334943
|
var windowsUrlPathRegExp = /^\/[a-zA-Z]:\//;
|
|
334938
334944
|
function isWindowsPathnameWithDriveLatter(pathname) {
|
|
334939
334945
|
return windowsUrlPathRegExp.test(pathname);
|
|
334940
334946
|
}
|
|
334941
|
-
function isFileURL(
|
|
334942
|
-
return hasProtocol(
|
|
334947
|
+
function isFileURL(url3) {
|
|
334948
|
+
return hasProtocol(url3, "file:");
|
|
334943
334949
|
}
|
|
334944
|
-
function toFilePathOrHref(
|
|
334945
|
-
return isFileURL(
|
|
334950
|
+
function toFilePathOrHref(url3) {
|
|
334951
|
+
return isFileURL(url3) && url3.toString().startsWith("file:///") ? toFilePath(url3) : url3.toString();
|
|
334946
334952
|
}
|
|
334947
|
-
function toFilePath(
|
|
334953
|
+
function toFilePath(url3) {
|
|
334948
334954
|
try {
|
|
334949
334955
|
if (isWindows2) {
|
|
334950
|
-
const u = new URL(
|
|
334956
|
+
const u = new URL(url3);
|
|
334951
334957
|
if (!isWindowsPathnameWithDriveLatter(u.pathname)) {
|
|
334952
334958
|
const cwdUrl = pathToFileURL(process.cwd());
|
|
334953
334959
|
if (cwdUrl.hostname) {
|
|
@@ -334958,9 +334964,9 @@ function toFilePath(url2) {
|
|
|
334958
334964
|
return fileURLToPath4(u);
|
|
334959
334965
|
}
|
|
334960
334966
|
}
|
|
334961
|
-
return pathWindowsDriveLetterToUpper(fileURLToPath4(
|
|
334967
|
+
return pathWindowsDriveLetterToUpper(fileURLToPath4(url3));
|
|
334962
334968
|
} catch {
|
|
334963
|
-
return
|
|
334969
|
+
return url3.toString();
|
|
334964
334970
|
}
|
|
334965
334971
|
}
|
|
334966
334972
|
var regExpWindowsPathDriveLetter = /^([a-zA-Z]):[\\/]/;
|
|
@@ -334968,8 +334974,8 @@ function pathWindowsDriveLetterToUpper(absoluteFilePath) {
|
|
|
334968
334974
|
return absoluteFilePath.replace(regExpWindowsPathDriveLetter, (s) => s.toUpperCase());
|
|
334969
334975
|
}
|
|
334970
334976
|
var regExpWindowsFileUrl = /^file:\/\/\/[a-zA-Z]:\//;
|
|
334971
|
-
function isWindowsFileUrl(
|
|
334972
|
-
return regExpWindowsFileUrl.test(
|
|
334977
|
+
function isWindowsFileUrl(url3) {
|
|
334978
|
+
return regExpWindowsFileUrl.test(url3.toString());
|
|
334973
334979
|
}
|
|
334974
334980
|
var isWindowsPathRegEx = regExpWindowsPathDriveLetter;
|
|
334975
334981
|
var isWindowsPathname = regExpWindowsPath;
|
|
@@ -335085,13 +335091,13 @@ var FileUrlBuilder = class {
|
|
|
335085
335091
|
toFileDirURL(dirOrUrl, relativeTo) {
|
|
335086
335092
|
return addTrailingSlash(this.toFileURL(dirOrUrl, relativeTo));
|
|
335087
335093
|
}
|
|
335088
|
-
urlToFilePathOrHref(
|
|
335089
|
-
|
|
335090
|
-
return this.#urlToFilePathOrHref(
|
|
335094
|
+
urlToFilePathOrHref(url3) {
|
|
335095
|
+
url3 = this.toFileURL(url3);
|
|
335096
|
+
return this.#urlToFilePathOrHref(url3);
|
|
335091
335097
|
}
|
|
335092
|
-
#urlToFilePathOrHref(
|
|
335093
|
-
if (
|
|
335094
|
-
const p = this.path === Path ? toFilePathOrHref(
|
|
335098
|
+
#urlToFilePathOrHref(url3) {
|
|
335099
|
+
if (url3.protocol !== ProtocolFile || url3.hostname) return url3.href;
|
|
335100
|
+
const p = this.path === Path ? toFilePathOrHref(url3) : decodeURIComponent(url3.pathname.split("/").join(this.path.sep));
|
|
335095
335101
|
return pathWindowsDriveLetterToUpper(p.replace(isWindowsPathname, "$1"));
|
|
335096
335102
|
}
|
|
335097
335103
|
/**
|
|
@@ -335122,8 +335128,8 @@ var FileUrlBuilder = class {
|
|
|
335122
335128
|
* Get the parent directory of a URL.
|
|
335123
335129
|
* @param url
|
|
335124
335130
|
*/
|
|
335125
|
-
urlDirname(
|
|
335126
|
-
return urlParent(this.toFileURL(
|
|
335131
|
+
urlDirname(url3) {
|
|
335132
|
+
return urlParent(this.toFileURL(url3));
|
|
335127
335133
|
}
|
|
335128
335134
|
pathToFileURL(pathname, relativeToURL) {
|
|
335129
335135
|
return new URL(this.normalizeFilePathForUrl(pathname), relativeToURL || this.cwd);
|
|
@@ -335147,8 +335153,8 @@ var FileUrlBuilder = class {
|
|
|
335147
335153
|
isAbsolute(filePath2) {
|
|
335148
335154
|
return isUrlLike(filePath2) || this.path.isAbsolute(filePath2);
|
|
335149
335155
|
}
|
|
335150
|
-
isUrlLike(
|
|
335151
|
-
return isUrlLike(
|
|
335156
|
+
isUrlLike(url3) {
|
|
335157
|
+
return isUrlLike(url3);
|
|
335152
335158
|
}
|
|
335153
335159
|
};
|
|
335154
335160
|
var fileUrlBuilder = new FileUrlBuilder();
|
|
@@ -335613,8 +335619,8 @@ function getPackageScopeConfig(resolved) {
|
|
|
335613
335619
|
type: "none"
|
|
335614
335620
|
};
|
|
335615
335621
|
}
|
|
335616
|
-
function getPackageType(
|
|
335617
|
-
return getPackageScopeConfig(
|
|
335622
|
+
function getPackageType(url3) {
|
|
335623
|
+
return getPackageScopeConfig(url3).type;
|
|
335618
335624
|
}
|
|
335619
335625
|
|
|
335620
335626
|
// ../../node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/get-format.js
|
|
@@ -335651,8 +335657,8 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
335651
335657
|
) || [null, null, null];
|
|
335652
335658
|
return mimeToFormat(mime);
|
|
335653
335659
|
}
|
|
335654
|
-
function extname2(
|
|
335655
|
-
const pathname =
|
|
335660
|
+
function extname2(url3) {
|
|
335661
|
+
const pathname = url3.pathname;
|
|
335656
335662
|
let index2 = pathname.length;
|
|
335657
335663
|
while (index2--) {
|
|
335658
335664
|
const code = pathname.codePointAt(index2);
|
|
@@ -335665,17 +335671,17 @@ function extname2(url2) {
|
|
|
335665
335671
|
}
|
|
335666
335672
|
return "";
|
|
335667
335673
|
}
|
|
335668
|
-
function getFileProtocolModuleFormat(
|
|
335669
|
-
const value2 = extname2(
|
|
335674
|
+
function getFileProtocolModuleFormat(url3, _context, ignoreErrors) {
|
|
335675
|
+
const value2 = extname2(url3);
|
|
335670
335676
|
if (value2 === ".js") {
|
|
335671
|
-
const packageType = getPackageType(
|
|
335677
|
+
const packageType = getPackageType(url3);
|
|
335672
335678
|
if (packageType !== "none") {
|
|
335673
335679
|
return packageType;
|
|
335674
335680
|
}
|
|
335675
335681
|
return "commonjs";
|
|
335676
335682
|
}
|
|
335677
335683
|
if (value2 === "") {
|
|
335678
|
-
const packageType = getPackageType(
|
|
335684
|
+
const packageType = getPackageType(url3);
|
|
335679
335685
|
if (packageType === "none" || packageType === "commonjs") {
|
|
335680
335686
|
return "commonjs";
|
|
335681
335687
|
}
|
|
@@ -335686,17 +335692,17 @@ function getFileProtocolModuleFormat(url2, _context, ignoreErrors) {
|
|
|
335686
335692
|
if (ignoreErrors) {
|
|
335687
335693
|
return void 0;
|
|
335688
335694
|
}
|
|
335689
|
-
const filepath = fileURLToPath6(
|
|
335695
|
+
const filepath = fileURLToPath6(url3);
|
|
335690
335696
|
throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
|
|
335691
335697
|
}
|
|
335692
335698
|
function getHttpProtocolModuleFormat() {
|
|
335693
335699
|
}
|
|
335694
|
-
function defaultGetFormatWithoutErrors(
|
|
335695
|
-
const protocol =
|
|
335700
|
+
function defaultGetFormatWithoutErrors(url3, context) {
|
|
335701
|
+
const protocol = url3.protocol;
|
|
335696
335702
|
if (!hasOwnProperty4.call(protocolHandlers, protocol)) {
|
|
335697
335703
|
return null;
|
|
335698
335704
|
}
|
|
335699
|
-
return protocolHandlers[protocol](
|
|
335705
|
+
return protocolHandlers[protocol](url3, context, true) || null;
|
|
335700
335706
|
}
|
|
335701
335707
|
|
|
335702
335708
|
// ../../node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/utils.js
|
|
@@ -335757,13 +335763,13 @@ function emitInvalidSegmentDeprecation(target, request2, match4, packageJsonUrl,
|
|
|
335757
335763
|
"DEP0166"
|
|
335758
335764
|
);
|
|
335759
335765
|
}
|
|
335760
|
-
function emitLegacyIndexDeprecation(
|
|
335766
|
+
function emitLegacyIndexDeprecation(url3, packageJsonUrl, base2, main2) {
|
|
335761
335767
|
if (process5.noDeprecation) {
|
|
335762
335768
|
return;
|
|
335763
335769
|
}
|
|
335764
|
-
const format6 = defaultGetFormatWithoutErrors(
|
|
335770
|
+
const format6 = defaultGetFormatWithoutErrors(url3, { parentURL: base2.href });
|
|
335765
335771
|
if (format6 !== "module") return;
|
|
335766
|
-
const urlPath = fileURLToPath7(
|
|
335772
|
+
const urlPath = fileURLToPath7(url3.href);
|
|
335767
335773
|
const packagePath = fileURLToPath7(new URL2(".", packageJsonUrl));
|
|
335768
335774
|
const basePath = fileURLToPath7(base2);
|
|
335769
335775
|
if (!main2) {
|
|
@@ -335792,8 +335798,8 @@ function tryStatSync(path32) {
|
|
|
335792
335798
|
} catch {
|
|
335793
335799
|
}
|
|
335794
335800
|
}
|
|
335795
|
-
function fileExists(
|
|
335796
|
-
const stats2 = statSync(
|
|
335801
|
+
function fileExists(url3) {
|
|
335802
|
+
const stats2 = statSync(url3, { throwIfNoEntry: false });
|
|
335797
335803
|
const isFile2 = stats2 ? stats2.isFile() : void 0;
|
|
335798
335804
|
return isFile2 === null || isFile2 === void 0 ? false : isFile2;
|
|
335799
335805
|
}
|
|
@@ -336510,12 +336516,12 @@ function defaultResolve(specifier, context = {}) {
|
|
|
336510
336516
|
}
|
|
336511
336517
|
if (parsed && parsed.protocol === "node:") return { url: specifier };
|
|
336512
336518
|
const conditions = getConditionsSet(context.conditions);
|
|
336513
|
-
const
|
|
336519
|
+
const url3 = moduleResolve(specifier, new URL2(parentURL), conditions, false);
|
|
336514
336520
|
return {
|
|
336515
336521
|
// Do NOT cast `url` to a string: that will work even when there are real
|
|
336516
336522
|
// problems, silencing them
|
|
336517
|
-
url:
|
|
336518
|
-
format: defaultGetFormatWithoutErrors(
|
|
336523
|
+
url: url3.href,
|
|
336524
|
+
format: defaultGetFormatWithoutErrors(url3, { parentURL })
|
|
336519
336525
|
};
|
|
336520
336526
|
}
|
|
336521
336527
|
|
|
@@ -336561,8 +336567,8 @@ function importResolveModuleName(moduleName, paths) {
|
|
|
336561
336567
|
let lastError = void 0;
|
|
336562
336568
|
for (const parent of paths) {
|
|
336563
336569
|
try {
|
|
336564
|
-
const
|
|
336565
|
-
const resolvedURL = new URL(resolve3(modulesNameToImport.toString(),
|
|
336570
|
+
const url3 = typeof parent === "string" ? parent.startsWith("file://") ? new URL(parent) : dirToUrl(parent) : parent;
|
|
336571
|
+
const resolvedURL = new URL(resolve3(modulesNameToImport.toString(), url3.toString()));
|
|
336566
336572
|
try {
|
|
336567
336573
|
const s = statSync2(resolvedURL);
|
|
336568
336574
|
if (s.isFile()) {
|
|
@@ -336760,11 +336766,11 @@ import { gunzipSync as gunzipSync2, gzip } from "node:zlib";
|
|
|
336760
336766
|
import * as Stream from "node:stream";
|
|
336761
336767
|
import { promisify as promisify2 } from "node:util";
|
|
336762
336768
|
var CFileReference = class _CFileReference {
|
|
336763
|
-
constructor(
|
|
336764
|
-
this.url =
|
|
336769
|
+
constructor(url3, encoding, baseFilename, gz) {
|
|
336770
|
+
this.url = url3;
|
|
336765
336771
|
this.encoding = encoding;
|
|
336766
336772
|
this.baseFilename = baseFilename;
|
|
336767
|
-
this.gz = gz ?? (baseFilename?.endsWith(".gz") || void 0) ?? (
|
|
336773
|
+
this.gz = gz ?? (baseFilename?.endsWith(".gz") || void 0) ?? (url3.pathname.endsWith(".gz") || void 0);
|
|
336768
336774
|
}
|
|
336769
336775
|
/**
|
|
336770
336776
|
* Use to ensure the nominal type separation between CFileReference and FileReference
|
|
@@ -336969,11 +336975,11 @@ function decompressBuffer(data) {
|
|
|
336969
336975
|
return gunzipSync(buf);
|
|
336970
336976
|
}
|
|
336971
336977
|
var CFileResource = class _CFileResource {
|
|
336972
|
-
constructor(
|
|
336973
|
-
this.url =
|
|
336978
|
+
constructor(url3, content, encoding, baseFilename, gz) {
|
|
336979
|
+
this.url = url3;
|
|
336974
336980
|
this.content = content;
|
|
336975
336981
|
this.encoding = encoding;
|
|
336976
|
-
this.baseFilename = baseFilename ?? (
|
|
336982
|
+
this.baseFilename = baseFilename ?? (url3.protocol !== "data:" && url3.pathname.split("/").pop() || void 0);
|
|
336977
336983
|
this._gz = gz;
|
|
336978
336984
|
}
|
|
336979
336985
|
_text;
|
|
@@ -337010,8 +337016,8 @@ var CFileResource = class _CFileResource {
|
|
|
337010
337016
|
static from(urlOrFileResource, content, encoding, baseFilename, gz) {
|
|
337011
337017
|
if (_CFileResource.isCFileResource(urlOrFileResource)) {
|
|
337012
337018
|
if (content) {
|
|
337013
|
-
const { url:
|
|
337014
|
-
return new _CFileResource(
|
|
337019
|
+
const { url: url3, encoding: encoding2, baseFilename: baseFilename2, gz: gz2 } = urlOrFileResource;
|
|
337020
|
+
return new _CFileResource(url3, content, encoding2, baseFilename2, gz2);
|
|
337015
337021
|
}
|
|
337016
337022
|
return urlOrFileResource;
|
|
337017
337023
|
}
|
|
@@ -337085,9 +337091,9 @@ function encodeAttributes(attributes) {
|
|
|
337085
337091
|
return [...attributes].map(([key, value2]) => `;${key}=${encodeURIComponent(value2)}`).join("");
|
|
337086
337092
|
}
|
|
337087
337093
|
var dataUrlRegExHead = /^data:(?<mediaType>[^;,]*)(?<attributes>(?:;[^=]+=[^;,]*)*)(?<base64>;base64)?$/;
|
|
337088
|
-
function decodeDataUrl(
|
|
337089
|
-
|
|
337090
|
-
const [head, encodedData] =
|
|
337094
|
+
function decodeDataUrl(url3) {
|
|
337095
|
+
url3 = url3.toString();
|
|
337096
|
+
const [head, encodedData] = url3.split(",", 2);
|
|
337091
337097
|
if (!head || encodedData === void 0) throw new Error("Not a data url");
|
|
337092
337098
|
const match4 = head.match(dataUrlRegExHead);
|
|
337093
337099
|
if (!match4 || !match4.groups) throw new Error("Not a data url");
|
|
@@ -337112,28 +337118,28 @@ function guessMimeType(filename) {
|
|
|
337112
337118
|
}
|
|
337113
337119
|
var _fetch = global.fetch;
|
|
337114
337120
|
var FetchUrlError = class _FetchUrlError extends Error {
|
|
337115
|
-
constructor(message, code, status,
|
|
337121
|
+
constructor(message, code, status, url3) {
|
|
337116
337122
|
super(message);
|
|
337117
337123
|
this.code = code;
|
|
337118
337124
|
this.status = status;
|
|
337119
|
-
this.url =
|
|
337125
|
+
this.url = url3;
|
|
337120
337126
|
this.name = "FetchUrlError";
|
|
337121
337127
|
}
|
|
337122
|
-
static create(
|
|
337123
|
-
if (status === 404) return new _FetchUrlError(message || "URL not found.", "ENOENT", status,
|
|
337128
|
+
static create(url3, status, message) {
|
|
337129
|
+
if (status === 404) return new _FetchUrlError(message || "URL not found.", "ENOENT", status, url3);
|
|
337124
337130
|
if (status >= 400 && status < 500)
|
|
337125
|
-
return new _FetchUrlError(message || "Permission denied.", "EACCES", status,
|
|
337126
|
-
return new _FetchUrlError(message || "Fatal Error", "ECONNREFUSED", status,
|
|
337131
|
+
return new _FetchUrlError(message || "Permission denied.", "EACCES", status, url3);
|
|
337132
|
+
return new _FetchUrlError(message || "Fatal Error", "ECONNREFUSED", status, url3);
|
|
337127
337133
|
}
|
|
337128
|
-
static fromError(
|
|
337134
|
+
static fromError(url3, e) {
|
|
337129
337135
|
const cause = getCause(e);
|
|
337130
337136
|
if (cause) {
|
|
337131
|
-
return new _FetchUrlError(cause.message, cause.code, void 0,
|
|
337137
|
+
return new _FetchUrlError(cause.message, cause.code, void 0, url3);
|
|
337132
337138
|
}
|
|
337133
337139
|
if (isNodeError(e)) {
|
|
337134
|
-
return new _FetchUrlError(e.message, e.code, void 0,
|
|
337140
|
+
return new _FetchUrlError(e.message, e.code, void 0, url3);
|
|
337135
337141
|
}
|
|
337136
|
-
return new _FetchUrlError(e.message, void 0, void 0,
|
|
337142
|
+
return new _FetchUrlError(e.message, void 0, void 0, url3);
|
|
337137
337143
|
}
|
|
337138
337144
|
};
|
|
337139
337145
|
function isNodeError(e) {
|
|
@@ -337150,41 +337156,41 @@ function isErrorWithOptionalCause(e) {
|
|
|
337150
337156
|
function getCause(e) {
|
|
337151
337157
|
return isErrorWithOptionalCause(e) ? e.cause : void 0;
|
|
337152
337158
|
}
|
|
337153
|
-
function toFetchUrlError(err,
|
|
337154
|
-
return err instanceof FetchUrlError ? err : FetchUrlError.fromError(
|
|
337159
|
+
function toFetchUrlError(err, url3) {
|
|
337160
|
+
return err instanceof FetchUrlError ? err : FetchUrlError.fromError(url3, toError22(err));
|
|
337155
337161
|
}
|
|
337156
337162
|
function toError22(err) {
|
|
337157
337163
|
return err instanceof Error ? err : new Error("Unknown Error", { cause: err });
|
|
337158
337164
|
}
|
|
337159
337165
|
async function fetchHead(request2) {
|
|
337160
|
-
const
|
|
337166
|
+
const url3 = toURL2(request2);
|
|
337161
337167
|
try {
|
|
337162
|
-
const r = await _fetch(
|
|
337168
|
+
const r = await _fetch(url3, { method: "HEAD" });
|
|
337163
337169
|
if (!r.ok) {
|
|
337164
|
-
throw FetchUrlError.create(
|
|
337170
|
+
throw FetchUrlError.create(url3, r.status);
|
|
337165
337171
|
}
|
|
337166
337172
|
return r.headers;
|
|
337167
337173
|
} catch (e) {
|
|
337168
|
-
throw toFetchUrlError(e,
|
|
337174
|
+
throw toFetchUrlError(e, url3);
|
|
337169
337175
|
}
|
|
337170
337176
|
}
|
|
337171
|
-
async function fetchURL(
|
|
337177
|
+
async function fetchURL(url3, signal) {
|
|
337172
337178
|
try {
|
|
337173
|
-
const request2 = signal ? new Request(
|
|
337179
|
+
const request2 = signal ? new Request(url3, { signal }) : url3;
|
|
337174
337180
|
const response = await _fetch(request2);
|
|
337175
337181
|
if (!response.ok) {
|
|
337176
|
-
throw FetchUrlError.create(
|
|
337182
|
+
throw FetchUrlError.create(url3, response.status);
|
|
337177
337183
|
}
|
|
337178
337184
|
return Buffer.from(await response.arrayBuffer());
|
|
337179
337185
|
} catch (e) {
|
|
337180
|
-
throw toFetchUrlError(e,
|
|
337186
|
+
throw toFetchUrlError(e, url3);
|
|
337181
337187
|
}
|
|
337182
337188
|
}
|
|
337183
|
-
function toURL2(
|
|
337184
|
-
return typeof
|
|
337189
|
+
function toURL2(url3) {
|
|
337190
|
+
return typeof url3 === "string" ? new URL(url3) : url3;
|
|
337185
337191
|
}
|
|
337186
|
-
async function getStatHttp(
|
|
337187
|
-
const headers = await fetchHead(
|
|
337192
|
+
async function getStatHttp(url3) {
|
|
337193
|
+
const headers = await fetchHead(url3);
|
|
337188
337194
|
const eTag = headers.get("etag") || void 0;
|
|
337189
337195
|
const guessSize = Number.parseInt(headers.get("content-length") || "0", 10);
|
|
337190
337196
|
return {
|
|
@@ -337218,8 +337224,8 @@ var RequestFsReadDirectory = requestFactory(
|
|
|
337218
337224
|
RequestType5
|
|
337219
337225
|
);
|
|
337220
337226
|
var isGzFileRegExp = /\.gz($|[?#])/;
|
|
337221
|
-
function isGzFile(
|
|
337222
|
-
return isGzFileRegExp.test(typeof
|
|
337227
|
+
function isGzFile(url3) {
|
|
337228
|
+
return isGzFileRegExp.test(typeof url3 === "string" ? url3 : url3.pathname);
|
|
337223
337229
|
}
|
|
337224
337230
|
var pGzip = promisify(gzip);
|
|
337225
337231
|
var handleRequestFsReadFile = RequestFsReadFile.createRequestHandler(
|
|
@@ -337254,20 +337260,20 @@ var handleRequestZlibInflate = RequestZlibInflate.createRequestHandler(
|
|
|
337254
337260
|
var supportedFetchProtocols = { "http:": true, "https:": true };
|
|
337255
337261
|
var handleRequestFsReadFileHttp = RequestFsReadFile.createRequestHandler(
|
|
337256
337262
|
(req, next) => {
|
|
337257
|
-
const { url:
|
|
337258
|
-
if (!(
|
|
337259
|
-
return createResponse(fetchURL(
|
|
337263
|
+
const { url: url3, signal, encoding } = req.params;
|
|
337264
|
+
if (!(url3.protocol in supportedFetchProtocols)) return next(req);
|
|
337265
|
+
return createResponse(fetchURL(url3, signal).then((content) => CFileResource.from({ url: url3, encoding, content })));
|
|
337260
337266
|
},
|
|
337261
337267
|
void 0,
|
|
337262
337268
|
"Node: Read Http(s) file."
|
|
337263
337269
|
);
|
|
337264
337270
|
var handleRequestFsReadFileSyncData = RequestFsReadFileTextSync.createRequestHandler(
|
|
337265
337271
|
(req, next) => {
|
|
337266
|
-
const { url:
|
|
337267
|
-
if (
|
|
337268
|
-
const data = decodeDataUrl(
|
|
337272
|
+
const { url: url3, encoding } = req.params;
|
|
337273
|
+
if (url3.protocol !== "data:") return next(req);
|
|
337274
|
+
const data = decodeDataUrl(url3);
|
|
337269
337275
|
return createResponse(
|
|
337270
|
-
CFileResource.from({ url:
|
|
337276
|
+
CFileResource.from({ url: url3, content: data.data, encoding, baseFilename: data.attributes.get("filename") })
|
|
337271
337277
|
);
|
|
337272
337278
|
},
|
|
337273
337279
|
void 0,
|
|
@@ -337275,8 +337281,8 @@ var handleRequestFsReadFileSyncData = RequestFsReadFileTextSync.createRequestHan
|
|
|
337275
337281
|
);
|
|
337276
337282
|
var handleRequestFsReadFileData = RequestFsReadFile.createRequestHandler(
|
|
337277
337283
|
(req, next, dispatcher) => {
|
|
337278
|
-
const { url:
|
|
337279
|
-
if (
|
|
337284
|
+
const { url: url3 } = req.params;
|
|
337285
|
+
if (url3.protocol !== "data:") return next(req);
|
|
337280
337286
|
const res = dispatcher.dispatch(RequestFsReadFileTextSync.create(req.params));
|
|
337281
337287
|
if (!isServiceResponseSuccess(res)) return res;
|
|
337282
337288
|
return createResponse(Promise.resolve(res.value));
|
|
@@ -337313,9 +337319,9 @@ var handleRequestFsStatSync = RequestFsStatSync.createRequestHandler(
|
|
|
337313
337319
|
);
|
|
337314
337320
|
var handleRequestFsStatHttp = RequestFsStat.createRequestHandler(
|
|
337315
337321
|
(req, next) => {
|
|
337316
|
-
const { url:
|
|
337317
|
-
if (!(
|
|
337318
|
-
return createResponse(getStatHttp(
|
|
337322
|
+
const { url: url3 } = req.params;
|
|
337323
|
+
if (!(url3.protocol in supportedFetchProtocols)) return next(req);
|
|
337324
|
+
return createResponse(getStatHttp(url3));
|
|
337319
337325
|
},
|
|
337320
337326
|
void 0,
|
|
337321
337327
|
"Node: http get stat"
|
|
@@ -337327,16 +337333,16 @@ var handleRequestFsWriteFile = RequestFsWriteFile.createRequestHandler(
|
|
|
337327
337333
|
);
|
|
337328
337334
|
async function writeFile(fileRef, content) {
|
|
337329
337335
|
const gz = isGZipped(content);
|
|
337330
|
-
const { url:
|
|
337331
|
-
const resultRef = { url:
|
|
337336
|
+
const { url: url3, encoding, baseFilename } = fileRef;
|
|
337337
|
+
const resultRef = { url: url3, encoding, baseFilename, gz };
|
|
337332
337338
|
await fs32.writeFile(fileURLToPath8(fileRef.url), encodeContent(fileRef, content));
|
|
337333
337339
|
return resultRef;
|
|
337334
337340
|
}
|
|
337335
337341
|
var handleRequestFsWriteFileDataUrl = RequestFsWriteFile.createRequestHandler(
|
|
337336
337342
|
(req, next) => {
|
|
337337
337343
|
const fileResource = req.params;
|
|
337338
|
-
const { url:
|
|
337339
|
-
if (
|
|
337344
|
+
const { url: url3 } = req.params;
|
|
337345
|
+
if (url3.protocol !== "data:") return next(req);
|
|
337340
337346
|
const gz = isGZipped(fileResource.content);
|
|
337341
337347
|
const baseFilename = fileResource.baseFilename || "file.txt" + (gz ? ".gz" : "");
|
|
337342
337348
|
const mt = guessMimeType(baseFilename);
|
|
@@ -337565,23 +337571,23 @@ function cspellIOToFsProvider(cspellIO) {
|
|
|
337565
337571
|
const supportedProtocols = /* @__PURE__ */ new Set(["file:", "http:", "https:"]);
|
|
337566
337572
|
const fs52 = {
|
|
337567
337573
|
providerInfo: { name: name3 },
|
|
337568
|
-
stat: (
|
|
337569
|
-
readFile: (
|
|
337570
|
-
readDirectory: (
|
|
337574
|
+
stat: (url3) => cspellIO.getStat(url3),
|
|
337575
|
+
readFile: (url3, options) => cspellIO.readFile(url3, options),
|
|
337576
|
+
readDirectory: (url3) => cspellIO.readDirectory(url3),
|
|
337571
337577
|
writeFile: (file) => cspellIO.writeFile(file.url, file.content),
|
|
337572
337578
|
dispose: () => void 0,
|
|
337573
337579
|
capabilities,
|
|
337574
|
-
getCapabilities(
|
|
337580
|
+
getCapabilities(url3) {
|
|
337575
337581
|
return fsCapabilities(
|
|
337576
|
-
capMap[
|
|
337582
|
+
capMap[url3.protocol] || 0
|
|
337577
337583
|
/* None */
|
|
337578
337584
|
);
|
|
337579
337585
|
}
|
|
337580
337586
|
};
|
|
337581
337587
|
return {
|
|
337582
337588
|
name: name3,
|
|
337583
|
-
getFileSystem: (
|
|
337584
|
-
return supportedProtocols.has(
|
|
337589
|
+
getFileSystem: (url3, _next) => {
|
|
337590
|
+
return supportedProtocols.has(url3.protocol) ? fs52 : void 0;
|
|
337585
337591
|
}
|
|
337586
337592
|
};
|
|
337587
337593
|
}
|
|
@@ -337595,11 +337601,11 @@ var VFSError = class extends Error {
|
|
|
337595
337601
|
}
|
|
337596
337602
|
};
|
|
337597
337603
|
var VFSErrorUnsupportedRequest = class extends VFSError {
|
|
337598
|
-
constructor(request2,
|
|
337604
|
+
constructor(request2, url3, parameters) {
|
|
337599
337605
|
super(`Unsupported request: ${request2}`);
|
|
337600
337606
|
this.request = request2;
|
|
337601
337607
|
this.parameters = parameters;
|
|
337602
|
-
this.url =
|
|
337608
|
+
this.url = url3?.toString();
|
|
337603
337609
|
}
|
|
337604
337610
|
url;
|
|
337605
337611
|
};
|
|
@@ -337639,76 +337645,76 @@ var WrappedProviderFs = class _WrappedProviderFs {
|
|
|
337639
337645
|
capabilities;
|
|
337640
337646
|
providerInfo;
|
|
337641
337647
|
_capabilities;
|
|
337642
|
-
logEvent(method, event, traceID,
|
|
337643
|
-
this.eventLogger({ method, event, url:
|
|
337648
|
+
logEvent(method, event, traceID, url3, message) {
|
|
337649
|
+
this.eventLogger({ method, event, url: url3, traceID, ts: performance.now(), message });
|
|
337644
337650
|
}
|
|
337645
|
-
getCapabilities(
|
|
337646
|
-
if (this.fs?.getCapabilities) return this.fs.getCapabilities(
|
|
337651
|
+
getCapabilities(url3) {
|
|
337652
|
+
if (this.fs?.getCapabilities) return this.fs.getCapabilities(url3);
|
|
337647
337653
|
return this._capabilities;
|
|
337648
337654
|
}
|
|
337649
337655
|
async stat(urlRef) {
|
|
337650
337656
|
const traceID = performance.now();
|
|
337651
|
-
const
|
|
337652
|
-
this.logEvent("stat", "start", traceID,
|
|
337657
|
+
const url3 = urlOrReferenceToUrl(urlRef);
|
|
337658
|
+
this.logEvent("stat", "start", traceID, url3);
|
|
337653
337659
|
try {
|
|
337654
|
-
checkCapabilityOrThrow(this.fs, this.capabilities, 1, "stat",
|
|
337660
|
+
checkCapabilityOrThrow(this.fs, this.capabilities, 1, "stat", url3);
|
|
337655
337661
|
return new CVfsStat(await this.fs.stat(urlRef));
|
|
337656
337662
|
} catch (e) {
|
|
337657
|
-
this.logEvent("stat", "error", traceID,
|
|
337663
|
+
this.logEvent("stat", "error", traceID, url3, e instanceof Error ? e.message : "");
|
|
337658
337664
|
throw wrapError(e);
|
|
337659
337665
|
} finally {
|
|
337660
|
-
this.logEvent("stat", "end", traceID,
|
|
337666
|
+
this.logEvent("stat", "end", traceID, url3);
|
|
337661
337667
|
}
|
|
337662
337668
|
}
|
|
337663
337669
|
async readFile(urlRef, optionsOrEncoding) {
|
|
337664
337670
|
const traceID = performance.now();
|
|
337665
|
-
const
|
|
337666
|
-
this.logEvent("readFile", "start", traceID,
|
|
337671
|
+
const url3 = urlOrReferenceToUrl(urlRef);
|
|
337672
|
+
this.logEvent("readFile", "start", traceID, url3);
|
|
337667
337673
|
try {
|
|
337668
|
-
checkCapabilityOrThrow(this.fs, this.capabilities, 2, "readFile",
|
|
337674
|
+
checkCapabilityOrThrow(this.fs, this.capabilities, 2, "readFile", url3);
|
|
337669
337675
|
const readOptions = toOptions(optionsOrEncoding);
|
|
337670
337676
|
return fromFileResource(await this.fs.readFile(urlRef, readOptions), readOptions?.encoding);
|
|
337671
337677
|
} catch (e) {
|
|
337672
|
-
this.logEvent("readFile", "error", traceID,
|
|
337678
|
+
this.logEvent("readFile", "error", traceID, url3, e instanceof Error ? e.message : "");
|
|
337673
337679
|
throw wrapError(e);
|
|
337674
337680
|
} finally {
|
|
337675
|
-
this.logEvent("readFile", "end", traceID,
|
|
337681
|
+
this.logEvent("readFile", "end", traceID, url3);
|
|
337676
337682
|
}
|
|
337677
337683
|
}
|
|
337678
|
-
async readDirectory(
|
|
337684
|
+
async readDirectory(url3) {
|
|
337679
337685
|
const traceID = performance.now();
|
|
337680
|
-
this.logEvent("readDir", "start", traceID,
|
|
337686
|
+
this.logEvent("readDir", "start", traceID, url3);
|
|
337681
337687
|
try {
|
|
337682
|
-
checkCapabilityOrThrow(this.fs, this.capabilities, 8, "readDirectory",
|
|
337683
|
-
return (await this.fs.readDirectory(
|
|
337688
|
+
checkCapabilityOrThrow(this.fs, this.capabilities, 8, "readDirectory", url3);
|
|
337689
|
+
return (await this.fs.readDirectory(url3)).map((e) => new CVfsDirEntry(e));
|
|
337684
337690
|
} catch (e) {
|
|
337685
|
-
this.logEvent("readDir", "error", traceID,
|
|
337691
|
+
this.logEvent("readDir", "error", traceID, url3, e instanceof Error ? e.message : "");
|
|
337686
337692
|
throw wrapError(e);
|
|
337687
337693
|
} finally {
|
|
337688
|
-
this.logEvent("readDir", "end", traceID,
|
|
337694
|
+
this.logEvent("readDir", "end", traceID, url3);
|
|
337689
337695
|
}
|
|
337690
337696
|
}
|
|
337691
337697
|
async writeFile(file) {
|
|
337692
337698
|
const traceID = performance.now();
|
|
337693
|
-
const
|
|
337694
|
-
this.logEvent("writeFile", "start", traceID,
|
|
337699
|
+
const url3 = file.url;
|
|
337700
|
+
this.logEvent("writeFile", "start", traceID, url3);
|
|
337695
337701
|
try {
|
|
337696
337702
|
checkCapabilityOrThrow(this.fs, this.capabilities, 4, "writeFile", file.url);
|
|
337697
337703
|
return await this.fs.writeFile(file);
|
|
337698
337704
|
} catch (e) {
|
|
337699
|
-
this.logEvent("writeFile", "error", traceID,
|
|
337705
|
+
this.logEvent("writeFile", "error", traceID, url3, e instanceof Error ? e.message : "");
|
|
337700
337706
|
throw wrapError(e);
|
|
337701
337707
|
} finally {
|
|
337702
|
-
this.logEvent("writeFile", "end", traceID,
|
|
337708
|
+
this.logEvent("writeFile", "end", traceID, url3);
|
|
337703
337709
|
}
|
|
337704
337710
|
}
|
|
337705
337711
|
static disposeOf(fs52) {
|
|
337706
337712
|
fs52 instanceof _WrappedProviderFs && fs52.fs?.dispose();
|
|
337707
337713
|
}
|
|
337708
337714
|
};
|
|
337709
|
-
function checkCapabilityOrThrow(fs52, capabilities, flag, name3,
|
|
337715
|
+
function checkCapabilityOrThrow(fs52, capabilities, flag, name3, url3) {
|
|
337710
337716
|
if (!(capabilities & flag)) {
|
|
337711
|
-
throw new VFSErrorUnsupportedRequest(name3,
|
|
337717
|
+
throw new VFSErrorUnsupportedRequest(name3, url3);
|
|
337712
337718
|
}
|
|
337713
337719
|
}
|
|
337714
337720
|
var CFileType = class {
|
|
@@ -337771,9 +337777,9 @@ var CVfsDirEntry = class extends CFileType {
|
|
|
337771
337777
|
};
|
|
337772
337778
|
}
|
|
337773
337779
|
};
|
|
337774
|
-
function chopUrl(
|
|
337775
|
-
if (!
|
|
337776
|
-
const href =
|
|
337780
|
+
function chopUrl(url3) {
|
|
337781
|
+
if (!url3) return "";
|
|
337782
|
+
const href = url3.href;
|
|
337777
337783
|
const parts = href.split("/");
|
|
337778
337784
|
const n = parts.indexOf("node_modules");
|
|
337779
337785
|
if (n > 0) {
|
|
@@ -337796,7 +337802,7 @@ var CVirtualFS = class {
|
|
|
337796
337802
|
fs;
|
|
337797
337803
|
loggingEnabled = debug;
|
|
337798
337804
|
constructor() {
|
|
337799
|
-
this.fsc = fsPassThroughCore((
|
|
337805
|
+
this.fsc = fsPassThroughCore((url3) => this._getFS(url3));
|
|
337800
337806
|
this.fs = new CVFileSystem(this.fsc);
|
|
337801
337807
|
}
|
|
337802
337808
|
enableLogging(value2) {
|
|
@@ -337827,11 +337833,11 @@ var CVirtualFS = class {
|
|
|
337827
337833
|
}
|
|
337828
337834
|
};
|
|
337829
337835
|
}
|
|
337830
|
-
getFS(
|
|
337831
|
-
return new CVFileSystem(this._getFS(
|
|
337836
|
+
getFS(url3) {
|
|
337837
|
+
return new CVFileSystem(this._getFS(url3));
|
|
337832
337838
|
}
|
|
337833
|
-
_getFS(
|
|
337834
|
-
const key = `${
|
|
337839
|
+
_getFS(url3) {
|
|
337840
|
+
const key = `${url3.protocol}${url3.hostname}`;
|
|
337835
337841
|
const cached2 = this.cachedFs.get(key);
|
|
337836
337842
|
if (cached2) {
|
|
337837
337843
|
return cached2;
|
|
@@ -337859,7 +337865,7 @@ var CVirtualFS = class {
|
|
|
337859
337865
|
for (const provider of this.providers) {
|
|
337860
337866
|
next = fnNext(provider, next);
|
|
337861
337867
|
}
|
|
337862
|
-
const fs52 = new WrappedProviderFs(next(
|
|
337868
|
+
const fs52 = new WrappedProviderFs(next(url3), this.logEvent);
|
|
337863
337869
|
this.cachedFs.set(key, fs52);
|
|
337864
337870
|
return fs52;
|
|
337865
337871
|
}
|
|
@@ -337890,12 +337896,12 @@ var CVirtualFS = class {
|
|
|
337890
337896
|
};
|
|
337891
337897
|
function fsPassThroughCore(fs52) {
|
|
337892
337898
|
function gfs(ur, name3) {
|
|
337893
|
-
const
|
|
337894
|
-
const f = fs52(
|
|
337899
|
+
const url3 = urlOrReferenceToUrl(ur);
|
|
337900
|
+
const f = fs52(url3);
|
|
337895
337901
|
if (!f.hasProvider)
|
|
337896
337902
|
throw new VFSErrorUnsupportedRequest(
|
|
337897
337903
|
name3,
|
|
337898
|
-
|
|
337904
|
+
url3,
|
|
337899
337905
|
ur instanceof URL ? void 0 : { url: ur.url.toString(), encoding: ur.encoding }
|
|
337900
337906
|
);
|
|
337901
337907
|
return f;
|
|
@@ -337903,11 +337909,11 @@ function fsPassThroughCore(fs52) {
|
|
|
337903
337909
|
return {
|
|
337904
337910
|
providerInfo: { name: "default" },
|
|
337905
337911
|
hasProvider: true,
|
|
337906
|
-
stat: async (
|
|
337907
|
-
readFile: async (
|
|
337912
|
+
stat: async (url3) => gfs(url3, "stat").stat(url3),
|
|
337913
|
+
readFile: async (url3, options) => gfs(url3, "readFile").readFile(url3, options),
|
|
337908
337914
|
writeFile: async (file) => gfs(file, "writeFile").writeFile(file),
|
|
337909
|
-
readDirectory: async (
|
|
337910
|
-
getCapabilities: (
|
|
337915
|
+
readDirectory: async (url3) => gfs(url3, "readDirectory").readDirectory(url3).then((entries) => entries.map((e) => new CVfsDirEntry(e))),
|
|
337916
|
+
getCapabilities: (url3) => gfs(url3, "getCapabilities").getCapabilities(url3)
|
|
337911
337917
|
};
|
|
337912
337918
|
}
|
|
337913
337919
|
function createVirtualFS(cspellIO) {
|
|
@@ -337940,12 +337946,12 @@ function getFileSystem() {
|
|
|
337940
337946
|
// ../../node_modules/.pnpm/cspell-lib@8.19.4/node_modules/cspell-lib/dist/lib/pkg-info.mjs
|
|
337941
337947
|
init_esm_shims();
|
|
337942
337948
|
import { fileURLToPath as fileURLToPath9 } from "node:url";
|
|
337943
|
-
var
|
|
337949
|
+
var url2 = import.meta.url;
|
|
337944
337950
|
function calcSrcDirectory() {
|
|
337945
337951
|
try {
|
|
337946
337952
|
return __dirname;
|
|
337947
337953
|
} catch {
|
|
337948
|
-
return
|
|
337954
|
+
return url2 ? fileURLToPath9(new URL("./", url2)) : process.cwd();
|
|
337949
337955
|
}
|
|
337950
337956
|
}
|
|
337951
337957
|
var srcDirectory = calcSrcDirectory();
|
|
@@ -338094,11 +338100,11 @@ var FileResolver = class {
|
|
|
338094
338100
|
}
|
|
338095
338101
|
if (isRelative(filename) && isUrlLike(relativeToURL) && !isDataURL(relativeToURL)) {
|
|
338096
338102
|
const relToURL = toURL(relativeToURL);
|
|
338097
|
-
const
|
|
338103
|
+
const url3 = toFileURL(filename, relToURL);
|
|
338098
338104
|
return {
|
|
338099
|
-
filename: toFilePathOrHref(
|
|
338105
|
+
filename: toFilePathOrHref(url3),
|
|
338100
338106
|
relativeTo: toFilePathOrHref(relToURL),
|
|
338101
|
-
found: await this.doesExist(
|
|
338107
|
+
found: await this.doesExist(url3),
|
|
338102
338108
|
method: "tryUrl"
|
|
338103
338109
|
};
|
|
338104
338110
|
}
|
|
@@ -338114,11 +338120,11 @@ var FileResolver = class {
|
|
|
338114
338120
|
tryUrl = async (filename, relativeToURL) => {
|
|
338115
338121
|
if (isUrlLike(relativeToURL) && !isDataURL(relativeToURL)) {
|
|
338116
338122
|
const relToURL = toURL(relativeToURL);
|
|
338117
|
-
const
|
|
338123
|
+
const url3 = toFileURL(filename, relToURL);
|
|
338118
338124
|
return {
|
|
338119
|
-
filename: toFilePathOrHref(
|
|
338125
|
+
filename: toFilePathOrHref(url3),
|
|
338120
338126
|
relativeTo: toFilePathOrHref(relToURL),
|
|
338121
|
-
found: await this.doesExist(
|
|
338127
|
+
found: await this.doesExist(url3),
|
|
338122
338128
|
method: "tryUrl"
|
|
338123
338129
|
};
|
|
338124
338130
|
}
|
|
@@ -338767,14 +338773,14 @@ var DictionaryLoader = class {
|
|
|
338767
338773
|
}
|
|
338768
338774
|
}
|
|
338769
338775
|
loadEntry(fileOrUri, options, now = Date.now()) {
|
|
338770
|
-
const
|
|
338771
|
-
options = this.normalizeOptions(
|
|
338772
|
-
const pDictionary = load2(this.reader, toFileURL(fileOrUri), options).catch((e) => createFailedToLoadDictionary(options.name, fileOrUri, new SpellingDictionaryLoadError(
|
|
338776
|
+
const url3 = toFileURL(fileOrUri);
|
|
338777
|
+
options = this.normalizeOptions(url3, options);
|
|
338778
|
+
const pDictionary = load2(this.reader, toFileURL(fileOrUri), options).catch((e) => createFailedToLoadDictionary(options.name, fileOrUri, new SpellingDictionaryLoadError(url3.href, options, e, "failed to load"), options));
|
|
338773
338779
|
const pStat = this.getStat(fileOrUri);
|
|
338774
338780
|
const pending = Promise.all([pDictionary, pStat]);
|
|
338775
338781
|
const sig = now + Math.random();
|
|
338776
338782
|
const entry = {
|
|
338777
|
-
uri:
|
|
338783
|
+
uri: url3.href,
|
|
338778
338784
|
options,
|
|
338779
338785
|
ts: now,
|
|
338780
338786
|
stat: void 0,
|
|
@@ -338819,8 +338825,8 @@ var DictionaryLoader = class {
|
|
|
338819
338825
|
}
|
|
338820
338826
|
};
|
|
338821
338827
|
function toReader(fs18) {
|
|
338822
|
-
async function readFile6(
|
|
338823
|
-
return (await fs18.readFile(
|
|
338828
|
+
async function readFile6(url3) {
|
|
338829
|
+
return (await fs18.readFile(url3)).getText();
|
|
338824
338830
|
}
|
|
338825
338831
|
return {
|
|
338826
338832
|
read: readFile6,
|
|
@@ -339811,15 +339817,15 @@ var isWindows3 = process.platform === "win32";
|
|
|
339811
339817
|
var hasDriveLetter = /^[a-zA-Z]:[\\/]/;
|
|
339812
339818
|
var rootUrl = toFileDirURL("/");
|
|
339813
339819
|
function uriToFilePath(uri) {
|
|
339814
|
-
let
|
|
339815
|
-
|
|
339816
|
-
return toFilePathOrHref(
|
|
339820
|
+
let url3 = documentUriToURL(uri);
|
|
339821
|
+
url3 = url3.protocol === "stdin:" ? new URL(url3.pathname, rootUrl) : url3;
|
|
339822
|
+
return toFilePathOrHref(url3);
|
|
339817
339823
|
}
|
|
339818
339824
|
function normalizeDriveLetter(path32) {
|
|
339819
339825
|
return hasDriveLetter.test(path32) ? path32[0].toUpperCase() + path32.slice(1) : path32;
|
|
339820
339826
|
}
|
|
339821
|
-
function isHRef(
|
|
339822
|
-
return !!
|
|
339827
|
+
function isHRef(url3) {
|
|
339828
|
+
return !!url3 && typeof url3 === "object" && typeof url3.href === "string" || false;
|
|
339823
339829
|
}
|
|
339824
339830
|
function isUri(uri) {
|
|
339825
339831
|
if (!uri || typeof uri !== "object")
|
|
@@ -339847,8 +339853,8 @@ var UriImpl = class _UriImpl extends URI {
|
|
|
339847
339853
|
const base2 = `${this.scheme}://${this.authority || ""}${path32}`;
|
|
339848
339854
|
const query = this.query && `?${this.query}` || "";
|
|
339849
339855
|
const fragment = this.fragment && `#${this.fragment}` || "";
|
|
339850
|
-
const
|
|
339851
|
-
return
|
|
339856
|
+
const url3 = base2 + query + fragment;
|
|
339857
|
+
return url3;
|
|
339852
339858
|
}
|
|
339853
339859
|
toJSON() {
|
|
339854
339860
|
const { scheme, authority, path: path32, query, fragment } = this;
|
|
@@ -339885,8 +339891,8 @@ var UriImpl = class _UriImpl extends URI {
|
|
|
339885
339891
|
if (!isWindows3 && hasDriveLetter.test(filename)) {
|
|
339886
339892
|
filename = "/" + filename.replaceAll("\\", "/");
|
|
339887
339893
|
}
|
|
339888
|
-
const
|
|
339889
|
-
return _UriImpl.parse(
|
|
339894
|
+
const url3 = toFileURL(filename);
|
|
339895
|
+
return _UriImpl.parse(url3.href);
|
|
339890
339896
|
}
|
|
339891
339897
|
static stdin(filePath2 = "") {
|
|
339892
339898
|
return _UriImpl.from(_UriImpl.file(filePath2), { scheme: "stdin" });
|
|
@@ -340647,8 +340653,8 @@ function filePathOrGlobToGlob(filePathOrGlob, root, builder) {
|
|
|
340647
340653
|
const isGlobalPattern = isGlobalGlob(filePathOrGlob);
|
|
340648
340654
|
const isAbsolute3 = builder.isAbsolute(filePathOrGlob);
|
|
340649
340655
|
const { path: path32, glob: glob5 } = isAbsolute3 ? splitGlob(filePathOrGlob) : splitGlobRel(filePathOrGlob);
|
|
340650
|
-
const
|
|
340651
|
-
return { root: builder.urlToFilePathOrHref(
|
|
340656
|
+
const url3 = builder.toFileDirURL(path32 || "./", root);
|
|
340657
|
+
return { root: builder.urlToFilePathOrHref(url3), glob: glob5, isGlobalPattern };
|
|
340652
340658
|
}
|
|
340653
340659
|
function workaroundPicomatchBug(glob5) {
|
|
340654
340660
|
const obj2 = {};
|
|
@@ -340744,9 +340750,9 @@ function buildMatcherFn(_id, patterns2, options) {
|
|
|
340744
340750
|
const found = mapRoots.get(root);
|
|
340745
340751
|
if (found)
|
|
340746
340752
|
return found;
|
|
340747
|
-
const
|
|
340748
|
-
mapRoots.set(root,
|
|
340749
|
-
return
|
|
340753
|
+
const url3 = builder.toFileDirURL(root);
|
|
340754
|
+
mapRoots.set(root, url3);
|
|
340755
|
+
return url3;
|
|
340750
340756
|
}
|
|
340751
340757
|
function relativeToRoot(root) {
|
|
340752
340758
|
if (root.href !== lastRoot.href) {
|
|
@@ -341512,8 +341518,8 @@ import { extname as extname3 } from "node:path/posix";
|
|
|
341512
341518
|
init_esm_shims();
|
|
341513
341519
|
var CSpellConfigFile = class {
|
|
341514
341520
|
url;
|
|
341515
|
-
constructor(
|
|
341516
|
-
this.url =
|
|
341521
|
+
constructor(url3) {
|
|
341522
|
+
this.url = url3;
|
|
341517
341523
|
}
|
|
341518
341524
|
get readonly() {
|
|
341519
341525
|
return this.settings.readonly || this.url.protocol !== "file:";
|
|
@@ -341528,9 +341534,9 @@ var CSpellConfigFile = class {
|
|
|
341528
341534
|
var ImplCSpellConfigFile = class extends CSpellConfigFile {
|
|
341529
341535
|
url;
|
|
341530
341536
|
settings;
|
|
341531
|
-
constructor(
|
|
341532
|
-
super(
|
|
341533
|
-
this.url =
|
|
341537
|
+
constructor(url3, settings) {
|
|
341538
|
+
super(url3);
|
|
341539
|
+
this.url = url3;
|
|
341534
341540
|
this.settings = settings;
|
|
341535
341541
|
}
|
|
341536
341542
|
addWords(words) {
|
|
@@ -341565,9 +341571,9 @@ init_esm_shims();
|
|
|
341565
341571
|
var CSpellConfigFileInMemory = class extends ImplCSpellConfigFile {
|
|
341566
341572
|
url;
|
|
341567
341573
|
settings;
|
|
341568
|
-
constructor(
|
|
341569
|
-
super(
|
|
341570
|
-
this.url =
|
|
341574
|
+
constructor(url3, settings) {
|
|
341575
|
+
super(url3, settings);
|
|
341576
|
+
this.url = url3;
|
|
341571
341577
|
this.settings = settings;
|
|
341572
341578
|
}
|
|
341573
341579
|
get virtual() {
|
|
@@ -341583,9 +341589,9 @@ var CSpellConfigFileJavaScript = class extends ImplCSpellConfigFile {
|
|
|
341583
341589
|
get readonly() {
|
|
341584
341590
|
return true;
|
|
341585
341591
|
}
|
|
341586
|
-
constructor(
|
|
341587
|
-
super(
|
|
341588
|
-
this.url =
|
|
341592
|
+
constructor(url3, settings) {
|
|
341593
|
+
super(url3, settings);
|
|
341594
|
+
this.url = url3;
|
|
341589
341595
|
this.settings = settings;
|
|
341590
341596
|
}
|
|
341591
341597
|
addWords(_words) {
|
|
@@ -341613,9 +341619,9 @@ var CSpellConfigFileJson = class _CSpellConfigFileJson extends ImplCSpellConfigF
|
|
|
341613
341619
|
url;
|
|
341614
341620
|
settings;
|
|
341615
341621
|
indent = 2;
|
|
341616
|
-
constructor(
|
|
341617
|
-
super(
|
|
341618
|
-
this.url =
|
|
341622
|
+
constructor(url3, settings) {
|
|
341623
|
+
super(url3, settings);
|
|
341624
|
+
this.url = url3;
|
|
341619
341625
|
this.settings = settings;
|
|
341620
341626
|
}
|
|
341621
341627
|
serialize() {
|
|
@@ -341647,9 +341653,9 @@ function isCSpellSettings(cfg) {
|
|
|
341647
341653
|
}
|
|
341648
341654
|
var ParseError = class extends Error {
|
|
341649
341655
|
url;
|
|
341650
|
-
constructor(
|
|
341651
|
-
super(message || `Unable to parse ${
|
|
341652
|
-
this.url =
|
|
341656
|
+
constructor(url3, message, options) {
|
|
341657
|
+
super(message || `Unable to parse ${url3}`, options);
|
|
341658
|
+
this.url = url3;
|
|
341653
341659
|
}
|
|
341654
341660
|
};
|
|
341655
341661
|
|
|
@@ -341659,9 +341665,9 @@ var CSpellConfigFilePackageJson = class extends ImplCSpellConfigFile {
|
|
|
341659
341665
|
url;
|
|
341660
341666
|
settings;
|
|
341661
341667
|
serializer;
|
|
341662
|
-
constructor(
|
|
341663
|
-
super(
|
|
341664
|
-
this.url =
|
|
341668
|
+
constructor(url3, settings, serializer4) {
|
|
341669
|
+
super(url3, settings);
|
|
341670
|
+
this.url = url3;
|
|
341665
341671
|
this.settings = settings;
|
|
341666
341672
|
this.serializer = serializer4;
|
|
341667
341673
|
}
|
|
@@ -341670,22 +341676,22 @@ var CSpellConfigFilePackageJson = class extends ImplCSpellConfigFile {
|
|
|
341670
341676
|
}
|
|
341671
341677
|
};
|
|
341672
341678
|
function parseCSpellConfigFilePackageJson(file) {
|
|
341673
|
-
const { url:
|
|
341679
|
+
const { url: url3, content } = file;
|
|
341674
341680
|
const packageJson = JSON.parse(content);
|
|
341675
341681
|
if (!packageJson || typeof packageJson !== "object" || Array.isArray(packageJson)) {
|
|
341676
|
-
throw new Error(`Unable to parse ${
|
|
341682
|
+
throw new Error(`Unable to parse ${url3}`);
|
|
341677
341683
|
}
|
|
341678
341684
|
packageJson["cspell"] = packageJson["cspell"] || {};
|
|
341679
341685
|
const cspell = packageJson["cspell"];
|
|
341680
341686
|
if (typeof cspell !== "object" || Array.isArray(cspell)) {
|
|
341681
|
-
throw new TypeError(`Unable to parse ${
|
|
341687
|
+
throw new TypeError(`Unable to parse ${url3}`);
|
|
341682
341688
|
}
|
|
341683
341689
|
const indent2 = detectIndent(content);
|
|
341684
341690
|
function serialize(settings) {
|
|
341685
341691
|
packageJson["cspell"] = settings;
|
|
341686
341692
|
return JSON.stringify(packageJson, void 0, indent2) + "\n";
|
|
341687
341693
|
}
|
|
341688
|
-
return new CSpellConfigFilePackageJson(
|
|
341694
|
+
return new CSpellConfigFilePackageJson(url3, cspell, serialize);
|
|
341689
341695
|
}
|
|
341690
341696
|
|
|
341691
341697
|
// ../../node_modules/.pnpm/cspell-config-lib@8.19.4/node_modules/cspell-config-lib/dist/CSpellConfigFile/CSpellConfigFileYaml.js
|
|
@@ -341695,9 +341701,9 @@ var CSpellConfigFileYaml = class extends ImplCSpellConfigFile {
|
|
|
341695
341701
|
url;
|
|
341696
341702
|
settings;
|
|
341697
341703
|
serializer;
|
|
341698
|
-
constructor(
|
|
341699
|
-
super(
|
|
341700
|
-
this.url =
|
|
341704
|
+
constructor(url3, settings, serializer4) {
|
|
341705
|
+
super(url3, settings);
|
|
341706
|
+
this.url = url3;
|
|
341701
341707
|
this.settings = settings;
|
|
341702
341708
|
this.serializer = serializer4;
|
|
341703
341709
|
}
|
|
@@ -341706,16 +341712,16 @@ var CSpellConfigFileYaml = class extends ImplCSpellConfigFile {
|
|
|
341706
341712
|
}
|
|
341707
341713
|
};
|
|
341708
341714
|
function parseCSpellConfigFileYaml(file) {
|
|
341709
|
-
const { url:
|
|
341715
|
+
const { url: url3, content } = file;
|
|
341710
341716
|
const cspell = (0, import_yaml.parse)(content) || {};
|
|
341711
341717
|
if (!cspell || typeof cspell !== "object" || Array.isArray(cspell)) {
|
|
341712
|
-
throw new Error(`Unable to parse ${
|
|
341718
|
+
throw new Error(`Unable to parse ${url3}`);
|
|
341713
341719
|
}
|
|
341714
341720
|
const indent2 = detectIndentAsNum(content);
|
|
341715
341721
|
function serialize(settings) {
|
|
341716
341722
|
return (0, import_yaml.stringify)(settings, { indent: indent2 });
|
|
341717
341723
|
}
|
|
341718
|
-
return new CSpellConfigFileYaml(
|
|
341724
|
+
return new CSpellConfigFileYaml(url3, cspell, serialize);
|
|
341719
341725
|
}
|
|
341720
341726
|
|
|
341721
341727
|
// ../../node_modules/.pnpm/cspell-config-lib@8.19.4/node_modules/cspell-config-lib/dist/middlewareHelper.js
|
|
@@ -341756,8 +341762,8 @@ function curryLoader(loader3, next) {
|
|
|
341756
341762
|
}
|
|
341757
341763
|
async function defaultLoader(req) {
|
|
341758
341764
|
const { io, deserialize } = req.context;
|
|
341759
|
-
const
|
|
341760
|
-
const file = await io.readFile(
|
|
341765
|
+
const url3 = req.url;
|
|
341766
|
+
const file = await io.readFile(url3);
|
|
341761
341767
|
return deserialize(file);
|
|
341762
341768
|
}
|
|
341763
341769
|
function getLoader(loaders3) {
|
|
@@ -341770,8 +341776,8 @@ function getLoader(loaders3) {
|
|
|
341770
341776
|
|
|
341771
341777
|
// ../../node_modules/.pnpm/cspell-config-lib@8.19.4/node_modules/cspell-config-lib/dist/util/toURL.js
|
|
341772
341778
|
init_esm_shims();
|
|
341773
|
-
function toURL3(
|
|
341774
|
-
return typeof
|
|
341779
|
+
function toURL3(url3) {
|
|
341780
|
+
return typeof url3 === "string" ? new URL(url3) : url3;
|
|
341775
341781
|
}
|
|
341776
341782
|
|
|
341777
341783
|
// ../../node_modules/.pnpm/cspell-config-lib@8.19.4/node_modules/cspell-config-lib/dist/CSpellConfigFileReaderWriter.js
|
|
@@ -341802,12 +341808,12 @@ var CSpellConfigFileReaderWriterImpl = class {
|
|
|
341802
341808
|
* Urls starting with these urls are trusted to be loaded from a file system.
|
|
341803
341809
|
*/
|
|
341804
341810
|
get trustedUrls() {
|
|
341805
|
-
return [...this._trustedUrls].map((
|
|
341811
|
+
return [...this._trustedUrls].map((url3) => new URL(url3));
|
|
341806
341812
|
}
|
|
341807
341813
|
readConfig(uri) {
|
|
341808
|
-
const
|
|
341809
|
-
if (!isTrusted(
|
|
341810
|
-
return Promise.reject(new UntrustedUrlError(
|
|
341814
|
+
const url3 = new URL(uri);
|
|
341815
|
+
if (!isTrusted(url3, this._trustedUrls, this._untrustedExtensions)) {
|
|
341816
|
+
return Promise.reject(new UntrustedUrlError(url3));
|
|
341811
341817
|
}
|
|
341812
341818
|
const loader3 = getLoader(this.loaders);
|
|
341813
341819
|
return loader3({ url: toURL3(uri), context: { deserialize: this.getDeserializer(), io: this.io } });
|
|
@@ -341835,7 +341841,7 @@ var CSpellConfigFileReaderWriterImpl = class {
|
|
|
341835
341841
|
return this;
|
|
341836
341842
|
}
|
|
341837
341843
|
setTrustedUrls(urls) {
|
|
341838
|
-
this._trustedUrls = [...new Set(urls.map((
|
|
341844
|
+
this._trustedUrls = [...new Set(urls.map((url3) => new URL(url3).href))].sort();
|
|
341839
341845
|
return this;
|
|
341840
341846
|
}
|
|
341841
341847
|
clearCachedFiles() {
|
|
@@ -341844,17 +341850,17 @@ var CSpellConfigFileReaderWriterImpl = class {
|
|
|
341844
341850
|
}
|
|
341845
341851
|
}
|
|
341846
341852
|
};
|
|
341847
|
-
function isTrusted(
|
|
341848
|
-
const path32 =
|
|
341853
|
+
function isTrusted(url3, trustedUrls, untrustedExtensions) {
|
|
341854
|
+
const path32 = url3.pathname;
|
|
341849
341855
|
const ext3 = extname3(path32).toLowerCase();
|
|
341850
341856
|
if (!untrustedExtensions.has(ext3))
|
|
341851
341857
|
return true;
|
|
341852
|
-
const href =
|
|
341858
|
+
const href = url3.href;
|
|
341853
341859
|
return trustedUrls.some((trustedUrl) => href.startsWith(trustedUrl));
|
|
341854
341860
|
}
|
|
341855
341861
|
var UntrustedUrlError = class extends Error {
|
|
341856
|
-
constructor(
|
|
341857
|
-
super(`Untrusted URL: "${
|
|
341862
|
+
constructor(url3) {
|
|
341863
|
+
super(`Untrusted URL: "${url3.href}"`);
|
|
341858
341864
|
}
|
|
341859
341865
|
};
|
|
341860
341866
|
|
|
@@ -341865,9 +341871,9 @@ var defaultIO = {
|
|
|
341865
341871
|
readFile: readFile4,
|
|
341866
341872
|
writeFile: writeFile2
|
|
341867
341873
|
};
|
|
341868
|
-
async function readFile4(
|
|
341869
|
-
const content = await fs5.readFile(
|
|
341870
|
-
return { url:
|
|
341874
|
+
async function readFile4(url3) {
|
|
341875
|
+
const content = await fs5.readFile(url3, "utf8");
|
|
341876
|
+
return { url: url3, content };
|
|
341871
341877
|
}
|
|
341872
341878
|
async function writeFile2(file) {
|
|
341873
341879
|
await fs5.writeFile(file.url, file.content);
|
|
@@ -341882,32 +341888,32 @@ init_esm_shims();
|
|
|
341882
341888
|
import { extname as extname4 } from "node:path/posix";
|
|
341883
341889
|
var _debug2 = false;
|
|
341884
341890
|
var _log = _debug2 ? console.warn.bind(console) : () => void 0;
|
|
341885
|
-
async function importJavaScript(
|
|
341891
|
+
async function importJavaScript(url3, hashSuffix) {
|
|
341886
341892
|
try {
|
|
341887
|
-
const _url2 = new URL(
|
|
341893
|
+
const _url2 = new URL(url3.href);
|
|
341888
341894
|
_url2.hash = `${_url2.hash};loaderSuffix=${hashSuffix}`;
|
|
341889
341895
|
_log("importJavaScript: %o", { url: _url2.href });
|
|
341890
341896
|
const result = await import(_url2.href);
|
|
341891
341897
|
const settingsOrFunction = await (result.default ?? result);
|
|
341892
341898
|
const settings = typeof settingsOrFunction === "function" ? await settingsOrFunction() : settingsOrFunction;
|
|
341893
|
-
return new CSpellConfigFileJavaScript(
|
|
341899
|
+
return new CSpellConfigFileJavaScript(url3, settings);
|
|
341894
341900
|
} catch (e) {
|
|
341895
|
-
_log("importJavaScript Error: %o", { url:
|
|
341901
|
+
_log("importJavaScript Error: %o", { url: url3.href, error: e, hashSuffix });
|
|
341896
341902
|
throw e;
|
|
341897
341903
|
} finally {
|
|
341898
|
-
_log("importJavaScript Done: %o", { url:
|
|
341904
|
+
_log("importJavaScript Done: %o", { url: url3.href, hashSuffix });
|
|
341899
341905
|
}
|
|
341900
341906
|
}
|
|
341901
341907
|
var LoaderJavaScript = class {
|
|
341902
341908
|
hashSuffix = 1;
|
|
341903
341909
|
async _load(req, next) {
|
|
341904
|
-
const { url:
|
|
341905
|
-
const ext3 = extname4(
|
|
341910
|
+
const { url: url3 } = req;
|
|
341911
|
+
const ext3 = extname4(url3.pathname).toLowerCase();
|
|
341906
341912
|
switch (ext3) {
|
|
341907
341913
|
case ".js":
|
|
341908
341914
|
case ".cjs":
|
|
341909
341915
|
case ".mjs": {
|
|
341910
|
-
return importJavaScript(
|
|
341916
|
+
return importJavaScript(url3, this.hashSuffix);
|
|
341911
341917
|
}
|
|
341912
341918
|
}
|
|
341913
341919
|
return next(req);
|
|
@@ -342274,8 +342280,8 @@ function resolveFilePath(filename, pathToSettingsFile) {
|
|
|
342274
342280
|
return toFileURL(filename.replace("${cwd}", cwd).replace(/^~/, homedir5()), pathToSettingsFile);
|
|
342275
342281
|
}
|
|
342276
342282
|
function resolveFilePathToPath(filename, pathToSettingsFile) {
|
|
342277
|
-
const
|
|
342278
|
-
return
|
|
342283
|
+
const url3 = resolveFilePath(filename, pathToSettingsFile);
|
|
342284
|
+
return url3.protocol === "file:" ? fileURLToPath11(url3) : url3.toString();
|
|
342279
342285
|
}
|
|
342280
342286
|
function normalizeImport(imports) {
|
|
342281
342287
|
if (typeof imports === "string") {
|
|
@@ -342291,8 +342297,8 @@ function normalizeImport(imports) {
|
|
|
342291
342297
|
function configToRawSettings(cfgFile) {
|
|
342292
342298
|
if (!cfgFile)
|
|
342293
342299
|
return {};
|
|
342294
|
-
const
|
|
342295
|
-
const filename = toFilePathOrHref(
|
|
342300
|
+
const url3 = cfgFile.url;
|
|
342301
|
+
const filename = toFilePathOrHref(url3);
|
|
342296
342302
|
const fileRef = {
|
|
342297
342303
|
filename,
|
|
342298
342304
|
error: void 0
|
|
@@ -342308,14 +342314,14 @@ function configToRawSettings(cfgFile) {
|
|
|
342308
342314
|
if (!cfgFile.virtual) {
|
|
342309
342315
|
rawSettings.__importRef = fileRef;
|
|
342310
342316
|
}
|
|
342311
|
-
const id = rawSettings.id || urlToSimpleId(
|
|
342317
|
+
const id = rawSettings.id || urlToSimpleId(url3);
|
|
342312
342318
|
const name3 = rawSettings.name || id;
|
|
342313
342319
|
rawSettings.id = id;
|
|
342314
342320
|
rawSettings.name = cfgFile.settings.name || name3;
|
|
342315
342321
|
return rawSettings;
|
|
342316
342322
|
}
|
|
342317
|
-
function urlToSimpleId(
|
|
342318
|
-
return
|
|
342323
|
+
function urlToSimpleId(url3) {
|
|
342324
|
+
return url3.pathname.split("/").slice(-2).join("/");
|
|
342319
342325
|
}
|
|
342320
342326
|
|
|
342321
342327
|
// ../../node_modules/.pnpm/cspell-lib@8.19.4/node_modules/cspell-lib/dist/lib/Settings/GlobalSettings.js
|
|
@@ -342514,8 +342520,8 @@ async function _cleanCache() {
|
|
|
342514
342520
|
function rejectToUndefined(p) {
|
|
342515
342521
|
return p.catch(() => void 0);
|
|
342516
342522
|
}
|
|
342517
|
-
function isSupported(
|
|
342518
|
-
return supportedSchemas.has(
|
|
342523
|
+
function isSupported(url3) {
|
|
342524
|
+
return supportedSchemas.has(url3.protocol);
|
|
342519
342525
|
}
|
|
342520
342526
|
|
|
342521
342527
|
// ../../node_modules/.pnpm/cspell-lib@8.19.4/node_modules/cspell-lib/dist/lib/Settings/Controller/configLoader/configLocations.js
|
|
@@ -342727,7 +342733,7 @@ var DirConfigScanner = class {
|
|
|
342727
342733
|
}
|
|
342728
342734
|
};
|
|
342729
342735
|
function setupSearchPlacesByProtocol(searchPlaces2, allowedExtensionsByProtocol) {
|
|
342730
|
-
const map4 = new Map([...allowedExtensionsByProtocol.entries()].map(([k, v]) => [k, new Set(v)]).map(([protocol, exts]) => [protocol, searchPlaces2.filter((
|
|
342736
|
+
const map4 = new Map([...allowedExtensionsByProtocol.entries()].map(([k, v]) => [k, new Set(v)]).map(([protocol, exts]) => [protocol, searchPlaces2.filter((url3) => exts.has(extname5(url3)))]));
|
|
342731
342737
|
return map4;
|
|
342732
342738
|
}
|
|
342733
342739
|
async function checkPackageJson(fs18, filename) {
|
|
@@ -342814,8 +342820,8 @@ var ConfigLoader = class {
|
|
|
342814
342820
|
}
|
|
342815
342821
|
async readConfigFile(filenameOrURL, relativeTo) {
|
|
342816
342822
|
const ref = await this.resolveFilename(filenameOrURL.toString(), relativeTo || toFileDirURL("./"));
|
|
342817
|
-
const
|
|
342818
|
-
const href =
|
|
342823
|
+
const url3 = toFileURL(ref.filename);
|
|
342824
|
+
const href = url3.href;
|
|
342819
342825
|
if (ref.error)
|
|
342820
342826
|
return new ImportError(`Failed to read config file: "${ref.filename}"`, ref.error);
|
|
342821
342827
|
const cached2 = this.cachedConfigFiles.get(href);
|
|
@@ -342834,12 +342840,12 @@ var ConfigLoader = class {
|
|
|
342834
342840
|
});
|
|
342835
342841
|
}
|
|
342836
342842
|
async searchForConfigFileLocation(searchFrom) {
|
|
342837
|
-
const
|
|
342838
|
-
if (typeof searchFrom === "string" && !isUrlLike(searchFrom) &&
|
|
342839
|
-
await isDirectory(this.fs,
|
|
342840
|
-
return this.configSearch.searchForConfig(addTrailingSlash(
|
|
342843
|
+
const url3 = toFileURL(searchFrom || cwdURL(), cwdURL());
|
|
342844
|
+
if (typeof searchFrom === "string" && !isUrlLike(searchFrom) && url3.protocol === "file:" && // check to see if it is a directory
|
|
342845
|
+
await isDirectory(this.fs, url3)) {
|
|
342846
|
+
return this.configSearch.searchForConfig(addTrailingSlash(url3));
|
|
342841
342847
|
}
|
|
342842
|
-
return this.configSearch.searchForConfig(
|
|
342848
|
+
return this.configSearch.searchForConfig(url3);
|
|
342843
342849
|
}
|
|
342844
342850
|
async searchForConfigFile(searchFrom) {
|
|
342845
342851
|
const location2 = await this.searchForConfigFileLocation(searchFrom);
|
|
@@ -342902,13 +342908,13 @@ var ConfigLoader = class {
|
|
|
342902
342908
|
}
|
|
342903
342909
|
async resolveDefaultConfig() {
|
|
342904
342910
|
const r = await this.fileResolver.resolveFile(defaultConfigFileModuleRef, srcDirectory);
|
|
342905
|
-
const
|
|
342906
|
-
this.cspellConfigFileReaderWriter.setTrustedUrls([new URL("../..",
|
|
342907
|
-
return
|
|
342911
|
+
const url3 = toFileURL(r.filename);
|
|
342912
|
+
this.cspellConfigFileReaderWriter.setTrustedUrls([new URL("../..", url3)]);
|
|
342913
|
+
return url3;
|
|
342908
342914
|
}
|
|
342909
342915
|
importSettings(fileRef, pnpSettings, backReferences) {
|
|
342910
|
-
const
|
|
342911
|
-
const cacheKey =
|
|
342916
|
+
const url3 = toFileURL(fileRef.filename);
|
|
342917
|
+
const cacheKey = url3.href;
|
|
342912
342918
|
const cachedImport = this.cachedConfig.get(cacheKey);
|
|
342913
342919
|
if (cachedImport) {
|
|
342914
342920
|
backReferences.forEach((ref) => cachedImport.referencedSet.add(ref));
|
|
@@ -343024,7 +343030,7 @@ var ConfigLoader = class {
|
|
|
343024
343030
|
*/
|
|
343025
343031
|
async mergeImports(cfgFile, importedSettings) {
|
|
343026
343032
|
const rawSettings = configToRawSettings(cfgFile);
|
|
343027
|
-
const
|
|
343033
|
+
const url3 = cfgFile.url;
|
|
343028
343034
|
const fileRef = rawSettings.__importRef;
|
|
343029
343035
|
const source = rawSettings.source;
|
|
343030
343036
|
assert11(source);
|
|
@@ -343034,12 +343040,12 @@ var ConfigLoader = class {
|
|
|
343034
343040
|
globRoot: resolveGlobRoot(rawSettings, cfgFile.url),
|
|
343035
343041
|
languageSettings: normalizeLanguageSettings(rawSettings.languageSettings)
|
|
343036
343042
|
};
|
|
343037
|
-
const normalizedDictionaryDefs = normalizeDictionaryDefs(settings,
|
|
343038
|
-
const normalizedSettingsGlobs = normalizeSettingsGlobs(settings,
|
|
343039
|
-
const normalizedOverrides = normalizeOverrides(settings,
|
|
343040
|
-
const normalizedReporters = await normalizeReporters(settings,
|
|
343041
|
-
const normalizedGitignoreRoot = normalizeGitignoreRoot(settings,
|
|
343042
|
-
const normalizedCacheSettings = normalizeCacheSettings(settings,
|
|
343043
|
+
const normalizedDictionaryDefs = normalizeDictionaryDefs(settings, url3);
|
|
343044
|
+
const normalizedSettingsGlobs = normalizeSettingsGlobs(settings, url3);
|
|
343045
|
+
const normalizedOverrides = normalizeOverrides(settings, url3);
|
|
343046
|
+
const normalizedReporters = await normalizeReporters(settings, url3);
|
|
343047
|
+
const normalizedGitignoreRoot = normalizeGitignoreRoot(settings, url3);
|
|
343048
|
+
const normalizedCacheSettings = normalizeCacheSettings(settings, url3);
|
|
343043
343049
|
const fileSettings = createCSpellSettingsInternal({
|
|
343044
343050
|
...settings,
|
|
343045
343051
|
source,
|
|
@@ -343153,7 +343159,7 @@ function getDefaultConfigLoaderInternal() {
|
|
|
343153
343159
|
return defaultConfigLoader = createConfigLoaderInternal();
|
|
343154
343160
|
}
|
|
343155
343161
|
function createIO(fs18) {
|
|
343156
|
-
const readFile6 = (
|
|
343162
|
+
const readFile6 = (url3) => fs18.readFile(url3).then((file) => ({ url: file.url, content: file.getText() }));
|
|
343157
343163
|
const writeFile3 = (file) => fs18.writeFile(file);
|
|
343158
343164
|
return {
|
|
343159
343165
|
readFile: readFile6,
|
|
@@ -343193,9 +343199,9 @@ var ConfigurationLoaderFailedToResolveError = class extends ConfigurationLoaderE
|
|
|
343193
343199
|
}
|
|
343194
343200
|
};
|
|
343195
343201
|
function relativeToCwd(file) {
|
|
343196
|
-
const
|
|
343202
|
+
const url3 = toFileUrl(file);
|
|
343197
343203
|
const cwdPath = cwdURL().pathname.split("/").slice(0, -1);
|
|
343198
|
-
const urlPath =
|
|
343204
|
+
const urlPath = url3.pathname.split("/");
|
|
343199
343205
|
if (urlPath[0] !== cwdPath[0])
|
|
343200
343206
|
return toFilePathOrHref(file);
|
|
343201
343207
|
let i = 0;
|
|
@@ -346804,11 +346810,11 @@ function sanitizeSuggestion(sug) {
|
|
|
346804
346810
|
return { word: word2 };
|
|
346805
346811
|
}
|
|
346806
346812
|
async function searchForDocumentConfig(document2, defaultConfig, pnpSettings) {
|
|
346807
|
-
const
|
|
346813
|
+
const url3 = documentUriToURL(document2.uri);
|
|
346808
346814
|
try {
|
|
346809
|
-
return await searchForConfig(
|
|
346815
|
+
return await searchForConfig(url3, pnpSettings).then((s) => s || defaultConfig);
|
|
346810
346816
|
} catch (e) {
|
|
346811
|
-
if (
|
|
346817
|
+
if (url3.protocol !== "file:")
|
|
346812
346818
|
return defaultConfig;
|
|
346813
346819
|
throw e;
|
|
346814
346820
|
}
|
|
@@ -347283,10 +347289,10 @@ function genIssueEmitter(stdIO, errIO, template2, uniqueIssues, reportedIssuesCo
|
|
|
347283
347289
|
function nullEmitter() {
|
|
347284
347290
|
}
|
|
347285
347291
|
function relativeUriFilename(uri, rootURL) {
|
|
347286
|
-
const
|
|
347287
|
-
const rel = urlRelative(rootURL,
|
|
347292
|
+
const url3 = toFileURL(uri);
|
|
347293
|
+
const rel = urlRelative(rootURL, url3);
|
|
347288
347294
|
if (rel.startsWith(".."))
|
|
347289
|
-
return toFilePathOrHref(
|
|
347295
|
+
return toFilePathOrHref(url3);
|
|
347290
347296
|
return rel;
|
|
347291
347297
|
}
|
|
347292
347298
|
function reportProgress(io, p, cwdURL2, options) {
|
|
@@ -348321,15 +348327,15 @@ function readStdin() {
|
|
|
348321
348327
|
// ../../node_modules/.pnpm/cspell@8.19.4/node_modules/cspell/dist/esm/util/stdinUrl.js
|
|
348322
348328
|
init_esm_shims();
|
|
348323
348329
|
import assert20 from "node:assert";
|
|
348324
|
-
function isStdinUrl(
|
|
348325
|
-
if (
|
|
348326
|
-
return
|
|
348330
|
+
function isStdinUrl(url3) {
|
|
348331
|
+
if (url3 instanceof URL) {
|
|
348332
|
+
return url3.protocol === STDINProtocol;
|
|
348327
348333
|
}
|
|
348328
|
-
return
|
|
348334
|
+
return url3.startsWith(STDINProtocol);
|
|
348329
348335
|
}
|
|
348330
|
-
function resolveStdinUrl(
|
|
348331
|
-
assert20(
|
|
348332
|
-
const path32 =
|
|
348336
|
+
function resolveStdinUrl(url3, cwd) {
|
|
348337
|
+
assert20(url3.startsWith(STDINProtocol), `Expected url to start with ${STDINProtocol}`);
|
|
348338
|
+
const path32 = url3.slice(STDINProtocol.length).replace(/^\/\//, "").replace(/^\/([a-z]:)/i, "$1");
|
|
348333
348339
|
const fileUrl = toFileURL(path32, cwd);
|
|
348334
348340
|
return fileUrl.toString().replace(/^file:/, STDINProtocol) + (path32 ? "" : "/");
|
|
348335
348341
|
}
|
|
@@ -348375,8 +348381,8 @@ function resolveFilename(filename, cwd) {
|
|
|
348375
348381
|
if (filename === STDIN)
|
|
348376
348382
|
return STDINUrlPrefix;
|
|
348377
348383
|
if (filename.startsWith(FileUrlPrefix)) {
|
|
348378
|
-
const
|
|
348379
|
-
return fileURLToPath16(
|
|
348384
|
+
const url3 = new URL(filename.slice(FileUrlPrefix.length), toFileDirURL(cwd));
|
|
348385
|
+
return fileURLToPath16(url3);
|
|
348380
348386
|
}
|
|
348381
348387
|
if (isStdinUrl(filename)) {
|
|
348382
348388
|
return resolveStdinUrl(filename, cwd);
|
|
@@ -363239,10 +363245,10 @@ function createRows(state, files) {
|
|
|
363239
363245
|
}
|
|
363240
363246
|
return rows;
|
|
363241
363247
|
}
|
|
363242
|
-
function createUrlLines(state,
|
|
363248
|
+
function createUrlLines(state, url3) {
|
|
363243
363249
|
return [
|
|
363244
363250
|
" " + state.bold + "[url]" + state.normalIntensity + ":",
|
|
363245
|
-
" " +
|
|
363251
|
+
" " + url3
|
|
363246
363252
|
];
|
|
363247
363253
|
}
|
|
363248
363254
|
function formatReason(state, reason) {
|
|
@@ -370025,7 +370031,7 @@ glob4.glob = glob4;
|
|
|
370025
370031
|
// ../../node_modules/.pnpm/octokit@4.0.2/node_modules/octokit/dist-bundle/index.js
|
|
370026
370032
|
init_esm_shims();
|
|
370027
370033
|
|
|
370028
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
370034
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.6/node_modules/@octokit/core/dist-src/index.js
|
|
370029
370035
|
init_esm_shims();
|
|
370030
370036
|
|
|
370031
370037
|
// ../../node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.js
|
|
@@ -370209,8 +370215,8 @@ function removeUndefinedProperties(obj2) {
|
|
|
370209
370215
|
}
|
|
370210
370216
|
function merge8(defaults4, route, options) {
|
|
370211
370217
|
if (typeof route === "string") {
|
|
370212
|
-
let [method,
|
|
370213
|
-
options = Object.assign(
|
|
370218
|
+
let [method, url3] = route.split(" ");
|
|
370219
|
+
options = Object.assign(url3 ? { method, url: url3 } : { url: method }, options);
|
|
370214
370220
|
} else {
|
|
370215
370221
|
options = Object.assign({}, route);
|
|
370216
370222
|
}
|
|
@@ -370228,13 +370234,13 @@ function merge8(defaults4, route, options) {
|
|
|
370228
370234
|
}
|
|
370229
370235
|
return mergedOptions;
|
|
370230
370236
|
}
|
|
370231
|
-
function addQueryParameters(
|
|
370232
|
-
const separator = /\?/.test(
|
|
370237
|
+
function addQueryParameters(url3, parameters) {
|
|
370238
|
+
const separator = /\?/.test(url3) ? "&" : "?";
|
|
370233
370239
|
const names = Object.keys(parameters);
|
|
370234
370240
|
if (names.length === 0) {
|
|
370235
|
-
return
|
|
370241
|
+
return url3;
|
|
370236
370242
|
}
|
|
370237
|
-
return
|
|
370243
|
+
return url3 + separator + names.map((name3) => {
|
|
370238
370244
|
if (name3 === "q") {
|
|
370239
370245
|
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
|
370240
370246
|
}
|
|
@@ -370245,8 +370251,8 @@ var urlVariableRegex = /\{[^{}}]+\}/g;
|
|
|
370245
370251
|
function removeNonChars(variableName) {
|
|
370246
370252
|
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
|
370247
370253
|
}
|
|
370248
|
-
function extractUrlVariableNames(
|
|
370249
|
-
const matches =
|
|
370254
|
+
function extractUrlVariableNames(url3) {
|
|
370255
|
+
const matches = url3.match(urlVariableRegex);
|
|
370250
370256
|
if (!matches) {
|
|
370251
370257
|
return [];
|
|
370252
370258
|
}
|
|
@@ -370393,7 +370399,7 @@ function expand4(template2, context) {
|
|
|
370393
370399
|
}
|
|
370394
370400
|
function parse8(options) {
|
|
370395
370401
|
let method = options.method.toUpperCase();
|
|
370396
|
-
let
|
|
370402
|
+
let url3 = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
370397
370403
|
let headers = Object.assign({}, options.headers);
|
|
370398
370404
|
let body;
|
|
370399
370405
|
let parameters = omit2(options, [
|
|
@@ -370404,10 +370410,10 @@ function parse8(options) {
|
|
|
370404
370410
|
"request",
|
|
370405
370411
|
"mediaType"
|
|
370406
370412
|
]);
|
|
370407
|
-
const urlVariableNames = extractUrlVariableNames(
|
|
370408
|
-
|
|
370409
|
-
if (!/^http/.test(
|
|
370410
|
-
|
|
370413
|
+
const urlVariableNames = extractUrlVariableNames(url3);
|
|
370414
|
+
url3 = parseUrl(url3).expand(parameters);
|
|
370415
|
+
if (!/^http/.test(url3)) {
|
|
370416
|
+
url3 = options.baseUrl + url3;
|
|
370411
370417
|
}
|
|
370412
370418
|
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
|
370413
370419
|
const remainingParameters = omit2(parameters, omittedParameters);
|
|
@@ -370421,7 +370427,7 @@ function parse8(options) {
|
|
|
370421
370427
|
)
|
|
370422
370428
|
).join(",");
|
|
370423
370429
|
}
|
|
370424
|
-
if (
|
|
370430
|
+
if (url3.endsWith("/graphql")) {
|
|
370425
370431
|
if (options.mediaType.previews?.length) {
|
|
370426
370432
|
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
|
|
370427
370433
|
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
@@ -370432,7 +370438,7 @@ function parse8(options) {
|
|
|
370432
370438
|
}
|
|
370433
370439
|
}
|
|
370434
370440
|
if (["GET", "HEAD"].includes(method)) {
|
|
370435
|
-
|
|
370441
|
+
url3 = addQueryParameters(url3, remainingParameters);
|
|
370436
370442
|
} else {
|
|
370437
370443
|
if ("data" in remainingParameters) {
|
|
370438
370444
|
body = remainingParameters.data;
|
|
@@ -370449,7 +370455,7 @@ function parse8(options) {
|
|
|
370449
370455
|
body = "";
|
|
370450
370456
|
}
|
|
370451
370457
|
return Object.assign(
|
|
370452
|
-
{ method, url:
|
|
370458
|
+
{ method, url: url3, headers },
|
|
370453
370459
|
typeof body !== "undefined" ? { body } : null,
|
|
370454
370460
|
options.request ? { request: options.request } : null
|
|
370455
370461
|
);
|
|
@@ -370578,13 +370584,13 @@ async function fetchWrapper(requestOptions) {
|
|
|
370578
370584
|
throw requestError;
|
|
370579
370585
|
}
|
|
370580
370586
|
const status = fetchResponse.status;
|
|
370581
|
-
const
|
|
370587
|
+
const url3 = fetchResponse.url;
|
|
370582
370588
|
const responseHeaders = {};
|
|
370583
370589
|
for (const [key, value2] of fetchResponse.headers) {
|
|
370584
370590
|
responseHeaders[key] = value2;
|
|
370585
370591
|
}
|
|
370586
370592
|
const octokitResponse = {
|
|
370587
|
-
url:
|
|
370593
|
+
url: url3,
|
|
370588
370594
|
status,
|
|
370589
370595
|
headers: responseHeaders,
|
|
370590
370596
|
data: ""
|
|
@@ -370840,15 +370846,30 @@ var createTokenAuth = function createTokenAuth2(token) {
|
|
|
370840
370846
|
});
|
|
370841
370847
|
};
|
|
370842
370848
|
|
|
370843
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
370849
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.6/node_modules/@octokit/core/dist-src/version.js
|
|
370844
370850
|
init_esm_shims();
|
|
370845
|
-
var VERSION4 = "6.1.
|
|
370851
|
+
var VERSION4 = "6.1.6";
|
|
370846
370852
|
|
|
370847
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
370853
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.6/node_modules/@octokit/core/dist-src/index.js
|
|
370848
370854
|
var noop2 = () => {
|
|
370849
370855
|
};
|
|
370850
370856
|
var consoleWarn = console.warn.bind(console);
|
|
370851
370857
|
var consoleError = console.error.bind(console);
|
|
370858
|
+
function createLogger(logger = {}) {
|
|
370859
|
+
if (typeof logger.debug !== "function") {
|
|
370860
|
+
logger.debug = noop2;
|
|
370861
|
+
}
|
|
370862
|
+
if (typeof logger.info !== "function") {
|
|
370863
|
+
logger.info = noop2;
|
|
370864
|
+
}
|
|
370865
|
+
if (typeof logger.warn !== "function") {
|
|
370866
|
+
logger.warn = consoleWarn;
|
|
370867
|
+
}
|
|
370868
|
+
if (typeof logger.error !== "function") {
|
|
370869
|
+
logger.error = consoleError;
|
|
370870
|
+
}
|
|
370871
|
+
return logger;
|
|
370872
|
+
}
|
|
370852
370873
|
var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
|
|
370853
370874
|
var Octokit = class {
|
|
370854
370875
|
static VERSION = VERSION4;
|
|
@@ -370916,15 +370937,7 @@ var Octokit = class {
|
|
|
370916
370937
|
}
|
|
370917
370938
|
this.request = request.defaults(requestDefaults);
|
|
370918
370939
|
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
|
370919
|
-
this.log =
|
|
370920
|
-
{
|
|
370921
|
-
debug: noop2,
|
|
370922
|
-
info: noop2,
|
|
370923
|
-
warn: consoleWarn,
|
|
370924
|
-
error: consoleError
|
|
370925
|
-
},
|
|
370926
|
-
options.log
|
|
370927
|
-
);
|
|
370940
|
+
this.log = createLogger(options.log);
|
|
370928
370941
|
this.hook = hook7;
|
|
370929
370942
|
if (!options.authStrategy) {
|
|
370930
370943
|
if (!options.auth) {
|
|
@@ -370971,7 +370984,7 @@ var Octokit = class {
|
|
|
370971
370984
|
auth;
|
|
370972
370985
|
};
|
|
370973
370986
|
|
|
370974
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@11.6.0_@octokit+core@6.1.
|
|
370987
|
+
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@11.6.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js
|
|
370975
370988
|
init_esm_shims();
|
|
370976
370989
|
var VERSION5 = "0.0.0-development";
|
|
370977
370990
|
function normalizePaginatedListResponse(response) {
|
|
@@ -371006,21 +371019,21 @@ function iterator(octokit, route, parameters) {
|
|
|
371006
371019
|
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
371007
371020
|
const method = options.method;
|
|
371008
371021
|
const headers = options.headers;
|
|
371009
|
-
let
|
|
371022
|
+
let url3 = options.url;
|
|
371010
371023
|
return {
|
|
371011
371024
|
[Symbol.asyncIterator]: () => ({
|
|
371012
371025
|
async next() {
|
|
371013
|
-
if (!
|
|
371026
|
+
if (!url3) return { done: true };
|
|
371014
371027
|
try {
|
|
371015
|
-
const response = await requestMethod({ method, url:
|
|
371028
|
+
const response = await requestMethod({ method, url: url3, headers });
|
|
371016
371029
|
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
371017
|
-
|
|
371030
|
+
url3 = ((normalizedResponse.headers.link || "").match(
|
|
371018
371031
|
/<([^<>]+)>;\s*rel="next"/
|
|
371019
371032
|
) || [])[1];
|
|
371020
371033
|
return { value: normalizedResponse };
|
|
371021
371034
|
} catch (error2) {
|
|
371022
371035
|
if (error2.status !== 409) throw error2;
|
|
371023
|
-
|
|
371036
|
+
url3 = "";
|
|
371024
371037
|
return {
|
|
371025
371038
|
value: {
|
|
371026
371039
|
status: 200,
|
|
@@ -371075,7 +371088,7 @@ function paginateRest(octokit) {
|
|
|
371075
371088
|
}
|
|
371076
371089
|
paginateRest.VERSION = VERSION5;
|
|
371077
371090
|
|
|
371078
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-graphql@5.2.4_@octokit+core@6.1.
|
|
371091
|
+
// ../../node_modules/.pnpm/@octokit+plugin-paginate-graphql@5.2.4_@octokit+core@6.1.6/node_modules/@octokit/plugin-paginate-graphql/dist-bundle/index.js
|
|
371079
371092
|
init_esm_shims();
|
|
371080
371093
|
var generateMessage = (path32, cursorValue) => `The cursor at "${path32.join(
|
|
371081
371094
|
","
|
|
@@ -371237,17 +371250,17 @@ function paginateGraphQL(octokit) {
|
|
|
371237
371250
|
};
|
|
371238
371251
|
}
|
|
371239
371252
|
|
|
371240
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.
|
|
371253
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
371241
371254
|
init_esm_shims();
|
|
371242
371255
|
|
|
371243
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.
|
|
371256
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
|
371244
371257
|
init_esm_shims();
|
|
371245
371258
|
var VERSION6 = "13.5.0";
|
|
371246
371259
|
|
|
371247
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.
|
|
371260
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
|
371248
371261
|
init_esm_shims();
|
|
371249
371262
|
|
|
371250
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.
|
|
371263
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
|
|
371251
371264
|
init_esm_shims();
|
|
371252
371265
|
var Endpoints = {
|
|
371253
371266
|
actions: {
|
|
@@ -373577,16 +373590,16 @@ var Endpoints = {
|
|
|
373577
373590
|
};
|
|
373578
373591
|
var endpoints_default = Endpoints;
|
|
373579
373592
|
|
|
373580
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.
|
|
373593
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
|
373581
373594
|
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
373582
373595
|
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
373583
373596
|
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
373584
373597
|
const [route, defaults4, decorations] = endpoint2;
|
|
373585
|
-
const [method,
|
|
373598
|
+
const [method, url3] = route.split(/ /);
|
|
373586
373599
|
const endpointDefaults = Object.assign(
|
|
373587
373600
|
{
|
|
373588
373601
|
method,
|
|
373589
|
-
url:
|
|
373602
|
+
url: url3
|
|
373590
373603
|
},
|
|
373591
373604
|
defaults4
|
|
373592
373605
|
);
|
|
@@ -373700,7 +373713,7 @@ function decorate(octokit, scope, methodName, defaults4, decorations) {
|
|
|
373700
373713
|
return Object.assign(withDecorations, requestWithDefaults);
|
|
373701
373714
|
}
|
|
373702
373715
|
|
|
373703
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.
|
|
373716
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.5.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
373704
373717
|
function restEndpointMethods(octokit) {
|
|
373705
373718
|
const api = endpointsToMethods(octokit);
|
|
373706
373719
|
return {
|
|
@@ -373717,7 +373730,7 @@ function legacyRestEndpointMethods(octokit) {
|
|
|
373717
373730
|
}
|
|
373718
373731
|
legacyRestEndpointMethods.VERSION = VERSION6;
|
|
373719
373732
|
|
|
373720
|
-
// ../../node_modules/.pnpm/@octokit+plugin-retry@7.2.1_@octokit+core@6.1.
|
|
373733
|
+
// ../../node_modules/.pnpm/@octokit+plugin-retry@7.2.1_@octokit+core@6.1.6/node_modules/@octokit/plugin-retry/dist-bundle/index.js
|
|
373721
373734
|
init_esm_shims();
|
|
373722
373735
|
var import_light = __toESM(require_light(), 1);
|
|
373723
373736
|
var VERSION7 = "0.0.0-development";
|
|
@@ -373788,7 +373801,7 @@ function retry(octokit, octokitOptions) {
|
|
|
373788
373801
|
}
|
|
373789
373802
|
retry.VERSION = VERSION7;
|
|
373790
373803
|
|
|
373791
|
-
// ../../node_modules/.pnpm/@octokit+plugin-throttling@9.6.1_@octokit+core@6.1.
|
|
373804
|
+
// ../../node_modules/.pnpm/@octokit+plugin-throttling@9.6.1_@octokit+core@6.1.6/node_modules/@octokit/plugin-throttling/dist-bundle/index.js
|
|
373792
373805
|
init_esm_shims();
|
|
373793
373806
|
var import_light2 = __toESM(require_light(), 1);
|
|
373794
373807
|
var VERSION8 = "0.0.0-development";
|
|
@@ -374008,7 +374021,7 @@ throttling.triggersNotification = triggersNotification;
|
|
|
374008
374021
|
// ../../node_modules/.pnpm/@octokit+app@15.1.6/node_modules/@octokit/app/dist-node/index.js
|
|
374009
374022
|
init_esm_shims();
|
|
374010
374023
|
|
|
374011
|
-
// ../../node_modules/.pnpm/@octokit+auth-app@7.2.
|
|
374024
|
+
// ../../node_modules/.pnpm/@octokit+auth-app@7.2.2/node_modules/@octokit/auth-app/dist-node/index.js
|
|
374012
374025
|
init_esm_shims();
|
|
374013
374026
|
|
|
374014
374027
|
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.4/node_modules/@octokit/auth-oauth-app/dist-bundle/index.js
|
|
@@ -374053,7 +374066,7 @@ function urlBuilderAuthorize(base2, options) {
|
|
|
374053
374066
|
scopes: "scope",
|
|
374054
374067
|
state: "state"
|
|
374055
374068
|
};
|
|
374056
|
-
let
|
|
374069
|
+
let url3 = base2;
|
|
374057
374070
|
Object.keys(map4).filter((k) => options[k] !== null).filter((k) => {
|
|
374058
374071
|
if (k !== "scopes")
|
|
374059
374072
|
return true;
|
|
@@ -374061,10 +374074,10 @@ function urlBuilderAuthorize(base2, options) {
|
|
|
374061
374074
|
return false;
|
|
374062
374075
|
return !Array.isArray(options[k]) || options[k].length > 0;
|
|
374063
374076
|
}).map((key) => [map4[key], `${options[key]}`]).forEach(([key, value2], index2) => {
|
|
374064
|
-
|
|
374065
|
-
|
|
374077
|
+
url3 += index2 === 0 ? `?` : "&";
|
|
374078
|
+
url3 += `${key}=${encodeURIComponent(value2)}`;
|
|
374066
374079
|
});
|
|
374067
|
-
return
|
|
374080
|
+
return url3;
|
|
374068
374081
|
}
|
|
374069
374082
|
|
|
374070
374083
|
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.5/node_modules/@octokit/oauth-methods/dist-bundle/index.js
|
|
@@ -374593,8 +374606,8 @@ async function auth3(state, options = {}) {
|
|
|
374593
374606
|
return state.authentication;
|
|
374594
374607
|
}
|
|
374595
374608
|
var ROUTES_REQUIRING_BASIC_AUTH = /\/applications\/[^/]+\/(token|grant)s?/;
|
|
374596
|
-
function requiresBasicAuth(
|
|
374597
|
-
return
|
|
374609
|
+
function requiresBasicAuth(url3) {
|
|
374610
|
+
return url3 && ROUTES_REQUIRING_BASIC_AUTH.test(url3);
|
|
374598
374611
|
}
|
|
374599
374612
|
async function hook3(state, request2, route, parameters = {}) {
|
|
374600
374613
|
const endpoint2 = request2.endpoint.merge(
|
|
@@ -374976,7 +374989,7 @@ var LruObject = class {
|
|
|
374976
374989
|
}
|
|
374977
374990
|
};
|
|
374978
374991
|
|
|
374979
|
-
// ../../node_modules/.pnpm/@octokit+auth-app@7.2.
|
|
374992
|
+
// ../../node_modules/.pnpm/@octokit+auth-app@7.2.2/node_modules/@octokit/auth-app/dist-node/index.js
|
|
374980
374993
|
async function getAppAuthentication({
|
|
374981
374994
|
appId,
|
|
374982
374995
|
privateKey,
|
|
@@ -375286,8 +375299,8 @@ function routeMatcher2(paths) {
|
|
|
375286
375299
|
return new RegExp(regex3, "i");
|
|
375287
375300
|
}
|
|
375288
375301
|
var REGEX = routeMatcher2(PATHS);
|
|
375289
|
-
function requiresAppAuth(
|
|
375290
|
-
return !!
|
|
375302
|
+
function requiresAppAuth(url3) {
|
|
375303
|
+
return !!url3 && REGEX.test(url3.split("?")[0]);
|
|
375291
375304
|
}
|
|
375292
375305
|
var FIVE_SECONDS_IN_MS = 5 * 1e3;
|
|
375293
375306
|
function isNotTimeSkewError(error2) {
|
|
@@ -375299,11 +375312,11 @@ function isNotTimeSkewError(error2) {
|
|
|
375299
375312
|
}
|
|
375300
375313
|
async function hook5(state, request2, route, parameters) {
|
|
375301
375314
|
const endpoint2 = request2.endpoint.merge(route, parameters);
|
|
375302
|
-
const
|
|
375303
|
-
if (/\/login\/oauth\/access_token$/.test(
|
|
375315
|
+
const url3 = endpoint2.url;
|
|
375316
|
+
if (/\/login\/oauth\/access_token$/.test(url3)) {
|
|
375304
375317
|
return request2(endpoint2);
|
|
375305
375318
|
}
|
|
375306
|
-
if (requiresAppAuth(
|
|
375319
|
+
if (requiresAppAuth(url3.replace(request2.endpoint.DEFAULTS.baseUrl, ""))) {
|
|
375307
375320
|
const { token: token2 } = await getAppAuthentication(state);
|
|
375308
375321
|
endpoint2.headers.authorization = `bearer ${token2}`;
|
|
375309
375322
|
let response;
|
|
@@ -375332,7 +375345,7 @@ async function hook5(state, request2, route, parameters) {
|
|
|
375332
375345
|
}
|
|
375333
375346
|
return response;
|
|
375334
375347
|
}
|
|
375335
|
-
if (requiresBasicAuth(
|
|
375348
|
+
if (requiresBasicAuth(url3)) {
|
|
375336
375349
|
const authentication = await state.oauthApp({ type: "oauth-app" });
|
|
375337
375350
|
endpoint2.headers.authorization = authentication.headers.authorization;
|
|
375338
375351
|
return request2(endpoint2);
|
|
@@ -375374,7 +375387,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
|
|
|
375374
375387
|
return sendRequestWithRetries(state, request2, options, createdAt, retries);
|
|
375375
375388
|
}
|
|
375376
375389
|
}
|
|
375377
|
-
var VERSION12 = "7.2.
|
|
375390
|
+
var VERSION12 = "7.2.2";
|
|
375378
375391
|
function createAppAuth(options) {
|
|
375379
375392
|
if (!options.appId) {
|
|
375380
375393
|
throw new Error("[@octokit/auth-app] appId option is required");
|
|
@@ -375387,12 +375400,10 @@ function createAppAuth(options) {
|
|
|
375387
375400
|
"[@octokit/auth-app] installationId is set to a falsy value"
|
|
375388
375401
|
);
|
|
375389
375402
|
}
|
|
375390
|
-
const log4 =
|
|
375391
|
-
|
|
375392
|
-
|
|
375393
|
-
|
|
375394
|
-
options.log
|
|
375395
|
-
);
|
|
375403
|
+
const log4 = options.log || {};
|
|
375404
|
+
if (typeof log4.warn !== "function") {
|
|
375405
|
+
log4.warn = console.warn.bind(console);
|
|
375406
|
+
}
|
|
375396
375407
|
const request2 = options.request || request.defaults({
|
|
375397
375408
|
headers: {
|
|
375398
375409
|
"user-agent": `octokit-auth-app.js/${VERSION12} ${getUserAgent()}`
|
|
@@ -375878,7 +375889,7 @@ var OAuthApp = class {
|
|
|
375878
375889
|
deleteAuthorization;
|
|
375879
375890
|
};
|
|
375880
375891
|
|
|
375881
|
-
// ../../node_modules/.pnpm/@octokit+webhooks@13.9.
|
|
375892
|
+
// ../../node_modules/.pnpm/@octokit+webhooks@13.9.1/node_modules/@octokit/webhooks/dist-bundle/index.js
|
|
375882
375893
|
init_esm_shims();
|
|
375883
375894
|
|
|
375884
375895
|
// ../../node_modules/.pnpm/@octokit+webhooks-methods@5.1.1/node_modules/@octokit/webhooks-methods/dist-node/index.js
|
|
@@ -375935,16 +375946,24 @@ async function verifyWithFallback(secret, payload, signature, additionalSecrets)
|
|
|
375935
375946
|
return false;
|
|
375936
375947
|
}
|
|
375937
375948
|
|
|
375938
|
-
// ../../node_modules/.pnpm/@octokit+webhooks@13.9.
|
|
375939
|
-
var
|
|
375940
|
-
debug
|
|
375941
|
-
|
|
375942
|
-
|
|
375943
|
-
}
|
|
375944
|
-
|
|
375945
|
-
|
|
375946
|
-
|
|
375947
|
-
}
|
|
375949
|
+
// ../../node_modules/.pnpm/@octokit+webhooks@13.9.1/node_modules/@octokit/webhooks/dist-bundle/index.js
|
|
375950
|
+
var createLogger2 = (logger = {}) => {
|
|
375951
|
+
if (typeof logger.debug !== "function") {
|
|
375952
|
+
logger.debug = () => {
|
|
375953
|
+
};
|
|
375954
|
+
}
|
|
375955
|
+
if (typeof logger.info !== "function") {
|
|
375956
|
+
logger.info = () => {
|
|
375957
|
+
};
|
|
375958
|
+
}
|
|
375959
|
+
if (typeof logger.warn !== "function") {
|
|
375960
|
+
logger.warn = console.warn.bind(console);
|
|
375961
|
+
}
|
|
375962
|
+
if (typeof logger.error !== "function") {
|
|
375963
|
+
logger.error = console.error.bind(console);
|
|
375964
|
+
}
|
|
375965
|
+
return logger;
|
|
375966
|
+
};
|
|
375948
375967
|
var emitterEventNames = [
|
|
375949
375968
|
"branch_protection_configuration",
|
|
375950
375969
|
"branch_protection_configuration.disabled",
|
|
@@ -376386,7 +376405,7 @@ function removeListener(state, webhookNameOrNames, handler2) {
|
|
|
376386
376405
|
function createEventHandler(options) {
|
|
376387
376406
|
const state = {
|
|
376388
376407
|
hooks: {},
|
|
376389
|
-
log:
|
|
376408
|
+
log: createLogger2(options && options.log)
|
|
376390
376409
|
};
|
|
376391
376410
|
if (options && options.transform) {
|
|
376392
376411
|
state.transform = options.transform;
|
|
@@ -376448,7 +376467,7 @@ var Webhooks = class {
|
|
|
376448
376467
|
secret: options.secret,
|
|
376449
376468
|
additionalSecrets: options.additionalSecrets,
|
|
376450
376469
|
hooks: {},
|
|
376451
|
-
log:
|
|
376470
|
+
log: createLogger2(options.log)
|
|
376452
376471
|
};
|
|
376453
376472
|
this.sign = sign.bind(null, options.secret);
|
|
376454
376473
|
this.verify = verify.bind(null, options.secret);
|
|
@@ -376461,7 +376480,7 @@ var Webhooks = class {
|
|
|
376461
376480
|
}
|
|
376462
376481
|
};
|
|
376463
376482
|
|
|
376464
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@12.0.0_@octokit+core@6.1.
|
|
376483
|
+
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@12.0.0_@octokit+core@6.1.6/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js
|
|
376465
376484
|
init_esm_shims();
|
|
376466
376485
|
var VERSION15 = "0.0.0-development";
|
|
376467
376486
|
function normalizePaginatedListResponse2(response) {
|
|
@@ -376496,21 +376515,21 @@ function iterator2(octokit, route, parameters) {
|
|
|
376496
376515
|
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
376497
376516
|
const method = options.method;
|
|
376498
376517
|
const headers = options.headers;
|
|
376499
|
-
let
|
|
376518
|
+
let url3 = options.url;
|
|
376500
376519
|
return {
|
|
376501
376520
|
[Symbol.asyncIterator]: () => ({
|
|
376502
376521
|
async next() {
|
|
376503
|
-
if (!
|
|
376522
|
+
if (!url3) return { done: true };
|
|
376504
376523
|
try {
|
|
376505
|
-
const response = await requestMethod({ method, url:
|
|
376524
|
+
const response = await requestMethod({ method, url: url3, headers });
|
|
376506
376525
|
const normalizedResponse = normalizePaginatedListResponse2(response);
|
|
376507
|
-
|
|
376526
|
+
url3 = ((normalizedResponse.headers.link || "").match(
|
|
376508
376527
|
/<([^<>]+)>;\s*rel="next"/
|
|
376509
376528
|
) || [])[1];
|
|
376510
376529
|
return { value: normalizedResponse };
|
|
376511
376530
|
} catch (error2) {
|
|
376512
376531
|
if (error2.status !== 409) throw error2;
|
|
376513
|
-
|
|
376532
|
+
url3 = "";
|
|
376514
376533
|
return {
|
|
376515
376534
|
value: {
|
|
376516
376535
|
status: 200,
|