@osdk/cli 0.25.0-beta.28 → 0.25.0-beta.29
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 +2 -0
- package/build/esm/{acorn-GGSYWLFF.js → acorn-3THQ32IG.js} +33 -33
- package/build/esm/acorn-3THQ32IG.js.map +1 -0
- package/build/esm/{angular-D6LAGEOG.js → angular-DSZBMSHE.js} +11 -11
- package/build/esm/angular-DSZBMSHE.js.map +1 -0
- package/build/esm/{babel-TC3NEMYB.js → babel-43DHTXSG.js} +67 -67
- package/build/esm/babel-43DHTXSG.js.map +1 -0
- package/build/esm/{chunk-JCWAELZ6.js → chunk-3XKQ6V5Q.js} +7 -7
- package/build/esm/chunk-3XKQ6V5Q.js.map +1 -0
- package/build/esm/{chunk-DIMPWQUF.js → chunk-6IVA4VLV.js} +9 -9
- package/build/esm/chunk-6IVA4VLV.js.map +1 -0
- package/build/esm/{chunk-JAQR3SRH.js → chunk-FIAQ2RO5.js} +3 -3
- package/build/esm/chunk-FIAQ2RO5.js.map +1 -0
- package/build/esm/{chunk-MGJFR5AW.js → chunk-JGBRVV7K.js} +4 -4
- package/build/esm/chunk-JGBRVV7K.js.map +1 -0
- package/build/esm/{chunk-E54HEYOJ.js → chunk-JH636PSZ.js} +7 -7
- package/build/esm/chunk-JH636PSZ.js.map +1 -0
- package/build/esm/{chunk-Z4H6TTTJ.js → chunk-SJPG2GZ2.js} +3 -3
- package/build/esm/chunk-SJPG2GZ2.js.map +1 -0
- package/build/esm/{chunk-4H3N4CJV.js → chunk-URLHMT4F.js} +3 -3
- package/build/esm/chunk-URLHMT4F.js.map +1 -0
- package/build/esm/{chunk-I7LYTQVK.js → chunk-WYMW27DT.js} +3 -3
- package/build/esm/chunk-WYMW27DT.js.map +1 -0
- package/build/esm/{chunk-Y5HCEM3R.js → chunk-XJ5RRZRI.js} +6 -6
- package/build/esm/chunk-XJ5RRZRI.js.map +1 -0
- package/build/esm/{estree-QPMWTFUN.js → estree-4V7XYVQ7.js} +102 -102
- package/build/esm/estree-4V7XYVQ7.js.map +1 -0
- package/build/esm/find-up-OWUYUY7M.js +4 -0
- package/build/esm/{find-up-PBGSBVUG.js.map → find-up-OWUYUY7M.js.map} +1 -1
- package/build/esm/{flow-CDQPIESV.js → flow-4VPTIRUU.js} +17 -17
- package/build/esm/flow-4VPTIRUU.js.map +1 -0
- package/build/esm/{glimmer-JUZCIWR7.js → glimmer-QRL5YBEU.js} +53 -53
- package/build/esm/glimmer-QRL5YBEU.js.map +1 -0
- package/build/esm/{graphql-KWMJAYKV.js → graphql-S4ZJ2ATB.js} +21 -21
- package/build/esm/graphql-S4ZJ2ATB.js.map +1 -0
- package/build/esm/{handleGenerate-6W5PVE5P.js → handleGenerate-LUVSUFBP.js} +268 -268
- package/build/esm/handleGenerate-LUVSUFBP.js.map +1 -0
- package/build/esm/{html-7V6C3ZHR.js → html-KBWPHUS5.js} +37 -37
- package/build/esm/html-KBWPHUS5.js.map +1 -0
- package/build/esm/index.js +23 -23
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-W3DK7BMS.js +4 -0
- package/build/esm/{loginFlow-B2X3LHY3.js.map → loginFlow-W3DK7BMS.js.map} +1 -1
- package/build/esm/{markdown-MKM5SFRH.js → markdown-AXMIWY2Z.js} +48 -48
- package/build/esm/markdown-AXMIWY2Z.js.map +1 -0
- package/build/esm/{meriyah-UKPEDBOV.js → meriyah-IQRPKR7T.js} +37 -37
- package/build/esm/meriyah-IQRPKR7T.js.map +1 -0
- package/build/esm/{postcss-LVALHG5I.js → postcss-G7ZXLDUB.js} +78 -78
- package/build/esm/postcss-G7ZXLDUB.js.map +1 -0
- package/build/esm/{siteDeployCommand-CNTZLYA6.js → siteDeployCommand-DVSTI6W2.js} +9 -9
- package/build/esm/siteDeployCommand-DVSTI6W2.js.map +1 -0
- package/build/esm/{typescript-UGRG6QDZ.js → typescript-M3AI4XS4.js} +667 -667
- package/build/esm/typescript-M3AI4XS4.js.map +1 -0
- package/build/esm/{versionDeleteCommand-BQV6AKVU.js → versionDeleteCommand-5EIQ6WXN.js} +7 -7
- package/build/esm/versionDeleteCommand-5EIQ6WXN.js.map +1 -0
- package/build/esm/{versionDeleteCommand-UJXNASZW.js → versionDeleteCommand-TR5BORHH.js} +7 -7
- package/build/esm/versionDeleteCommand-TR5BORHH.js.map +1 -0
- package/build/esm/{versionGetCommand-XJW6T3E6.js → versionGetCommand-Z53T6CWB.js} +6 -6
- package/build/esm/versionGetCommand-Z53T6CWB.js.map +1 -0
- package/build/esm/{versionInfoCommand-3TUDJQWJ.js → versionInfoCommand-DXHOC33J.js} +6 -6
- package/build/esm/versionInfoCommand-DXHOC33J.js.map +1 -0
- package/build/esm/{versionListCommand-BIFWLHRI.js → versionListCommand-H4CRCFWG.js} +6 -6
- package/build/esm/versionListCommand-H4CRCFWG.js.map +1 -0
- package/build/esm/{versionListCommand-7MLOQIJD.js → versionListCommand-SPXC5OVC.js} +6 -6
- package/build/esm/versionListCommand-SPXC5OVC.js.map +1 -0
- package/build/esm/{versionSetCommand-5LXXYIYD.js → versionSetCommand-EWXN2K5U.js} +6 -6
- package/build/esm/versionSetCommand-EWXN2K5U.js.map +1 -0
- package/build/esm/{versionUnsetCommand-KEWFYR3T.js → versionUnsetCommand-ZKOVHIVC.js} +7 -7
- package/build/esm/versionUnsetCommand-ZKOVHIVC.js.map +1 -0
- package/build/esm/{widgetSetDeployCommand-4LXTPAYW.js → widgetSetDeployCommand-HMKPO762.js} +7 -7
- package/build/esm/widgetSetDeployCommand-HMKPO762.js.map +1 -0
- package/build/esm/{yaml-OB6PMD2Y.js → yaml-4XSVHWM4.js} +49 -49
- package/build/esm/yaml-4XSVHWM4.js.map +1 -0
- package/package.json +6 -6
- package/build/esm/acorn-GGSYWLFF.js.map +0 -1
- package/build/esm/angular-D6LAGEOG.js.map +0 -1
- package/build/esm/babel-TC3NEMYB.js.map +0 -1
- package/build/esm/chunk-4H3N4CJV.js.map +0 -1
- package/build/esm/chunk-DIMPWQUF.js.map +0 -1
- package/build/esm/chunk-E54HEYOJ.js.map +0 -1
- package/build/esm/chunk-I7LYTQVK.js.map +0 -1
- package/build/esm/chunk-JAQR3SRH.js.map +0 -1
- package/build/esm/chunk-JCWAELZ6.js.map +0 -1
- package/build/esm/chunk-MGJFR5AW.js.map +0 -1
- package/build/esm/chunk-Y5HCEM3R.js.map +0 -1
- package/build/esm/chunk-Z4H6TTTJ.js.map +0 -1
- package/build/esm/estree-QPMWTFUN.js.map +0 -1
- package/build/esm/find-up-PBGSBVUG.js +0 -4
- package/build/esm/flow-CDQPIESV.js.map +0 -1
- package/build/esm/glimmer-JUZCIWR7.js.map +0 -1
- package/build/esm/graphql-KWMJAYKV.js.map +0 -1
- package/build/esm/handleGenerate-6W5PVE5P.js.map +0 -1
- package/build/esm/html-7V6C3ZHR.js.map +0 -1
- package/build/esm/loginFlow-B2X3LHY3.js +0 -4
- package/build/esm/markdown-MKM5SFRH.js.map +0 -1
- package/build/esm/meriyah-UKPEDBOV.js.map +0 -1
- package/build/esm/postcss-LVALHG5I.js.map +0 -1
- package/build/esm/siteDeployCommand-CNTZLYA6.js.map +0 -1
- package/build/esm/typescript-UGRG6QDZ.js.map +0 -1
- package/build/esm/versionDeleteCommand-BQV6AKVU.js.map +0 -1
- package/build/esm/versionDeleteCommand-UJXNASZW.js.map +0 -1
- package/build/esm/versionGetCommand-XJW6T3E6.js.map +0 -1
- package/build/esm/versionInfoCommand-3TUDJQWJ.js.map +0 -1
- package/build/esm/versionListCommand-7MLOQIJD.js.map +0 -1
- package/build/esm/versionListCommand-BIFWLHRI.js.map +0 -1
- package/build/esm/versionSetCommand-5LXXYIYD.js.map +0 -1
- package/build/esm/versionUnsetCommand-KEWFYR3T.js.map +0 -1
- package/build/esm/widgetSetDeployCommand-4LXTPAYW.js.map +0 -1
- package/build/esm/yaml-OB6PMD2Y.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-6IVA4VLV.js';
|
|
2
|
+
import { YargsCheckError, ExitProcessError } from './chunk-URLHMT4F.js';
|
|
3
|
+
import { findUp } from './chunk-XJ5RRZRI.js';
|
|
4
|
+
import { invokeLoginFlow } from './chunk-FIAQ2RO5.js';
|
|
5
|
+
import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-JGBRVV7K.js';
|
|
6
6
|
import * as fs8 from 'fs';
|
|
7
7
|
import fs8__default, { realpathSync, statSync, Stats } from 'fs';
|
|
8
8
|
import * as path9 from 'path';
|
|
@@ -110,7 +110,7 @@ var EnhancedBase = class extends AbstractImportable {
|
|
|
110
110
|
};
|
|
111
111
|
function extractNamespace(fqApiName) {
|
|
112
112
|
const last = fqApiName.lastIndexOf(".");
|
|
113
|
-
if (last === -1) return [
|
|
113
|
+
if (last === -1) return [undefined, fqApiName];
|
|
114
114
|
return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -154,7 +154,7 @@ init_esm_shims();
|
|
|
154
154
|
function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true) {
|
|
155
155
|
const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType);
|
|
156
156
|
if (sdkPropDefinition == null) {
|
|
157
|
-
return
|
|
157
|
+
return undefined;
|
|
158
158
|
}
|
|
159
159
|
switch (input.dataType.type) {
|
|
160
160
|
case "integer":
|
|
@@ -195,12 +195,12 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true) {
|
|
|
195
195
|
}
|
|
196
196
|
case "cipherText": {
|
|
197
197
|
consola.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);
|
|
198
|
-
return
|
|
198
|
+
return undefined;
|
|
199
199
|
}
|
|
200
200
|
default:
|
|
201
201
|
input.dataType;
|
|
202
202
|
consola.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);
|
|
203
|
-
return
|
|
203
|
+
return undefined;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
function objectPropertyTypeToSdkPropertyDefinition(propertyType) {
|
|
@@ -240,11 +240,11 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType) {
|
|
|
240
240
|
}
|
|
241
241
|
case "cipherText": {
|
|
242
242
|
consola.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);
|
|
243
|
-
return
|
|
243
|
+
return undefined;
|
|
244
244
|
}
|
|
245
245
|
default: {
|
|
246
246
|
consola.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);
|
|
247
|
-
return
|
|
247
|
+
return undefined;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -421,7 +421,7 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
421
421
|
|
|
422
422
|
// ../generator-converters/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.js
|
|
423
423
|
function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2) {
|
|
424
|
-
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] ===
|
|
424
|
+
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] === undefined) {
|
|
425
425
|
throw new Error(`Primary key ${objectTypeWithLink.objectType.primaryKey} not found in ${objectTypeWithLink.objectType.apiName}`);
|
|
426
426
|
}
|
|
427
427
|
if (objectTypeWithLink.implementsInterfaces2 == null && objectTypeWithLink.implementsInterfaces != null) {
|
|
@@ -444,7 +444,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2) {
|
|
|
444
444
|
implements: objectTypeWithLink.implementsInterfaces,
|
|
445
445
|
interfaceMap,
|
|
446
446
|
inverseInterfaceMap: Object.fromEntries(Object.entries(interfaceMap).map(([interfaceApiName, props]) => [interfaceApiName, invertProps(props)])),
|
|
447
|
-
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon :
|
|
447
|
+
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon : undefined,
|
|
448
448
|
titleProperty: objectTypeWithLink.objectType.titleProperty,
|
|
449
449
|
displayName: objectTypeWithLink.objectType.displayName,
|
|
450
450
|
pluralDisplayName: objectTypeWithLink.objectType.pluralDisplayName,
|
|
@@ -454,7 +454,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2) {
|
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
456
|
function invertProps(a) {
|
|
457
|
-
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) :
|
|
457
|
+
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) : undefined;
|
|
458
458
|
}
|
|
459
459
|
var supportedIconTypes = ["blueprint"];
|
|
460
460
|
|
|
@@ -619,7 +619,7 @@ function wireQueryParameterV2ToQueryParameterDefinition(parameter) {
|
|
|
619
619
|
// ../generator/build/esm/util/deleteUndefineds.js
|
|
620
620
|
init_esm_shims();
|
|
621
621
|
function deleteUndefineds(obj) {
|
|
622
|
-
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !==
|
|
622
|
+
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined));
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
// ../generator/build/esm/GenerateContext/EnhancedInterfaceType.js
|
|
@@ -911,7 +911,7 @@ function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
911
911
|
if (!docType) {
|
|
912
912
|
throw new invalid_doc_error_default(doc2);
|
|
913
913
|
}
|
|
914
|
-
if ((onEnter == null ?
|
|
914
|
+
if ((onEnter == null ? undefined : onEnter(doc2)) === false) {
|
|
915
915
|
continue;
|
|
916
916
|
}
|
|
917
917
|
switch (docType) {
|
|
@@ -1086,7 +1086,7 @@ function label(label2, contents) {
|
|
|
1086
1086
|
} : contents;
|
|
1087
1087
|
}
|
|
1088
1088
|
var at = (isOptionalObject, object, index) => {
|
|
1089
|
-
if (isOptionalObject && (object ===
|
|
1089
|
+
if (isOptionalObject && (object === undefined || object === null)) {
|
|
1090
1090
|
return;
|
|
1091
1091
|
}
|
|
1092
1092
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -1096,7 +1096,7 @@ var at = (isOptionalObject, object, index) => {
|
|
|
1096
1096
|
};
|
|
1097
1097
|
var at_default = at;
|
|
1098
1098
|
var stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {
|
|
1099
|
-
if (isOptionalObject && (original ===
|
|
1099
|
+
if (isOptionalObject && (original === undefined || original === null)) {
|
|
1100
1100
|
return;
|
|
1101
1101
|
}
|
|
1102
1102
|
if (original.replaceAll) {
|
|
@@ -1235,7 +1235,7 @@ function findInDoc(doc, fn, defaultValue) {
|
|
|
1235
1235
|
return false;
|
|
1236
1236
|
}
|
|
1237
1237
|
const maybeResult = fn(doc2);
|
|
1238
|
-
if (maybeResult !==
|
|
1238
|
+
if (maybeResult !== undefined) {
|
|
1239
1239
|
shouldSkipFurtherProcessing = true;
|
|
1240
1240
|
result = maybeResult;
|
|
1241
1241
|
}
|
|
@@ -2129,7 +2129,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
2129
2129
|
};
|
|
2130
2130
|
var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
2131
2131
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2132
|
-
exports.splitWhen = exports.flatten =
|
|
2132
|
+
exports.splitWhen = exports.flatten = undefined;
|
|
2133
2133
|
function flatten(items) {
|
|
2134
2134
|
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
2135
2135
|
}
|
|
@@ -2151,7 +2151,7 @@ var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(ex
|
|
|
2151
2151
|
} });
|
|
2152
2152
|
var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
2153
2153
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2154
|
-
exports.isEnoentCodeError =
|
|
2154
|
+
exports.isEnoentCodeError = undefined;
|
|
2155
2155
|
function isEnoentCodeError(error) {
|
|
2156
2156
|
return error.code === "ENOENT";
|
|
2157
2157
|
}
|
|
@@ -2159,7 +2159,7 @@ var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(ex
|
|
|
2159
2159
|
} });
|
|
2160
2160
|
var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
2161
2161
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2162
|
-
exports.createDirentFromStats =
|
|
2162
|
+
exports.createDirentFromStats = undefined;
|
|
2163
2163
|
var DirentFromStats = class {
|
|
2164
2164
|
constructor(name, stats) {
|
|
2165
2165
|
this.name = name;
|
|
@@ -2179,7 +2179,7 @@ var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports)
|
|
|
2179
2179
|
} });
|
|
2180
2180
|
var require_path = __commonJS2({ "node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
2181
2181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2182
|
-
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify =
|
|
2182
|
+
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = undefined;
|
|
2183
2183
|
var os2 = __require("os");
|
|
2184
2184
|
var path132 = __require("path");
|
|
2185
2185
|
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
@@ -2452,7 +2452,7 @@ var require_utils = __commonJS2({ "node_modules/braces/lib/utils.js"(exports) {
|
|
|
2452
2452
|
const flat = (arr) => {
|
|
2453
2453
|
for (let i2 = 0; i2 < arr.length; i2++) {
|
|
2454
2454
|
let ele = arr[i2];
|
|
2455
|
-
Array.isArray(ele) ? flat(ele) : ele !==
|
|
2455
|
+
Array.isArray(ele) ? flat(ele) : ele !== undefined && result.push(ele);
|
|
2456
2456
|
}
|
|
2457
2457
|
return result;
|
|
2458
2458
|
};
|
|
@@ -2503,7 +2503,7 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2503
2503
|
if (isNumber(min) === false) {
|
|
2504
2504
|
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
2505
2505
|
}
|
|
2506
|
-
if (max ===
|
|
2506
|
+
if (max === undefined || min === max) {
|
|
2507
2507
|
return String(min);
|
|
2508
2508
|
}
|
|
2509
2509
|
if (isNumber(max) === false) {
|
|
@@ -2561,9 +2561,9 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2561
2561
|
return state.result;
|
|
2562
2562
|
};
|
|
2563
2563
|
function collatePatterns(neg, pos2, options8) {
|
|
2564
|
-
let onlyNegative = filterPatterns(neg, pos2, "-", false)
|
|
2565
|
-
let onlyPositive = filterPatterns(pos2, neg, "", false)
|
|
2566
|
-
let intersected = filterPatterns(neg, pos2, "-?", true)
|
|
2564
|
+
let onlyNegative = filterPatterns(neg, pos2, "-", false);
|
|
2565
|
+
let onlyPositive = filterPatterns(pos2, neg, "", false);
|
|
2566
|
+
let intersected = filterPatterns(neg, pos2, "-?", true);
|
|
2567
2567
|
let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
|
|
2568
2568
|
return subpatterns.join("|");
|
|
2569
2569
|
}
|
|
@@ -2965,7 +2965,7 @@ var require_expand = __commonJS2({ "node_modules/braces/lib/expand.js"(exports,
|
|
|
2965
2965
|
return utils2.flatten(result);
|
|
2966
2966
|
};
|
|
2967
2967
|
var expand = (ast, options8 = {}) => {
|
|
2968
|
-
let rangeLimit = options8.rangeLimit ===
|
|
2968
|
+
let rangeLimit = options8.rangeLimit === undefined ? 1e3 : options8.rangeLimit;
|
|
2969
2969
|
let walk = (node, parent = {}) => {
|
|
2970
2970
|
node.queue = [];
|
|
2971
2971
|
let p = parent;
|
|
@@ -4473,7 +4473,7 @@ var require_parse2 = __commonJS2({ "node_modules/picomatch/lib/parse.js"(exports
|
|
|
4473
4473
|
continue;
|
|
4474
4474
|
}
|
|
4475
4475
|
if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
|
|
4476
|
-
const end = rest[1] !==
|
|
4476
|
+
const end = rest[1] !== undefined ? "|$" : "";
|
|
4477
4477
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
4478
4478
|
prior.output = `(?:${prior.output}`;
|
|
4479
4479
|
prev.type = "globstar";
|
|
@@ -4886,7 +4886,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
4886
4886
|
let regex = picomatch.makeRe(String(glob), { ...options8, capture: true });
|
|
4887
4887
|
let match = regex.exec(posix ? utils2.toPosixSlashes(input) : input);
|
|
4888
4888
|
if (match) {
|
|
4889
|
-
return match.slice(1).map((v) => v ===
|
|
4889
|
+
return match.slice(1).map((v) => v === undefined ? "" : v);
|
|
4890
4890
|
}
|
|
4891
4891
|
};
|
|
4892
4892
|
micromatch2.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -4915,7 +4915,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
4915
4915
|
} });
|
|
4916
4916
|
var require_pattern = __commonJS2({ "node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
4917
4917
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4918
|
-
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 =
|
|
4918
|
+
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 = undefined;
|
|
4919
4919
|
var path132 = __require("path");
|
|
4920
4920
|
var globParent = require_glob_parent();
|
|
4921
4921
|
var micromatch2 = require_micromatch();
|
|
@@ -5172,7 +5172,7 @@ var require_merge2 = __commonJS2({ "node_modules/merge2/index.js"(exports, modul
|
|
|
5172
5172
|
} });
|
|
5173
5173
|
var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
5174
5174
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5175
|
-
exports.merge =
|
|
5175
|
+
exports.merge = undefined;
|
|
5176
5176
|
var merge2 = require_merge2();
|
|
5177
5177
|
function merge3(streams) {
|
|
5178
5178
|
const mergedStream = merge2(streams);
|
|
@@ -5190,7 +5190,7 @@ var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(
|
|
|
5190
5190
|
} });
|
|
5191
5191
|
var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
5192
5192
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5193
|
-
exports.isEmpty = exports.isString =
|
|
5193
|
+
exports.isEmpty = exports.isString = undefined;
|
|
5194
5194
|
function isString(input) {
|
|
5195
5195
|
return typeof input === "string";
|
|
5196
5196
|
}
|
|
@@ -5202,7 +5202,7 @@ var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(
|
|
|
5202
5202
|
} });
|
|
5203
5203
|
var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
5204
5204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5205
|
-
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array =
|
|
5205
|
+
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = undefined;
|
|
5206
5206
|
var array2 = require_array();
|
|
5207
5207
|
exports.array = array2;
|
|
5208
5208
|
var errno = require_errno();
|
|
@@ -5220,7 +5220,7 @@ var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(e
|
|
|
5220
5220
|
} });
|
|
5221
5221
|
var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
5222
5222
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5223
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate =
|
|
5223
|
+
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = undefined;
|
|
5224
5224
|
var utils2 = require_utils3();
|
|
5225
5225
|
function generate(input, settings) {
|
|
5226
5226
|
const patterns = processPatterns(input, settings);
|
|
@@ -5305,7 +5305,7 @@ var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"
|
|
|
5305
5305
|
} });
|
|
5306
5306
|
var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
5307
5307
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5308
|
-
exports.read =
|
|
5308
|
+
exports.read = undefined;
|
|
5309
5309
|
function read3(path132, settings, callback) {
|
|
5310
5310
|
settings.fs.lstat(path132, (lstatError, lstat) => {
|
|
5311
5311
|
if (lstatError !== null) {
|
|
@@ -5342,7 +5342,7 @@ var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/a
|
|
|
5342
5342
|
} });
|
|
5343
5343
|
var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
5344
5344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5345
|
-
exports.read =
|
|
5345
|
+
exports.read = undefined;
|
|
5346
5346
|
function read3(path132, settings) {
|
|
5347
5347
|
const lstat = settings.fs.lstatSync(path132);
|
|
5348
5348
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
@@ -5365,11 +5365,11 @@ var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sy
|
|
|
5365
5365
|
} });
|
|
5366
5366
|
var require_fs2 = __commonJS2({ "node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
5367
5367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5368
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5368
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = undefined;
|
|
5369
5369
|
var fs72 = __require("fs");
|
|
5370
5370
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync };
|
|
5371
5371
|
function createFileSystemAdapter(fsMethods) {
|
|
5372
|
-
if (fsMethods ===
|
|
5372
|
+
if (fsMethods === undefined) {
|
|
5373
5373
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5374
5374
|
}
|
|
5375
5375
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5388,14 +5388,14 @@ var require_settings = __commonJS2({ "node_modules/@nodelib/fs.stat/out/settings
|
|
|
5388
5388
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
5389
5389
|
}
|
|
5390
5390
|
_getValue(option, value) {
|
|
5391
|
-
return option !== null && option !==
|
|
5391
|
+
return option !== null && option !== undefined ? option : value;
|
|
5392
5392
|
}
|
|
5393
5393
|
};
|
|
5394
5394
|
exports.default = Settings;
|
|
5395
5395
|
} });
|
|
5396
5396
|
var require_out = __commonJS2({ "node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
5397
5397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5398
|
-
exports.statSync = exports.stat = exports.Settings =
|
|
5398
|
+
exports.statSync = exports.stat = exports.Settings = undefined;
|
|
5399
5399
|
var async = require_async();
|
|
5400
5400
|
var sync = require_sync();
|
|
5401
5401
|
var settings_1 = require_settings();
|
|
@@ -5474,9 +5474,9 @@ var require_run_parallel = __commonJS2({ "node_modules/run-parallel/index.js"(ex
|
|
|
5474
5474
|
} });
|
|
5475
5475
|
var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
5476
5476
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5477
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES =
|
|
5477
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = undefined;
|
|
5478
5478
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
5479
|
-
if (NODE_PROCESS_VERSION_PARTS[0] ===
|
|
5479
|
+
if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) {
|
|
5480
5480
|
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
5481
5481
|
}
|
|
5482
5482
|
var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
@@ -5489,7 +5489,7 @@ var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/con
|
|
|
5489
5489
|
} });
|
|
5490
5490
|
var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
5491
5491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5492
|
-
exports.createDirentFromStats =
|
|
5492
|
+
exports.createDirentFromStats = undefined;
|
|
5493
5493
|
var DirentFromStats = class {
|
|
5494
5494
|
constructor(name, stats) {
|
|
5495
5495
|
this.name = name;
|
|
@@ -5509,13 +5509,13 @@ var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.j
|
|
|
5509
5509
|
} });
|
|
5510
5510
|
var require_utils4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5511
5511
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5512
|
-
exports.fs =
|
|
5512
|
+
exports.fs = undefined;
|
|
5513
5513
|
var fs72 = require_fs3();
|
|
5514
5514
|
exports.fs = fs72;
|
|
5515
5515
|
} });
|
|
5516
5516
|
var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
5517
5517
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5518
|
-
exports.joinPathSegments =
|
|
5518
|
+
exports.joinPathSegments = undefined;
|
|
5519
5519
|
function joinPathSegments(a, b, separator) {
|
|
5520
5520
|
if (a.endsWith(separator)) {
|
|
5521
5521
|
return a + b;
|
|
@@ -5526,7 +5526,7 @@ var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5526
5526
|
} });
|
|
5527
5527
|
var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
5528
5528
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5529
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5529
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
|
|
5530
5530
|
var fsStat = require_out();
|
|
5531
5531
|
var rpl = require_run_parallel();
|
|
5532
5532
|
var constants_1 = require_constants3();
|
|
@@ -5623,7 +5623,7 @@ var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5623
5623
|
} });
|
|
5624
5624
|
var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
5625
5625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5626
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5626
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
|
|
5627
5627
|
var fsStat = require_out();
|
|
5628
5628
|
var constants_1 = require_constants3();
|
|
5629
5629
|
var utils2 = require_utils4();
|
|
@@ -5669,11 +5669,11 @@ var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
5669
5669
|
} });
|
|
5670
5670
|
var require_fs4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5671
5671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5672
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5672
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = undefined;
|
|
5673
5673
|
var fs72 = __require("fs");
|
|
5674
5674
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync, readdir: fs72.readdir, readdirSync: fs72.readdirSync };
|
|
5675
5675
|
function createFileSystemAdapter(fsMethods) {
|
|
5676
|
-
if (fsMethods ===
|
|
5676
|
+
if (fsMethods === undefined) {
|
|
5677
5677
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5678
5678
|
}
|
|
5679
5679
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5696,14 +5696,14 @@ var require_settings2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/sett
|
|
|
5696
5696
|
this.fsStatSettings = new fsStat.Settings({ followSymbolicLink: this.followSymbolicLinks, fs: this.fs, throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink });
|
|
5697
5697
|
}
|
|
5698
5698
|
_getValue(option, value) {
|
|
5699
|
-
return option !== null && option !==
|
|
5699
|
+
return option !== null && option !== undefined ? option : value;
|
|
5700
5700
|
}
|
|
5701
5701
|
};
|
|
5702
5702
|
exports.default = Settings;
|
|
5703
5703
|
} });
|
|
5704
5704
|
var require_out2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5705
5705
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5706
|
-
exports.Settings = exports.scandirSync = exports.scandir =
|
|
5706
|
+
exports.Settings = exports.scandirSync = exports.scandir = undefined;
|
|
5707
5707
|
var async = require_async2();
|
|
5708
5708
|
var sync = require_sync2();
|
|
5709
5709
|
var settings_1 = require_settings2();
|
|
@@ -5971,7 +5971,7 @@ var require_queue = __commonJS2({ "node_modules/fastq/queue.js"(exports, module)
|
|
|
5971
5971
|
} });
|
|
5972
5972
|
var require_common2 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
5973
5973
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5974
|
-
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError =
|
|
5974
|
+
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = undefined;
|
|
5975
5975
|
function isFatalError(settings, error) {
|
|
5976
5976
|
if (settings.errorFilter === null) {
|
|
5977
5977
|
return true;
|
|
@@ -6070,13 +6070,13 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6070
6070
|
_worker(item, done) {
|
|
6071
6071
|
this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => {
|
|
6072
6072
|
if (error !== null) {
|
|
6073
|
-
done(error,
|
|
6073
|
+
done(error, undefined);
|
|
6074
6074
|
return;
|
|
6075
6075
|
}
|
|
6076
6076
|
for (const entry of entries) {
|
|
6077
6077
|
this._handleEntry(entry, item.base);
|
|
6078
6078
|
}
|
|
6079
|
-
done(null,
|
|
6079
|
+
done(null, undefined);
|
|
6080
6080
|
});
|
|
6081
6081
|
}
|
|
6082
6082
|
_handleError(error) {
|
|
@@ -6092,14 +6092,14 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6092
6092
|
return;
|
|
6093
6093
|
}
|
|
6094
6094
|
const fullpath = entry.path;
|
|
6095
|
-
if (base !==
|
|
6095
|
+
if (base !== undefined) {
|
|
6096
6096
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6097
6097
|
}
|
|
6098
6098
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6099
6099
|
this._emitEntry(entry);
|
|
6100
6100
|
}
|
|
6101
6101
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6102
|
-
this._pushToQueue(fullpath, base ===
|
|
6102
|
+
this._pushToQueue(fullpath, base === undefined ? undefined : entry.path);
|
|
6103
6103
|
}
|
|
6104
6104
|
}
|
|
6105
6105
|
_emitEntry(entry) {
|
|
@@ -6214,14 +6214,14 @@ var require_sync3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/syn
|
|
|
6214
6214
|
}
|
|
6215
6215
|
_handleEntry(entry, base) {
|
|
6216
6216
|
const fullpath = entry.path;
|
|
6217
|
-
if (base !==
|
|
6217
|
+
if (base !== undefined) {
|
|
6218
6218
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6219
6219
|
}
|
|
6220
6220
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6221
6221
|
this._pushToStorage(entry);
|
|
6222
6222
|
}
|
|
6223
6223
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6224
|
-
this._pushToQueue(fullpath, base ===
|
|
6224
|
+
this._pushToQueue(fullpath, base === undefined ? undefined : entry.path);
|
|
6225
6225
|
}
|
|
6226
6226
|
}
|
|
6227
6227
|
_pushToStorage(entry) {
|
|
@@ -6252,7 +6252,7 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6252
6252
|
var Settings = class {
|
|
6253
6253
|
constructor(_options = {}) {
|
|
6254
6254
|
this._options = _options;
|
|
6255
|
-
this.basePath = this._getValue(this._options.basePath,
|
|
6255
|
+
this.basePath = this._getValue(this._options.basePath, undefined);
|
|
6256
6256
|
this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
|
|
6257
6257
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
6258
6258
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
@@ -6261,14 +6261,14 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6261
6261
|
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 });
|
|
6262
6262
|
}
|
|
6263
6263
|
_getValue(option, value) {
|
|
6264
|
-
return option !== null && option !==
|
|
6264
|
+
return option !== null && option !== undefined ? option : value;
|
|
6265
6265
|
}
|
|
6266
6266
|
};
|
|
6267
6267
|
exports.default = Settings;
|
|
6268
6268
|
} });
|
|
6269
6269
|
var require_out3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
6270
6270
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6271
|
-
exports.Settings = exports.walkStream = exports.walkSync = exports.walk =
|
|
6271
|
+
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = undefined;
|
|
6272
6272
|
var async_1 = require_async4();
|
|
6273
6273
|
var stream_1 = require_stream2();
|
|
6274
6274
|
var sync_1 = require_sync4();
|
|
@@ -6575,7 +6575,7 @@ var require_entry = __commonJS2({ "node_modules/fast-glob/out/providers/filters/
|
|
|
6575
6575
|
return this.index.has(filepath);
|
|
6576
6576
|
}
|
|
6577
6577
|
_createIndexRecord(filepath) {
|
|
6578
|
-
this.index.set(filepath,
|
|
6578
|
+
this.index.set(filepath, undefined);
|
|
6579
6579
|
}
|
|
6580
6580
|
_onlyFileFilter(entry) {
|
|
6581
6581
|
return this._settings.onlyFiles && !entry.dirent.isFile();
|
|
@@ -6793,7 +6793,7 @@ var require_sync6 = __commonJS2({ "node_modules/fast-glob/out/providers/sync.js"
|
|
|
6793
6793
|
} });
|
|
6794
6794
|
var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(exports) {
|
|
6795
6795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6796
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER =
|
|
6796
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = undefined;
|
|
6797
6797
|
var fs72 = __require("fs");
|
|
6798
6798
|
var os2 = __require("os");
|
|
6799
6799
|
var CPU_COUNT = Math.max(os2.cpus().length, 1);
|
|
@@ -6831,7 +6831,7 @@ var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(e
|
|
|
6831
6831
|
this.ignore = [].concat(this.ignore);
|
|
6832
6832
|
}
|
|
6833
6833
|
_getValue(option, value) {
|
|
6834
|
-
return option ===
|
|
6834
|
+
return option === undefined ? value : option;
|
|
6835
6835
|
}
|
|
6836
6836
|
_getFileSystemMethods(methods = {}) {
|
|
6837
6837
|
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
@@ -6916,7 +6916,7 @@ var require_out4 = __commonJS2({ "node_modules/fast-glob/out/index.js"(exports,
|
|
|
6916
6916
|
}
|
|
6917
6917
|
win322.convertPathToPattern = convertPathToPattern2;
|
|
6918
6918
|
})(FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
6919
|
-
})(FastGlob
|
|
6919
|
+
})(FastGlob);
|
|
6920
6920
|
function getWorks(source2, _Provider, options8) {
|
|
6921
6921
|
const patterns = [].concat(source2);
|
|
6922
6922
|
const settings = new settings_1.default(options8);
|
|
@@ -6971,8 +6971,8 @@ var require_re = __commonJS2({ "node_modules/semver/internal/re.js"(exports, mod
|
|
|
6971
6971
|
debug(name, index, value);
|
|
6972
6972
|
t[name] = index;
|
|
6973
6973
|
src[index] = value;
|
|
6974
|
-
re[index] = new RegExp(value, isGlobal ? "g" :
|
|
6975
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" :
|
|
6974
|
+
re[index] = new RegExp(value, isGlobal ? "g" : undefined);
|
|
6975
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
6976
6976
|
};
|
|
6977
6977
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
6978
6978
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
@@ -7149,11 +7149,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7149
7149
|
const a = this.prerelease[i2];
|
|
7150
7150
|
const b = other.prerelease[i2];
|
|
7151
7151
|
debug("prerelease compare", i2, a, b);
|
|
7152
|
-
if (a ===
|
|
7152
|
+
if (a === undefined && b === undefined) {
|
|
7153
7153
|
return 0;
|
|
7154
|
-
} else if (b ===
|
|
7154
|
+
} else if (b === undefined) {
|
|
7155
7155
|
return 1;
|
|
7156
|
-
} else if (a ===
|
|
7156
|
+
} else if (a === undefined) {
|
|
7157
7157
|
return -1;
|
|
7158
7158
|
} else if (a === b) {
|
|
7159
7159
|
continue;
|
|
@@ -7171,11 +7171,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7171
7171
|
const a = this.build[i2];
|
|
7172
7172
|
const b = other.build[i2];
|
|
7173
7173
|
debug("prerelease compare", i2, a, b);
|
|
7174
|
-
if (a ===
|
|
7174
|
+
if (a === undefined && b === undefined) {
|
|
7175
7175
|
return 0;
|
|
7176
|
-
} else if (b ===
|
|
7176
|
+
} else if (b === undefined) {
|
|
7177
7177
|
return 1;
|
|
7178
|
-
} else if (a ===
|
|
7178
|
+
} else if (a === undefined) {
|
|
7179
7179
|
return -1;
|
|
7180
7180
|
} else if (a === b) {
|
|
7181
7181
|
continue;
|
|
@@ -7473,7 +7473,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7473
7473
|
};
|
|
7474
7474
|
Yallist.prototype.pop = function() {
|
|
7475
7475
|
if (!this.tail) {
|
|
7476
|
-
return
|
|
7476
|
+
return undefined;
|
|
7477
7477
|
}
|
|
7478
7478
|
var res = this.tail.value;
|
|
7479
7479
|
this.tail = this.tail.prev;
|
|
@@ -7487,7 +7487,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7487
7487
|
};
|
|
7488
7488
|
Yallist.prototype.shift = function() {
|
|
7489
7489
|
if (!this.head) {
|
|
7490
|
-
return
|
|
7490
|
+
return undefined;
|
|
7491
7491
|
}
|
|
7492
7492
|
var res = this.head.value;
|
|
7493
7493
|
this.head = this.head.next;
|
|
@@ -7808,7 +7808,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
7808
7808
|
if (isStale(self, hit)) {
|
|
7809
7809
|
del(self, node);
|
|
7810
7810
|
if (!self[ALLOW_STALE]) {
|
|
7811
|
-
hit =
|
|
7811
|
+
hit = undefined;
|
|
7812
7812
|
}
|
|
7813
7813
|
}
|
|
7814
7814
|
if (hit) {
|
|
@@ -8007,7 +8007,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
8007
8007
|
var hit = node.value;
|
|
8008
8008
|
if (isStale(self, hit)) {
|
|
8009
8009
|
del(self, node);
|
|
8010
|
-
if (!self[ALLOW_STALE]) hit =
|
|
8010
|
+
if (!self[ALLOW_STALE]) hit = undefined;
|
|
8011
8011
|
} else {
|
|
8012
8012
|
if (doUse) {
|
|
8013
8013
|
self[LRU_LIST].unshiftNode(node);
|
|
@@ -8747,7 +8747,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8747
8747
|
f = t = 0;
|
|
8748
8748
|
}
|
|
8749
8749
|
if (op[0] & 5) throw op[1];
|
|
8750
|
-
return { value: op[0] ? op[1] :
|
|
8750
|
+
return { value: op[0] ? op[1] : undefined, done: true };
|
|
8751
8751
|
}
|
|
8752
8752
|
};
|
|
8753
8753
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -8763,7 +8763,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8763
8763
|
var fs72 = __importStar(__require("fs"));
|
|
8764
8764
|
var regex = { section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/, param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/, comment: /^\s*[#;].*$/ };
|
|
8765
8765
|
function parse6(file) {
|
|
8766
|
-
return __awaiter(this,
|
|
8766
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
8767
8767
|
return __generator(this, function(_a) {
|
|
8768
8768
|
return [2, new Promise(function(resolve3, reject) {
|
|
8769
8769
|
fs72.readFile(file, "utf8", function(err, data) {
|
|
@@ -8900,7 +8900,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
8900
8900
|
f = t = 0;
|
|
8901
8901
|
}
|
|
8902
8902
|
if (op[0] & 5) throw op[1];
|
|
8903
|
-
return { value: op[0] ? op[1] :
|
|
8903
|
+
return { value: op[0] ? op[1] : undefined, done: true };
|
|
8904
8904
|
}
|
|
8905
8905
|
};
|
|
8906
8906
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -8950,7 +8950,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
8950
8950
|
return matches;
|
|
8951
8951
|
}
|
|
8952
8952
|
function processOptions(options8, filepath) {
|
|
8953
|
-
if (options8 ===
|
|
8953
|
+
if (options8 === undefined) {
|
|
8954
8954
|
options8 = {};
|
|
8955
8955
|
}
|
|
8956
8956
|
return { config: options8.config || ".editorconfig", version: options8.version || package_json_1.default.version, root: path132.resolve(options8.root || path132.parse(filepath).root) };
|
|
@@ -8967,10 +8967,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
8967
8967
|
return path132.join(pathPrefix, glob);
|
|
8968
8968
|
}
|
|
8969
8969
|
function extendProps(props, options8) {
|
|
8970
|
-
if (props ===
|
|
8970
|
+
if (props === undefined) {
|
|
8971
8971
|
props = {};
|
|
8972
8972
|
}
|
|
8973
|
-
if (options8 ===
|
|
8973
|
+
if (options8 === undefined) {
|
|
8974
8974
|
options8 = {};
|
|
8975
8975
|
}
|
|
8976
8976
|
for (var key2 in options8) {
|
|
@@ -9026,7 +9026,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9026
9026
|
return configs;
|
|
9027
9027
|
}
|
|
9028
9028
|
function readConfigFiles(filepaths) {
|
|
9029
|
-
return __awaiter(this,
|
|
9029
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
9030
9030
|
return __generator(this, function(_a) {
|
|
9031
9031
|
return [2, Promise.all(filepaths.map(function(name) {
|
|
9032
9032
|
return new Promise(function(resolve3) {
|
|
@@ -9052,17 +9052,17 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9052
9052
|
return files;
|
|
9053
9053
|
}
|
|
9054
9054
|
function opts(filepath, options8) {
|
|
9055
|
-
if (options8 ===
|
|
9055
|
+
if (options8 === undefined) {
|
|
9056
9056
|
options8 = {};
|
|
9057
9057
|
}
|
|
9058
9058
|
var resolvedFilePath = path132.resolve(filepath);
|
|
9059
9059
|
return [resolvedFilePath, processOptions(options8, resolvedFilePath)];
|
|
9060
9060
|
}
|
|
9061
9061
|
function parseFromFiles(filepath, files, options8) {
|
|
9062
|
-
if (options8 ===
|
|
9062
|
+
if (options8 === undefined) {
|
|
9063
9063
|
options8 = {};
|
|
9064
9064
|
}
|
|
9065
|
-
return __awaiter(this,
|
|
9065
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
9066
9066
|
var _a, resolvedFilePath, processedOptions;
|
|
9067
9067
|
return __generator(this, function(_b) {
|
|
9068
9068
|
_a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9074,7 +9074,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9074
9074
|
}
|
|
9075
9075
|
exports.parseFromFiles = parseFromFiles;
|
|
9076
9076
|
function parseFromFilesSync(filepath, files, options8) {
|
|
9077
|
-
if (options8 ===
|
|
9077
|
+
if (options8 === undefined) {
|
|
9078
9078
|
options8 = {};
|
|
9079
9079
|
}
|
|
9080
9080
|
var _a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9082,10 +9082,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9082
9082
|
}
|
|
9083
9083
|
exports.parseFromFilesSync = parseFromFilesSync;
|
|
9084
9084
|
function parse6(_filepath, _options) {
|
|
9085
|
-
if (_options ===
|
|
9085
|
+
if (_options === undefined) {
|
|
9086
9086
|
_options = {};
|
|
9087
9087
|
}
|
|
9088
|
-
return __awaiter(this,
|
|
9088
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
9089
9089
|
var _a, resolvedFilePath, processedOptions, filepaths;
|
|
9090
9090
|
return __generator(this, function(_b) {
|
|
9091
9091
|
_a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9098,7 +9098,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9098
9098
|
}
|
|
9099
9099
|
exports.parse = parse6;
|
|
9100
9100
|
function parseSync(_filepath, _options) {
|
|
9101
|
-
if (_options ===
|
|
9101
|
+
if (_options === undefined) {
|
|
9102
9102
|
_options = {};
|
|
9103
9103
|
}
|
|
9104
9104
|
var _a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9267,7 +9267,7 @@ var require_parser = __commonJS2({ "node_modules/@iarna/toml/lib/parser.js"(expo
|
|
|
9267
9267
|
}
|
|
9268
9268
|
return(value) {
|
|
9269
9269
|
if (this.stack.length === 0) throw this.error(new ParserError("Stack underflow"));
|
|
9270
|
-
if (value ===
|
|
9270
|
+
if (value === undefined) value = this.state.buf;
|
|
9271
9271
|
this.state = this.stack.pop();
|
|
9272
9272
|
this.state.returned = value;
|
|
9273
9273
|
}
|
|
@@ -9467,7 +9467,7 @@ var require_toml_parser = __commonJS2({ "node_modules/@iarna/toml/lib/toml-parse
|
|
|
9467
9467
|
var _declared = Symbol("declared");
|
|
9468
9468
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
9469
9469
|
var defineProperty = Object.defineProperty;
|
|
9470
|
-
var descriptor = { configurable: true, enumerable: true, writable: true, value:
|
|
9470
|
+
var descriptor = { configurable: true, enumerable: true, writable: true, value: undefined };
|
|
9471
9471
|
function hasKey(obj, key2) {
|
|
9472
9472
|
if (hasOwnProperty3.call(obj, key2)) return true;
|
|
9473
9473
|
if (key2 === "__proto__") defineProperty(obj, "__proto__", descriptor);
|
|
@@ -10719,7 +10719,7 @@ var require_js_tokens = __commonJS2({ "node_modules/js-tokens/index.js"(exports)
|
|
|
10719
10719
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10720
10720
|
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;
|
|
10721
10721
|
exports.matchToToken = function(match) {
|
|
10722
|
-
var token2 = { type: "invalid", value: match[0], closed:
|
|
10722
|
+
var token2 = { type: "invalid", value: match[0], closed: undefined };
|
|
10723
10723
|
if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]);
|
|
10724
10724
|
else if (match[5]) token2.type = "comment";
|
|
10725
10725
|
else if (match[6]) token2.type = "comment", token2.closed = !!match[7];
|
|
@@ -11623,7 +11623,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11623
11623
|
var models = Object.keys(conversions);
|
|
11624
11624
|
function wrapRaw(fn) {
|
|
11625
11625
|
var wrappedFn = function(args) {
|
|
11626
|
-
if (args ===
|
|
11626
|
+
if (args === undefined || args === null) {
|
|
11627
11627
|
return args;
|
|
11628
11628
|
}
|
|
11629
11629
|
if (arguments.length > 1) {
|
|
@@ -11638,7 +11638,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11638
11638
|
}
|
|
11639
11639
|
function wrapRounded(fn) {
|
|
11640
11640
|
var wrappedFn = function(args) {
|
|
11641
|
-
if (args ===
|
|
11641
|
+
if (args === undefined || args === null) {
|
|
11642
11642
|
return args;
|
|
11643
11643
|
}
|
|
11644
11644
|
if (arguments.length > 1) {
|
|
@@ -11978,7 +11978,7 @@ var require_chalk = __commonJS2({ "node_modules/@babel/code-frame/node_modules/c
|
|
|
11978
11978
|
function applyOptions2(obj, options8) {
|
|
11979
11979
|
options8 = options8 || {};
|
|
11980
11980
|
const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
11981
|
-
obj.level = options8.level ===
|
|
11981
|
+
obj.level = options8.level === undefined ? scLevel : options8.level;
|
|
11982
11982
|
obj.enabled = "enabled" in options8 ? options8.enabled : obj.level > 0;
|
|
11983
11983
|
}
|
|
11984
11984
|
function Chalk(options8) {
|
|
@@ -12181,7 +12181,7 @@ var require_lib2 = __commonJS2({ "node_modules/@babel/highlight/lib/index.js"(ex
|
|
|
12181
12181
|
function shouldHighlight(options8) {
|
|
12182
12182
|
return _chalk.default.level > 0 || options8.forceColor;
|
|
12183
12183
|
}
|
|
12184
|
-
var chalkWithForcedColor =
|
|
12184
|
+
var chalkWithForcedColor = undefined;
|
|
12185
12185
|
function getChalk(forceColor) {
|
|
12186
12186
|
if (forceColor) {
|
|
12187
12187
|
var _chalkWithForcedColor;
|
|
@@ -12226,7 +12226,7 @@ var require_lib3 = __commonJS2({ "node_modules/@babel/code-frame/lib/index.js"(e
|
|
|
12226
12226
|
}
|
|
12227
12227
|
return n.default = e, t && t.set(e, n), n;
|
|
12228
12228
|
}
|
|
12229
|
-
var chalkWithForcedColor =
|
|
12229
|
+
var chalkWithForcedColor = undefined;
|
|
12230
12230
|
function getChalk(forceColor) {
|
|
12231
12231
|
if (forceColor) {
|
|
12232
12232
|
var _chalkWithForcedColor;
|
|
@@ -12726,7 +12726,7 @@ var require_readlines = __commonJS2({ "node_modules/n-readlines/readlines.js"(ex
|
|
|
12726
12726
|
line3 = buffer2.slice(lastNewLineBufferPosition, bufferPosition);
|
|
12727
12727
|
lines.push(line3);
|
|
12728
12728
|
lastNewLineBufferPosition = bufferPosition;
|
|
12729
|
-
} else if (bufferPositionValue ===
|
|
12729
|
+
} else if (bufferPositionValue === undefined) {
|
|
12730
12730
|
break;
|
|
12731
12731
|
}
|
|
12732
12732
|
}
|
|
@@ -12800,7 +12800,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12800
12800
|
/*istanbul ignore start*/
|
|
12801
12801
|
/*istanbul ignore end*/
|
|
12802
12802
|
diff: function diff(oldString, newString) {
|
|
12803
|
-
var options8 = arguments.length > 2 && arguments[2] !==
|
|
12803
|
+
var options8 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12804
12804
|
var callback = options8.callback;
|
|
12805
12805
|
if (typeof options8 === "function") {
|
|
12806
12806
|
callback = options8;
|
|
@@ -12811,7 +12811,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12811
12811
|
function done(value) {
|
|
12812
12812
|
if (callback) {
|
|
12813
12813
|
setTimeout(function() {
|
|
12814
|
-
callback(
|
|
12814
|
+
callback(undefined, value);
|
|
12815
12815
|
}, 0);
|
|
12816
12816
|
return true;
|
|
12817
12817
|
} else {
|
|
@@ -12837,24 +12837,24 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12837
12837
|
for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {
|
|
12838
12838
|
var basePath = (
|
|
12839
12839
|
/*istanbul ignore start*/
|
|
12840
|
-
|
|
12840
|
+
undefined
|
|
12841
12841
|
);
|
|
12842
12842
|
var addPath = bestPath[diagonalPath - 1], removePath = bestPath[diagonalPath + 1], _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
|
|
12843
12843
|
if (addPath) {
|
|
12844
|
-
bestPath[diagonalPath - 1] =
|
|
12844
|
+
bestPath[diagonalPath - 1] = undefined;
|
|
12845
12845
|
}
|
|
12846
12846
|
var canAdd = addPath && addPath.newPos + 1 < newLen, canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;
|
|
12847
12847
|
if (!canAdd && !canRemove) {
|
|
12848
|
-
bestPath[diagonalPath] =
|
|
12848
|
+
bestPath[diagonalPath] = undefined;
|
|
12849
12849
|
continue;
|
|
12850
12850
|
}
|
|
12851
12851
|
if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {
|
|
12852
12852
|
basePath = clonePath(removePath);
|
|
12853
|
-
self.pushComponent(basePath.components,
|
|
12853
|
+
self.pushComponent(basePath.components, undefined, true);
|
|
12854
12854
|
} else {
|
|
12855
12855
|
basePath = addPath;
|
|
12856
12856
|
basePath.newPos++;
|
|
12857
|
-
self.pushComponent(basePath.components, true,
|
|
12857
|
+
self.pushComponent(basePath.components, true, undefined);
|
|
12858
12858
|
}
|
|
12859
12859
|
_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);
|
|
12860
12860
|
if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {
|
|
@@ -12989,7 +12989,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12989
12989
|
var require_array2 = __commonJS2({ "node_modules/diff/lib/diff/array.js"(exports) {
|
|
12990
12990
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12991
12991
|
exports.diffArrays = diffArrays2;
|
|
12992
|
-
exports.arrayDiff =
|
|
12992
|
+
exports.arrayDiff = undefined;
|
|
12993
12993
|
var _base = _interopRequireDefault(require_base());
|
|
12994
12994
|
function _interopRequireDefault(obj) {
|
|
12995
12995
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -13202,7 +13202,7 @@ function translateLevel(level) {
|
|
|
13202
13202
|
}
|
|
13203
13203
|
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
13204
13204
|
const noFlagForceColor = envForceColor();
|
|
13205
|
-
if (noFlagForceColor !==
|
|
13205
|
+
if (noFlagForceColor !== undefined) {
|
|
13206
13206
|
flagForceColor = noFlagForceColor;
|
|
13207
13207
|
}
|
|
13208
13208
|
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
@@ -13220,7 +13220,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
13220
13220
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
13221
13221
|
return 1;
|
|
13222
13222
|
}
|
|
13223
|
-
if (haveStream && !streamIsTTY && forceColor ===
|
|
13223
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
13224
13224
|
return 0;
|
|
13225
13225
|
}
|
|
13226
13226
|
const min = forceColor || 0;
|
|
@@ -13319,7 +13319,7 @@ var applyOptions = (object, options8 = {}) => {
|
|
|
13319
13319
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
13320
13320
|
}
|
|
13321
13321
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
13322
|
-
object.level = options8.level ===
|
|
13322
|
+
object.level = options8.level === undefined ? colorLevel : options8.level;
|
|
13323
13323
|
};
|
|
13324
13324
|
var chalkFactory = (options8) => {
|
|
13325
13325
|
const chalk2 = (...strings) => strings.join(" ");
|
|
@@ -13385,7 +13385,7 @@ var proto = Object.defineProperties(() => {
|
|
|
13385
13385
|
var createStyler = (open, close, parent) => {
|
|
13386
13386
|
let openAll;
|
|
13387
13387
|
let closeAll;
|
|
13388
|
-
if (parent ===
|
|
13388
|
+
if (parent === undefined) {
|
|
13389
13389
|
openAll = open;
|
|
13390
13390
|
closeAll = close;
|
|
13391
13391
|
} else {
|
|
@@ -13407,12 +13407,12 @@ var applyStyle = (self, string) => {
|
|
|
13407
13407
|
return self[IS_EMPTY] ? "" : string;
|
|
13408
13408
|
}
|
|
13409
13409
|
let styler = self[STYLER];
|
|
13410
|
-
if (styler ===
|
|
13410
|
+
if (styler === undefined) {
|
|
13411
13411
|
return string;
|
|
13412
13412
|
}
|
|
13413
13413
|
const { openAll, closeAll } = styler;
|
|
13414
13414
|
if (string.includes("\x1B")) {
|
|
13415
|
-
while (styler !==
|
|
13415
|
+
while (styler !== undefined) {
|
|
13416
13416
|
string = stringReplaceAll2(string, styler.close, styler.open);
|
|
13417
13417
|
styler = styler.parent;
|
|
13418
13418
|
}
|
|
@@ -13544,7 +13544,7 @@ var Schema = class {
|
|
|
13544
13544
|
this.name = parameters.name;
|
|
13545
13545
|
}
|
|
13546
13546
|
default(_utils) {
|
|
13547
|
-
return
|
|
13547
|
+
return undefined;
|
|
13548
13548
|
}
|
|
13549
13549
|
// this is actually an abstract method but we need a placeholder to get `function.length`
|
|
13550
13550
|
/* c8 ignore start */
|
|
@@ -13562,10 +13562,10 @@ var Schema = class {
|
|
|
13562
13562
|
return false;
|
|
13563
13563
|
}
|
|
13564
13564
|
forward(_value, _utils) {
|
|
13565
|
-
return
|
|
13565
|
+
return undefined;
|
|
13566
13566
|
}
|
|
13567
13567
|
redirect(_value, _utils) {
|
|
13568
|
-
return
|
|
13568
|
+
return undefined;
|
|
13569
13569
|
}
|
|
13570
13570
|
overlap(currentValue, _newValue, _utils) {
|
|
13571
13571
|
return currentValue;
|
|
@@ -13740,14 +13740,14 @@ function normalizeInvalidHandler(invalidHandler) {
|
|
|
13740
13740
|
};
|
|
13741
13741
|
}
|
|
13742
13742
|
function normalizeDefaultResult(result) {
|
|
13743
|
-
return result ===
|
|
13743
|
+
return result === undefined ? {} : result;
|
|
13744
13744
|
}
|
|
13745
13745
|
function normalizeExpectedResult(result) {
|
|
13746
13746
|
if (typeof result === "string") {
|
|
13747
13747
|
return { text: result };
|
|
13748
13748
|
}
|
|
13749
13749
|
const { text, list: list2 } = result;
|
|
13750
|
-
assert((text || list2) !==
|
|
13750
|
+
assert((text || list2) !== undefined, "Unexpected `expected` result, there should be at least one field.");
|
|
13751
13751
|
if (!list2) {
|
|
13752
13752
|
return { text };
|
|
13753
13753
|
}
|
|
@@ -13763,7 +13763,7 @@ function normalizeTransferResult(result, value) {
|
|
|
13763
13763
|
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 };
|
|
13764
13764
|
}
|
|
13765
13765
|
function normalizeForwardResult(result, value) {
|
|
13766
|
-
return result ===
|
|
13766
|
+
return result === undefined ? [] : Array.isArray(result) ? result.map((transferResult) => normalizeTransferResult(transferResult, value)) : [normalizeTransferResult(result, value)];
|
|
13767
13767
|
}
|
|
13768
13768
|
function normalizeRedirectResult(result, value) {
|
|
13769
13769
|
const redirect = normalizeForwardResult(typeof result === "object" && "redirect" in result ? result.redirect : result, value);
|
|
@@ -13795,11 +13795,11 @@ var ChoiceSchema = class extends Schema {
|
|
|
13795
13795
|
}
|
|
13796
13796
|
forward(value) {
|
|
13797
13797
|
const choiceInfo = this._choices.get(value);
|
|
13798
|
-
return choiceInfo ? choiceInfo.forward :
|
|
13798
|
+
return choiceInfo ? choiceInfo.forward : undefined;
|
|
13799
13799
|
}
|
|
13800
13800
|
redirect(value) {
|
|
13801
13801
|
const choiceInfo = this._choices.get(value);
|
|
13802
|
-
return choiceInfo ? choiceInfo.redirect :
|
|
13802
|
+
return choiceInfo ? choiceInfo.redirect : undefined;
|
|
13803
13803
|
}
|
|
13804
13804
|
};
|
|
13805
13805
|
var NumberSchema = class extends Schema {
|
|
@@ -14034,7 +14034,7 @@ function partition2(array2, predicate) {
|
|
|
14034
14034
|
var partition_default = partition2;
|
|
14035
14035
|
var import_editorconfig = __toESM2(require_src());
|
|
14036
14036
|
async function isDirectory(directory, options8) {
|
|
14037
|
-
const allowSymlinks = (options8 == null ?
|
|
14037
|
+
const allowSymlinks = (options8 == null ? undefined : options8.allowSymlinks) ?? true;
|
|
14038
14038
|
let stats;
|
|
14039
14039
|
try {
|
|
14040
14040
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(directory));
|
|
@@ -14074,9 +14074,9 @@ var Searcher = class {
|
|
|
14074
14074
|
*/
|
|
14075
14075
|
constructor({ names, filter: filter2, stopDirectory }) {
|
|
14076
14076
|
__privateAdd(this, _searchInDirectory);
|
|
14077
|
-
__privateAdd(this, _names,
|
|
14078
|
-
__privateAdd(this, _filter,
|
|
14079
|
-
__privateAdd(this, _stopDirectory,
|
|
14077
|
+
__privateAdd(this, _names, undefined);
|
|
14078
|
+
__privateAdd(this, _filter, undefined);
|
|
14079
|
+
__privateAdd(this, _stopDirectory, undefined);
|
|
14080
14080
|
__privateAdd(this, _cache, /* @__PURE__ */ new Map());
|
|
14081
14081
|
__privateSet(this, _names, names);
|
|
14082
14082
|
__privateSet(this, _filter, filter2);
|
|
@@ -14129,10 +14129,10 @@ var searchOptions = { names: MARKERS, filter: ({ path: directory }) => is_direct
|
|
|
14129
14129
|
async function findProjectRoot(startDirectory, options8) {
|
|
14130
14130
|
searcher ?? (searcher = new searcher_default(searchOptions));
|
|
14131
14131
|
const mark = await searcher.search(startDirectory, options8);
|
|
14132
|
-
return mark ? path9.dirname(mark) :
|
|
14132
|
+
return mark ? path9.dirname(mark) : undefined;
|
|
14133
14133
|
}
|
|
14134
14134
|
function clearFindProjectRootCache() {
|
|
14135
|
-
searcher == null ?
|
|
14135
|
+
searcher == null ? undefined : searcher.clearCache();
|
|
14136
14136
|
}
|
|
14137
14137
|
function removeUnset(editorConfig) {
|
|
14138
14138
|
const result = {};
|
|
@@ -14165,7 +14165,7 @@ function editorConfigToPrettier(editorConfig) {
|
|
|
14165
14165
|
result.tabWidth = editorConfig.tab_width;
|
|
14166
14166
|
} else if (editorConfig.indent_style === "space" && editorConfig.indent_size && editorConfig.indent_size !== "tab") {
|
|
14167
14167
|
result.tabWidth = editorConfig.indent_size;
|
|
14168
|
-
} else if (editorConfig.tab_width !==
|
|
14168
|
+
} else if (editorConfig.tab_width !== undefined) {
|
|
14169
14169
|
result.tabWidth = editorConfig.tab_width;
|
|
14170
14170
|
}
|
|
14171
14171
|
if (editorConfig.max_line_length) {
|
|
@@ -14233,10 +14233,10 @@ getStdin.buffer = async () => {
|
|
|
14233
14233
|
function writeFormattedFile(file, data) {
|
|
14234
14234
|
return fs.writeFile(file, data);
|
|
14235
14235
|
}
|
|
14236
|
-
var mockable = { getPrettierConfigSearchStopDirectory: () =>
|
|
14236
|
+
var mockable = { getPrettierConfigSearchStopDirectory: () => undefined, getStdin, isCI: () => import_ci_info.isCI, writeFormattedFile };
|
|
14237
14237
|
var mockable_default = mockable;
|
|
14238
14238
|
async function isFile(file, options8) {
|
|
14239
|
-
const allowSymlinks = (options8 == null ?
|
|
14239
|
+
const allowSymlinks = (options8 == null ? undefined : options8.allowSymlinks) ?? true;
|
|
14240
14240
|
let stats;
|
|
14241
14241
|
try {
|
|
14242
14242
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(file));
|
|
@@ -16019,7 +16019,7 @@ function loadAll$1(input, iterator, options8) {
|
|
|
16019
16019
|
function load$1(input, options8) {
|
|
16020
16020
|
var documents = loadDocuments(input, options8);
|
|
16021
16021
|
if (documents.length === 0) {
|
|
16022
|
-
return
|
|
16022
|
+
return undefined;
|
|
16023
16023
|
} else if (documents.length === 1) {
|
|
16024
16024
|
return documents[0];
|
|
16025
16025
|
}
|
|
@@ -16060,9 +16060,9 @@ var parse2 = function parse3(text, reviver) {
|
|
|
16060
16060
|
pos = 0;
|
|
16061
16061
|
line2 = 1;
|
|
16062
16062
|
column = 0;
|
|
16063
|
-
token =
|
|
16064
|
-
key =
|
|
16065
|
-
root =
|
|
16063
|
+
token = undefined;
|
|
16064
|
+
key = undefined;
|
|
16065
|
+
root = undefined;
|
|
16066
16066
|
do {
|
|
16067
16067
|
token = lex();
|
|
16068
16068
|
parseStates[parseState]();
|
|
@@ -16079,7 +16079,7 @@ function internalize(holder, name, reviver) {
|
|
|
16079
16079
|
for (let i2 = 0; i2 < value.length; i2++) {
|
|
16080
16080
|
const key2 = String(i2);
|
|
16081
16081
|
const replacement = internalize(value, key2, reviver);
|
|
16082
|
-
if (replacement ===
|
|
16082
|
+
if (replacement === undefined) {
|
|
16083
16083
|
delete value[key2];
|
|
16084
16084
|
} else {
|
|
16085
16085
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16088,7 +16088,7 @@ function internalize(holder, name, reviver) {
|
|
|
16088
16088
|
} else {
|
|
16089
16089
|
for (const key2 in value) {
|
|
16090
16090
|
const replacement = internalize(value, key2, reviver);
|
|
16091
|
-
if (replacement ===
|
|
16091
|
+
if (replacement === undefined) {
|
|
16092
16092
|
delete value[key2];
|
|
16093
16093
|
} else {
|
|
16094
16094
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16154,7 +16154,7 @@ var lexStates = { default() {
|
|
|
16154
16154
|
read();
|
|
16155
16155
|
lexState = "comment";
|
|
16156
16156
|
return;
|
|
16157
|
-
case
|
|
16157
|
+
case undefined:
|
|
16158
16158
|
read();
|
|
16159
16159
|
return newToken("eof");
|
|
16160
16160
|
}
|
|
@@ -16181,7 +16181,7 @@ var lexStates = { default() {
|
|
|
16181
16181
|
read();
|
|
16182
16182
|
lexState = "multiLineCommentAsterisk";
|
|
16183
16183
|
return;
|
|
16184
|
-
case
|
|
16184
|
+
case undefined:
|
|
16185
16185
|
throw invalidChar(read());
|
|
16186
16186
|
}
|
|
16187
16187
|
read();
|
|
@@ -16194,7 +16194,7 @@ var lexStates = { default() {
|
|
|
16194
16194
|
read();
|
|
16195
16195
|
lexState = "default";
|
|
16196
16196
|
return;
|
|
16197
|
-
case
|
|
16197
|
+
case undefined:
|
|
16198
16198
|
throw invalidChar(read());
|
|
16199
16199
|
}
|
|
16200
16200
|
read();
|
|
@@ -16208,7 +16208,7 @@ var lexStates = { default() {
|
|
|
16208
16208
|
read();
|
|
16209
16209
|
lexState = "default";
|
|
16210
16210
|
return;
|
|
16211
|
-
case
|
|
16211
|
+
case undefined:
|
|
16212
16212
|
read();
|
|
16213
16213
|
return newToken("eof");
|
|
16214
16214
|
}
|
|
@@ -16497,7 +16497,7 @@ var lexStates = { default() {
|
|
|
16497
16497
|
case "\u2029":
|
|
16498
16498
|
separatorChar(c);
|
|
16499
16499
|
break;
|
|
16500
|
-
case
|
|
16500
|
+
case undefined:
|
|
16501
16501
|
throw invalidChar(read());
|
|
16502
16502
|
}
|
|
16503
16503
|
buffer += read();
|
|
@@ -16628,7 +16628,7 @@ function escape() {
|
|
|
16628
16628
|
case "8":
|
|
16629
16629
|
case "9":
|
|
16630
16630
|
throw invalidChar(read());
|
|
16631
|
-
case
|
|
16631
|
+
case undefined:
|
|
16632
16632
|
throw invalidChar(read());
|
|
16633
16633
|
}
|
|
16634
16634
|
return read();
|
|
@@ -16740,7 +16740,7 @@ function push() {
|
|
|
16740
16740
|
value = token.value;
|
|
16741
16741
|
break;
|
|
16742
16742
|
}
|
|
16743
|
-
if (root ===
|
|
16743
|
+
if (root === undefined) {
|
|
16744
16744
|
root = value;
|
|
16745
16745
|
} else {
|
|
16746
16746
|
const parent = stack[stack.length - 1];
|
|
@@ -16780,7 +16780,7 @@ function pop() {
|
|
|
16780
16780
|
}
|
|
16781
16781
|
}
|
|
16782
16782
|
function invalidChar(c2) {
|
|
16783
|
-
if (c2 ===
|
|
16783
|
+
if (c2 === undefined) {
|
|
16784
16784
|
return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`);
|
|
16785
16785
|
}
|
|
16786
16786
|
return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line2}:${column}`);
|
|
@@ -16841,9 +16841,9 @@ var _JSONError = class _JSONError2 extends Error {
|
|
|
16841
16841
|
__publicField(this, "fileName");
|
|
16842
16842
|
__publicField(this, "codeFrame");
|
|
16843
16843
|
__publicField(this, "rawCodeFrame");
|
|
16844
|
-
__privateAdd(this, _message,
|
|
16844
|
+
__privateAdd(this, _message, undefined);
|
|
16845
16845
|
__privateSet(this, _message, message);
|
|
16846
|
-
(_a = Error.captureStackTrace) == null ?
|
|
16846
|
+
(_a = Error.captureStackTrace) == null ? undefined : _a.call(Error, this, _JSONError2);
|
|
16847
16847
|
}
|
|
16848
16848
|
get message() {
|
|
16849
16849
|
const { fileName, codeFrame } = this;
|
|
@@ -17088,7 +17088,7 @@ codes.ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
|
17088
17088
|
* @param {string} reason
|
|
17089
17089
|
* @param {string} [base]
|
|
17090
17090
|
*/
|
|
17091
|
-
(request, reason, base =
|
|
17091
|
+
(request, reason, base = undefined) => {
|
|
17092
17092
|
return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`;
|
|
17093
17093
|
},
|
|
17094
17094
|
TypeError
|
|
@@ -17114,7 +17114,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
|
17114
17114
|
* @param {boolean} [isImport=false]
|
|
17115
17115
|
* @param {string} [base]
|
|
17116
17116
|
*/
|
|
17117
|
-
(pkgPath, key2, target, isImport = false, base =
|
|
17117
|
+
(pkgPath, key2, target, isImport = false, base = undefined) => {
|
|
17118
17118
|
const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
17119
17119
|
if (key2 === ".") {
|
|
17120
17120
|
assert2(isImport === false);
|
|
@@ -17156,7 +17156,7 @@ codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
|
17156
17156
|
* @param {string} subpath
|
|
17157
17157
|
* @param {string} [base]
|
|
17158
17158
|
*/
|
|
17159
|
-
(pkgPath, subpath, base =
|
|
17159
|
+
(pkgPath, subpath, base = undefined) => {
|
|
17160
17160
|
if (subpath === ".") return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17161
17161
|
return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17162
17162
|
},
|
|
@@ -17232,10 +17232,10 @@ function isErrorStackTraceLimitWritable() {
|
|
|
17232
17232
|
} catch {
|
|
17233
17233
|
}
|
|
17234
17234
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
17235
|
-
if (desc ===
|
|
17235
|
+
if (desc === undefined) {
|
|
17236
17236
|
return Object.isExtensible(Error);
|
|
17237
17237
|
}
|
|
17238
|
-
return own.call(desc, "writable") && desc.writable !==
|
|
17238
|
+
return own.call(desc, "writable") && desc.writable !== undefined ? desc.writable : desc.set !== undefined;
|
|
17239
17239
|
}
|
|
17240
17240
|
function hideStackFrames(fn) {
|
|
17241
17241
|
const hidden = nodeInternalPrefix + fn.name;
|
|
@@ -17261,7 +17261,7 @@ var captureLargerStackTrace = hideStackFrames(
|
|
|
17261
17261
|
);
|
|
17262
17262
|
function getMessage(key2, args, self) {
|
|
17263
17263
|
const message = messages.get(key2);
|
|
17264
|
-
assert2(message !==
|
|
17264
|
+
assert2(message !== undefined, "expected `message` to be found");
|
|
17265
17265
|
if (typeof message === "function") {
|
|
17266
17266
|
assert2(
|
|
17267
17267
|
message.length <= args.length,
|
|
@@ -17279,7 +17279,7 @@ function getMessage(key2, args, self) {
|
|
|
17279
17279
|
return Reflect.apply(format, null, args);
|
|
17280
17280
|
}
|
|
17281
17281
|
function determineSpecificType(value) {
|
|
17282
|
-
if (value === null || value ===
|
|
17282
|
+
if (value === null || value === undefined) {
|
|
17283
17283
|
return String(value);
|
|
17284
17284
|
}
|
|
17285
17285
|
if (typeof value === "function" && value.name) {
|
|
@@ -17322,14 +17322,14 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
17322
17322
|
const result = {
|
|
17323
17323
|
exists: false,
|
|
17324
17324
|
pjsonPath: jsonPath,
|
|
17325
|
-
main:
|
|
17326
|
-
name:
|
|
17325
|
+
main: undefined,
|
|
17326
|
+
name: undefined,
|
|
17327
17327
|
type: "none",
|
|
17328
17328
|
// Ignore unknown types for forwards compatibility
|
|
17329
|
-
exports:
|
|
17330
|
-
imports:
|
|
17329
|
+
exports: undefined,
|
|
17330
|
+
imports: undefined
|
|
17331
17331
|
};
|
|
17332
|
-
if (string !==
|
|
17332
|
+
if (string !== undefined) {
|
|
17333
17333
|
let parsed;
|
|
17334
17334
|
try {
|
|
17335
17335
|
parsed = JSON.parse(string);
|
|
@@ -17380,7 +17380,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
17380
17380
|
}
|
|
17381
17381
|
}
|
|
17382
17382
|
const packageJSONPath = fileURLToPath(packageJSONUrl);
|
|
17383
|
-
return { pjsonPath: packageJSONPath, exists: false, main:
|
|
17383
|
+
return { pjsonPath: packageJSONPath, exists: false, main: undefined, name: undefined, type: "none", exports: undefined, imports: undefined };
|
|
17384
17384
|
}
|
|
17385
17385
|
function getPackageType(url2) {
|
|
17386
17386
|
const packageConfig = getPackageScopeConfig(url2);
|
|
@@ -17449,7 +17449,7 @@ function getFileProtocolModuleFormat(url2, _context, ignoreErrors) {
|
|
|
17449
17449
|
const format3 = extensionFormatMap[ext];
|
|
17450
17450
|
if (format3) return format3;
|
|
17451
17451
|
if (ignoreErrors) {
|
|
17452
|
-
return
|
|
17452
|
+
return undefined;
|
|
17453
17453
|
}
|
|
17454
17454
|
const filepath = fileURLToPath(url2);
|
|
17455
17455
|
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
|
|
@@ -17473,7 +17473,7 @@ function getDefaultConditionsSet() {
|
|
|
17473
17473
|
return DEFAULT_CONDITIONS_SET;
|
|
17474
17474
|
}
|
|
17475
17475
|
function getConditionsSet(conditions) {
|
|
17476
|
-
if (conditions !==
|
|
17476
|
+
if (conditions !== undefined && conditions !== getDefaultConditions()) {
|
|
17477
17477
|
if (!Array.isArray(conditions)) {
|
|
17478
17478
|
throw new ERR_INVALID_ARG_VALUE("conditions", conditions, "expected an array");
|
|
17479
17479
|
}
|
|
@@ -17525,12 +17525,12 @@ function tryStatSync(path132) {
|
|
|
17525
17525
|
}
|
|
17526
17526
|
function fileExists(url2) {
|
|
17527
17527
|
const stats = statSync(url2, { throwIfNoEntry: false });
|
|
17528
|
-
const isFile2 = stats ? stats.isFile() :
|
|
17529
|
-
return isFile2 === null || isFile2 ===
|
|
17528
|
+
const isFile2 = stats ? stats.isFile() : undefined;
|
|
17529
|
+
return isFile2 === null || isFile2 === undefined ? false : isFile2;
|
|
17530
17530
|
}
|
|
17531
17531
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
17532
17532
|
let guess;
|
|
17533
|
-
if (packageConfig.main !==
|
|
17533
|
+
if (packageConfig.main !== undefined) {
|
|
17534
17534
|
guess = new URL$1(packageConfig.main, packageJsonUrl);
|
|
17535
17535
|
if (fileExists(guess)) return guess;
|
|
17536
17536
|
const tries2 = [`./${packageConfig.main}.js`, `./${packageConfig.main}.json`, `./${packageConfig.main}.node`, `./${packageConfig.main}/index.js`, `./${packageConfig.main}/index.json`, `./${packageConfig.main}/index.node`];
|
|
@@ -17538,7 +17538,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17538
17538
|
while (++i22 < tries2.length) {
|
|
17539
17539
|
guess = new URL$1(tries2[i22], packageJsonUrl);
|
|
17540
17540
|
if (fileExists(guess)) break;
|
|
17541
|
-
guess =
|
|
17541
|
+
guess = undefined;
|
|
17542
17542
|
}
|
|
17543
17543
|
if (guess) {
|
|
17544
17544
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17550,7 +17550,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17550
17550
|
while (++i2 < tries.length) {
|
|
17551
17551
|
guess = new URL$1(tries[i2], packageJsonUrl);
|
|
17552
17552
|
if (fileExists(guess)) break;
|
|
17553
|
-
guess =
|
|
17553
|
+
guess = undefined;
|
|
17554
17554
|
}
|
|
17555
17555
|
if (guess) {
|
|
17556
17556
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17685,14 +17685,14 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17685
17685
|
if (exception2.code === "ERR_INVALID_PACKAGE_TARGET") continue;
|
|
17686
17686
|
throw error;
|
|
17687
17687
|
}
|
|
17688
|
-
if (resolveResult ===
|
|
17688
|
+
if (resolveResult === undefined) continue;
|
|
17689
17689
|
if (resolveResult === null) {
|
|
17690
17690
|
lastException = null;
|
|
17691
17691
|
continue;
|
|
17692
17692
|
}
|
|
17693
17693
|
return resolveResult;
|
|
17694
17694
|
}
|
|
17695
|
-
if (lastException ===
|
|
17695
|
+
if (lastException === undefined || lastException === null) {
|
|
17696
17696
|
return null;
|
|
17697
17697
|
}
|
|
17698
17698
|
throw lastException;
|
|
@@ -17715,7 +17715,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17715
17715
|
target[key2]
|
|
17716
17716
|
);
|
|
17717
17717
|
const resolveResult = resolvePackageTarget(packageJsonUrl, conditionalTarget, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions);
|
|
17718
|
-
if (resolveResult ===
|
|
17718
|
+
if (resolveResult === undefined) continue;
|
|
17719
17719
|
return resolveResult;
|
|
17720
17720
|
}
|
|
17721
17721
|
}
|
|
@@ -17761,7 +17761,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17761
17761
|
if (own2.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
17762
17762
|
const target = exports[packageSubpath];
|
|
17763
17763
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
|
|
17764
|
-
if (resolveResult === null || resolveResult ===
|
|
17764
|
+
if (resolveResult === null || resolveResult === undefined) {
|
|
17765
17765
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17766
17766
|
}
|
|
17767
17767
|
return resolveResult;
|
|
@@ -17790,7 +17790,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17790
17790
|
exports[bestMatch]
|
|
17791
17791
|
);
|
|
17792
17792
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
|
|
17793
|
-
if (resolveResult === null || resolveResult ===
|
|
17793
|
+
if (resolveResult === null || resolveResult === undefined) {
|
|
17794
17794
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17795
17795
|
}
|
|
17796
17796
|
return resolveResult;
|
|
@@ -17823,7 +17823,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
17823
17823
|
if (imports) {
|
|
17824
17824
|
if (own2.call(imports, name) && !name.includes("*")) {
|
|
17825
17825
|
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
|
|
17826
|
-
if (resolveResult !== null && resolveResult !==
|
|
17826
|
+
if (resolveResult !== null && resolveResult !== undefined) {
|
|
17827
17827
|
return resolveResult;
|
|
17828
17828
|
}
|
|
17829
17829
|
} else {
|
|
@@ -17845,7 +17845,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
17845
17845
|
if (bestMatch) {
|
|
17846
17846
|
const target = imports[bestMatch];
|
|
17847
17847
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
|
|
17848
|
-
if (resolveResult !== null && resolveResult !==
|
|
17848
|
+
if (resolveResult !== null && resolveResult !== undefined) {
|
|
17849
17849
|
return resolveResult;
|
|
17850
17850
|
}
|
|
17851
17851
|
}
|
|
@@ -17884,7 +17884,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
17884
17884
|
const packageConfig = getPackageScopeConfig(base);
|
|
17885
17885
|
if (packageConfig.exists) {
|
|
17886
17886
|
const packageJsonUrl2 = pathToFileURL(packageConfig.pjsonPath);
|
|
17887
|
-
if (packageConfig.name === packageName && packageConfig.exports !==
|
|
17887
|
+
if (packageConfig.name === packageName && packageConfig.exports !== undefined && packageConfig.exports !== null) {
|
|
17888
17888
|
return packageExportsResolve(packageJsonUrl2, packageSubpath, packageConfig, base, conditions);
|
|
17889
17889
|
}
|
|
17890
17890
|
}
|
|
@@ -17900,7 +17900,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
17900
17900
|
continue;
|
|
17901
17901
|
}
|
|
17902
17902
|
const packageConfig2 = package_json_reader_default.read(packageJsonPath, { base, specifier });
|
|
17903
|
-
if (packageConfig2.exports !==
|
|
17903
|
+
if (packageConfig2.exports !== undefined && packageConfig2.exports !== null) {
|
|
17904
17904
|
return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig2, base, conditions);
|
|
17905
17905
|
}
|
|
17906
17906
|
if (packageSubpath === ".") {
|
|
@@ -17941,7 +17941,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
17941
17941
|
}
|
|
17942
17942
|
}
|
|
17943
17943
|
}
|
|
17944
|
-
assert2(resolved !==
|
|
17944
|
+
assert2(resolved !== undefined, "expected to be defined");
|
|
17945
17945
|
if (resolved.protocol !== "file:") {
|
|
17946
17946
|
return resolved;
|
|
17947
17947
|
}
|
|
@@ -17952,11 +17952,11 @@ function checkIfDisallowedImport(specifier, parsed, parsedParentURL) {
|
|
|
17952
17952
|
const parentProtocol = parsedParentURL.protocol;
|
|
17953
17953
|
if (parentProtocol === "http:" || parentProtocol === "https:") {
|
|
17954
17954
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
17955
|
-
const parsedProtocol = parsed == null ?
|
|
17955
|
+
const parsedProtocol = parsed == null ? undefined : parsed.protocol;
|
|
17956
17956
|
if (parsedProtocol && parsedProtocol !== "https:" && parsedProtocol !== "http:") {
|
|
17957
17957
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
17958
17958
|
}
|
|
17959
|
-
return { url: (parsed == null ?
|
|
17959
|
+
return { url: (parsed == null ? undefined : parsed.href) || "" };
|
|
17960
17960
|
}
|
|
17961
17961
|
if (builtinModules.includes(specifier)) {
|
|
17962
17962
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
@@ -17969,7 +17969,7 @@ function isURL(self) {
|
|
|
17969
17969
|
return Boolean(self && typeof self === "object" && "href" in self && typeof self.href === "string" && "protocol" in self && typeof self.protocol === "string" && self.href && self.protocol);
|
|
17970
17970
|
}
|
|
17971
17971
|
function throwIfInvalidParentURL(parentURL) {
|
|
17972
|
-
if (parentURL ===
|
|
17972
|
+
if (parentURL === undefined) {
|
|
17973
17973
|
return;
|
|
17974
17974
|
}
|
|
17975
17975
|
if (typeof parentURL !== "string" && !isURL(parentURL)) {
|
|
@@ -17978,7 +17978,7 @@ function throwIfInvalidParentURL(parentURL) {
|
|
|
17978
17978
|
}
|
|
17979
17979
|
function defaultResolve(specifier, context = {}) {
|
|
17980
17980
|
const { parentURL } = context;
|
|
17981
|
-
assert2(parentURL !==
|
|
17981
|
+
assert2(parentURL !== undefined, "expected `parentURL` to be defined");
|
|
17982
17982
|
throwIfInvalidParentURL(parentURL);
|
|
17983
17983
|
let parsedParentURL;
|
|
17984
17984
|
if (parentURL) {
|
|
@@ -18040,7 +18040,7 @@ async function loadExternalConfig(externalConfig, configFile) {
|
|
|
18040
18040
|
try {
|
|
18041
18041
|
return require_from_file_default(externalConfig, configFile);
|
|
18042
18042
|
} catch (error) {
|
|
18043
|
-
if (!requireErrorCodesShouldBeIgnored.has(error == null ?
|
|
18043
|
+
if (!requireErrorCodesShouldBeIgnored.has(error == null ? undefined : error.code)) {
|
|
18044
18044
|
throw error;
|
|
18045
18045
|
}
|
|
18046
18046
|
}
|
|
@@ -18082,7 +18082,7 @@ function loadPrettierConfig(configFile, { shouldCache }) {
|
|
|
18082
18082
|
return loadCache.get(configFile);
|
|
18083
18083
|
}
|
|
18084
18084
|
function getSearchFunction(stopDirectory) {
|
|
18085
|
-
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) :
|
|
18085
|
+
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) : undefined;
|
|
18086
18086
|
if (!searchCache.has(stopDirectory)) {
|
|
18087
18087
|
const searcher2 = config_searcher_default(stopDirectory);
|
|
18088
18088
|
const searchFunction = searcher2.search.bind(searcher2);
|
|
@@ -18111,7 +18111,7 @@ async function loadPrettierConfig2(file, options8) {
|
|
|
18111
18111
|
const shouldCache = options8.useCache;
|
|
18112
18112
|
let configFile = options8.config;
|
|
18113
18113
|
if (!configFile) {
|
|
18114
|
-
const directory = file ? path9__default.dirname(path9__default.resolve(file)) :
|
|
18114
|
+
const directory = file ? path9__default.dirname(path9__default.resolve(file)) : undefined;
|
|
18115
18115
|
configFile = await searchPrettierConfig(directory, { shouldCache });
|
|
18116
18116
|
}
|
|
18117
18117
|
if (!configFile) {
|
|
@@ -18134,7 +18134,7 @@ async function resolveConfig(fileUrlOrPath, options8) {
|
|
|
18134
18134
|
return merged;
|
|
18135
18135
|
}
|
|
18136
18136
|
async function resolveConfigFile(fileUrlOrPath) {
|
|
18137
|
-
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) :
|
|
18137
|
+
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) : undefined;
|
|
18138
18138
|
const result = await searchPrettierConfig(directory, { shouldCache: false });
|
|
18139
18139
|
return result ?? null;
|
|
18140
18140
|
}
|
|
@@ -18157,7 +18157,7 @@ function pathMatchesGlobs(filePath, patterns, excludedPatterns) {
|
|
|
18157
18157
|
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 });
|
|
18158
18158
|
}
|
|
18159
18159
|
var stringReplaceAll22 = (isOptionalObject, original, pattern, replacement) => {
|
|
18160
|
-
if (isOptionalObject && (original ===
|
|
18160
|
+
if (isOptionalObject && (original === undefined || original === null)) {
|
|
18161
18161
|
return;
|
|
18162
18162
|
}
|
|
18163
18163
|
if (original.replaceAll) {
|
|
@@ -18204,7 +18204,7 @@ async function createSingleIsIgnoredFunction(ignoreFile, withNodeModules) {
|
|
|
18204
18204
|
}
|
|
18205
18205
|
async function createIsIgnoredFunction(ignoreFiles, withNodeModules) {
|
|
18206
18206
|
if (ignoreFiles.length === 0 && !withNodeModules) {
|
|
18207
|
-
ignoreFiles = [
|
|
18207
|
+
ignoreFiles = [undefined];
|
|
18208
18208
|
}
|
|
18209
18209
|
const isIgnoredFunctions = (await Promise.all(ignoreFiles.map((ignoreFile) => createSingleIsIgnoredFunction(ignoreFile, withNodeModules)))).filter(Boolean);
|
|
18210
18210
|
return (file) => isIgnoredFunctions.some((isIgnored2) => isIgnored2(file));
|
|
@@ -18247,13 +18247,13 @@ function getLanguageByFileName(languages2, file) {
|
|
|
18247
18247
|
return;
|
|
18248
18248
|
}
|
|
18249
18249
|
const basename = getFileBasename(file).toLowerCase();
|
|
18250
|
-
return languages2.find(({ filenames }) => filenames == null ?
|
|
18250
|
+
return languages2.find(({ filenames }) => filenames == null ? undefined : filenames.some((name) => name.toLowerCase() === basename)) ?? languages2.find(({ extensions }) => extensions == null ? undefined : extensions.some((extension) => basename.endsWith(extension)));
|
|
18251
18251
|
}
|
|
18252
18252
|
function getLanguageByLanguageName(languages2, languageName) {
|
|
18253
18253
|
if (!languageName) {
|
|
18254
18254
|
return;
|
|
18255
18255
|
}
|
|
18256
|
-
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ?
|
|
18256
|
+
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ? undefined : aliases.includes(languageName)) ?? languages2.find(({ extensions }) => extensions == null ? undefined : extensions.includes(`.${languageName}`));
|
|
18257
18257
|
}
|
|
18258
18258
|
function getLanguageByInterpreter(languages2, file) {
|
|
18259
18259
|
if (!file || getFileBasename(file).includes(".")) {
|
|
@@ -18263,7 +18263,7 @@ function getLanguageByInterpreter(languages2, file) {
|
|
|
18263
18263
|
if (!interpreter) {
|
|
18264
18264
|
return;
|
|
18265
18265
|
}
|
|
18266
|
-
return languages2.find(({ interpreters }) => interpreters == null ?
|
|
18266
|
+
return languages2.find(({ interpreters }) => interpreters == null ? undefined : interpreters.includes(interpreter));
|
|
18267
18267
|
}
|
|
18268
18268
|
function inferParser(options8, fileInfo) {
|
|
18269
18269
|
const languages2 = options8.plugins.flatMap((plugin) => (
|
|
@@ -18271,7 +18271,7 @@ function inferParser(options8, fileInfo) {
|
|
|
18271
18271
|
plugin.languages ?? []
|
|
18272
18272
|
));
|
|
18273
18273
|
const language = getLanguageByLanguageName(languages2, fileInfo.language) ?? getLanguageByFileName(languages2, fileInfo.physicalFile) ?? getLanguageByFileName(languages2, fileInfo.file) ?? getLanguageByInterpreter(languages2, fileInfo.physicalFile);
|
|
18274
|
-
return language == null ?
|
|
18274
|
+
return language == null ? undefined : language.parsers[0];
|
|
18275
18275
|
}
|
|
18276
18276
|
var infer_parser_default = inferParser;
|
|
18277
18277
|
async function getFileInfo(file, options8) {
|
|
@@ -18294,7 +18294,7 @@ async function getParser(file, options8) {
|
|
|
18294
18294
|
if (options8.resolveConfig !== false) {
|
|
18295
18295
|
config = await resolveConfig(file);
|
|
18296
18296
|
}
|
|
18297
|
-
return (config == null ?
|
|
18297
|
+
return (config == null ? undefined : config.parser) ?? infer_parser_default(options8, { physicalFile: file });
|
|
18298
18298
|
}
|
|
18299
18299
|
var get_file_info_default = getFileInfo;
|
|
18300
18300
|
var import_diff = __toESM2(require_array2());
|
|
@@ -18416,7 +18416,7 @@ function traverseDoc2(doc2, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
18416
18416
|
if (!docType) {
|
|
18417
18417
|
throw new invalid_doc_error_default2(doc3);
|
|
18418
18418
|
}
|
|
18419
|
-
if ((onEnter == null ?
|
|
18419
|
+
if ((onEnter == null ? undefined : onEnter(doc3)) === false) {
|
|
18420
18420
|
continue;
|
|
18421
18421
|
}
|
|
18422
18422
|
switch (docType) {
|
|
@@ -18511,7 +18511,7 @@ function flattenDoc(doc2) {
|
|
|
18511
18511
|
return { ...doc2, breakContents: flattenDoc(doc2.breakContents), flatContents: flattenDoc(doc2.flatContents) };
|
|
18512
18512
|
}
|
|
18513
18513
|
if (doc2.type === DOC_TYPE_GROUP2) {
|
|
18514
|
-
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ?
|
|
18514
|
+
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ? undefined : _a.map(flattenDoc) };
|
|
18515
18515
|
}
|
|
18516
18516
|
if (doc2.type === DOC_TYPE_FILL2) {
|
|
18517
18517
|
return { type: "fill", parts: doc2.parts.map(flattenDoc) };
|
|
@@ -18535,7 +18535,7 @@ function printDocToDebug(doc2) {
|
|
|
18535
18535
|
return printed.length === 1 ? printed[0] : `[${printed.join(", ")}]`;
|
|
18536
18536
|
}
|
|
18537
18537
|
if (doc3.type === DOC_TYPE_LINE2) {
|
|
18538
|
-
const withBreakParent = ((_a = parentParts == null ?
|
|
18538
|
+
const withBreakParent = ((_a = parentParts == null ? undefined : parentParts[index + 1]) == null ? undefined : _a.type) === DOC_TYPE_BREAK_PARENT2;
|
|
18539
18539
|
if (doc3.literal) {
|
|
18540
18540
|
return withBreakParent ? "literalline" : "literallineWithoutBreakParent";
|
|
18541
18541
|
}
|
|
@@ -18548,8 +18548,8 @@ function printDocToDebug(doc2) {
|
|
|
18548
18548
|
return "line";
|
|
18549
18549
|
}
|
|
18550
18550
|
if (doc3.type === DOC_TYPE_BREAK_PARENT2) {
|
|
18551
|
-
const afterHardline = ((_b = parentParts == null ?
|
|
18552
|
-
return afterHardline ?
|
|
18551
|
+
const afterHardline = ((_b = parentParts == null ? undefined : parentParts[index - 1]) == null ? undefined : _b.type) === DOC_TYPE_LINE2 && parentParts[index - 1].hard;
|
|
18552
|
+
return afterHardline ? undefined : "breakParent";
|
|
18553
18553
|
}
|
|
18554
18554
|
if (doc3.type === DOC_TYPE_TRIM2) {
|
|
18555
18555
|
return "trim";
|
|
@@ -18620,7 +18620,7 @@ function printDocToDebug(doc2) {
|
|
|
18620
18620
|
}
|
|
18621
18621
|
}
|
|
18622
18622
|
var at2 = (isOptionalObject, object, index) => {
|
|
18623
|
-
if (isOptionalObject && (object ===
|
|
18623
|
+
if (isOptionalObject && (object === undefined || object === null)) {
|
|
18624
18624
|
return;
|
|
18625
18625
|
}
|
|
18626
18626
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -19542,7 +19542,7 @@ var AstPath = class {
|
|
|
19542
19542
|
let name = null;
|
|
19543
19543
|
let node = this.stack[stackPointer--];
|
|
19544
19544
|
for (const predicate of predicates) {
|
|
19545
|
-
if (node ===
|
|
19545
|
+
if (node === undefined) {
|
|
19546
19546
|
return false;
|
|
19547
19547
|
}
|
|
19548
19548
|
let number = null;
|
|
@@ -19643,7 +19643,7 @@ function* getDescendants(node, options8) {
|
|
|
19643
19643
|
}
|
|
19644
19644
|
function skip(characters) {
|
|
19645
19645
|
return (text, startIndex, options8) => {
|
|
19646
|
-
const backwards = Boolean(options8 == null ?
|
|
19646
|
+
const backwards = Boolean(options8 == null ? undefined : options8.backwards);
|
|
19647
19647
|
if (startIndex === false) {
|
|
19648
19648
|
return false;
|
|
19649
19649
|
}
|
|
@@ -19671,7 +19671,7 @@ var skipSpaces = skip(" ");
|
|
|
19671
19671
|
var skipToLineEnd = skip(",; ");
|
|
19672
19672
|
var skipEverythingButNewLine = skip(/[^\n\r]/);
|
|
19673
19673
|
function skipNewline(text, startIndex, options8) {
|
|
19674
|
-
const backwards = Boolean(options8 == null ?
|
|
19674
|
+
const backwards = Boolean(options8 == null ? undefined : options8.backwards);
|
|
19675
19675
|
if (startIndex === false) {
|
|
19676
19676
|
return false;
|
|
19677
19677
|
}
|
|
@@ -19751,7 +19751,7 @@ function getSortedChildNodes(node, options8) {
|
|
|
19751
19751
|
if (!canAttachComment) {
|
|
19752
19752
|
return [];
|
|
19753
19753
|
}
|
|
19754
|
-
const childNodes = ((getCommentChildNodes == null ?
|
|
19754
|
+
const childNodes = ((getCommentChildNodes == null ? undefined : getCommentChildNodes(node, options8)) ?? [...getChildren(node, { getVisitorKeys: create_get_visitor_keys_function_default(printerGetVisitorKeys) })]).flatMap((node2) => canAttachComment(node2) ? [node2] : getSortedChildNodes(node2, options8));
|
|
19755
19755
|
childNodes.sort((nodeA, nodeB) => locStart(nodeA) - locStart(nodeB) || locEnd(nodeA) - locEnd(nodeB));
|
|
19756
19756
|
childNodesCache.set(node, childNodes);
|
|
19757
19757
|
return childNodes;
|
|
@@ -19785,7 +19785,7 @@ function decorateComment(node, comment, options8, enclosingNode) {
|
|
|
19785
19785
|
}
|
|
19786
19786
|
throw new Error("Comment location overlaps with node location");
|
|
19787
19787
|
}
|
|
19788
|
-
if ((enclosingNode == null ?
|
|
19788
|
+
if ((enclosingNode == null ? undefined : enclosingNode.type) === "TemplateLiteral") {
|
|
19789
19789
|
const { quasis } = enclosingNode;
|
|
19790
19790
|
const commentIndex = findExpressionIndexForComment(quasis, comment, options8);
|
|
19791
19791
|
if (precedingNode && findExpressionIndexForComment(quasis, precedingNode, options8) !== commentIndex) {
|
|
@@ -19930,7 +19930,7 @@ function breakTies(tiesToBreak, options8) {
|
|
|
19930
19930
|
assert2.strictEqual(currentCommentPrecedingNode, precedingNode);
|
|
19931
19931
|
assert2.strictEqual(currentCommentFollowingNode, followingNode);
|
|
19932
19932
|
const gap = options8.originalText.slice(options8.locEnd(comment), gapEndPos);
|
|
19933
|
-
if (((_b = (_a = options8.printer).isGap) == null ?
|
|
19933
|
+
if (((_b = (_a = options8.printer).isGap) == null ? undefined : _b.call(_a, gap, options8)) ?? /^[\s(]*$/.test(gap)) {
|
|
19934
19934
|
gapEndPos = options8.locStart(comment);
|
|
19935
19935
|
} else {
|
|
19936
19936
|
break;
|
|
@@ -19978,7 +19978,7 @@ function printLeadingComment(path132, options8) {
|
|
|
19978
19978
|
const comment = path132.node;
|
|
19979
19979
|
const parts = [printComment(path132, options8)];
|
|
19980
19980
|
const { printer: printer2, originalText, locStart, locEnd } = options8;
|
|
19981
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
19981
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? undefined : _a.call(printer2, comment);
|
|
19982
19982
|
if (isBlock) {
|
|
19983
19983
|
const lineBreak = has_newline_default(originalText, locEnd(comment)) ? has_newline_default(originalText, locStart(comment), { backwards: true }) ? hardline2 : line22 : " ";
|
|
19984
19984
|
parts.push(lineBreak);
|
|
@@ -19996,12 +19996,12 @@ function printTrailingComment(path132, options8, previousComment) {
|
|
|
19996
19996
|
const comment = path132.node;
|
|
19997
19997
|
const printed = printComment(path132, options8);
|
|
19998
19998
|
const { printer: printer2, originalText, locStart } = options8;
|
|
19999
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
20000
|
-
if ((previousComment == null ?
|
|
19999
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? undefined : _a.call(printer2, comment);
|
|
20000
|
+
if ((previousComment == null ? undefined : previousComment.hasLineSuffix) && !(previousComment == null ? undefined : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true })) {
|
|
20001
20001
|
const isLineBeforeEmpty = is_previous_line_empty_default(originalText, locStart(comment));
|
|
20002
20002
|
return { doc: lineSuffix2([hardline2, isLineBeforeEmpty ? hardline2 : "", printed]), isBlock, hasLineSuffix: true };
|
|
20003
20003
|
}
|
|
20004
|
-
if (!isBlock || (previousComment == null ?
|
|
20004
|
+
if (!isBlock || (previousComment == null ? undefined : previousComment.hasLineSuffix)) {
|
|
20005
20005
|
return { doc: [lineSuffix2([" ", printed]), breakParent2], isBlock, hasLineSuffix: true };
|
|
20006
20006
|
}
|
|
20007
20007
|
return { doc: [" ", printed], isBlock, hasLineSuffix: false };
|
|
@@ -20021,7 +20021,7 @@ function printCommentsSeparately(path132, options8) {
|
|
|
20021
20021
|
let printedTrailingComment;
|
|
20022
20022
|
path132.each(() => {
|
|
20023
20023
|
const comment = path132.node;
|
|
20024
|
-
if (ignored == null ?
|
|
20024
|
+
if (ignored == null ? undefined : ignored.has(comment)) {
|
|
20025
20025
|
return;
|
|
20026
20026
|
}
|
|
20027
20027
|
const { leading, trailing } = comment;
|
|
@@ -20057,7 +20057,7 @@ function createPrintPreCheckFunction(options8) {
|
|
|
20057
20057
|
}
|
|
20058
20058
|
}
|
|
20059
20059
|
var create_print_pre_check_function_default = createPrintPreCheckFunction;
|
|
20060
|
-
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":
|
|
20060
|
+
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": undefined, "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." }] } };
|
|
20061
20061
|
function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
20062
20062
|
const languages2 = plugins.flatMap((plugin) => plugin.languages ?? []);
|
|
20063
20063
|
const options8 = [];
|
|
@@ -20075,7 +20075,7 @@ function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
|
20075
20075
|
}
|
|
20076
20076
|
option.pluginDefaults = Object.fromEntries(plugins.filter((plugin) => {
|
|
20077
20077
|
var _a;
|
|
20078
|
-
return ((_a = plugin.defaultOptions) == null ?
|
|
20078
|
+
return ((_a = plugin.defaultOptions) == null ? undefined : _a[option.name]) !== undefined;
|
|
20079
20079
|
}).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]]));
|
|
20080
20080
|
options8.push(option);
|
|
20081
20081
|
}
|
|
@@ -20090,7 +20090,7 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) {
|
|
|
20090
20090
|
existingParsers.add(parserName);
|
|
20091
20091
|
const plugin = plugins.find((plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
|
|
20092
20092
|
let description = language.name;
|
|
20093
|
-
if (plugin == null ?
|
|
20093
|
+
if (plugin == null ? undefined : plugin.name) {
|
|
20094
20094
|
description += ` (plugin: ${plugin.name})`;
|
|
20095
20095
|
}
|
|
20096
20096
|
yield { value: parserName, description };
|
|
@@ -20130,7 +20130,7 @@ function normalizeOptions(options8, optionInfos, { logger = false, isCLI = false
|
|
|
20130
20130
|
const unknown = !passThrough ? (key2, value, options9) => {
|
|
20131
20131
|
const { _, ...schemas2 } = options9.schemas;
|
|
20132
20132
|
return levenUnknownHandler(key2, value, { ...options9, schemas: schemas2 });
|
|
20133
|
-
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ?
|
|
20133
|
+
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? undefined : { [key2]: value } : (key2, value) => ({ [key2]: value });
|
|
20134
20134
|
const schemas = optionInfosToSchemas(optionInfos, { isCLI, FlagSchema });
|
|
20135
20135
|
const normalizer = new Normalizer(schemas, { logger, unknown, descriptor });
|
|
20136
20136
|
const shouldSuppressDuplicateDeprecationWarnings = logger !== false;
|
|
@@ -20177,7 +20177,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20177
20177
|
break;
|
|
20178
20178
|
case "choice":
|
|
20179
20179
|
SchemaConstructor = ChoiceSchema;
|
|
20180
|
-
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ?
|
|
20180
|
+
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ? undefined : choiceInfo.redirect) ? { ...choiceInfo, redirect: { to: { key: optionInfo.name, value: choiceInfo.redirect } } } : choiceInfo);
|
|
20181
20181
|
break;
|
|
20182
20182
|
case "boolean":
|
|
20183
20183
|
SchemaConstructor = BooleanSchema;
|
|
@@ -20195,10 +20195,10 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20195
20195
|
if (optionInfo.exception) {
|
|
20196
20196
|
parameters.validate = (value, schema2, utils2) => optionInfo.exception(value) || schema2.validate(value, utils2);
|
|
20197
20197
|
} else {
|
|
20198
|
-
parameters.validate = (value, schema2, utils2) => value ===
|
|
20198
|
+
parameters.validate = (value, schema2, utils2) => value === undefined || schema2.validate(value, utils2);
|
|
20199
20199
|
}
|
|
20200
20200
|
if (optionInfo.redirect) {
|
|
20201
|
-
handlers.redirect = (value) => !value ?
|
|
20201
|
+
handlers.redirect = (value) => !value ? undefined : { to: { key: optionInfo.redirect.option, value: optionInfo.redirect.value } };
|
|
20202
20202
|
}
|
|
20203
20203
|
if (optionInfo.deprecated) {
|
|
20204
20204
|
handlers.deprecated = true;
|
|
@@ -20221,7 +20221,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20221
20221
|
}
|
|
20222
20222
|
var normalize_options_default = normalizeOptions;
|
|
20223
20223
|
var arrayFindLast = (isOptionalObject, array2, callback) => {
|
|
20224
|
-
if (isOptionalObject && (array2 ===
|
|
20224
|
+
if (isOptionalObject && (array2 === undefined || array2 === null)) {
|
|
20225
20225
|
return;
|
|
20226
20226
|
}
|
|
20227
20227
|
if (array2.findLast) {
|
|
@@ -20279,7 +20279,7 @@ function initPrinter(plugin, astFormat) {
|
|
|
20279
20279
|
const printerOrPrinterInitFunction = plugin.printers[astFormat];
|
|
20280
20280
|
return typeof printerOrPrinterInitFunction === "function" ? printerOrPrinterInitFunction() : printerOrPrinterInitFunction;
|
|
20281
20281
|
}
|
|
20282
|
-
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText:
|
|
20282
|
+
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText: undefined, locStart: null, locEnd: null };
|
|
20283
20283
|
async function normalizeFormatOptions(options8, opts = {}) {
|
|
20284
20284
|
var _a;
|
|
20285
20285
|
const rawOptions = { ...options8 };
|
|
@@ -20294,19 +20294,19 @@ async function normalizeFormatOptions(options8, opts = {}) {
|
|
|
20294
20294
|
}
|
|
20295
20295
|
}
|
|
20296
20296
|
const supportOptions = getSupportInfo({ plugins: options8.plugins, showDeprecated: true }).options;
|
|
20297
|
-
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !==
|
|
20297
|
+
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !== undefined).map((option) => [option.name, option.default])) };
|
|
20298
20298
|
const parserPlugin = getParserPluginByParserName(rawOptions.plugins, rawOptions.parser);
|
|
20299
20299
|
const parser = await initParser(parserPlugin, rawOptions.parser);
|
|
20300
20300
|
rawOptions.astFormat = parser.astFormat;
|
|
20301
20301
|
rawOptions.locEnd = parser.locEnd;
|
|
20302
20302
|
rawOptions.locStart = parser.locStart;
|
|
20303
|
-
const printerPlugin = ((_a = parserPlugin.printers) == null ?
|
|
20303
|
+
const printerPlugin = ((_a = parserPlugin.printers) == null ? undefined : _a[parser.astFormat]) ? parserPlugin : getPrinterPluginByAstFormat(rawOptions.plugins, parser.astFormat);
|
|
20304
20304
|
const printer2 = await initPrinter(printerPlugin, parser.astFormat);
|
|
20305
20305
|
rawOptions.printer = printer2;
|
|
20306
|
-
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !==
|
|
20306
|
+
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !== undefined)) : {};
|
|
20307
20307
|
const mixedDefaults = { ...defaults, ...pluginDefaults };
|
|
20308
20308
|
for (const [k, value] of Object.entries(mixedDefaults)) {
|
|
20309
|
-
if (rawOptions[k] === null || rawOptions[k] ===
|
|
20309
|
+
if (rawOptions[k] === null || rawOptions[k] === undefined) {
|
|
20310
20310
|
rawOptions[k] = value;
|
|
20311
20311
|
}
|
|
20312
20312
|
}
|
|
@@ -20424,11 +20424,11 @@ async function printAstToDoc(ast, options8) {
|
|
|
20424
20424
|
const ensurePrintingNode = create_print_pre_check_function_default();
|
|
20425
20425
|
const embeds = /* @__PURE__ */ new Map();
|
|
20426
20426
|
await printEmbeddedLanguages(path132, mainPrint, options8, printAstToDoc, embeds);
|
|
20427
|
-
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint,
|
|
20427
|
+
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint, undefined, embeds);
|
|
20428
20428
|
ensureAllCommentsPrinted(options8);
|
|
20429
20429
|
return doc2;
|
|
20430
20430
|
function mainPrint(selector, args) {
|
|
20431
|
-
if (selector ===
|
|
20431
|
+
if (selector === undefined || selector === path132) {
|
|
20432
20432
|
return mainPrintInternal(args);
|
|
20433
20433
|
}
|
|
20434
20434
|
if (Array.isArray(selector)) {
|
|
@@ -20439,10 +20439,10 @@ async function printAstToDoc(ast, options8) {
|
|
|
20439
20439
|
function mainPrintInternal(args) {
|
|
20440
20440
|
ensurePrintingNode(path132);
|
|
20441
20441
|
const value = path132.node;
|
|
20442
|
-
if (value ===
|
|
20442
|
+
if (value === undefined || value === null) {
|
|
20443
20443
|
return "";
|
|
20444
20444
|
}
|
|
20445
|
-
const shouldCache = value && typeof value === "object" && args ===
|
|
20445
|
+
const shouldCache = value && typeof value === "object" && args === undefined;
|
|
20446
20446
|
if (shouldCache && cache3.has(value)) {
|
|
20447
20447
|
return cache3.get(value);
|
|
20448
20448
|
}
|
|
@@ -20458,7 +20458,7 @@ function callPluginPrintFunction(path132, options8, printPath, args, embeds) {
|
|
|
20458
20458
|
const { node } = path132;
|
|
20459
20459
|
const { printer: printer2 } = options8;
|
|
20460
20460
|
let doc2;
|
|
20461
|
-
if ((_a = printer2.hasPrettierIgnore) == null ?
|
|
20461
|
+
if ((_a = printer2.hasPrettierIgnore) == null ? undefined : _a.call(printer2, path132)) {
|
|
20462
20462
|
doc2 = print_ignored_default(path132, options8);
|
|
20463
20463
|
} else if (embeds.has(node)) {
|
|
20464
20464
|
doc2 = embeds.get(node);
|
|
@@ -20539,7 +20539,7 @@ function dropRootParents(parents) {
|
|
|
20539
20539
|
let lastParentIndex = parents.length - 1;
|
|
20540
20540
|
for (; ; ) {
|
|
20541
20541
|
const parent = parents[lastParentIndex];
|
|
20542
|
-
if ((parent == null ?
|
|
20542
|
+
if ((parent == null ? undefined : parent.type) === "Program" || (parent == null ? undefined : parent.type) === "File") {
|
|
20543
20543
|
lastParentIndex--;
|
|
20544
20544
|
} else {
|
|
20545
20545
|
break;
|
|
@@ -20610,7 +20610,7 @@ function isSourceElement(opts, node, parentNode) {
|
|
|
20610
20610
|
case "espree":
|
|
20611
20611
|
case "meriyah":
|
|
20612
20612
|
case "__babel_estree":
|
|
20613
|
-
return isJsSourceElement(node.type, parentNode == null ?
|
|
20613
|
+
return isJsSourceElement(node.type, parentNode == null ? undefined : parentNode.type);
|
|
20614
20614
|
case "json":
|
|
20615
20615
|
case "json5":
|
|
20616
20616
|
case "jsonc":
|
|
@@ -20672,7 +20672,7 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) {
|
|
|
20672
20672
|
const result = printDocToString2(doc2, opts);
|
|
20673
20673
|
if (addAlignmentSize > 0) {
|
|
20674
20674
|
const trimmed = result.formatted.trim();
|
|
20675
|
-
if (result.cursorNodeStart !==
|
|
20675
|
+
if (result.cursorNodeStart !== undefined) {
|
|
20676
20676
|
result.cursorNodeStart -= result.formatted.indexOf(trimmed);
|
|
20677
20677
|
}
|
|
20678
20678
|
result.formatted = trimmed + convertEndOfLineToChars2(opts.endOfLine);
|
|
@@ -20871,7 +20871,7 @@ var languages_evaluate_default4 = [{ "linguistLanguageId": 146, "name": "Angular
|
|
|
20871
20871
|
var CATEGORY_HTML = "HTML";
|
|
20872
20872
|
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." } };
|
|
20873
20873
|
var options_default3 = options3;
|
|
20874
|
-
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":
|
|
20874
|
+
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": undefined, "aliases": undefined, "extensions": [".jsx"], "filenames": undefined, "interpreters": undefined, "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"] }];
|
|
20875
20875
|
var CATEGORY_JAVASCRIPT = "JavaScript";
|
|
20876
20876
|
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 };
|
|
20877
20877
|
var options_default4 = options4;
|
|
@@ -20903,7 +20903,7 @@ function createParsersAndPrinters(modules) {
|
|
|
20903
20903
|
}
|
|
20904
20904
|
var options7 = { ...options_default, ...options_default2, ...options_default3, ...options_default4, ...options_default5, ...options_default6 };
|
|
20905
20905
|
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];
|
|
20906
|
-
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-
|
|
20906
|
+
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-3THQ32IG.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-DSZBMSHE.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-43DHTXSG.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-4V7XYVQ7.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-4VPTIRUU.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-QRL5YBEU.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-S4ZJ2ATB.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-KBWPHUS5.js'), parsers: ["html", "angular", "vue", "lwc"], printers: ["html"] }, { importPlugin: () => import('./markdown-AXMIWY2Z.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-IQRPKR7T.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-G7ZXLDUB.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-M3AI4XS4.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-4XSVHWM4.js'), parsers: ["yaml"], printers: ["yaml"] }]);
|
|
20907
20907
|
function loadBuiltinPlugins() {
|
|
20908
20908
|
return [builtin_plugins_proxy_exports];
|
|
20909
20909
|
}
|
|
@@ -21255,7 +21255,7 @@ async function generatePerActionDataFiles({
|
|
|
21255
21255
|
${entries.map(([key2, value]) => {
|
|
21256
21256
|
return `"${key2}": {
|
|
21257
21257
|
${stringify(value, {
|
|
21258
|
-
description: (value2, d) => value2 ? d(value2) :
|
|
21258
|
+
description: (value2, d) => value2 ? d(value2) : undefined,
|
|
21259
21259
|
// trick to remove undefineds
|
|
21260
21260
|
type: (type2) => {
|
|
21261
21261
|
if (typeof type2 === "string") {
|
|
@@ -21272,7 +21272,7 @@ async function generatePerActionDataFiles({
|
|
|
21272
21272
|
} else if (type2.type === "struct") {
|
|
21273
21273
|
return `ActionMetadata.DataType.Struct<${JSON.stringify(type2.struct)}>`;
|
|
21274
21274
|
}
|
|
21275
|
-
return
|
|
21275
|
+
return undefined;
|
|
21276
21276
|
}
|
|
21277
21277
|
})}
|
|
21278
21278
|
}`;
|
|
@@ -21323,7 +21323,7 @@ async function generatePerActionDataFiles({
|
|
|
21323
21323
|
}
|
|
21324
21324
|
}
|
|
21325
21325
|
}
|
|
21326
|
-
const imports = getObjectImports(referencedObjectDefs,
|
|
21326
|
+
const imports = getObjectImports(referencedObjectDefs, undefined, currentFilePath, true);
|
|
21327
21327
|
await fs9.writeFile(path9__default.join(rootOutDir, currentFilePath), await formatTs(`
|
|
21328
21328
|
import type {
|
|
21329
21329
|
ActionDefinition,
|
|
@@ -21383,12 +21383,12 @@ async function generatePerActionDataFiles({
|
|
|
21383
21383
|
signatures: ${action.shortApiName}.Signatures;
|
|
21384
21384
|
},
|
|
21385
21385
|
${stringify(fullActionDef, {
|
|
21386
|
-
"description": () =>
|
|
21387
|
-
"displayName": () =>
|
|
21388
|
-
"modifiedEntities": () =>
|
|
21389
|
-
"parameters": () =>
|
|
21390
|
-
"rid": () =>
|
|
21391
|
-
"status": () =>
|
|
21386
|
+
"description": () => undefined,
|
|
21387
|
+
"displayName": () => undefined,
|
|
21388
|
+
"modifiedEntities": () => undefined,
|
|
21389
|
+
"parameters": () => undefined,
|
|
21390
|
+
"rid": () => undefined,
|
|
21391
|
+
"status": () => undefined
|
|
21392
21392
|
})}
|
|
21393
21393
|
osdkMetadata: typeof $osdkMetadata;
|
|
21394
21394
|
}
|
|
@@ -21399,12 +21399,12 @@ async function generatePerActionDataFiles({
|
|
|
21399
21399
|
return ` export const ${action.shortApiName}: ${action.shortApiName} =
|
|
21400
21400
|
{
|
|
21401
21401
|
${stringify(fullActionDef, {
|
|
21402
|
-
"description": () =>
|
|
21403
|
-
"displayName": () =>
|
|
21404
|
-
"modifiedEntities": () =>
|
|
21405
|
-
"parameters": () =>
|
|
21406
|
-
"rid": () =>
|
|
21407
|
-
"status": () =>
|
|
21402
|
+
"description": () => undefined,
|
|
21403
|
+
"displayName": () => undefined,
|
|
21404
|
+
"modifiedEntities": () => undefined,
|
|
21405
|
+
"parameters": () => undefined,
|
|
21406
|
+
"rid": () => undefined,
|
|
21407
|
+
"status": () => undefined
|
|
21408
21408
|
})},
|
|
21409
21409
|
osdkMetadata: $osdkMetadata
|
|
21410
21410
|
}
|
|
@@ -21458,7 +21458,7 @@ function extractReferencedObjectsFromActionParameter(actionParameter) {
|
|
|
21458
21458
|
case "integer":
|
|
21459
21459
|
case "long":
|
|
21460
21460
|
case "timestamp":
|
|
21461
|
-
return
|
|
21461
|
+
return undefined;
|
|
21462
21462
|
}
|
|
21463
21463
|
}
|
|
21464
21464
|
|
|
@@ -21735,9 +21735,9 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
|
|
|
21735
21735
|
}
|
|
21736
21736
|
for (const apiName of Object.keys(parent.properties)) {
|
|
21737
21737
|
if (definition.properties[apiName] != null) {
|
|
21738
|
-
!(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() :
|
|
21738
|
+
!(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() : undefined;
|
|
21739
21739
|
} else if (mergedProperties[apiName] != null) {
|
|
21740
|
-
!(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() :
|
|
21740
|
+
!(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() : undefined;
|
|
21741
21741
|
}
|
|
21742
21742
|
mergedProperties[apiName] = parent.properties[apiName];
|
|
21743
21743
|
}
|
|
@@ -22010,9 +22010,9 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22010
22010
|
signature: ${query.shortApiName}.Signature;
|
|
22011
22011
|
},
|
|
22012
22012
|
${stringify(baseProps, {
|
|
22013
|
-
"description": () =>
|
|
22014
|
-
"displayName": () =>
|
|
22015
|
-
"rid": () =>
|
|
22013
|
+
"description": () => undefined,
|
|
22014
|
+
"displayName": () => undefined,
|
|
22015
|
+
"rid": () => undefined
|
|
22016
22016
|
})},
|
|
22017
22017
|
osdkMetadata: typeof $osdkMetadata;
|
|
22018
22018
|
}
|
|
@@ -22020,9 +22020,9 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22020
22020
|
|
|
22021
22021
|
export const ${query.shortApiName}: ${query.definitionIdentifier} = {
|
|
22022
22022
|
${stringify(baseProps, {
|
|
22023
|
-
"description": () =>
|
|
22024
|
-
"displayName": () =>
|
|
22025
|
-
"rid": () =>
|
|
22023
|
+
"description": () => undefined,
|
|
22024
|
+
"displayName": () => undefined,
|
|
22025
|
+
"rid": () => undefined
|
|
22026
22026
|
})},
|
|
22027
22027
|
osdkMetadata: $osdkMetadata
|
|
22028
22028
|
};
|
|
@@ -22270,7 +22270,7 @@ function getPackageJsonContents(name, version, dependencyVersions) {
|
|
|
22270
22270
|
};
|
|
22271
22271
|
}
|
|
22272
22272
|
async function writeJson(minimalFs, filePath, body) {
|
|
22273
|
-
return void await minimalFs.writeFile(filePath, JSON.stringify(body,
|
|
22273
|
+
return void await minimalFs.writeFile(filePath, JSON.stringify(body, undefined, 2) + "\n");
|
|
22274
22274
|
}
|
|
22275
22275
|
|
|
22276
22276
|
// ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.10.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/index.js
|
|
@@ -22329,9 +22329,9 @@ var UnknownError = class extends PalantirApiError2 {
|
|
|
22329
22329
|
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.2.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
22330
22330
|
async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
|
|
22331
22331
|
const path21 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
|
|
22332
|
-
const body = flags & 1 ? args.shift() :
|
|
22333
|
-
const queryArgs = flags & 2 ? args.shift() :
|
|
22334
|
-
const headerArgs = flags & 4 ? args.shift() :
|
|
22332
|
+
const body = flags & 1 ? args.shift() : undefined;
|
|
22333
|
+
const queryArgs = flags & 2 ? args.shift() : undefined;
|
|
22334
|
+
const headerArgs = flags & 4 ? args.shift() : undefined;
|
|
22335
22335
|
const method = ["GET", "POST", "PUT", "DELETE", "PATCH"][httpMethodNum];
|
|
22336
22336
|
return await apiFetch(client[symbolClientContext2] ?? client[symbolClientContext] ?? client, method, path21, body, queryArgs, headerArgs, contentType, responseContentType);
|
|
22337
22337
|
}
|
|
@@ -22475,7 +22475,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
|
|
|
22475
22475
|
|
|
22476
22476
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
22477
22477
|
var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
|
|
22478
|
-
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.25.0-beta.
|
|
22478
|
+
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.25.0-beta.29"}`;
|
|
22479
22479
|
async function handleGenerate(args) {
|
|
22480
22480
|
let success = false;
|
|
22481
22481
|
if (args.ontologyPath) {
|
|
@@ -22611,7 +22611,7 @@ async function generateClientSdk(ontology, args) {
|
|
|
22611
22611
|
}
|
|
22612
22612
|
return true;
|
|
22613
22613
|
}
|
|
22614
|
-
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.25.0-beta.
|
|
22614
|
+
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.25.0-beta.29", args.externalObjects, args.externalInterfaces);
|
|
22615
22615
|
return true;
|
|
22616
22616
|
} catch (e) {
|
|
22617
22617
|
consola.error("OSDK generation failed", e.message, e.stack);
|
|
@@ -22638,8 +22638,8 @@ async function getDependencyVersions() {
|
|
|
22638
22638
|
typescriptVersion,
|
|
22639
22639
|
tslibVersion,
|
|
22640
22640
|
areTheTypesWrongVersion,
|
|
22641
|
-
osdkApiVersion: `^${"2.1.0-beta.
|
|
22642
|
-
osdkClientVersion: `^${"2.1.0-beta.
|
|
22641
|
+
osdkApiVersion: `^${"2.1.0-beta.29"}`,
|
|
22642
|
+
osdkClientVersion: `^${"2.1.0-beta.29"}`,
|
|
22643
22643
|
osdkLegacyClientVersion
|
|
22644
22644
|
};
|
|
22645
22645
|
}
|
|
@@ -22678,5 +22678,5 @@ function createNormalFs() {
|
|
|
22678
22678
|
}
|
|
22679
22679
|
|
|
22680
22680
|
export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
|
|
22681
|
-
//# sourceMappingURL=handleGenerate-
|
|
22682
|
-
//# sourceMappingURL=handleGenerate-
|
|
22681
|
+
//# sourceMappingURL=handleGenerate-LUVSUFBP.js.map
|
|
22682
|
+
//# sourceMappingURL=handleGenerate-LUVSUFBP.js.map
|