@osdk/cli 0.26.0-beta.19 → 0.26.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/esm/{acorn-RXMSUCXL.js → acorn-6J2XFAF2.js} +33 -34
- package/build/esm/{acorn-RXMSUCXL.js.map → acorn-6J2XFAF2.js.map} +1 -1
- package/build/esm/{angular-ZXAN5BMN.js → angular-FXKB67LX.js} +11 -11
- package/build/esm/{angular-ZXAN5BMN.js.map → angular-FXKB67LX.js.map} +1 -1
- package/build/esm/{babel-TI7T67T2.js → babel-P3PJ67NT.js} +67 -67
- package/build/esm/{babel-TI7T67T2.js.map → babel-P3PJ67NT.js.map} +1 -1
- package/build/esm/{chunk-KJFA7LBI.js → chunk-FNSPUDYX.js} +6 -6
- package/build/esm/{chunk-KJFA7LBI.js.map → chunk-FNSPUDYX.js.map} +1 -1
- package/build/esm/{chunk-M2BWWO6L.js → chunk-G4YHZ22X.js} +3 -3
- package/build/esm/{chunk-M2BWWO6L.js.map → chunk-G4YHZ22X.js.map} +1 -1
- package/build/esm/{chunk-ML7ZMS6G.js → chunk-GMSFWYOD.js} +3 -3
- package/build/esm/{chunk-ML7ZMS6G.js.map → chunk-GMSFWYOD.js.map} +1 -1
- package/build/esm/{chunk-VHOQB2JW.js → chunk-HRFGJCX3.js} +4 -4
- package/build/esm/{chunk-VHOQB2JW.js.map → chunk-HRFGJCX3.js.map} +1 -1
- package/build/esm/{chunk-2U36M44D.js → chunk-MX6IUHH6.js} +3 -3
- package/build/esm/{chunk-2U36M44D.js.map → chunk-MX6IUHH6.js.map} +1 -1
- package/build/esm/{chunk-SUJEAUW2.js → chunk-OMACPIR2.js} +7 -7
- package/build/esm/{chunk-SUJEAUW2.js.map → chunk-OMACPIR2.js.map} +1 -1
- package/build/esm/{chunk-MU54JM45.js → chunk-SB26PVZG.js} +7 -7
- package/build/esm/{chunk-MU54JM45.js.map → chunk-SB26PVZG.js.map} +1 -1
- package/build/esm/{chunk-P5HXJTVE.js → chunk-WID24PKG.js} +13 -13
- package/build/esm/{chunk-P5HXJTVE.js.map → chunk-WID24PKG.js.map} +1 -1
- package/build/esm/{chunk-N3LXG6II.js → chunk-WJJGFC5B.js} +3 -3
- package/build/esm/{chunk-N3LXG6II.js.map → chunk-WJJGFC5B.js.map} +1 -1
- package/build/esm/{estree-CSIG7D6Y.js → estree-YZZ76ZCZ.js} +102 -118
- package/build/esm/{estree-CSIG7D6Y.js.map → estree-YZZ76ZCZ.js.map} +1 -1
- package/build/esm/find-up-J6UG2A4A.js +4 -0
- package/build/esm/{find-up-EKHQCTZM.js.map → find-up-J6UG2A4A.js.map} +1 -1
- package/build/esm/{flow-NUNWZLRW.js → flow-FLMB2WRS.js} +14 -14
- package/build/esm/{flow-NUNWZLRW.js.map → flow-FLMB2WRS.js.map} +1 -1
- package/build/esm/{glimmer-GYUSOBQY.js → glimmer-QTYNZR7I.js} +53 -53
- package/build/esm/{glimmer-GYUSOBQY.js.map → glimmer-QTYNZR7I.js.map} +1 -1
- package/build/esm/{graphql-OALHBC5M.js → graphql-RJWZIGAD.js} +22 -57
- package/build/esm/graphql-RJWZIGAD.js.map +1 -0
- package/build/esm/{handleGenerate-LQBWKJJZ.js → handleGenerate-BGRQWN5E.js} +270 -284
- package/build/esm/handleGenerate-BGRQWN5E.js.map +1 -0
- package/build/esm/{html-4RLNYFM4.js → html-CASQPPRX.js} +37 -66
- package/build/esm/html-CASQPPRX.js.map +1 -0
- package/build/esm/index.js +23 -23
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-UZUROTUU.js +4 -0
- package/build/esm/{loginFlow-ETZCNKG3.js.map → loginFlow-UZUROTUU.js.map} +1 -1
- package/build/esm/{markdown-MRACSGE5.js → markdown-SVGJ3QZI.js} +49 -69
- package/build/esm/{markdown-MRACSGE5.js.map → markdown-SVGJ3QZI.js.map} +1 -1
- package/build/esm/{meriyah-LVMHXIGF.js → meriyah-YDXWEWLV.js} +36 -36
- package/build/esm/{meriyah-LVMHXIGF.js.map → meriyah-YDXWEWLV.js.map} +1 -1
- package/build/esm/{postcss-A2ITI5N4.js → postcss-BBOQTN3X.js} +79 -115
- package/build/esm/{postcss-A2ITI5N4.js.map → postcss-BBOQTN3X.js.map} +1 -1
- package/build/esm/{siteDeployCommand-OXIN72E2.js → siteDeployCommand-SICXNVXE.js} +9 -9
- package/build/esm/{siteDeployCommand-OXIN72E2.js.map → siteDeployCommand-SICXNVXE.js.map} +1 -1
- package/build/esm/{typescript-BMNHHGAA.js → typescript-JGKMLQMS.js} +670 -668
- package/build/esm/{typescript-BMNHHGAA.js.map → typescript-JGKMLQMS.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-OURKF4FZ.js → versionDeleteCommand-N4IDMM6T.js} +7 -7
- package/build/esm/{versionDeleteCommand-OURKF4FZ.js.map → versionDeleteCommand-N4IDMM6T.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-NCYTAUWH.js → versionDeleteCommand-UVJD22UF.js} +7 -7
- package/build/esm/{versionDeleteCommand-NCYTAUWH.js.map → versionDeleteCommand-UVJD22UF.js.map} +1 -1
- package/build/esm/{versionGetCommand-6U5FZTMH.js → versionGetCommand-H4WKX33Z.js} +6 -6
- package/build/esm/{versionGetCommand-6U5FZTMH.js.map → versionGetCommand-H4WKX33Z.js.map} +1 -1
- package/build/esm/{versionInfoCommand-G65GI2X7.js → versionInfoCommand-MG3WUM5J.js} +6 -6
- package/build/esm/{versionInfoCommand-G65GI2X7.js.map → versionInfoCommand-MG3WUM5J.js.map} +1 -1
- package/build/esm/{versionListCommand-LY2N3PYX.js → versionListCommand-HEFKKWOR.js} +6 -6
- package/build/esm/{versionListCommand-LY2N3PYX.js.map → versionListCommand-HEFKKWOR.js.map} +1 -1
- package/build/esm/{versionListCommand-76SC6QEH.js → versionListCommand-IRI46I2S.js} +6 -6
- package/build/esm/{versionListCommand-76SC6QEH.js.map → versionListCommand-IRI46I2S.js.map} +1 -1
- package/build/esm/{versionSetCommand-G3XSQZZD.js → versionSetCommand-22FWWWMY.js} +6 -6
- package/build/esm/{versionSetCommand-G3XSQZZD.js.map → versionSetCommand-22FWWWMY.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-CCH2ZASM.js → versionUnsetCommand-JJYWMBIF.js} +7 -7
- package/build/esm/{versionUnsetCommand-CCH2ZASM.js.map → versionUnsetCommand-JJYWMBIF.js.map} +1 -1
- package/build/esm/{widgetSetDeployCommand-3KS2YOIB.js → widgetSetDeployCommand-5VWOAMBB.js} +7 -7
- package/build/esm/{widgetSetDeployCommand-3KS2YOIB.js.map → widgetSetDeployCommand-5VWOAMBB.js.map} +1 -1
- package/build/esm/{yaml-XQ236J4T.js → yaml-C7WVEV2M.js} +50 -63
- package/build/esm/yaml-C7WVEV2M.js.map +1 -0
- package/build/types/commands/site/deploy/siteDeployCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/get/versionGetCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/list/versionListCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/set/versionSetCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/deploy/widgetSetDeployCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/version/delete/versionDeleteCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/version/info/versionInfoCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/version/list/versionListCommand.d.mts.map +1 -1
- package/build/types/net/third-party-applications/index.d.mts +4 -4
- package/build/types/net/third-party-applications/index.d.mts.map +1 -1
- package/build/types/net/widget-registry/index.d.mts +3 -3
- package/build/types/net/widget-registry/index.d.mts.map +1 -1
- package/package.json +6 -6
- package/build/esm/find-up-EKHQCTZM.js +0 -4
- package/build/esm/graphql-OALHBC5M.js.map +0 -1
- package/build/esm/handleGenerate-LQBWKJJZ.js.map +0 -1
- package/build/esm/html-4RLNYFM4.js.map +0 -1
- package/build/esm/loginFlow-ETZCNKG3.js +0 -4
- package/build/esm/yaml-XQ236J4T.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-
|
|
2
|
-
import { YargsCheckError, ExitProcessError } from './chunk-
|
|
3
|
-
import { findUp } from './chunk-
|
|
4
|
-
import { invokeLoginFlow } from './chunk-
|
|
5
|
-
import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-
|
|
1
|
+
import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-WID24PKG.js';
|
|
2
|
+
import { YargsCheckError, ExitProcessError } from './chunk-MX6IUHH6.js';
|
|
3
|
+
import { findUp } from './chunk-FNSPUDYX.js';
|
|
4
|
+
import { invokeLoginFlow } from './chunk-G4YHZ22X.js';
|
|
5
|
+
import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-HRFGJCX3.js';
|
|
6
6
|
import * as fs8 from 'node:fs';
|
|
7
7
|
import * as path19 from 'node:path';
|
|
8
8
|
import path19__default from 'node:path';
|
|
@@ -113,9 +113,9 @@ var UnknownError = class extends PalantirApiError2 {
|
|
|
113
113
|
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
114
114
|
async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
|
|
115
115
|
const path21 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
|
|
116
|
-
const body = flags & 1 ? args.shift() :
|
|
117
|
-
const queryArgs = flags & 2 ? args.shift() :
|
|
118
|
-
const headerArgs = flags & 4 ? args.shift() :
|
|
116
|
+
const body = flags & 1 ? args.shift() : void 0;
|
|
117
|
+
const queryArgs = flags & 2 ? args.shift() : void 0;
|
|
118
|
+
const headerArgs = flags & 4 ? args.shift() : void 0;
|
|
119
119
|
const method = ["GET", "POST", "PUT", "DELETE", "PATCH"][httpMethodNum];
|
|
120
120
|
return await apiFetch(client[symbolClientContext2] ?? client[symbolClientContext] ?? client, method, path21, body, queryArgs, headerArgs, contentType, responseContentType);
|
|
121
121
|
}
|
|
@@ -290,7 +290,7 @@ var EnhancedBase = class extends AbstractImportable {
|
|
|
290
290
|
};
|
|
291
291
|
function extractNamespace(fqApiName) {
|
|
292
292
|
const last = fqApiName.lastIndexOf(".");
|
|
293
|
-
if (last === -1) return [
|
|
293
|
+
if (last === -1) return [void 0, fqApiName];
|
|
294
294
|
return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];
|
|
295
295
|
}
|
|
296
296
|
|
|
@@ -334,7 +334,7 @@ init_esm_shims();
|
|
|
334
334
|
function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
335
335
|
const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType, log);
|
|
336
336
|
if (sdkPropDefinition == null) {
|
|
337
|
-
return
|
|
337
|
+
return void 0;
|
|
338
338
|
}
|
|
339
339
|
switch (input.dataType.type) {
|
|
340
340
|
case "integer":
|
|
@@ -375,12 +375,12 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
|
375
375
|
case "cipherText":
|
|
376
376
|
case "vector": {
|
|
377
377
|
log?.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);
|
|
378
|
-
return
|
|
378
|
+
return void 0;
|
|
379
379
|
}
|
|
380
380
|
default:
|
|
381
381
|
input.dataType;
|
|
382
382
|
log?.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);
|
|
383
|
-
return
|
|
383
|
+
return void 0;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
function objectPropertyTypeToSdkPropertyDefinition(propertyType, log) {
|
|
@@ -421,11 +421,11 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType, log) {
|
|
|
421
421
|
case "cipherText":
|
|
422
422
|
case "vector": {
|
|
423
423
|
log?.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);
|
|
424
|
-
return
|
|
424
|
+
return void 0;
|
|
425
425
|
}
|
|
426
426
|
default: {
|
|
427
427
|
log?.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);
|
|
428
|
-
return
|
|
428
|
+
return void 0;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
}
|
|
@@ -602,7 +602,7 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
602
602
|
|
|
603
603
|
// ../generator-converters/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.js
|
|
604
604
|
function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, log) {
|
|
605
|
-
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] ===
|
|
605
|
+
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] === void 0) {
|
|
606
606
|
throw new Error(`Primary key ${objectTypeWithLink.objectType.primaryKey} not found in ${objectTypeWithLink.objectType.apiName}`);
|
|
607
607
|
}
|
|
608
608
|
if (objectTypeWithLink.implementsInterfaces2 == null && objectTypeWithLink.implementsInterfaces != null) {
|
|
@@ -625,7 +625,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, l
|
|
|
625
625
|
implements: objectTypeWithLink.implementsInterfaces,
|
|
626
626
|
interfaceMap,
|
|
627
627
|
inverseInterfaceMap: Object.fromEntries(Object.entries(interfaceMap).map(([interfaceApiName, props]) => [interfaceApiName, invertProps(props)])),
|
|
628
|
-
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon :
|
|
628
|
+
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon : void 0,
|
|
629
629
|
titleProperty: objectTypeWithLink.objectType.titleProperty,
|
|
630
630
|
displayName: objectTypeWithLink.objectType.displayName,
|
|
631
631
|
pluralDisplayName: objectTypeWithLink.objectType.pluralDisplayName,
|
|
@@ -635,7 +635,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, l
|
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
function invertProps(a) {
|
|
638
|
-
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) :
|
|
638
|
+
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) : void 0;
|
|
639
639
|
}
|
|
640
640
|
var supportedIconTypes = ["blueprint"];
|
|
641
641
|
|
|
@@ -815,7 +815,7 @@ function wireQueryParameterV2ToQueryParameterDefinition(parameter) {
|
|
|
815
815
|
// ../generator/build/esm/util/deleteUndefineds.js
|
|
816
816
|
init_esm_shims();
|
|
817
817
|
function deleteUndefineds(obj) {
|
|
818
|
-
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !==
|
|
818
|
+
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
|
|
819
819
|
}
|
|
820
820
|
|
|
821
821
|
// ../generator/build/esm/GenerateContext/EnhancedInterfaceType.js
|
|
@@ -927,7 +927,7 @@ var EnhancedOntologyDefinition = class {
|
|
|
927
927
|
return (fullApiName) => {
|
|
928
928
|
const ret = this[type2][fullApiName];
|
|
929
929
|
if (!ret) {
|
|
930
|
-
extractNamespace(fullApiName);
|
|
930
|
+
const [apiNamespace, shortApiName] = extractNamespace(fullApiName);
|
|
931
931
|
throw new Error(`Unable to find ${type2}: No entry for '${fullApiName}`);
|
|
932
932
|
}
|
|
933
933
|
return ret;
|
|
@@ -1107,7 +1107,7 @@ function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
1107
1107
|
if (!docType) {
|
|
1108
1108
|
throw new invalid_doc_error_default(doc2);
|
|
1109
1109
|
}
|
|
1110
|
-
if ((onEnter == null ?
|
|
1110
|
+
if ((onEnter == null ? void 0 : onEnter(doc2)) === false) {
|
|
1111
1111
|
continue;
|
|
1112
1112
|
}
|
|
1113
1113
|
switch (docType) {
|
|
@@ -1282,7 +1282,7 @@ function label(label2, contents) {
|
|
|
1282
1282
|
} : contents;
|
|
1283
1283
|
}
|
|
1284
1284
|
var at = (isOptionalObject, object, index) => {
|
|
1285
|
-
if (isOptionalObject && (object ===
|
|
1285
|
+
if (isOptionalObject && (object === void 0 || object === null)) {
|
|
1286
1286
|
return;
|
|
1287
1287
|
}
|
|
1288
1288
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -1292,7 +1292,7 @@ var at = (isOptionalObject, object, index) => {
|
|
|
1292
1292
|
};
|
|
1293
1293
|
var at_default = at;
|
|
1294
1294
|
var stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {
|
|
1295
|
-
if (isOptionalObject && (original ===
|
|
1295
|
+
if (isOptionalObject && (original === void 0 || original === null)) {
|
|
1296
1296
|
return;
|
|
1297
1297
|
}
|
|
1298
1298
|
if (original.replaceAll) {
|
|
@@ -1431,7 +1431,7 @@ function findInDoc(doc, fn, defaultValue) {
|
|
|
1431
1431
|
return false;
|
|
1432
1432
|
}
|
|
1433
1433
|
const maybeResult = fn(doc2);
|
|
1434
|
-
if (maybeResult !==
|
|
1434
|
+
if (maybeResult !== void 0) {
|
|
1435
1435
|
shouldSkipFurtherProcessing = true;
|
|
1436
1436
|
result = maybeResult;
|
|
1437
1437
|
}
|
|
@@ -2325,7 +2325,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
2325
2325
|
};
|
|
2326
2326
|
var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
2327
2327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2328
|
-
exports.splitWhen = exports.flatten =
|
|
2328
|
+
exports.splitWhen = exports.flatten = void 0;
|
|
2329
2329
|
function flatten(items) {
|
|
2330
2330
|
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
2331
2331
|
}
|
|
@@ -2347,7 +2347,7 @@ var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(ex
|
|
|
2347
2347
|
} });
|
|
2348
2348
|
var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
2349
2349
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2350
|
-
exports.isEnoentCodeError =
|
|
2350
|
+
exports.isEnoentCodeError = void 0;
|
|
2351
2351
|
function isEnoentCodeError(error) {
|
|
2352
2352
|
return error.code === "ENOENT";
|
|
2353
2353
|
}
|
|
@@ -2355,7 +2355,7 @@ var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(ex
|
|
|
2355
2355
|
} });
|
|
2356
2356
|
var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
2357
2357
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2358
|
-
exports.createDirentFromStats =
|
|
2358
|
+
exports.createDirentFromStats = void 0;
|
|
2359
2359
|
var DirentFromStats = class {
|
|
2360
2360
|
constructor(name, stats) {
|
|
2361
2361
|
this.name = name;
|
|
@@ -2375,7 +2375,7 @@ var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports)
|
|
|
2375
2375
|
} });
|
|
2376
2376
|
var require_path = __commonJS2({ "node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
2377
2377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2378
|
-
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify =
|
|
2378
|
+
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
2379
2379
|
var os2 = __require("os");
|
|
2380
2380
|
var path132 = __require("path");
|
|
2381
2381
|
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
@@ -2648,7 +2648,7 @@ var require_utils = __commonJS2({ "node_modules/braces/lib/utils.js"(exports) {
|
|
|
2648
2648
|
const flat = (arr) => {
|
|
2649
2649
|
for (let i2 = 0; i2 < arr.length; i2++) {
|
|
2650
2650
|
let ele = arr[i2];
|
|
2651
|
-
Array.isArray(ele) ? flat(ele) : ele !==
|
|
2651
|
+
Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
|
|
2652
2652
|
}
|
|
2653
2653
|
return result;
|
|
2654
2654
|
};
|
|
@@ -2699,7 +2699,7 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2699
2699
|
if (isNumber(min) === false) {
|
|
2700
2700
|
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
2701
2701
|
}
|
|
2702
|
-
if (max ===
|
|
2702
|
+
if (max === void 0 || min === max) {
|
|
2703
2703
|
return String(min);
|
|
2704
2704
|
}
|
|
2705
2705
|
if (isNumber(max) === false) {
|
|
@@ -2757,9 +2757,9 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2757
2757
|
return state.result;
|
|
2758
2758
|
};
|
|
2759
2759
|
function collatePatterns(neg, pos2, options8) {
|
|
2760
|
-
let onlyNegative = filterPatterns(neg, pos2, "-", false);
|
|
2761
|
-
let onlyPositive = filterPatterns(pos2, neg, "", false);
|
|
2762
|
-
let intersected = filterPatterns(neg, pos2, "-?", true);
|
|
2760
|
+
let onlyNegative = filterPatterns(neg, pos2, "-", false) || [];
|
|
2761
|
+
let onlyPositive = filterPatterns(pos2, neg, "", false) || [];
|
|
2762
|
+
let intersected = filterPatterns(neg, pos2, "-?", true) || [];
|
|
2763
2763
|
let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
|
|
2764
2764
|
return subpatterns.join("|");
|
|
2765
2765
|
}
|
|
@@ -3161,7 +3161,7 @@ var require_expand = __commonJS2({ "node_modules/braces/lib/expand.js"(exports,
|
|
|
3161
3161
|
return utils2.flatten(result);
|
|
3162
3162
|
};
|
|
3163
3163
|
var expand = (ast, options8 = {}) => {
|
|
3164
|
-
let rangeLimit = options8.rangeLimit ===
|
|
3164
|
+
let rangeLimit = options8.rangeLimit === void 0 ? 1e3 : options8.rangeLimit;
|
|
3165
3165
|
let walk = (node, parent = {}) => {
|
|
3166
3166
|
node.queue = [];
|
|
3167
3167
|
let p = parent;
|
|
@@ -4669,7 +4669,7 @@ var require_parse2 = __commonJS2({ "node_modules/picomatch/lib/parse.js"(exports
|
|
|
4669
4669
|
continue;
|
|
4670
4670
|
}
|
|
4671
4671
|
if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
|
|
4672
|
-
const end = rest[1] !==
|
|
4672
|
+
const end = rest[1] !== void 0 ? "|$" : "";
|
|
4673
4673
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
4674
4674
|
prior.output = `(?:${prior.output}`;
|
|
4675
4675
|
prev.type = "globstar";
|
|
@@ -5082,7 +5082,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
5082
5082
|
let regex = picomatch.makeRe(String(glob), { ...options8, capture: true });
|
|
5083
5083
|
let match = regex.exec(posix ? utils2.toPosixSlashes(input) : input);
|
|
5084
5084
|
if (match) {
|
|
5085
|
-
return match.slice(1).map((v) => v ===
|
|
5085
|
+
return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
5086
5086
|
}
|
|
5087
5087
|
};
|
|
5088
5088
|
micromatch2.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -5111,7 +5111,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
5111
5111
|
} });
|
|
5112
5112
|
var require_pattern = __commonJS2({ "node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
5113
5113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5114
|
-
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern =
|
|
5114
|
+
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
5115
5115
|
var path132 = __require("path");
|
|
5116
5116
|
var globParent = require_glob_parent();
|
|
5117
5117
|
var micromatch2 = require_micromatch();
|
|
@@ -5368,7 +5368,7 @@ var require_merge2 = __commonJS2({ "node_modules/merge2/index.js"(exports, modul
|
|
|
5368
5368
|
} });
|
|
5369
5369
|
var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
5370
5370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5371
|
-
exports.merge =
|
|
5371
|
+
exports.merge = void 0;
|
|
5372
5372
|
var merge2 = require_merge2();
|
|
5373
5373
|
function merge3(streams) {
|
|
5374
5374
|
const mergedStream = merge2(streams);
|
|
@@ -5386,7 +5386,7 @@ var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(
|
|
|
5386
5386
|
} });
|
|
5387
5387
|
var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
5388
5388
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5389
|
-
exports.isEmpty = exports.isString =
|
|
5389
|
+
exports.isEmpty = exports.isString = void 0;
|
|
5390
5390
|
function isString(input) {
|
|
5391
5391
|
return typeof input === "string";
|
|
5392
5392
|
}
|
|
@@ -5398,7 +5398,7 @@ var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(
|
|
|
5398
5398
|
} });
|
|
5399
5399
|
var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
5400
5400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5401
|
-
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array =
|
|
5401
|
+
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
5402
5402
|
var array2 = require_array();
|
|
5403
5403
|
exports.array = array2;
|
|
5404
5404
|
var errno = require_errno();
|
|
@@ -5416,7 +5416,7 @@ var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(e
|
|
|
5416
5416
|
} });
|
|
5417
5417
|
var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
5418
5418
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5419
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate =
|
|
5419
|
+
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
5420
5420
|
var utils2 = require_utils3();
|
|
5421
5421
|
function generate(input, settings) {
|
|
5422
5422
|
const patterns = processPatterns(input, settings);
|
|
@@ -5501,7 +5501,7 @@ var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"
|
|
|
5501
5501
|
} });
|
|
5502
5502
|
var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
5503
5503
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5504
|
-
exports.read =
|
|
5504
|
+
exports.read = void 0;
|
|
5505
5505
|
function read3(path132, settings, callback) {
|
|
5506
5506
|
settings.fs.lstat(path132, (lstatError, lstat) => {
|
|
5507
5507
|
if (lstatError !== null) {
|
|
@@ -5538,7 +5538,7 @@ var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/a
|
|
|
5538
5538
|
} });
|
|
5539
5539
|
var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
5540
5540
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5541
|
-
exports.read =
|
|
5541
|
+
exports.read = void 0;
|
|
5542
5542
|
function read3(path132, settings) {
|
|
5543
5543
|
const lstat = settings.fs.lstatSync(path132);
|
|
5544
5544
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
@@ -5561,11 +5561,11 @@ var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sy
|
|
|
5561
5561
|
} });
|
|
5562
5562
|
var require_fs2 = __commonJS2({ "node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
5563
5563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5564
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5564
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5565
5565
|
var fs72 = __require("fs");
|
|
5566
5566
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync };
|
|
5567
5567
|
function createFileSystemAdapter(fsMethods) {
|
|
5568
|
-
if (fsMethods ===
|
|
5568
|
+
if (fsMethods === void 0) {
|
|
5569
5569
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5570
5570
|
}
|
|
5571
5571
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5584,14 +5584,14 @@ var require_settings = __commonJS2({ "node_modules/@nodelib/fs.stat/out/settings
|
|
|
5584
5584
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
5585
5585
|
}
|
|
5586
5586
|
_getValue(option, value) {
|
|
5587
|
-
return option !== null && option !==
|
|
5587
|
+
return option !== null && option !== void 0 ? option : value;
|
|
5588
5588
|
}
|
|
5589
5589
|
};
|
|
5590
5590
|
exports.default = Settings;
|
|
5591
5591
|
} });
|
|
5592
5592
|
var require_out = __commonJS2({ "node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
5593
5593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5594
|
-
exports.statSync = exports.stat = exports.Settings =
|
|
5594
|
+
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
5595
5595
|
var async = require_async();
|
|
5596
5596
|
var sync = require_sync();
|
|
5597
5597
|
var settings_1 = require_settings();
|
|
@@ -5670,9 +5670,9 @@ var require_run_parallel = __commonJS2({ "node_modules/run-parallel/index.js"(ex
|
|
|
5670
5670
|
} });
|
|
5671
5671
|
var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
5672
5672
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5673
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES =
|
|
5673
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
5674
5674
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
5675
|
-
if (NODE_PROCESS_VERSION_PARTS[0] ===
|
|
5675
|
+
if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) {
|
|
5676
5676
|
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
5677
5677
|
}
|
|
5678
5678
|
var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
@@ -5685,7 +5685,7 @@ var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/con
|
|
|
5685
5685
|
} });
|
|
5686
5686
|
var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
5687
5687
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5688
|
-
exports.createDirentFromStats =
|
|
5688
|
+
exports.createDirentFromStats = void 0;
|
|
5689
5689
|
var DirentFromStats = class {
|
|
5690
5690
|
constructor(name, stats) {
|
|
5691
5691
|
this.name = name;
|
|
@@ -5705,13 +5705,13 @@ var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.j
|
|
|
5705
5705
|
} });
|
|
5706
5706
|
var require_utils4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5707
5707
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5708
|
-
exports.fs =
|
|
5708
|
+
exports.fs = void 0;
|
|
5709
5709
|
var fs72 = require_fs3();
|
|
5710
5710
|
exports.fs = fs72;
|
|
5711
5711
|
} });
|
|
5712
5712
|
var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
5713
5713
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5714
|
-
exports.joinPathSegments =
|
|
5714
|
+
exports.joinPathSegments = void 0;
|
|
5715
5715
|
function joinPathSegments(a, b, separator) {
|
|
5716
5716
|
if (a.endsWith(separator)) {
|
|
5717
5717
|
return a + b;
|
|
@@ -5722,7 +5722,7 @@ var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5722
5722
|
} });
|
|
5723
5723
|
var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
5724
5724
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5725
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5725
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5726
5726
|
var fsStat = require_out();
|
|
5727
5727
|
var rpl = require_run_parallel();
|
|
5728
5728
|
var constants_1 = require_constants3();
|
|
@@ -5819,7 +5819,7 @@ var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5819
5819
|
} });
|
|
5820
5820
|
var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
5821
5821
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5822
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5822
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5823
5823
|
var fsStat = require_out();
|
|
5824
5824
|
var constants_1 = require_constants3();
|
|
5825
5825
|
var utils2 = require_utils4();
|
|
@@ -5865,11 +5865,11 @@ var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
5865
5865
|
} });
|
|
5866
5866
|
var require_fs4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5867
5867
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5868
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5868
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5869
5869
|
var fs72 = __require("fs");
|
|
5870
5870
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync, readdir: fs72.readdir, readdirSync: fs72.readdirSync };
|
|
5871
5871
|
function createFileSystemAdapter(fsMethods) {
|
|
5872
|
-
if (fsMethods ===
|
|
5872
|
+
if (fsMethods === void 0) {
|
|
5873
5873
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5874
5874
|
}
|
|
5875
5875
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5892,14 +5892,14 @@ var require_settings2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/sett
|
|
|
5892
5892
|
this.fsStatSettings = new fsStat.Settings({ followSymbolicLink: this.followSymbolicLinks, fs: this.fs, throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink });
|
|
5893
5893
|
}
|
|
5894
5894
|
_getValue(option, value) {
|
|
5895
|
-
return option !== null && option !==
|
|
5895
|
+
return option !== null && option !== void 0 ? option : value;
|
|
5896
5896
|
}
|
|
5897
5897
|
};
|
|
5898
5898
|
exports.default = Settings;
|
|
5899
5899
|
} });
|
|
5900
5900
|
var require_out2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5901
5901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5902
|
-
exports.Settings = exports.scandirSync = exports.scandir =
|
|
5902
|
+
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5903
5903
|
var async = require_async2();
|
|
5904
5904
|
var sync = require_sync2();
|
|
5905
5905
|
var settings_1 = require_settings2();
|
|
@@ -6167,7 +6167,7 @@ var require_queue = __commonJS2({ "node_modules/fastq/queue.js"(exports, module)
|
|
|
6167
6167
|
} });
|
|
6168
6168
|
var require_common2 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
6169
6169
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6170
|
-
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError =
|
|
6170
|
+
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
6171
6171
|
function isFatalError(settings, error) {
|
|
6172
6172
|
if (settings.errorFilter === null) {
|
|
6173
6173
|
return true;
|
|
@@ -6266,13 +6266,13 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6266
6266
|
_worker(item, done) {
|
|
6267
6267
|
this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => {
|
|
6268
6268
|
if (error !== null) {
|
|
6269
|
-
done(error,
|
|
6269
|
+
done(error, void 0);
|
|
6270
6270
|
return;
|
|
6271
6271
|
}
|
|
6272
6272
|
for (const entry of entries) {
|
|
6273
6273
|
this._handleEntry(entry, item.base);
|
|
6274
6274
|
}
|
|
6275
|
-
done(null,
|
|
6275
|
+
done(null, void 0);
|
|
6276
6276
|
});
|
|
6277
6277
|
}
|
|
6278
6278
|
_handleError(error) {
|
|
@@ -6288,14 +6288,14 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6288
6288
|
return;
|
|
6289
6289
|
}
|
|
6290
6290
|
const fullpath = entry.path;
|
|
6291
|
-
if (base !==
|
|
6291
|
+
if (base !== void 0) {
|
|
6292
6292
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6293
6293
|
}
|
|
6294
6294
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6295
6295
|
this._emitEntry(entry);
|
|
6296
6296
|
}
|
|
6297
6297
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6298
|
-
this._pushToQueue(fullpath, base ===
|
|
6298
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
6299
6299
|
}
|
|
6300
6300
|
}
|
|
6301
6301
|
_emitEntry(entry) {
|
|
@@ -6410,14 +6410,14 @@ var require_sync3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/syn
|
|
|
6410
6410
|
}
|
|
6411
6411
|
_handleEntry(entry, base) {
|
|
6412
6412
|
const fullpath = entry.path;
|
|
6413
|
-
if (base !==
|
|
6413
|
+
if (base !== void 0) {
|
|
6414
6414
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6415
6415
|
}
|
|
6416
6416
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6417
6417
|
this._pushToStorage(entry);
|
|
6418
6418
|
}
|
|
6419
6419
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6420
|
-
this._pushToQueue(fullpath, base ===
|
|
6420
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
6421
6421
|
}
|
|
6422
6422
|
}
|
|
6423
6423
|
_pushToStorage(entry) {
|
|
@@ -6448,7 +6448,7 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6448
6448
|
var Settings = class {
|
|
6449
6449
|
constructor(_options = {}) {
|
|
6450
6450
|
this._options = _options;
|
|
6451
|
-
this.basePath = this._getValue(this._options.basePath,
|
|
6451
|
+
this.basePath = this._getValue(this._options.basePath, void 0);
|
|
6452
6452
|
this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
|
|
6453
6453
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
6454
6454
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
@@ -6457,14 +6457,14 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6457
6457
|
this.fsScandirSettings = new fsScandir.Settings({ followSymbolicLinks: this._options.followSymbolicLinks, fs: this._options.fs, pathSegmentSeparator: this._options.pathSegmentSeparator, stats: this._options.stats, throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink });
|
|
6458
6458
|
}
|
|
6459
6459
|
_getValue(option, value) {
|
|
6460
|
-
return option !== null && option !==
|
|
6460
|
+
return option !== null && option !== void 0 ? option : value;
|
|
6461
6461
|
}
|
|
6462
6462
|
};
|
|
6463
6463
|
exports.default = Settings;
|
|
6464
6464
|
} });
|
|
6465
6465
|
var require_out3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
6466
6466
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6467
|
-
exports.Settings = exports.walkStream = exports.walkSync = exports.walk =
|
|
6467
|
+
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
6468
6468
|
var async_1 = require_async4();
|
|
6469
6469
|
var stream_1 = require_stream2();
|
|
6470
6470
|
var sync_1 = require_sync4();
|
|
@@ -6771,7 +6771,7 @@ var require_entry = __commonJS2({ "node_modules/fast-glob/out/providers/filters/
|
|
|
6771
6771
|
return this.index.has(filepath);
|
|
6772
6772
|
}
|
|
6773
6773
|
_createIndexRecord(filepath) {
|
|
6774
|
-
this.index.set(filepath,
|
|
6774
|
+
this.index.set(filepath, void 0);
|
|
6775
6775
|
}
|
|
6776
6776
|
_onlyFileFilter(entry) {
|
|
6777
6777
|
return this._settings.onlyFiles && !entry.dirent.isFile();
|
|
@@ -6989,7 +6989,7 @@ var require_sync6 = __commonJS2({ "node_modules/fast-glob/out/providers/sync.js"
|
|
|
6989
6989
|
} });
|
|
6990
6990
|
var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(exports) {
|
|
6991
6991
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6992
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER =
|
|
6992
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6993
6993
|
var fs72 = __require("fs");
|
|
6994
6994
|
var os2 = __require("os");
|
|
6995
6995
|
var CPU_COUNT = Math.max(os2.cpus().length, 1);
|
|
@@ -7027,7 +7027,7 @@ var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(e
|
|
|
7027
7027
|
this.ignore = [].concat(this.ignore);
|
|
7028
7028
|
}
|
|
7029
7029
|
_getValue(option, value) {
|
|
7030
|
-
return option ===
|
|
7030
|
+
return option === void 0 ? value : option;
|
|
7031
7031
|
}
|
|
7032
7032
|
_getFileSystemMethods(methods = {}) {
|
|
7033
7033
|
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
@@ -7112,7 +7112,7 @@ var require_out4 = __commonJS2({ "node_modules/fast-glob/out/index.js"(exports,
|
|
|
7112
7112
|
}
|
|
7113
7113
|
win322.convertPathToPattern = convertPathToPattern2;
|
|
7114
7114
|
})(FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
7115
|
-
})(FastGlob);
|
|
7115
|
+
})(FastGlob || (FastGlob = {}));
|
|
7116
7116
|
function getWorks(source2, _Provider, options8) {
|
|
7117
7117
|
const patterns = [].concat(source2);
|
|
7118
7118
|
const settings = new settings_1.default(options8);
|
|
@@ -7167,8 +7167,8 @@ var require_re = __commonJS2({ "node_modules/semver/internal/re.js"(exports, mod
|
|
|
7167
7167
|
debug(name, index, value);
|
|
7168
7168
|
t[name] = index;
|
|
7169
7169
|
src[index] = value;
|
|
7170
|
-
re[index] = new RegExp(value, isGlobal ? "g" :
|
|
7171
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" :
|
|
7170
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
7171
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
7172
7172
|
};
|
|
7173
7173
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
7174
7174
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
@@ -7345,11 +7345,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7345
7345
|
const a = this.prerelease[i2];
|
|
7346
7346
|
const b = other.prerelease[i2];
|
|
7347
7347
|
debug("prerelease compare", i2, a, b);
|
|
7348
|
-
if (a ===
|
|
7348
|
+
if (a === void 0 && b === void 0) {
|
|
7349
7349
|
return 0;
|
|
7350
|
-
} else if (b ===
|
|
7350
|
+
} else if (b === void 0) {
|
|
7351
7351
|
return 1;
|
|
7352
|
-
} else if (a ===
|
|
7352
|
+
} else if (a === void 0) {
|
|
7353
7353
|
return -1;
|
|
7354
7354
|
} else if (a === b) {
|
|
7355
7355
|
continue;
|
|
@@ -7367,11 +7367,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7367
7367
|
const a = this.build[i2];
|
|
7368
7368
|
const b = other.build[i2];
|
|
7369
7369
|
debug("prerelease compare", i2, a, b);
|
|
7370
|
-
if (a ===
|
|
7370
|
+
if (a === void 0 && b === void 0) {
|
|
7371
7371
|
return 0;
|
|
7372
|
-
} else if (b ===
|
|
7372
|
+
} else if (b === void 0) {
|
|
7373
7373
|
return 1;
|
|
7374
|
-
} else if (a ===
|
|
7374
|
+
} else if (a === void 0) {
|
|
7375
7375
|
return -1;
|
|
7376
7376
|
} else if (a === b) {
|
|
7377
7377
|
continue;
|
|
@@ -7669,7 +7669,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7669
7669
|
};
|
|
7670
7670
|
Yallist.prototype.pop = function() {
|
|
7671
7671
|
if (!this.tail) {
|
|
7672
|
-
return
|
|
7672
|
+
return void 0;
|
|
7673
7673
|
}
|
|
7674
7674
|
var res = this.tail.value;
|
|
7675
7675
|
this.tail = this.tail.prev;
|
|
@@ -7683,7 +7683,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7683
7683
|
};
|
|
7684
7684
|
Yallist.prototype.shift = function() {
|
|
7685
7685
|
if (!this.head) {
|
|
7686
|
-
return
|
|
7686
|
+
return void 0;
|
|
7687
7687
|
}
|
|
7688
7688
|
var res = this.head.value;
|
|
7689
7689
|
this.head = this.head.next;
|
|
@@ -8004,7 +8004,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
8004
8004
|
if (isStale(self, hit)) {
|
|
8005
8005
|
del(self, node);
|
|
8006
8006
|
if (!self[ALLOW_STALE]) {
|
|
8007
|
-
hit =
|
|
8007
|
+
hit = void 0;
|
|
8008
8008
|
}
|
|
8009
8009
|
}
|
|
8010
8010
|
if (hit) {
|
|
@@ -8203,7 +8203,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
8203
8203
|
var hit = node.value;
|
|
8204
8204
|
if (isStale(self, hit)) {
|
|
8205
8205
|
del(self, node);
|
|
8206
|
-
if (!self[ALLOW_STALE]) hit =
|
|
8206
|
+
if (!self[ALLOW_STALE]) hit = void 0;
|
|
8207
8207
|
} else {
|
|
8208
8208
|
if (doUse) {
|
|
8209
8209
|
self[LRU_LIST].unshiftNode(node);
|
|
@@ -8943,7 +8943,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8943
8943
|
f = t = 0;
|
|
8944
8944
|
}
|
|
8945
8945
|
if (op[0] & 5) throw op[1];
|
|
8946
|
-
return { value: op[0] ? op[1] :
|
|
8946
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
8947
8947
|
}
|
|
8948
8948
|
};
|
|
8949
8949
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -8959,7 +8959,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8959
8959
|
var fs72 = __importStar(__require("fs"));
|
|
8960
8960
|
var regex = { section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/, param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/, comment: /^\s*[#;].*$/ };
|
|
8961
8961
|
function parse6(file) {
|
|
8962
|
-
return __awaiter(this,
|
|
8962
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
8963
8963
|
return __generator(this, function(_a) {
|
|
8964
8964
|
return [2, new Promise(function(resolve3, reject) {
|
|
8965
8965
|
fs72.readFile(file, "utf8", function(err, data) {
|
|
@@ -9096,7 +9096,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9096
9096
|
f = t = 0;
|
|
9097
9097
|
}
|
|
9098
9098
|
if (op[0] & 5) throw op[1];
|
|
9099
|
-
return { value: op[0] ? op[1] :
|
|
9099
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
9100
9100
|
}
|
|
9101
9101
|
};
|
|
9102
9102
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -9146,7 +9146,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9146
9146
|
return matches;
|
|
9147
9147
|
}
|
|
9148
9148
|
function processOptions(options8, filepath) {
|
|
9149
|
-
if (options8 ===
|
|
9149
|
+
if (options8 === void 0) {
|
|
9150
9150
|
options8 = {};
|
|
9151
9151
|
}
|
|
9152
9152
|
return { config: options8.config || ".editorconfig", version: options8.version || package_json_1.default.version, root: path132.resolve(options8.root || path132.parse(filepath).root) };
|
|
@@ -9163,10 +9163,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9163
9163
|
return path132.join(pathPrefix, glob);
|
|
9164
9164
|
}
|
|
9165
9165
|
function extendProps(props, options8) {
|
|
9166
|
-
if (props ===
|
|
9166
|
+
if (props === void 0) {
|
|
9167
9167
|
props = {};
|
|
9168
9168
|
}
|
|
9169
|
-
if (options8 ===
|
|
9169
|
+
if (options8 === void 0) {
|
|
9170
9170
|
options8 = {};
|
|
9171
9171
|
}
|
|
9172
9172
|
for (var key2 in options8) {
|
|
@@ -9222,7 +9222,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9222
9222
|
return configs;
|
|
9223
9223
|
}
|
|
9224
9224
|
function readConfigFiles(filepaths) {
|
|
9225
|
-
return __awaiter(this,
|
|
9225
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9226
9226
|
return __generator(this, function(_a) {
|
|
9227
9227
|
return [2, Promise.all(filepaths.map(function(name) {
|
|
9228
9228
|
return new Promise(function(resolve3) {
|
|
@@ -9248,17 +9248,17 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9248
9248
|
return files;
|
|
9249
9249
|
}
|
|
9250
9250
|
function opts(filepath, options8) {
|
|
9251
|
-
if (options8 ===
|
|
9251
|
+
if (options8 === void 0) {
|
|
9252
9252
|
options8 = {};
|
|
9253
9253
|
}
|
|
9254
9254
|
var resolvedFilePath = path132.resolve(filepath);
|
|
9255
9255
|
return [resolvedFilePath, processOptions(options8, resolvedFilePath)];
|
|
9256
9256
|
}
|
|
9257
9257
|
function parseFromFiles(filepath, files, options8) {
|
|
9258
|
-
if (options8 ===
|
|
9258
|
+
if (options8 === void 0) {
|
|
9259
9259
|
options8 = {};
|
|
9260
9260
|
}
|
|
9261
|
-
return __awaiter(this,
|
|
9261
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9262
9262
|
var _a, resolvedFilePath, processedOptions;
|
|
9263
9263
|
return __generator(this, function(_b) {
|
|
9264
9264
|
_a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9270,7 +9270,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9270
9270
|
}
|
|
9271
9271
|
exports.parseFromFiles = parseFromFiles;
|
|
9272
9272
|
function parseFromFilesSync(filepath, files, options8) {
|
|
9273
|
-
if (options8 ===
|
|
9273
|
+
if (options8 === void 0) {
|
|
9274
9274
|
options8 = {};
|
|
9275
9275
|
}
|
|
9276
9276
|
var _a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9278,10 +9278,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9278
9278
|
}
|
|
9279
9279
|
exports.parseFromFilesSync = parseFromFilesSync;
|
|
9280
9280
|
function parse6(_filepath, _options) {
|
|
9281
|
-
if (_options ===
|
|
9281
|
+
if (_options === void 0) {
|
|
9282
9282
|
_options = {};
|
|
9283
9283
|
}
|
|
9284
|
-
return __awaiter(this,
|
|
9284
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9285
9285
|
var _a, resolvedFilePath, processedOptions, filepaths;
|
|
9286
9286
|
return __generator(this, function(_b) {
|
|
9287
9287
|
_a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9294,7 +9294,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9294
9294
|
}
|
|
9295
9295
|
exports.parse = parse6;
|
|
9296
9296
|
function parseSync(_filepath, _options) {
|
|
9297
|
-
if (_options ===
|
|
9297
|
+
if (_options === void 0) {
|
|
9298
9298
|
_options = {};
|
|
9299
9299
|
}
|
|
9300
9300
|
var _a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9463,7 +9463,7 @@ var require_parser = __commonJS2({ "node_modules/@iarna/toml/lib/parser.js"(expo
|
|
|
9463
9463
|
}
|
|
9464
9464
|
return(value) {
|
|
9465
9465
|
if (this.stack.length === 0) throw this.error(new ParserError("Stack underflow"));
|
|
9466
|
-
if (value ===
|
|
9466
|
+
if (value === void 0) value = this.state.buf;
|
|
9467
9467
|
this.state = this.stack.pop();
|
|
9468
9468
|
this.state.returned = value;
|
|
9469
9469
|
}
|
|
@@ -9663,7 +9663,7 @@ var require_toml_parser = __commonJS2({ "node_modules/@iarna/toml/lib/toml-parse
|
|
|
9663
9663
|
var _declared = Symbol("declared");
|
|
9664
9664
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
9665
9665
|
var defineProperty = Object.defineProperty;
|
|
9666
|
-
var descriptor = { configurable: true, enumerable: true, writable: true, value:
|
|
9666
|
+
var descriptor = { configurable: true, enumerable: true, writable: true, value: void 0 };
|
|
9667
9667
|
function hasKey(obj, key2) {
|
|
9668
9668
|
if (hasOwnProperty3.call(obj, key2)) return true;
|
|
9669
9669
|
if (key2 === "__proto__") defineProperty(obj, "__proto__", descriptor);
|
|
@@ -10915,7 +10915,7 @@ var require_js_tokens = __commonJS2({ "node_modules/js-tokens/index.js"(exports)
|
|
|
10915
10915
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10916
10916
|
exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
|
|
10917
10917
|
exports.matchToToken = function(match) {
|
|
10918
|
-
var token2 = { type: "invalid", value: match[0], closed:
|
|
10918
|
+
var token2 = { type: "invalid", value: match[0], closed: void 0 };
|
|
10919
10919
|
if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]);
|
|
10920
10920
|
else if (match[5]) token2.type = "comment";
|
|
10921
10921
|
else if (match[6]) token2.type = "comment", token2.closed = !!match[7];
|
|
@@ -11819,7 +11819,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11819
11819
|
var models = Object.keys(conversions);
|
|
11820
11820
|
function wrapRaw(fn) {
|
|
11821
11821
|
var wrappedFn = function(args) {
|
|
11822
|
-
if (args ===
|
|
11822
|
+
if (args === void 0 || args === null) {
|
|
11823
11823
|
return args;
|
|
11824
11824
|
}
|
|
11825
11825
|
if (arguments.length > 1) {
|
|
@@ -11834,7 +11834,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11834
11834
|
}
|
|
11835
11835
|
function wrapRounded(fn) {
|
|
11836
11836
|
var wrappedFn = function(args) {
|
|
11837
|
-
if (args ===
|
|
11837
|
+
if (args === void 0 || args === null) {
|
|
11838
11838
|
return args;
|
|
11839
11839
|
}
|
|
11840
11840
|
if (arguments.length > 1) {
|
|
@@ -12174,7 +12174,7 @@ var require_chalk = __commonJS2({ "node_modules/@babel/code-frame/node_modules/c
|
|
|
12174
12174
|
function applyOptions2(obj, options8) {
|
|
12175
12175
|
options8 = options8 || {};
|
|
12176
12176
|
const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
12177
|
-
obj.level = options8.level ===
|
|
12177
|
+
obj.level = options8.level === void 0 ? scLevel : options8.level;
|
|
12178
12178
|
obj.enabled = "enabled" in options8 ? options8.enabled : obj.level > 0;
|
|
12179
12179
|
}
|
|
12180
12180
|
function Chalk(options8) {
|
|
@@ -12377,7 +12377,7 @@ var require_lib2 = __commonJS2({ "node_modules/@babel/highlight/lib/index.js"(ex
|
|
|
12377
12377
|
function shouldHighlight(options8) {
|
|
12378
12378
|
return _chalk.default.level > 0 || options8.forceColor;
|
|
12379
12379
|
}
|
|
12380
|
-
var chalkWithForcedColor =
|
|
12380
|
+
var chalkWithForcedColor = void 0;
|
|
12381
12381
|
function getChalk(forceColor) {
|
|
12382
12382
|
if (forceColor) {
|
|
12383
12383
|
var _chalkWithForcedColor;
|
|
@@ -12422,7 +12422,7 @@ var require_lib3 = __commonJS2({ "node_modules/@babel/code-frame/lib/index.js"(e
|
|
|
12422
12422
|
}
|
|
12423
12423
|
return n.default = e, t && t.set(e, n), n;
|
|
12424
12424
|
}
|
|
12425
|
-
var chalkWithForcedColor =
|
|
12425
|
+
var chalkWithForcedColor = void 0;
|
|
12426
12426
|
function getChalk(forceColor) {
|
|
12427
12427
|
if (forceColor) {
|
|
12428
12428
|
var _chalkWithForcedColor;
|
|
@@ -12922,7 +12922,7 @@ var require_readlines = __commonJS2({ "node_modules/n-readlines/readlines.js"(ex
|
|
|
12922
12922
|
line3 = buffer2.slice(lastNewLineBufferPosition, bufferPosition);
|
|
12923
12923
|
lines.push(line3);
|
|
12924
12924
|
lastNewLineBufferPosition = bufferPosition;
|
|
12925
|
-
} else if (bufferPositionValue ===
|
|
12925
|
+
} else if (bufferPositionValue === void 0) {
|
|
12926
12926
|
break;
|
|
12927
12927
|
}
|
|
12928
12928
|
}
|
|
@@ -12996,7 +12996,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12996
12996
|
/*istanbul ignore start*/
|
|
12997
12997
|
/*istanbul ignore end*/
|
|
12998
12998
|
diff: function diff(oldString, newString) {
|
|
12999
|
-
var options8 = arguments.length > 2 && arguments[2] !==
|
|
12999
|
+
var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
13000
13000
|
var callback = options8.callback;
|
|
13001
13001
|
if (typeof options8 === "function") {
|
|
13002
13002
|
callback = options8;
|
|
@@ -13007,7 +13007,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13007
13007
|
function done(value) {
|
|
13008
13008
|
if (callback) {
|
|
13009
13009
|
setTimeout(function() {
|
|
13010
|
-
callback(
|
|
13010
|
+
callback(void 0, value);
|
|
13011
13011
|
}, 0);
|
|
13012
13012
|
return true;
|
|
13013
13013
|
} else {
|
|
@@ -13033,24 +13033,24 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13033
13033
|
for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {
|
|
13034
13034
|
var basePath = (
|
|
13035
13035
|
/*istanbul ignore start*/
|
|
13036
|
-
|
|
13036
|
+
void 0
|
|
13037
13037
|
);
|
|
13038
13038
|
var addPath = bestPath[diagonalPath - 1], removePath = bestPath[diagonalPath + 1], _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
|
|
13039
13039
|
if (addPath) {
|
|
13040
|
-
bestPath[diagonalPath - 1] =
|
|
13040
|
+
bestPath[diagonalPath - 1] = void 0;
|
|
13041
13041
|
}
|
|
13042
13042
|
var canAdd = addPath && addPath.newPos + 1 < newLen, canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;
|
|
13043
13043
|
if (!canAdd && !canRemove) {
|
|
13044
|
-
bestPath[diagonalPath] =
|
|
13044
|
+
bestPath[diagonalPath] = void 0;
|
|
13045
13045
|
continue;
|
|
13046
13046
|
}
|
|
13047
13047
|
if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {
|
|
13048
13048
|
basePath = clonePath(removePath);
|
|
13049
|
-
self.pushComponent(basePath.components,
|
|
13049
|
+
self.pushComponent(basePath.components, void 0, true);
|
|
13050
13050
|
} else {
|
|
13051
13051
|
basePath = addPath;
|
|
13052
13052
|
basePath.newPos++;
|
|
13053
|
-
self.pushComponent(basePath.components, true,
|
|
13053
|
+
self.pushComponent(basePath.components, true, void 0);
|
|
13054
13054
|
}
|
|
13055
13055
|
_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);
|
|
13056
13056
|
if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {
|
|
@@ -13185,7 +13185,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13185
13185
|
var require_array2 = __commonJS2({ "node_modules/diff/lib/diff/array.js"(exports) {
|
|
13186
13186
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13187
13187
|
exports.diffArrays = diffArrays2;
|
|
13188
|
-
exports.arrayDiff =
|
|
13188
|
+
exports.arrayDiff = void 0;
|
|
13189
13189
|
var _base = _interopRequireDefault(require_base());
|
|
13190
13190
|
function _interopRequireDefault(obj) {
|
|
13191
13191
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -13398,7 +13398,7 @@ function translateLevel(level) {
|
|
|
13398
13398
|
}
|
|
13399
13399
|
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
13400
13400
|
const noFlagForceColor = envForceColor();
|
|
13401
|
-
if (noFlagForceColor !==
|
|
13401
|
+
if (noFlagForceColor !== void 0) {
|
|
13402
13402
|
flagForceColor = noFlagForceColor;
|
|
13403
13403
|
}
|
|
13404
13404
|
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
@@ -13416,7 +13416,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
13416
13416
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
13417
13417
|
return 1;
|
|
13418
13418
|
}
|
|
13419
|
-
if (haveStream && !streamIsTTY && forceColor ===
|
|
13419
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
13420
13420
|
return 0;
|
|
13421
13421
|
}
|
|
13422
13422
|
const min = forceColor || 0;
|
|
@@ -13515,7 +13515,7 @@ var applyOptions = (object, options8 = {}) => {
|
|
|
13515
13515
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
13516
13516
|
}
|
|
13517
13517
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
13518
|
-
object.level = options8.level ===
|
|
13518
|
+
object.level = options8.level === void 0 ? colorLevel : options8.level;
|
|
13519
13519
|
};
|
|
13520
13520
|
var chalkFactory = (options8) => {
|
|
13521
13521
|
const chalk2 = (...strings) => strings.join(" ");
|
|
@@ -13581,7 +13581,7 @@ var proto = Object.defineProperties(() => {
|
|
|
13581
13581
|
var createStyler = (open, close, parent) => {
|
|
13582
13582
|
let openAll;
|
|
13583
13583
|
let closeAll;
|
|
13584
|
-
if (parent ===
|
|
13584
|
+
if (parent === void 0) {
|
|
13585
13585
|
openAll = open;
|
|
13586
13586
|
closeAll = close;
|
|
13587
13587
|
} else {
|
|
@@ -13603,12 +13603,12 @@ var applyStyle = (self, string) => {
|
|
|
13603
13603
|
return self[IS_EMPTY] ? "" : string;
|
|
13604
13604
|
}
|
|
13605
13605
|
let styler = self[STYLER];
|
|
13606
|
-
if (styler ===
|
|
13606
|
+
if (styler === void 0) {
|
|
13607
13607
|
return string;
|
|
13608
13608
|
}
|
|
13609
13609
|
const { openAll, closeAll } = styler;
|
|
13610
13610
|
if (string.includes("\x1B")) {
|
|
13611
|
-
while (styler !==
|
|
13611
|
+
while (styler !== void 0) {
|
|
13612
13612
|
string = stringReplaceAll2(string, styler.close, styler.open);
|
|
13613
13613
|
styler = styler.parent;
|
|
13614
13614
|
}
|
|
@@ -13740,7 +13740,7 @@ var Schema = class {
|
|
|
13740
13740
|
this.name = parameters.name;
|
|
13741
13741
|
}
|
|
13742
13742
|
default(_utils) {
|
|
13743
|
-
return
|
|
13743
|
+
return void 0;
|
|
13744
13744
|
}
|
|
13745
13745
|
// this is actually an abstract method but we need a placeholder to get `function.length`
|
|
13746
13746
|
/* c8 ignore start */
|
|
@@ -13758,10 +13758,10 @@ var Schema = class {
|
|
|
13758
13758
|
return false;
|
|
13759
13759
|
}
|
|
13760
13760
|
forward(_value, _utils) {
|
|
13761
|
-
return
|
|
13761
|
+
return void 0;
|
|
13762
13762
|
}
|
|
13763
13763
|
redirect(_value, _utils) {
|
|
13764
|
-
return
|
|
13764
|
+
return void 0;
|
|
13765
13765
|
}
|
|
13766
13766
|
overlap(currentValue, _newValue, _utils) {
|
|
13767
13767
|
return currentValue;
|
|
@@ -13936,14 +13936,14 @@ function normalizeInvalidHandler(invalidHandler) {
|
|
|
13936
13936
|
};
|
|
13937
13937
|
}
|
|
13938
13938
|
function normalizeDefaultResult(result) {
|
|
13939
|
-
return result ===
|
|
13939
|
+
return result === void 0 ? {} : result;
|
|
13940
13940
|
}
|
|
13941
13941
|
function normalizeExpectedResult(result) {
|
|
13942
13942
|
if (typeof result === "string") {
|
|
13943
13943
|
return { text: result };
|
|
13944
13944
|
}
|
|
13945
13945
|
const { text, list: list2 } = result;
|
|
13946
|
-
assert((text || list2) !==
|
|
13946
|
+
assert((text || list2) !== void 0, "Unexpected `expected` result, there should be at least one field.");
|
|
13947
13947
|
if (!list2) {
|
|
13948
13948
|
return { text };
|
|
13949
13949
|
}
|
|
@@ -13959,7 +13959,7 @@ function normalizeTransferResult(result, value) {
|
|
|
13959
13959
|
return typeof result === "string" || "key" in result ? { from: value, to: result } : "from" in result ? { from: result.from, to: result.to } : { from: value, to: result.to };
|
|
13960
13960
|
}
|
|
13961
13961
|
function normalizeForwardResult(result, value) {
|
|
13962
|
-
return result ===
|
|
13962
|
+
return result === void 0 ? [] : Array.isArray(result) ? result.map((transferResult) => normalizeTransferResult(transferResult, value)) : [normalizeTransferResult(result, value)];
|
|
13963
13963
|
}
|
|
13964
13964
|
function normalizeRedirectResult(result, value) {
|
|
13965
13965
|
const redirect = normalizeForwardResult(typeof result === "object" && "redirect" in result ? result.redirect : result, value);
|
|
@@ -13991,11 +13991,11 @@ var ChoiceSchema = class extends Schema {
|
|
|
13991
13991
|
}
|
|
13992
13992
|
forward(value) {
|
|
13993
13993
|
const choiceInfo = this._choices.get(value);
|
|
13994
|
-
return choiceInfo ? choiceInfo.forward :
|
|
13994
|
+
return choiceInfo ? choiceInfo.forward : void 0;
|
|
13995
13995
|
}
|
|
13996
13996
|
redirect(value) {
|
|
13997
13997
|
const choiceInfo = this._choices.get(value);
|
|
13998
|
-
return choiceInfo ? choiceInfo.redirect :
|
|
13998
|
+
return choiceInfo ? choiceInfo.redirect : void 0;
|
|
13999
13999
|
}
|
|
14000
14000
|
};
|
|
14001
14001
|
var NumberSchema = class extends Schema {
|
|
@@ -14230,7 +14230,7 @@ function partition2(array2, predicate) {
|
|
|
14230
14230
|
var partition_default = partition2;
|
|
14231
14231
|
var import_editorconfig = __toESM2(require_src());
|
|
14232
14232
|
async function isDirectory(directory, options8) {
|
|
14233
|
-
const allowSymlinks = (options8 == null ?
|
|
14233
|
+
const allowSymlinks = (options8 == null ? void 0 : options8.allowSymlinks) ?? true;
|
|
14234
14234
|
let stats;
|
|
14235
14235
|
try {
|
|
14236
14236
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(directory));
|
|
@@ -14270,9 +14270,9 @@ var Searcher = class {
|
|
|
14270
14270
|
*/
|
|
14271
14271
|
constructor({ names, filter: filter2, stopDirectory }) {
|
|
14272
14272
|
__privateAdd(this, _searchInDirectory);
|
|
14273
|
-
__privateAdd(this, _names,
|
|
14274
|
-
__privateAdd(this, _filter,
|
|
14275
|
-
__privateAdd(this, _stopDirectory,
|
|
14273
|
+
__privateAdd(this, _names, void 0);
|
|
14274
|
+
__privateAdd(this, _filter, void 0);
|
|
14275
|
+
__privateAdd(this, _stopDirectory, void 0);
|
|
14276
14276
|
__privateAdd(this, _cache, /* @__PURE__ */ new Map());
|
|
14277
14277
|
__privateSet(this, _names, names);
|
|
14278
14278
|
__privateSet(this, _filter, filter2);
|
|
@@ -14325,10 +14325,10 @@ var searchOptions = { names: MARKERS, filter: ({ path: directory }) => is_direct
|
|
|
14325
14325
|
async function findProjectRoot(startDirectory, options8) {
|
|
14326
14326
|
searcher ?? (searcher = new searcher_default(searchOptions));
|
|
14327
14327
|
const mark = await searcher.search(startDirectory, options8);
|
|
14328
|
-
return mark ? path9.dirname(mark) :
|
|
14328
|
+
return mark ? path9.dirname(mark) : void 0;
|
|
14329
14329
|
}
|
|
14330
14330
|
function clearFindProjectRootCache() {
|
|
14331
|
-
searcher == null ?
|
|
14331
|
+
searcher == null ? void 0 : searcher.clearCache();
|
|
14332
14332
|
}
|
|
14333
14333
|
function removeUnset(editorConfig) {
|
|
14334
14334
|
const result = {};
|
|
@@ -14361,7 +14361,7 @@ function editorConfigToPrettier(editorConfig) {
|
|
|
14361
14361
|
result.tabWidth = editorConfig.tab_width;
|
|
14362
14362
|
} else if (editorConfig.indent_style === "space" && editorConfig.indent_size && editorConfig.indent_size !== "tab") {
|
|
14363
14363
|
result.tabWidth = editorConfig.indent_size;
|
|
14364
|
-
} else if (editorConfig.tab_width !==
|
|
14364
|
+
} else if (editorConfig.tab_width !== void 0) {
|
|
14365
14365
|
result.tabWidth = editorConfig.tab_width;
|
|
14366
14366
|
}
|
|
14367
14367
|
if (editorConfig.max_line_length) {
|
|
@@ -14429,10 +14429,10 @@ getStdin.buffer = async () => {
|
|
|
14429
14429
|
function writeFormattedFile(file, data) {
|
|
14430
14430
|
return fs.writeFile(file, data);
|
|
14431
14431
|
}
|
|
14432
|
-
var mockable = { getPrettierConfigSearchStopDirectory: () =>
|
|
14432
|
+
var mockable = { getPrettierConfigSearchStopDirectory: () => void 0, getStdin, isCI: () => import_ci_info.isCI, writeFormattedFile };
|
|
14433
14433
|
var mockable_default = mockable;
|
|
14434
14434
|
async function isFile(file, options8) {
|
|
14435
|
-
const allowSymlinks = (options8 == null ?
|
|
14435
|
+
const allowSymlinks = (options8 == null ? void 0 : options8.allowSymlinks) ?? true;
|
|
14436
14436
|
let stats;
|
|
14437
14437
|
try {
|
|
14438
14438
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(file));
|
|
@@ -16199,31 +16199,17 @@ function loadDocuments(input, options8) {
|
|
|
16199
16199
|
}
|
|
16200
16200
|
return state.documents;
|
|
16201
16201
|
}
|
|
16202
|
-
function loadAll$1(input, iterator, options8) {
|
|
16203
|
-
if (iterator !== null && typeof iterator === "object" && typeof options8 === "undefined") {
|
|
16204
|
-
options8 = iterator;
|
|
16205
|
-
iterator = null;
|
|
16206
|
-
}
|
|
16207
|
-
var documents = loadDocuments(input, options8);
|
|
16208
|
-
if (typeof iterator !== "function") {
|
|
16209
|
-
return documents;
|
|
16210
|
-
}
|
|
16211
|
-
for (var index = 0, length = documents.length; index < length; index += 1) {
|
|
16212
|
-
iterator(documents[index]);
|
|
16213
|
-
}
|
|
16214
|
-
}
|
|
16215
16202
|
function load$1(input, options8) {
|
|
16216
16203
|
var documents = loadDocuments(input, options8);
|
|
16217
16204
|
if (documents.length === 0) {
|
|
16218
|
-
return
|
|
16205
|
+
return void 0;
|
|
16219
16206
|
} else if (documents.length === 1) {
|
|
16220
16207
|
return documents[0];
|
|
16221
16208
|
}
|
|
16222
16209
|
throw new exception("expected a single document in the stream, but found more");
|
|
16223
16210
|
}
|
|
16224
|
-
var loadAll_1 = loadAll$1;
|
|
16225
16211
|
var load_1 = load$1;
|
|
16226
|
-
var loader = {
|
|
16212
|
+
var loader = { load: load_1 };
|
|
16227
16213
|
var load = loader.load;
|
|
16228
16214
|
var Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
16229
16215
|
var ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
@@ -16256,9 +16242,9 @@ var parse2 = function parse3(text, reviver) {
|
|
|
16256
16242
|
pos = 0;
|
|
16257
16243
|
line2 = 1;
|
|
16258
16244
|
column = 0;
|
|
16259
|
-
token =
|
|
16260
|
-
key =
|
|
16261
|
-
root =
|
|
16245
|
+
token = void 0;
|
|
16246
|
+
key = void 0;
|
|
16247
|
+
root = void 0;
|
|
16262
16248
|
do {
|
|
16263
16249
|
token = lex();
|
|
16264
16250
|
parseStates[parseState]();
|
|
@@ -16275,7 +16261,7 @@ function internalize(holder, name, reviver) {
|
|
|
16275
16261
|
for (let i2 = 0; i2 < value.length; i2++) {
|
|
16276
16262
|
const key2 = String(i2);
|
|
16277
16263
|
const replacement = internalize(value, key2, reviver);
|
|
16278
|
-
if (replacement ===
|
|
16264
|
+
if (replacement === void 0) {
|
|
16279
16265
|
delete value[key2];
|
|
16280
16266
|
} else {
|
|
16281
16267
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16284,7 +16270,7 @@ function internalize(holder, name, reviver) {
|
|
|
16284
16270
|
} else {
|
|
16285
16271
|
for (const key2 in value) {
|
|
16286
16272
|
const replacement = internalize(value, key2, reviver);
|
|
16287
|
-
if (replacement ===
|
|
16273
|
+
if (replacement === void 0) {
|
|
16288
16274
|
delete value[key2];
|
|
16289
16275
|
} else {
|
|
16290
16276
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16350,7 +16336,7 @@ var lexStates = { default() {
|
|
|
16350
16336
|
read();
|
|
16351
16337
|
lexState = "comment";
|
|
16352
16338
|
return;
|
|
16353
|
-
case
|
|
16339
|
+
case void 0:
|
|
16354
16340
|
read();
|
|
16355
16341
|
return newToken("eof");
|
|
16356
16342
|
}
|
|
@@ -16377,7 +16363,7 @@ var lexStates = { default() {
|
|
|
16377
16363
|
read();
|
|
16378
16364
|
lexState = "multiLineCommentAsterisk";
|
|
16379
16365
|
return;
|
|
16380
|
-
case
|
|
16366
|
+
case void 0:
|
|
16381
16367
|
throw invalidChar(read());
|
|
16382
16368
|
}
|
|
16383
16369
|
read();
|
|
@@ -16390,7 +16376,7 @@ var lexStates = { default() {
|
|
|
16390
16376
|
read();
|
|
16391
16377
|
lexState = "default";
|
|
16392
16378
|
return;
|
|
16393
|
-
case
|
|
16379
|
+
case void 0:
|
|
16394
16380
|
throw invalidChar(read());
|
|
16395
16381
|
}
|
|
16396
16382
|
read();
|
|
@@ -16404,7 +16390,7 @@ var lexStates = { default() {
|
|
|
16404
16390
|
read();
|
|
16405
16391
|
lexState = "default";
|
|
16406
16392
|
return;
|
|
16407
|
-
case
|
|
16393
|
+
case void 0:
|
|
16408
16394
|
read();
|
|
16409
16395
|
return newToken("eof");
|
|
16410
16396
|
}
|
|
@@ -16693,7 +16679,7 @@ var lexStates = { default() {
|
|
|
16693
16679
|
case "\u2029":
|
|
16694
16680
|
separatorChar(c);
|
|
16695
16681
|
break;
|
|
16696
|
-
case
|
|
16682
|
+
case void 0:
|
|
16697
16683
|
throw invalidChar(read());
|
|
16698
16684
|
}
|
|
16699
16685
|
buffer += read();
|
|
@@ -16824,7 +16810,7 @@ function escape() {
|
|
|
16824
16810
|
case "8":
|
|
16825
16811
|
case "9":
|
|
16826
16812
|
throw invalidChar(read());
|
|
16827
|
-
case
|
|
16813
|
+
case void 0:
|
|
16828
16814
|
throw invalidChar(read());
|
|
16829
16815
|
}
|
|
16830
16816
|
return read();
|
|
@@ -16936,7 +16922,7 @@ function push() {
|
|
|
16936
16922
|
value = token.value;
|
|
16937
16923
|
break;
|
|
16938
16924
|
}
|
|
16939
|
-
if (root ===
|
|
16925
|
+
if (root === void 0) {
|
|
16940
16926
|
root = value;
|
|
16941
16927
|
} else {
|
|
16942
16928
|
const parent = stack[stack.length - 1];
|
|
@@ -16976,7 +16962,7 @@ function pop() {
|
|
|
16976
16962
|
}
|
|
16977
16963
|
}
|
|
16978
16964
|
function invalidChar(c2) {
|
|
16979
|
-
if (c2 ===
|
|
16965
|
+
if (c2 === void 0) {
|
|
16980
16966
|
return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`);
|
|
16981
16967
|
}
|
|
16982
16968
|
return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line2}:${column}`);
|
|
@@ -17037,9 +17023,9 @@ var _JSONError = class _JSONError2 extends Error {
|
|
|
17037
17023
|
__publicField(this, "fileName");
|
|
17038
17024
|
__publicField(this, "codeFrame");
|
|
17039
17025
|
__publicField(this, "rawCodeFrame");
|
|
17040
|
-
__privateAdd(this, _message,
|
|
17026
|
+
__privateAdd(this, _message, void 0);
|
|
17041
17027
|
__privateSet(this, _message, message);
|
|
17042
|
-
(_a = Error.captureStackTrace) == null ?
|
|
17028
|
+
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, this, _JSONError2);
|
|
17043
17029
|
}
|
|
17044
17030
|
get message() {
|
|
17045
17031
|
const { fileName, codeFrame } = this;
|
|
@@ -17284,7 +17270,7 @@ codes.ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
|
17284
17270
|
* @param {string} reason
|
|
17285
17271
|
* @param {string} [base]
|
|
17286
17272
|
*/
|
|
17287
|
-
(request, reason, base =
|
|
17273
|
+
(request, reason, base = void 0) => {
|
|
17288
17274
|
return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`;
|
|
17289
17275
|
},
|
|
17290
17276
|
TypeError
|
|
@@ -17310,7 +17296,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
|
17310
17296
|
* @param {boolean} [isImport=false]
|
|
17311
17297
|
* @param {string} [base]
|
|
17312
17298
|
*/
|
|
17313
|
-
(pkgPath, key2, target, isImport = false, base =
|
|
17299
|
+
(pkgPath, key2, target, isImport = false, base = void 0) => {
|
|
17314
17300
|
const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
17315
17301
|
if (key2 === ".") {
|
|
17316
17302
|
assert2(isImport === false);
|
|
@@ -17352,7 +17338,7 @@ codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
|
17352
17338
|
* @param {string} subpath
|
|
17353
17339
|
* @param {string} [base]
|
|
17354
17340
|
*/
|
|
17355
|
-
(pkgPath, subpath, base =
|
|
17341
|
+
(pkgPath, subpath, base = void 0) => {
|
|
17356
17342
|
if (subpath === ".") return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17357
17343
|
return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17358
17344
|
},
|
|
@@ -17428,10 +17414,10 @@ function isErrorStackTraceLimitWritable() {
|
|
|
17428
17414
|
} catch {
|
|
17429
17415
|
}
|
|
17430
17416
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
17431
|
-
if (desc ===
|
|
17417
|
+
if (desc === void 0) {
|
|
17432
17418
|
return Object.isExtensible(Error);
|
|
17433
17419
|
}
|
|
17434
|
-
return own.call(desc, "writable") && desc.writable !==
|
|
17420
|
+
return own.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
17435
17421
|
}
|
|
17436
17422
|
function hideStackFrames(fn) {
|
|
17437
17423
|
const hidden = nodeInternalPrefix + fn.name;
|
|
@@ -17457,7 +17443,7 @@ var captureLargerStackTrace = hideStackFrames(
|
|
|
17457
17443
|
);
|
|
17458
17444
|
function getMessage(key2, args, self) {
|
|
17459
17445
|
const message = messages.get(key2);
|
|
17460
|
-
assert2(message !==
|
|
17446
|
+
assert2(message !== void 0, "expected `message` to be found");
|
|
17461
17447
|
if (typeof message === "function") {
|
|
17462
17448
|
assert2(
|
|
17463
17449
|
message.length <= args.length,
|
|
@@ -17475,7 +17461,7 @@ function getMessage(key2, args, self) {
|
|
|
17475
17461
|
return Reflect.apply(format, null, args);
|
|
17476
17462
|
}
|
|
17477
17463
|
function determineSpecificType(value) {
|
|
17478
|
-
if (value === null || value ===
|
|
17464
|
+
if (value === null || value === void 0) {
|
|
17479
17465
|
return String(value);
|
|
17480
17466
|
}
|
|
17481
17467
|
if (typeof value === "function" && value.name) {
|
|
@@ -17518,14 +17504,14 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
17518
17504
|
const result = {
|
|
17519
17505
|
exists: false,
|
|
17520
17506
|
pjsonPath: jsonPath,
|
|
17521
|
-
main:
|
|
17522
|
-
name:
|
|
17507
|
+
main: void 0,
|
|
17508
|
+
name: void 0,
|
|
17523
17509
|
type: "none",
|
|
17524
17510
|
// Ignore unknown types for forwards compatibility
|
|
17525
|
-
exports:
|
|
17526
|
-
imports:
|
|
17511
|
+
exports: void 0,
|
|
17512
|
+
imports: void 0
|
|
17527
17513
|
};
|
|
17528
|
-
if (string !==
|
|
17514
|
+
if (string !== void 0) {
|
|
17529
17515
|
let parsed;
|
|
17530
17516
|
try {
|
|
17531
17517
|
parsed = JSON.parse(string);
|
|
@@ -17576,7 +17562,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
17576
17562
|
}
|
|
17577
17563
|
}
|
|
17578
17564
|
const packageJSONPath = fileURLToPath(packageJSONUrl);
|
|
17579
|
-
return { pjsonPath: packageJSONPath, exists: false, main:
|
|
17565
|
+
return { pjsonPath: packageJSONPath, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
17580
17566
|
}
|
|
17581
17567
|
function getPackageType(url2) {
|
|
17582
17568
|
const packageConfig = getPackageScopeConfig(url2);
|
|
@@ -17645,7 +17631,7 @@ function getFileProtocolModuleFormat(url2, _context, ignoreErrors) {
|
|
|
17645
17631
|
const format3 = extensionFormatMap[ext];
|
|
17646
17632
|
if (format3) return format3;
|
|
17647
17633
|
if (ignoreErrors) {
|
|
17648
|
-
return
|
|
17634
|
+
return void 0;
|
|
17649
17635
|
}
|
|
17650
17636
|
const filepath = fileURLToPath(url2);
|
|
17651
17637
|
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
|
|
@@ -17669,7 +17655,7 @@ function getDefaultConditionsSet() {
|
|
|
17669
17655
|
return DEFAULT_CONDITIONS_SET;
|
|
17670
17656
|
}
|
|
17671
17657
|
function getConditionsSet(conditions) {
|
|
17672
|
-
if (conditions !==
|
|
17658
|
+
if (conditions !== void 0 && conditions !== getDefaultConditions()) {
|
|
17673
17659
|
if (!Array.isArray(conditions)) {
|
|
17674
17660
|
throw new ERR_INVALID_ARG_VALUE("conditions", conditions, "expected an array");
|
|
17675
17661
|
}
|
|
@@ -17721,12 +17707,12 @@ function tryStatSync(path132) {
|
|
|
17721
17707
|
}
|
|
17722
17708
|
function fileExists(url2) {
|
|
17723
17709
|
const stats = statSync(url2, { throwIfNoEntry: false });
|
|
17724
|
-
const isFile2 = stats ? stats.isFile() :
|
|
17725
|
-
return isFile2 === null || isFile2 ===
|
|
17710
|
+
const isFile2 = stats ? stats.isFile() : void 0;
|
|
17711
|
+
return isFile2 === null || isFile2 === void 0 ? false : isFile2;
|
|
17726
17712
|
}
|
|
17727
17713
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
17728
17714
|
let guess;
|
|
17729
|
-
if (packageConfig.main !==
|
|
17715
|
+
if (packageConfig.main !== void 0) {
|
|
17730
17716
|
guess = new URL$1(packageConfig.main, packageJsonUrl);
|
|
17731
17717
|
if (fileExists(guess)) return guess;
|
|
17732
17718
|
const tries2 = [`./${packageConfig.main}.js`, `./${packageConfig.main}.json`, `./${packageConfig.main}.node`, `./${packageConfig.main}/index.js`, `./${packageConfig.main}/index.json`, `./${packageConfig.main}/index.node`];
|
|
@@ -17734,7 +17720,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17734
17720
|
while (++i22 < tries2.length) {
|
|
17735
17721
|
guess = new URL$1(tries2[i22], packageJsonUrl);
|
|
17736
17722
|
if (fileExists(guess)) break;
|
|
17737
|
-
guess =
|
|
17723
|
+
guess = void 0;
|
|
17738
17724
|
}
|
|
17739
17725
|
if (guess) {
|
|
17740
17726
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17746,7 +17732,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17746
17732
|
while (++i2 < tries.length) {
|
|
17747
17733
|
guess = new URL$1(tries[i2], packageJsonUrl);
|
|
17748
17734
|
if (fileExists(guess)) break;
|
|
17749
|
-
guess =
|
|
17735
|
+
guess = void 0;
|
|
17750
17736
|
}
|
|
17751
17737
|
if (guess) {
|
|
17752
17738
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17881,14 +17867,14 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17881
17867
|
if (exception2.code === "ERR_INVALID_PACKAGE_TARGET") continue;
|
|
17882
17868
|
throw error;
|
|
17883
17869
|
}
|
|
17884
|
-
if (resolveResult ===
|
|
17870
|
+
if (resolveResult === void 0) continue;
|
|
17885
17871
|
if (resolveResult === null) {
|
|
17886
17872
|
lastException = null;
|
|
17887
17873
|
continue;
|
|
17888
17874
|
}
|
|
17889
17875
|
return resolveResult;
|
|
17890
17876
|
}
|
|
17891
|
-
if (lastException ===
|
|
17877
|
+
if (lastException === void 0 || lastException === null) {
|
|
17892
17878
|
return null;
|
|
17893
17879
|
}
|
|
17894
17880
|
throw lastException;
|
|
@@ -17911,7 +17897,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17911
17897
|
target[key2]
|
|
17912
17898
|
);
|
|
17913
17899
|
const resolveResult = resolvePackageTarget(packageJsonUrl, conditionalTarget, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions);
|
|
17914
|
-
if (resolveResult ===
|
|
17900
|
+
if (resolveResult === void 0) continue;
|
|
17915
17901
|
return resolveResult;
|
|
17916
17902
|
}
|
|
17917
17903
|
}
|
|
@@ -17957,7 +17943,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17957
17943
|
if (own2.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
17958
17944
|
const target = exports[packageSubpath];
|
|
17959
17945
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
|
|
17960
|
-
if (resolveResult === null || resolveResult ===
|
|
17946
|
+
if (resolveResult === null || resolveResult === void 0) {
|
|
17961
17947
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17962
17948
|
}
|
|
17963
17949
|
return resolveResult;
|
|
@@ -17986,7 +17972,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17986
17972
|
exports[bestMatch]
|
|
17987
17973
|
);
|
|
17988
17974
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
|
|
17989
|
-
if (resolveResult === null || resolveResult ===
|
|
17975
|
+
if (resolveResult === null || resolveResult === void 0) {
|
|
17990
17976
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17991
17977
|
}
|
|
17992
17978
|
return resolveResult;
|
|
@@ -18019,7 +18005,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
18019
18005
|
if (imports) {
|
|
18020
18006
|
if (own2.call(imports, name) && !name.includes("*")) {
|
|
18021
18007
|
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
|
|
18022
|
-
if (resolveResult !== null && resolveResult !==
|
|
18008
|
+
if (resolveResult !== null && resolveResult !== void 0) {
|
|
18023
18009
|
return resolveResult;
|
|
18024
18010
|
}
|
|
18025
18011
|
} else {
|
|
@@ -18041,7 +18027,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
18041
18027
|
if (bestMatch) {
|
|
18042
18028
|
const target = imports[bestMatch];
|
|
18043
18029
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
|
|
18044
|
-
if (resolveResult !== null && resolveResult !==
|
|
18030
|
+
if (resolveResult !== null && resolveResult !== void 0) {
|
|
18045
18031
|
return resolveResult;
|
|
18046
18032
|
}
|
|
18047
18033
|
}
|
|
@@ -18080,7 +18066,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
18080
18066
|
const packageConfig = getPackageScopeConfig(base);
|
|
18081
18067
|
if (packageConfig.exists) {
|
|
18082
18068
|
const packageJsonUrl2 = pathToFileURL(packageConfig.pjsonPath);
|
|
18083
|
-
if (packageConfig.name === packageName && packageConfig.exports !==
|
|
18069
|
+
if (packageConfig.name === packageName && packageConfig.exports !== void 0 && packageConfig.exports !== null) {
|
|
18084
18070
|
return packageExportsResolve(packageJsonUrl2, packageSubpath, packageConfig, base, conditions);
|
|
18085
18071
|
}
|
|
18086
18072
|
}
|
|
@@ -18096,7 +18082,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
18096
18082
|
continue;
|
|
18097
18083
|
}
|
|
18098
18084
|
const packageConfig2 = package_json_reader_default.read(packageJsonPath, { base, specifier });
|
|
18099
|
-
if (packageConfig2.exports !==
|
|
18085
|
+
if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
|
|
18100
18086
|
return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig2, base, conditions);
|
|
18101
18087
|
}
|
|
18102
18088
|
if (packageSubpath === ".") {
|
|
@@ -18137,7 +18123,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
18137
18123
|
}
|
|
18138
18124
|
}
|
|
18139
18125
|
}
|
|
18140
|
-
assert2(resolved !==
|
|
18126
|
+
assert2(resolved !== void 0, "expected to be defined");
|
|
18141
18127
|
if (resolved.protocol !== "file:") {
|
|
18142
18128
|
return resolved;
|
|
18143
18129
|
}
|
|
@@ -18148,11 +18134,11 @@ function checkIfDisallowedImport(specifier, parsed, parsedParentURL) {
|
|
|
18148
18134
|
const parentProtocol = parsedParentURL.protocol;
|
|
18149
18135
|
if (parentProtocol === "http:" || parentProtocol === "https:") {
|
|
18150
18136
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
18151
|
-
const parsedProtocol = parsed == null ?
|
|
18137
|
+
const parsedProtocol = parsed == null ? void 0 : parsed.protocol;
|
|
18152
18138
|
if (parsedProtocol && parsedProtocol !== "https:" && parsedProtocol !== "http:") {
|
|
18153
18139
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
18154
18140
|
}
|
|
18155
|
-
return { url: (parsed == null ?
|
|
18141
|
+
return { url: (parsed == null ? void 0 : parsed.href) || "" };
|
|
18156
18142
|
}
|
|
18157
18143
|
if (builtinModules.includes(specifier)) {
|
|
18158
18144
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
@@ -18165,7 +18151,7 @@ function isURL(self) {
|
|
|
18165
18151
|
return Boolean(self && typeof self === "object" && "href" in self && typeof self.href === "string" && "protocol" in self && typeof self.protocol === "string" && self.href && self.protocol);
|
|
18166
18152
|
}
|
|
18167
18153
|
function throwIfInvalidParentURL(parentURL) {
|
|
18168
|
-
if (parentURL ===
|
|
18154
|
+
if (parentURL === void 0) {
|
|
18169
18155
|
return;
|
|
18170
18156
|
}
|
|
18171
18157
|
if (typeof parentURL !== "string" && !isURL(parentURL)) {
|
|
@@ -18174,7 +18160,7 @@ function throwIfInvalidParentURL(parentURL) {
|
|
|
18174
18160
|
}
|
|
18175
18161
|
function defaultResolve(specifier, context = {}) {
|
|
18176
18162
|
const { parentURL } = context;
|
|
18177
|
-
assert2(parentURL !==
|
|
18163
|
+
assert2(parentURL !== void 0, "expected `parentURL` to be defined");
|
|
18178
18164
|
throwIfInvalidParentURL(parentURL);
|
|
18179
18165
|
let parsedParentURL;
|
|
18180
18166
|
if (parentURL) {
|
|
@@ -18236,7 +18222,7 @@ async function loadExternalConfig(externalConfig, configFile) {
|
|
|
18236
18222
|
try {
|
|
18237
18223
|
return require_from_file_default(externalConfig, configFile);
|
|
18238
18224
|
} catch (error) {
|
|
18239
|
-
if (!requireErrorCodesShouldBeIgnored.has(error == null ?
|
|
18225
|
+
if (!requireErrorCodesShouldBeIgnored.has(error == null ? void 0 : error.code)) {
|
|
18240
18226
|
throw error;
|
|
18241
18227
|
}
|
|
18242
18228
|
}
|
|
@@ -18278,7 +18264,7 @@ function loadPrettierConfig(configFile, { shouldCache }) {
|
|
|
18278
18264
|
return loadCache.get(configFile);
|
|
18279
18265
|
}
|
|
18280
18266
|
function getSearchFunction(stopDirectory) {
|
|
18281
|
-
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) :
|
|
18267
|
+
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) : void 0;
|
|
18282
18268
|
if (!searchCache.has(stopDirectory)) {
|
|
18283
18269
|
const searcher2 = config_searcher_default(stopDirectory);
|
|
18284
18270
|
const searchFunction = searcher2.search.bind(searcher2);
|
|
@@ -18307,7 +18293,7 @@ async function loadPrettierConfig2(file, options8) {
|
|
|
18307
18293
|
const shouldCache = options8.useCache;
|
|
18308
18294
|
let configFile = options8.config;
|
|
18309
18295
|
if (!configFile) {
|
|
18310
|
-
const directory = file ? path9__default.dirname(path9__default.resolve(file)) :
|
|
18296
|
+
const directory = file ? path9__default.dirname(path9__default.resolve(file)) : void 0;
|
|
18311
18297
|
configFile = await searchPrettierConfig(directory, { shouldCache });
|
|
18312
18298
|
}
|
|
18313
18299
|
if (!configFile) {
|
|
@@ -18330,7 +18316,7 @@ async function resolveConfig(fileUrlOrPath, options8) {
|
|
|
18330
18316
|
return merged;
|
|
18331
18317
|
}
|
|
18332
18318
|
async function resolveConfigFile(fileUrlOrPath) {
|
|
18333
|
-
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) :
|
|
18319
|
+
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) : void 0;
|
|
18334
18320
|
const result = await searchPrettierConfig(directory, { shouldCache: false });
|
|
18335
18321
|
return result ?? null;
|
|
18336
18322
|
}
|
|
@@ -18353,7 +18339,7 @@ function pathMatchesGlobs(filePath, patterns, excludedPatterns) {
|
|
|
18353
18339
|
return import_micromatch.default.isMatch(filePath, withoutSlashes, { ignore: excludedPatterns, basename: true, dot: true }) || import_micromatch.default.isMatch(filePath, withSlashes, { ignore: excludedPatterns, basename: false, dot: true });
|
|
18354
18340
|
}
|
|
18355
18341
|
var stringReplaceAll22 = (isOptionalObject, original, pattern, replacement) => {
|
|
18356
|
-
if (isOptionalObject && (original ===
|
|
18342
|
+
if (isOptionalObject && (original === void 0 || original === null)) {
|
|
18357
18343
|
return;
|
|
18358
18344
|
}
|
|
18359
18345
|
if (original.replaceAll) {
|
|
@@ -18400,7 +18386,7 @@ async function createSingleIsIgnoredFunction(ignoreFile, withNodeModules) {
|
|
|
18400
18386
|
}
|
|
18401
18387
|
async function createIsIgnoredFunction(ignoreFiles, withNodeModules) {
|
|
18402
18388
|
if (ignoreFiles.length === 0 && !withNodeModules) {
|
|
18403
|
-
ignoreFiles = [
|
|
18389
|
+
ignoreFiles = [void 0];
|
|
18404
18390
|
}
|
|
18405
18391
|
const isIgnoredFunctions = (await Promise.all(ignoreFiles.map((ignoreFile) => createSingleIsIgnoredFunction(ignoreFile, withNodeModules)))).filter(Boolean);
|
|
18406
18392
|
return (file) => isIgnoredFunctions.some((isIgnored2) => isIgnored2(file));
|
|
@@ -18443,13 +18429,13 @@ function getLanguageByFileName(languages2, file) {
|
|
|
18443
18429
|
return;
|
|
18444
18430
|
}
|
|
18445
18431
|
const basename = getFileBasename(file).toLowerCase();
|
|
18446
|
-
return languages2.find(({ filenames }) => filenames == null ?
|
|
18432
|
+
return languages2.find(({ filenames }) => filenames == null ? void 0 : filenames.some((name) => name.toLowerCase() === basename)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.some((extension) => basename.endsWith(extension)));
|
|
18447
18433
|
}
|
|
18448
18434
|
function getLanguageByLanguageName(languages2, languageName) {
|
|
18449
18435
|
if (!languageName) {
|
|
18450
18436
|
return;
|
|
18451
18437
|
}
|
|
18452
|
-
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ?
|
|
18438
|
+
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ? void 0 : aliases.includes(languageName)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.includes(`.${languageName}`));
|
|
18453
18439
|
}
|
|
18454
18440
|
function getLanguageByInterpreter(languages2, file) {
|
|
18455
18441
|
if (!file || getFileBasename(file).includes(".")) {
|
|
@@ -18459,7 +18445,7 @@ function getLanguageByInterpreter(languages2, file) {
|
|
|
18459
18445
|
if (!interpreter) {
|
|
18460
18446
|
return;
|
|
18461
18447
|
}
|
|
18462
|
-
return languages2.find(({ interpreters }) => interpreters == null ?
|
|
18448
|
+
return languages2.find(({ interpreters }) => interpreters == null ? void 0 : interpreters.includes(interpreter));
|
|
18463
18449
|
}
|
|
18464
18450
|
function inferParser(options8, fileInfo) {
|
|
18465
18451
|
const languages2 = options8.plugins.flatMap((plugin) => (
|
|
@@ -18467,7 +18453,7 @@ function inferParser(options8, fileInfo) {
|
|
|
18467
18453
|
plugin.languages ?? []
|
|
18468
18454
|
));
|
|
18469
18455
|
const language = getLanguageByLanguageName(languages2, fileInfo.language) ?? getLanguageByFileName(languages2, fileInfo.physicalFile) ?? getLanguageByFileName(languages2, fileInfo.file) ?? getLanguageByInterpreter(languages2, fileInfo.physicalFile);
|
|
18470
|
-
return language == null ?
|
|
18456
|
+
return language == null ? void 0 : language.parsers[0];
|
|
18471
18457
|
}
|
|
18472
18458
|
var infer_parser_default = inferParser;
|
|
18473
18459
|
async function getFileInfo(file, options8) {
|
|
@@ -18490,7 +18476,7 @@ async function getParser(file, options8) {
|
|
|
18490
18476
|
if (options8.resolveConfig !== false) {
|
|
18491
18477
|
config = await resolveConfig(file);
|
|
18492
18478
|
}
|
|
18493
|
-
return (config == null ?
|
|
18479
|
+
return (config == null ? void 0 : config.parser) ?? infer_parser_default(options8, { physicalFile: file });
|
|
18494
18480
|
}
|
|
18495
18481
|
var get_file_info_default = getFileInfo;
|
|
18496
18482
|
var import_diff = __toESM2(require_array2());
|
|
@@ -18612,7 +18598,7 @@ function traverseDoc2(doc2, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
18612
18598
|
if (!docType) {
|
|
18613
18599
|
throw new invalid_doc_error_default2(doc3);
|
|
18614
18600
|
}
|
|
18615
|
-
if ((onEnter == null ?
|
|
18601
|
+
if ((onEnter == null ? void 0 : onEnter(doc3)) === false) {
|
|
18616
18602
|
continue;
|
|
18617
18603
|
}
|
|
18618
18604
|
switch (docType) {
|
|
@@ -18707,7 +18693,7 @@ function flattenDoc(doc2) {
|
|
|
18707
18693
|
return { ...doc2, breakContents: flattenDoc(doc2.breakContents), flatContents: flattenDoc(doc2.flatContents) };
|
|
18708
18694
|
}
|
|
18709
18695
|
if (doc2.type === DOC_TYPE_GROUP2) {
|
|
18710
|
-
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ?
|
|
18696
|
+
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ? void 0 : _a.map(flattenDoc) };
|
|
18711
18697
|
}
|
|
18712
18698
|
if (doc2.type === DOC_TYPE_FILL2) {
|
|
18713
18699
|
return { type: "fill", parts: doc2.parts.map(flattenDoc) };
|
|
@@ -18731,7 +18717,7 @@ function printDocToDebug(doc2) {
|
|
|
18731
18717
|
return printed.length === 1 ? printed[0] : `[${printed.join(", ")}]`;
|
|
18732
18718
|
}
|
|
18733
18719
|
if (doc3.type === DOC_TYPE_LINE2) {
|
|
18734
|
-
const withBreakParent = ((_a = parentParts == null ?
|
|
18720
|
+
const withBreakParent = ((_a = parentParts == null ? void 0 : parentParts[index + 1]) == null ? void 0 : _a.type) === DOC_TYPE_BREAK_PARENT2;
|
|
18735
18721
|
if (doc3.literal) {
|
|
18736
18722
|
return withBreakParent ? "literalline" : "literallineWithoutBreakParent";
|
|
18737
18723
|
}
|
|
@@ -18744,8 +18730,8 @@ function printDocToDebug(doc2) {
|
|
|
18744
18730
|
return "line";
|
|
18745
18731
|
}
|
|
18746
18732
|
if (doc3.type === DOC_TYPE_BREAK_PARENT2) {
|
|
18747
|
-
const afterHardline = ((_b = parentParts == null ?
|
|
18748
|
-
return afterHardline ?
|
|
18733
|
+
const afterHardline = ((_b = parentParts == null ? void 0 : parentParts[index - 1]) == null ? void 0 : _b.type) === DOC_TYPE_LINE2 && parentParts[index - 1].hard;
|
|
18734
|
+
return afterHardline ? void 0 : "breakParent";
|
|
18749
18735
|
}
|
|
18750
18736
|
if (doc3.type === DOC_TYPE_TRIM2) {
|
|
18751
18737
|
return "trim";
|
|
@@ -18816,7 +18802,7 @@ function printDocToDebug(doc2) {
|
|
|
18816
18802
|
}
|
|
18817
18803
|
}
|
|
18818
18804
|
var at2 = (isOptionalObject, object, index) => {
|
|
18819
|
-
if (isOptionalObject && (object ===
|
|
18805
|
+
if (isOptionalObject && (object === void 0 || object === null)) {
|
|
18820
18806
|
return;
|
|
18821
18807
|
}
|
|
18822
18808
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -19738,7 +19724,7 @@ var AstPath = class {
|
|
|
19738
19724
|
let name = null;
|
|
19739
19725
|
let node = this.stack[stackPointer--];
|
|
19740
19726
|
for (const predicate of predicates) {
|
|
19741
|
-
if (node ===
|
|
19727
|
+
if (node === void 0) {
|
|
19742
19728
|
return false;
|
|
19743
19729
|
}
|
|
19744
19730
|
let number = null;
|
|
@@ -19839,7 +19825,7 @@ function* getDescendants(node, options8) {
|
|
|
19839
19825
|
}
|
|
19840
19826
|
function skip(characters) {
|
|
19841
19827
|
return (text, startIndex, options8) => {
|
|
19842
|
-
const backwards = Boolean(options8 == null ?
|
|
19828
|
+
const backwards = Boolean(options8 == null ? void 0 : options8.backwards);
|
|
19843
19829
|
if (startIndex === false) {
|
|
19844
19830
|
return false;
|
|
19845
19831
|
}
|
|
@@ -19867,7 +19853,7 @@ var skipSpaces = skip(" ");
|
|
|
19867
19853
|
var skipToLineEnd = skip(",; ");
|
|
19868
19854
|
var skipEverythingButNewLine = skip(/[^\n\r]/);
|
|
19869
19855
|
function skipNewline(text, startIndex, options8) {
|
|
19870
|
-
const backwards = Boolean(options8 == null ?
|
|
19856
|
+
const backwards = Boolean(options8 == null ? void 0 : options8.backwards);
|
|
19871
19857
|
if (startIndex === false) {
|
|
19872
19858
|
return false;
|
|
19873
19859
|
}
|
|
@@ -19947,7 +19933,7 @@ function getSortedChildNodes(node, options8) {
|
|
|
19947
19933
|
if (!canAttachComment) {
|
|
19948
19934
|
return [];
|
|
19949
19935
|
}
|
|
19950
|
-
const childNodes = ((getCommentChildNodes == null ?
|
|
19936
|
+
const childNodes = ((getCommentChildNodes == null ? void 0 : getCommentChildNodes(node, options8)) ?? [...getChildren(node, { getVisitorKeys: create_get_visitor_keys_function_default(printerGetVisitorKeys) })]).flatMap((node2) => canAttachComment(node2) ? [node2] : getSortedChildNodes(node2, options8));
|
|
19951
19937
|
childNodes.sort((nodeA, nodeB) => locStart(nodeA) - locStart(nodeB) || locEnd(nodeA) - locEnd(nodeB));
|
|
19952
19938
|
childNodesCache.set(node, childNodes);
|
|
19953
19939
|
return childNodes;
|
|
@@ -19981,7 +19967,7 @@ function decorateComment(node, comment, options8, enclosingNode) {
|
|
|
19981
19967
|
}
|
|
19982
19968
|
throw new Error("Comment location overlaps with node location");
|
|
19983
19969
|
}
|
|
19984
|
-
if ((enclosingNode == null ?
|
|
19970
|
+
if ((enclosingNode == null ? void 0 : enclosingNode.type) === "TemplateLiteral") {
|
|
19985
19971
|
const { quasis } = enclosingNode;
|
|
19986
19972
|
const commentIndex = findExpressionIndexForComment(quasis, comment, options8);
|
|
19987
19973
|
if (precedingNode && findExpressionIndexForComment(quasis, precedingNode, options8) !== commentIndex) {
|
|
@@ -20126,7 +20112,7 @@ function breakTies(tiesToBreak, options8) {
|
|
|
20126
20112
|
assert2.strictEqual(currentCommentPrecedingNode, precedingNode);
|
|
20127
20113
|
assert2.strictEqual(currentCommentFollowingNode, followingNode);
|
|
20128
20114
|
const gap = options8.originalText.slice(options8.locEnd(comment), gapEndPos);
|
|
20129
|
-
if (((_b = (_a = options8.printer).isGap) == null ?
|
|
20115
|
+
if (((_b = (_a = options8.printer).isGap) == null ? void 0 : _b.call(_a, gap, options8)) ?? /^[\s(]*$/.test(gap)) {
|
|
20130
20116
|
gapEndPos = options8.locStart(comment);
|
|
20131
20117
|
} else {
|
|
20132
20118
|
break;
|
|
@@ -20174,7 +20160,7 @@ function printLeadingComment(path132, options8) {
|
|
|
20174
20160
|
const comment = path132.node;
|
|
20175
20161
|
const parts = [printComment(path132, options8)];
|
|
20176
20162
|
const { printer: printer2, originalText, locStart, locEnd } = options8;
|
|
20177
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
20163
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? void 0 : _a.call(printer2, comment);
|
|
20178
20164
|
if (isBlock) {
|
|
20179
20165
|
const lineBreak = has_newline_default(originalText, locEnd(comment)) ? has_newline_default(originalText, locStart(comment), { backwards: true }) ? hardline2 : line22 : " ";
|
|
20180
20166
|
parts.push(lineBreak);
|
|
@@ -20192,12 +20178,12 @@ function printTrailingComment(path132, options8, previousComment) {
|
|
|
20192
20178
|
const comment = path132.node;
|
|
20193
20179
|
const printed = printComment(path132, options8);
|
|
20194
20180
|
const { printer: printer2, originalText, locStart } = options8;
|
|
20195
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
20196
|
-
if ((previousComment == null ?
|
|
20181
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? void 0 : _a.call(printer2, comment);
|
|
20182
|
+
if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true })) {
|
|
20197
20183
|
const isLineBeforeEmpty = is_previous_line_empty_default(originalText, locStart(comment));
|
|
20198
20184
|
return { doc: lineSuffix2([hardline2, isLineBeforeEmpty ? hardline2 : "", printed]), isBlock, hasLineSuffix: true };
|
|
20199
20185
|
}
|
|
20200
|
-
if (!isBlock || (previousComment == null ?
|
|
20186
|
+
if (!isBlock || (previousComment == null ? void 0 : previousComment.hasLineSuffix)) {
|
|
20201
20187
|
return { doc: [lineSuffix2([" ", printed]), breakParent2], isBlock, hasLineSuffix: true };
|
|
20202
20188
|
}
|
|
20203
20189
|
return { doc: [" ", printed], isBlock, hasLineSuffix: false };
|
|
@@ -20217,7 +20203,7 @@ function printCommentsSeparately(path132, options8) {
|
|
|
20217
20203
|
let printedTrailingComment;
|
|
20218
20204
|
path132.each(() => {
|
|
20219
20205
|
const comment = path132.node;
|
|
20220
|
-
if (ignored == null ?
|
|
20206
|
+
if (ignored == null ? void 0 : ignored.has(comment)) {
|
|
20221
20207
|
return;
|
|
20222
20208
|
}
|
|
20223
20209
|
const { leading, trailing } = comment;
|
|
@@ -20253,7 +20239,7 @@ function createPrintPreCheckFunction(options8) {
|
|
|
20253
20239
|
}
|
|
20254
20240
|
}
|
|
20255
20241
|
var create_print_pre_check_function_default = createPrintPreCheckFunction;
|
|
20256
|
-
var core_options_evaluate_default = { "cursorOffset": { "category": "Special", "type": "int", "default": -1, "range": { "start": -1, "end": Infinity, "step": 1 }, "description": "Print (to stderr) where a cursor at the given position would move to after formatting.", "cliCategory": "Editor" }, "endOfLine": { "category": "Global", "type": "choice", "default": "lf", "description": "Which end of line characters to apply.", "choices": [{ "value": "lf", "description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { "value": "crlf", "description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { "value": "cr", "description": "Carriage Return character only (\\r), used very rarely" }, { "value": "auto", "description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)" }] }, "filepath": { "category": "Special", "type": "path", "description": "Specify the input filepath. This will be used to do parser inference.", "cliName": "stdin-filepath", "cliCategory": "Other", "cliDescription": "Path to the file to pretend that stdin comes from." }, "insertPragma": { "category": "Special", "type": "boolean", "default": false, "description": "Insert @format pragma into file's first docblock comment.", "cliCategory": "Other" }, "parser": { "category": "Global", "type": "choice", "default":
|
|
20242
|
+
var core_options_evaluate_default = { "cursorOffset": { "category": "Special", "type": "int", "default": -1, "range": { "start": -1, "end": Infinity, "step": 1 }, "description": "Print (to stderr) where a cursor at the given position would move to after formatting.", "cliCategory": "Editor" }, "endOfLine": { "category": "Global", "type": "choice", "default": "lf", "description": "Which end of line characters to apply.", "choices": [{ "value": "lf", "description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { "value": "crlf", "description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { "value": "cr", "description": "Carriage Return character only (\\r), used very rarely" }, { "value": "auto", "description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)" }] }, "filepath": { "category": "Special", "type": "path", "description": "Specify the input filepath. This will be used to do parser inference.", "cliName": "stdin-filepath", "cliCategory": "Other", "cliDescription": "Path to the file to pretend that stdin comes from." }, "insertPragma": { "category": "Special", "type": "boolean", "default": false, "description": "Insert @format pragma into file's first docblock comment.", "cliCategory": "Other" }, "parser": { "category": "Global", "type": "choice", "default": void 0, "description": "Which parser to use.", "exception": (value) => typeof value === "string" || typeof value === "function", "choices": [{ "value": "flow", "description": "Flow" }, { "value": "babel", "description": "JavaScript" }, { "value": "babel-flow", "description": "Flow" }, { "value": "babel-ts", "description": "TypeScript" }, { "value": "typescript", "description": "TypeScript" }, { "value": "acorn", "description": "JavaScript" }, { "value": "espree", "description": "JavaScript" }, { "value": "meriyah", "description": "JavaScript" }, { "value": "css", "description": "CSS" }, { "value": "less", "description": "Less" }, { "value": "scss", "description": "SCSS" }, { "value": "json", "description": "JSON" }, { "value": "json5", "description": "JSON5" }, { "value": "jsonc", "description": "JSON with Comments" }, { "value": "json-stringify", "description": "JSON.stringify" }, { "value": "graphql", "description": "GraphQL" }, { "value": "markdown", "description": "Markdown" }, { "value": "mdx", "description": "MDX" }, { "value": "vue", "description": "Vue" }, { "value": "yaml", "description": "YAML" }, { "value": "glimmer", "description": "Ember / Handlebars" }, { "value": "html", "description": "HTML" }, { "value": "angular", "description": "Angular" }, { "value": "lwc", "description": "Lightning Web Components" }] }, "plugins": { "type": "path", "array": true, "default": [{ "value": [] }], "category": "Global", "description": "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", "exception": (value) => typeof value === "string" || typeof value === "object", "cliName": "plugin", "cliCategory": "Config" }, "printWidth": { "category": "Global", "type": "int", "default": 80, "description": "The line length where Prettier will try wrap.", "range": { "start": 0, "end": Infinity, "step": 1 } }, "rangeEnd": { "category": "Special", "type": "int", "default": Infinity, "range": { "start": 0, "end": Infinity, "step": 1 }, "description": "Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.", "cliCategory": "Editor" }, "rangeStart": { "category": "Special", "type": "int", "default": 0, "range": { "start": 0, "end": Infinity, "step": 1 }, "description": "Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.", "cliCategory": "Editor" }, "requirePragma": { "category": "Special", "type": "boolean", "default": false, "description": "Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.", "cliCategory": "Other" }, "tabWidth": { "type": "int", "category": "Global", "default": 2, "description": "Number of spaces per indentation level.", "range": { "start": 0, "end": Infinity, "step": 1 } }, "useTabs": { "category": "Global", "type": "boolean", "default": false, "description": "Indent with tabs instead of spaces." }, "embeddedLanguageFormatting": { "category": "Global", "type": "choice", "default": "auto", "description": "Control how Prettier formats quoted code embedded in the file.", "choices": [{ "value": "auto", "description": "Format embedded code if Prettier can automatically identify it." }, { "value": "off", "description": "Never automatically format embedded code." }] } };
|
|
20257
20243
|
function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
20258
20244
|
const languages2 = plugins.flatMap((plugin) => plugin.languages ?? []);
|
|
20259
20245
|
const options8 = [];
|
|
@@ -20271,7 +20257,7 @@ function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
|
20271
20257
|
}
|
|
20272
20258
|
option.pluginDefaults = Object.fromEntries(plugins.filter((plugin) => {
|
|
20273
20259
|
var _a;
|
|
20274
|
-
return ((_a = plugin.defaultOptions) == null ?
|
|
20260
|
+
return ((_a = plugin.defaultOptions) == null ? void 0 : _a[option.name]) !== void 0;
|
|
20275
20261
|
}).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]]));
|
|
20276
20262
|
options8.push(option);
|
|
20277
20263
|
}
|
|
@@ -20286,7 +20272,7 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) {
|
|
|
20286
20272
|
existingParsers.add(parserName);
|
|
20287
20273
|
const plugin = plugins.find((plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
|
|
20288
20274
|
let description = language.name;
|
|
20289
|
-
if (plugin == null ?
|
|
20275
|
+
if (plugin == null ? void 0 : plugin.name) {
|
|
20290
20276
|
description += ` (plugin: ${plugin.name})`;
|
|
20291
20277
|
}
|
|
20292
20278
|
yield { value: parserName, description };
|
|
@@ -20326,7 +20312,7 @@ function normalizeOptions(options8, optionInfos, { logger = false, isCLI = false
|
|
|
20326
20312
|
const unknown = !passThrough ? (key2, value, options9) => {
|
|
20327
20313
|
const { _, ...schemas2 } = options9.schemas;
|
|
20328
20314
|
return levenUnknownHandler(key2, value, { ...options9, schemas: schemas2 });
|
|
20329
|
-
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ?
|
|
20315
|
+
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? void 0 : { [key2]: value } : (key2, value) => ({ [key2]: value });
|
|
20330
20316
|
const schemas = optionInfosToSchemas(optionInfos, { isCLI, FlagSchema });
|
|
20331
20317
|
const normalizer = new Normalizer(schemas, { logger, unknown, descriptor });
|
|
20332
20318
|
const shouldSuppressDuplicateDeprecationWarnings = logger !== false;
|
|
@@ -20373,7 +20359,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20373
20359
|
break;
|
|
20374
20360
|
case "choice":
|
|
20375
20361
|
SchemaConstructor = ChoiceSchema;
|
|
20376
|
-
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ?
|
|
20362
|
+
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ? void 0 : choiceInfo.redirect) ? { ...choiceInfo, redirect: { to: { key: optionInfo.name, value: choiceInfo.redirect } } } : choiceInfo);
|
|
20377
20363
|
break;
|
|
20378
20364
|
case "boolean":
|
|
20379
20365
|
SchemaConstructor = BooleanSchema;
|
|
@@ -20391,10 +20377,10 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20391
20377
|
if (optionInfo.exception) {
|
|
20392
20378
|
parameters.validate = (value, schema2, utils2) => optionInfo.exception(value) || schema2.validate(value, utils2);
|
|
20393
20379
|
} else {
|
|
20394
|
-
parameters.validate = (value, schema2, utils2) => value ===
|
|
20380
|
+
parameters.validate = (value, schema2, utils2) => value === void 0 || schema2.validate(value, utils2);
|
|
20395
20381
|
}
|
|
20396
20382
|
if (optionInfo.redirect) {
|
|
20397
|
-
handlers.redirect = (value) => !value ?
|
|
20383
|
+
handlers.redirect = (value) => !value ? void 0 : { to: { key: optionInfo.redirect.option, value: optionInfo.redirect.value } };
|
|
20398
20384
|
}
|
|
20399
20385
|
if (optionInfo.deprecated) {
|
|
20400
20386
|
handlers.deprecated = true;
|
|
@@ -20417,7 +20403,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20417
20403
|
}
|
|
20418
20404
|
var normalize_options_default = normalizeOptions;
|
|
20419
20405
|
var arrayFindLast = (isOptionalObject, array2, callback) => {
|
|
20420
|
-
if (isOptionalObject && (array2 ===
|
|
20406
|
+
if (isOptionalObject && (array2 === void 0 || array2 === null)) {
|
|
20421
20407
|
return;
|
|
20422
20408
|
}
|
|
20423
20409
|
if (array2.findLast) {
|
|
@@ -20475,7 +20461,7 @@ function initPrinter(plugin, astFormat) {
|
|
|
20475
20461
|
const printerOrPrinterInitFunction = plugin.printers[astFormat];
|
|
20476
20462
|
return typeof printerOrPrinterInitFunction === "function" ? printerOrPrinterInitFunction() : printerOrPrinterInitFunction;
|
|
20477
20463
|
}
|
|
20478
|
-
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText:
|
|
20464
|
+
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText: void 0, locStart: null, locEnd: null };
|
|
20479
20465
|
async function normalizeFormatOptions(options8, opts = {}) {
|
|
20480
20466
|
var _a;
|
|
20481
20467
|
const rawOptions = { ...options8 };
|
|
@@ -20490,19 +20476,19 @@ async function normalizeFormatOptions(options8, opts = {}) {
|
|
|
20490
20476
|
}
|
|
20491
20477
|
}
|
|
20492
20478
|
const supportOptions = getSupportInfo({ plugins: options8.plugins, showDeprecated: true }).options;
|
|
20493
|
-
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !==
|
|
20479
|
+
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !== void 0).map((option) => [option.name, option.default])) };
|
|
20494
20480
|
const parserPlugin = getParserPluginByParserName(rawOptions.plugins, rawOptions.parser);
|
|
20495
20481
|
const parser = await initParser(parserPlugin, rawOptions.parser);
|
|
20496
20482
|
rawOptions.astFormat = parser.astFormat;
|
|
20497
20483
|
rawOptions.locEnd = parser.locEnd;
|
|
20498
20484
|
rawOptions.locStart = parser.locStart;
|
|
20499
|
-
const printerPlugin = ((_a = parserPlugin.printers) == null ?
|
|
20485
|
+
const printerPlugin = ((_a = parserPlugin.printers) == null ? void 0 : _a[parser.astFormat]) ? parserPlugin : getPrinterPluginByAstFormat(rawOptions.plugins, parser.astFormat);
|
|
20500
20486
|
const printer2 = await initPrinter(printerPlugin, parser.astFormat);
|
|
20501
20487
|
rawOptions.printer = printer2;
|
|
20502
|
-
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !==
|
|
20488
|
+
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !== void 0)) : {};
|
|
20503
20489
|
const mixedDefaults = { ...defaults, ...pluginDefaults };
|
|
20504
20490
|
for (const [k, value] of Object.entries(mixedDefaults)) {
|
|
20505
|
-
if (rawOptions[k] === null || rawOptions[k] ===
|
|
20491
|
+
if (rawOptions[k] === null || rawOptions[k] === void 0) {
|
|
20506
20492
|
rawOptions[k] = value;
|
|
20507
20493
|
}
|
|
20508
20494
|
}
|
|
@@ -20620,11 +20606,11 @@ async function printAstToDoc(ast, options8) {
|
|
|
20620
20606
|
const ensurePrintingNode = create_print_pre_check_function_default();
|
|
20621
20607
|
const embeds = /* @__PURE__ */ new Map();
|
|
20622
20608
|
await printEmbeddedLanguages(path132, mainPrint, options8, printAstToDoc, embeds);
|
|
20623
|
-
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint,
|
|
20609
|
+
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint, void 0, embeds);
|
|
20624
20610
|
ensureAllCommentsPrinted(options8);
|
|
20625
20611
|
return doc2;
|
|
20626
20612
|
function mainPrint(selector, args) {
|
|
20627
|
-
if (selector ===
|
|
20613
|
+
if (selector === void 0 || selector === path132) {
|
|
20628
20614
|
return mainPrintInternal(args);
|
|
20629
20615
|
}
|
|
20630
20616
|
if (Array.isArray(selector)) {
|
|
@@ -20635,10 +20621,10 @@ async function printAstToDoc(ast, options8) {
|
|
|
20635
20621
|
function mainPrintInternal(args) {
|
|
20636
20622
|
ensurePrintingNode(path132);
|
|
20637
20623
|
const value = path132.node;
|
|
20638
|
-
if (value ===
|
|
20624
|
+
if (value === void 0 || value === null) {
|
|
20639
20625
|
return "";
|
|
20640
20626
|
}
|
|
20641
|
-
const shouldCache = value && typeof value === "object" && args ===
|
|
20627
|
+
const shouldCache = value && typeof value === "object" && args === void 0;
|
|
20642
20628
|
if (shouldCache && cache3.has(value)) {
|
|
20643
20629
|
return cache3.get(value);
|
|
20644
20630
|
}
|
|
@@ -20654,7 +20640,7 @@ function callPluginPrintFunction(path132, options8, printPath, args, embeds) {
|
|
|
20654
20640
|
const { node } = path132;
|
|
20655
20641
|
const { printer: printer2 } = options8;
|
|
20656
20642
|
let doc2;
|
|
20657
|
-
if ((_a = printer2.hasPrettierIgnore) == null ?
|
|
20643
|
+
if ((_a = printer2.hasPrettierIgnore) == null ? void 0 : _a.call(printer2, path132)) {
|
|
20658
20644
|
doc2 = print_ignored_default(path132, options8);
|
|
20659
20645
|
} else if (embeds.has(node)) {
|
|
20660
20646
|
doc2 = embeds.get(node);
|
|
@@ -20735,7 +20721,7 @@ function dropRootParents(parents) {
|
|
|
20735
20721
|
let lastParentIndex = parents.length - 1;
|
|
20736
20722
|
for (; ; ) {
|
|
20737
20723
|
const parent = parents[lastParentIndex];
|
|
20738
|
-
if ((parent == null ?
|
|
20724
|
+
if ((parent == null ? void 0 : parent.type) === "Program" || (parent == null ? void 0 : parent.type) === "File") {
|
|
20739
20725
|
lastParentIndex--;
|
|
20740
20726
|
} else {
|
|
20741
20727
|
break;
|
|
@@ -20806,7 +20792,7 @@ function isSourceElement(opts, node, parentNode) {
|
|
|
20806
20792
|
case "espree":
|
|
20807
20793
|
case "meriyah":
|
|
20808
20794
|
case "__babel_estree":
|
|
20809
|
-
return isJsSourceElement(node.type, parentNode == null ?
|
|
20795
|
+
return isJsSourceElement(node.type, parentNode == null ? void 0 : parentNode.type);
|
|
20810
20796
|
case "json":
|
|
20811
20797
|
case "json5":
|
|
20812
20798
|
case "jsonc":
|
|
@@ -20868,7 +20854,7 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) {
|
|
|
20868
20854
|
const result = printDocToString2(doc2, opts);
|
|
20869
20855
|
if (addAlignmentSize > 0) {
|
|
20870
20856
|
const trimmed = result.formatted.trim();
|
|
20871
|
-
if (result.cursorNodeStart !==
|
|
20857
|
+
if (result.cursorNodeStart !== void 0) {
|
|
20872
20858
|
result.cursorNodeStart -= result.formatted.indexOf(trimmed);
|
|
20873
20859
|
}
|
|
20874
20860
|
result.formatted = trimmed + convertEndOfLineToChars2(opts.endOfLine);
|
|
@@ -21067,7 +21053,7 @@ var languages_evaluate_default4 = [{ "linguistLanguageId": 146, "name": "Angular
|
|
|
21067
21053
|
var CATEGORY_HTML = "HTML";
|
|
21068
21054
|
var options3 = { bracketSameLine: common_options_evaluate_default.bracketSameLine, htmlWhitespaceSensitivity: { category: CATEGORY_HTML, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: common_options_evaluate_default.singleAttributePerLine, vueIndentScriptAndStyle: { category: CATEGORY_HTML, type: "boolean", default: false, description: "Indent script and style tags in Vue files." } };
|
|
21069
21055
|
var options_default3 = options3;
|
|
21070
|
-
var languages_evaluate_default5 = [{ "linguistLanguageId": 183, "name": "JavaScript", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": ["js", "node"], "extensions": [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], "filenames": ["Jakefile"], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], "parsers": ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], "vscodeLanguageIds": ["javascript", "mongo"] }, { "linguistLanguageId": 183, "name": "Flow", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": [], "extensions": [".js.flow"], "filenames": [], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], "parsers": ["flow", "babel-flow"], "vscodeLanguageIds": ["javascript"] }, { "linguistLanguageId": 183, "name": "JSX", "type": "programming", "tmScope": "source.js.jsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "color":
|
|
21056
|
+
var languages_evaluate_default5 = [{ "linguistLanguageId": 183, "name": "JavaScript", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": ["js", "node"], "extensions": [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], "filenames": ["Jakefile"], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], "parsers": ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], "vscodeLanguageIds": ["javascript", "mongo"] }, { "linguistLanguageId": 183, "name": "Flow", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": [], "extensions": [".js.flow"], "filenames": [], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], "parsers": ["flow", "babel-flow"], "vscodeLanguageIds": ["javascript"] }, { "linguistLanguageId": 183, "name": "JSX", "type": "programming", "tmScope": "source.js.jsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "color": void 0, "aliases": void 0, "extensions": [".jsx"], "filenames": void 0, "interpreters": void 0, "parsers": ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], "vscodeLanguageIds": ["javascriptreact"], "group": "JavaScript" }, { "linguistLanguageId": 378, "name": "TypeScript", "type": "programming", "color": "#3178c6", "aliases": ["ts"], "interpreters": ["deno", "ts-node"], "extensions": [".ts", ".cts", ".mts"], "tmScope": "source.ts", "aceMode": "typescript", "codemirrorMode": "javascript", "codemirrorMimeType": "application/typescript", "parsers": ["typescript", "babel-ts"], "vscodeLanguageIds": ["typescript"] }, { "linguistLanguageId": 94901924, "name": "TSX", "type": "programming", "color": "#3178c6", "group": "TypeScript", "extensions": [".tsx"], "tmScope": "source.tsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "parsers": ["typescript", "babel-ts"], "vscodeLanguageIds": ["typescriptreact"] }];
|
|
21071
21057
|
var CATEGORY_JAVASCRIPT = "JavaScript";
|
|
21072
21058
|
var options4 = { arrowParens: { category: CATEGORY_JAVASCRIPT, type: "choice", default: "always", description: "Include parentheses around a sole arrow function parameter.", choices: [{ value: "always", description: "Always include parens. Example: `(x) => x`" }, { value: "avoid", description: "Omit parens when possible. Example: `x => x`" }] }, bracketSameLine: common_options_evaluate_default.bracketSameLine, bracketSpacing: common_options_evaluate_default.bracketSpacing, jsxBracketSameLine: { category: CATEGORY_JAVASCRIPT, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: CATEGORY_JAVASCRIPT, type: "boolean", default: true, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalTernaries: { category: CATEGORY_JAVASCRIPT, type: "boolean", default: false, description: "Use curious ternaries, with the question mark after the condition.", oppositeDescription: "Default behavior of ternaries; keep question marks on the same line as the consequent." }, singleQuote: common_options_evaluate_default.singleQuote, jsxSingleQuote: { category: CATEGORY_JAVASCRIPT, type: "boolean", default: false, description: "Use single quotes in JSX." }, quoteProps: { category: CATEGORY_JAVASCRIPT, type: "choice", default: "as-needed", description: "Change when properties in objects are quoted.", choices: [{ value: "as-needed", description: "Only add quotes around object properties where required." }, { value: "consistent", description: "If at least one property in an object requires quotes, quote all properties." }, { value: "preserve", description: "Respect the input use of quotes in object properties." }] }, trailingComma: { category: CATEGORY_JAVASCRIPT, type: "choice", default: "all", description: "Print trailing commas wherever possible when multi-line.", choices: [{ value: "all", description: "Trailing commas wherever possible (including function arguments)." }, { value: "es5", description: "Trailing commas where valid in ES5 (objects, arrays, etc.)" }, { value: "none", description: "No trailing commas." }] }, singleAttributePerLine: common_options_evaluate_default.singleAttributePerLine };
|
|
21073
21059
|
var options_default4 = options4;
|
|
@@ -21099,7 +21085,7 @@ function createParsersAndPrinters(modules) {
|
|
|
21099
21085
|
}
|
|
21100
21086
|
var options7 = { ...options_default, ...options_default2, ...options_default3, ...options_default4, ...options_default5, ...options_default6 };
|
|
21101
21087
|
var languages = [...languages_evaluate_default, ...languages_evaluate_default2, ...languages_evaluate_default3, ...languages_evaluate_default4, ...languages_evaluate_default5, ...languages_evaluate_default6, ...languages_evaluate_default7, ...languages_evaluate_default8];
|
|
21102
|
-
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-
|
|
21088
|
+
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-6J2XFAF2.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-FXKB67LX.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-P3PJ67NT.js'), parsers: ["babel", "babel-flow", "babel-ts", "__js_expression", "__ts_expression", "__vue_expression", "__vue_ts_expression", "__vue_event_binding", "__vue_ts_event_binding", "__babel_estree", "json", "json5", "jsonc", "json-stringify"] }, { importPlugin: () => import('./estree-YZZ76ZCZ.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-FLMB2WRS.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-QTYNZR7I.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-RJWZIGAD.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-CASQPPRX.js'), parsers: ["html", "angular", "vue", "lwc"], printers: ["html"] }, { importPlugin: () => import('./markdown-SVGJ3QZI.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-YDXWEWLV.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-BBOQTN3X.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-JGKMLQMS.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-C7WVEV2M.js'), parsers: ["yaml"], printers: ["yaml"] }]);
|
|
21103
21089
|
function loadBuiltinPlugins() {
|
|
21104
21090
|
return [builtin_plugins_proxy_exports];
|
|
21105
21091
|
}
|
|
@@ -21451,7 +21437,7 @@ async function generatePerActionDataFiles({
|
|
|
21451
21437
|
${entries.map(([key2, value]) => {
|
|
21452
21438
|
return `"${key2}": {
|
|
21453
21439
|
${stringify(value, {
|
|
21454
|
-
description: (value2, d) => value2 ? d(value2) :
|
|
21440
|
+
description: (value2, d) => value2 ? d(value2) : void 0,
|
|
21455
21441
|
// trick to remove undefineds
|
|
21456
21442
|
type: (type2) => {
|
|
21457
21443
|
if (typeof type2 === "string") {
|
|
@@ -21468,7 +21454,7 @@ async function generatePerActionDataFiles({
|
|
|
21468
21454
|
} else if (type2.type === "struct") {
|
|
21469
21455
|
return `ActionMetadata.DataType.Struct<${JSON.stringify(type2.struct)}>`;
|
|
21470
21456
|
}
|
|
21471
|
-
return
|
|
21457
|
+
return void 0;
|
|
21472
21458
|
}
|
|
21473
21459
|
})}
|
|
21474
21460
|
}`;
|
|
@@ -21519,7 +21505,7 @@ async function generatePerActionDataFiles({
|
|
|
21519
21505
|
}
|
|
21520
21506
|
}
|
|
21521
21507
|
}
|
|
21522
|
-
const imports = getObjectImports(referencedObjectDefs,
|
|
21508
|
+
const imports = getObjectImports(referencedObjectDefs, void 0, currentFilePath, true);
|
|
21523
21509
|
await fs9.writeFile(path19__default.join(rootOutDir, currentFilePath), await formatTs(`
|
|
21524
21510
|
import type {
|
|
21525
21511
|
ActionDefinition,
|
|
@@ -21579,12 +21565,12 @@ async function generatePerActionDataFiles({
|
|
|
21579
21565
|
signatures: ${action.shortApiName}.Signatures;
|
|
21580
21566
|
},
|
|
21581
21567
|
${stringify(fullActionDef, {
|
|
21582
|
-
"description": () =>
|
|
21583
|
-
"displayName": () =>
|
|
21584
|
-
"modifiedEntities": () =>
|
|
21585
|
-
"parameters": () =>
|
|
21586
|
-
"rid": () =>
|
|
21587
|
-
"status": () =>
|
|
21568
|
+
"description": () => void 0,
|
|
21569
|
+
"displayName": () => void 0,
|
|
21570
|
+
"modifiedEntities": () => void 0,
|
|
21571
|
+
"parameters": () => void 0,
|
|
21572
|
+
"rid": () => void 0,
|
|
21573
|
+
"status": () => void 0
|
|
21588
21574
|
})}
|
|
21589
21575
|
osdkMetadata: typeof $osdkMetadata;
|
|
21590
21576
|
}
|
|
@@ -21595,12 +21581,12 @@ async function generatePerActionDataFiles({
|
|
|
21595
21581
|
return ` export const ${action.shortApiName}: ${action.shortApiName} =
|
|
21596
21582
|
{
|
|
21597
21583
|
${stringify(fullActionDef, {
|
|
21598
|
-
"description": () =>
|
|
21599
|
-
"displayName": () =>
|
|
21600
|
-
"modifiedEntities": () =>
|
|
21601
|
-
"parameters": () =>
|
|
21602
|
-
"rid": () =>
|
|
21603
|
-
"status": () =>
|
|
21584
|
+
"description": () => void 0,
|
|
21585
|
+
"displayName": () => void 0,
|
|
21586
|
+
"modifiedEntities": () => void 0,
|
|
21587
|
+
"parameters": () => void 0,
|
|
21588
|
+
"rid": () => void 0,
|
|
21589
|
+
"status": () => void 0
|
|
21604
21590
|
})},
|
|
21605
21591
|
osdkMetadata: $osdkMetadata
|
|
21606
21592
|
}
|
|
@@ -21654,7 +21640,7 @@ function extractReferencedObjectsFromActionParameter(actionParameter) {
|
|
|
21654
21640
|
case "integer":
|
|
21655
21641
|
case "long":
|
|
21656
21642
|
case "timestamp":
|
|
21657
|
-
return
|
|
21643
|
+
return void 0;
|
|
21658
21644
|
}
|
|
21659
21645
|
}
|
|
21660
21646
|
|
|
@@ -21931,9 +21917,9 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
|
|
|
21931
21917
|
}
|
|
21932
21918
|
for (const apiName of Object.keys(parent.properties)) {
|
|
21933
21919
|
if (definition.properties[apiName] != null) {
|
|
21934
|
-
!(0, import_fast_deep_equal.default)(definition.properties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Interface ${definition.apiName} redefines property '${apiName}' from parent '${parent.apiName}' but the properties do not match`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() :
|
|
21920
|
+
!(0, import_fast_deep_equal.default)(definition.properties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Interface ${definition.apiName} redefines property '${apiName}' from parent '${parent.apiName}' but the properties do not match`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() : void 0;
|
|
21935
21921
|
} else if (mergedProperties[apiName] != null) {
|
|
21936
|
-
!(0, import_fast_deep_equal.default)(mergedProperties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Some interface defines a conflicting property '${apiName}' that does not match property from parent '${parent.apiName}'`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() :
|
|
21922
|
+
!(0, import_fast_deep_equal.default)(mergedProperties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Some interface defines a conflicting property '${apiName}' that does not match property from parent '${parent.apiName}'`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() : void 0;
|
|
21937
21923
|
}
|
|
21938
21924
|
mergedProperties[apiName] = parent.properties[apiName];
|
|
21939
21925
|
}
|
|
@@ -22211,9 +22197,9 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22211
22197
|
signature: ${query.shortApiName}.Signature;
|
|
22212
22198
|
},
|
|
22213
22199
|
${stringify(baseProps, {
|
|
22214
|
-
"description": () =>
|
|
22215
|
-
"displayName": () =>
|
|
22216
|
-
"rid": () =>
|
|
22200
|
+
"description": () => void 0,
|
|
22201
|
+
"displayName": () => void 0,
|
|
22202
|
+
"rid": () => void 0
|
|
22217
22203
|
})},
|
|
22218
22204
|
osdkMetadata: typeof $osdkMetadata;
|
|
22219
22205
|
}
|
|
@@ -22221,9 +22207,9 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22221
22207
|
|
|
22222
22208
|
export const ${query.shortApiName}: ${query.definitionIdentifier} = {
|
|
22223
22209
|
${stringify(baseProps, {
|
|
22224
|
-
"description": () =>
|
|
22225
|
-
"displayName": () =>
|
|
22226
|
-
"rid": () =>
|
|
22210
|
+
"description": () => void 0,
|
|
22211
|
+
"displayName": () => void 0,
|
|
22212
|
+
"rid": () => void 0
|
|
22227
22213
|
})},
|
|
22228
22214
|
osdkMetadata: $osdkMetadata
|
|
22229
22215
|
};
|
|
@@ -22482,7 +22468,7 @@ function getPackageJsonContents(name, version, dependencyVersions) {
|
|
|
22482
22468
|
};
|
|
22483
22469
|
}
|
|
22484
22470
|
async function writeJson(minimalFs, filePath, body) {
|
|
22485
|
-
return void await minimalFs.writeFile(filePath, JSON.stringify(body,
|
|
22471
|
+
return void await minimalFs.writeFile(filePath, JSON.stringify(body, void 0, 2) + "\n");
|
|
22486
22472
|
}
|
|
22487
22473
|
|
|
22488
22474
|
// ../shared.client.impl/build/esm/index.js
|
|
@@ -22517,7 +22503,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
|
|
|
22517
22503
|
|
|
22518
22504
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
22519
22505
|
var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
|
|
22520
|
-
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.26.0-beta.
|
|
22506
|
+
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.26.0-beta.20"}`;
|
|
22521
22507
|
async function handleGenerate(args) {
|
|
22522
22508
|
let success = false;
|
|
22523
22509
|
if (args.ontologyPath) {
|
|
@@ -22653,7 +22639,7 @@ async function generateClientSdk(ontology, args) {
|
|
|
22653
22639
|
}
|
|
22654
22640
|
return true;
|
|
22655
22641
|
}
|
|
22656
|
-
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.26.0-beta.
|
|
22642
|
+
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.26.0-beta.20", args.externalObjects, args.externalInterfaces);
|
|
22657
22643
|
return true;
|
|
22658
22644
|
} catch (e) {
|
|
22659
22645
|
consola.error("OSDK generation failed", e.message, e.stack);
|
|
@@ -22680,8 +22666,8 @@ async function getDependencyVersions() {
|
|
|
22680
22666
|
typescriptVersion,
|
|
22681
22667
|
tslibVersion,
|
|
22682
22668
|
areTheTypesWrongVersion,
|
|
22683
|
-
osdkApiVersion: `^${"2.2.0-beta.
|
|
22684
|
-
osdkClientVersion: `^${"2.2.0-beta.
|
|
22669
|
+
osdkApiVersion: `^${"2.2.0-beta.20"}`,
|
|
22670
|
+
osdkClientVersion: `^${"2.2.0-beta.20"}`,
|
|
22685
22671
|
osdkLegacyClientVersion
|
|
22686
22672
|
};
|
|
22687
22673
|
}
|
|
@@ -22720,5 +22706,5 @@ function createNormalFs() {
|
|
|
22720
22706
|
}
|
|
22721
22707
|
|
|
22722
22708
|
export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
|
|
22723
|
-
//# sourceMappingURL=handleGenerate-
|
|
22724
|
-
//# sourceMappingURL=handleGenerate-
|
|
22709
|
+
//# sourceMappingURL=handleGenerate-BGRQWN5E.js.map
|
|
22710
|
+
//# sourceMappingURL=handleGenerate-BGRQWN5E.js.map
|