@osdk/cli 0.26.0-beta.8 → 0.26.0-rc.24
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 +67 -0
- package/build/esm/{acorn-RXMSUCXL.js → acorn-TOBUZL7E.js} +33 -34
- package/build/esm/{acorn-RXMSUCXL.js.map → acorn-TOBUZL7E.js.map} +1 -1
- package/build/esm/{angular-ZXAN5BMN.js → angular-KEEXFHZL.js} +11 -11
- package/build/esm/{angular-ZXAN5BMN.js.map → angular-KEEXFHZL.js.map} +1 -1
- package/build/esm/{babel-TI7T67T2.js → babel-5PSSMNMW.js} +67 -67
- package/build/esm/{babel-TI7T67T2.js.map → babel-5PSSMNMW.js.map} +1 -1
- package/build/esm/{chunk-N3LXG6II.js → chunk-7UN3PA2S.js} +3 -3
- package/build/esm/{chunk-N3LXG6II.js.map → chunk-7UN3PA2S.js.map} +1 -1
- package/build/esm/{chunk-VHOQB2JW.js → chunk-CGHHQ7AY.js} +4 -4
- package/build/esm/{chunk-VHOQB2JW.js.map → chunk-CGHHQ7AY.js.map} +1 -1
- package/build/esm/{chunk-KJFA7LBI.js → chunk-JPYBJBRJ.js} +6 -6
- package/build/esm/{chunk-KJFA7LBI.js.map → chunk-JPYBJBRJ.js.map} +1 -1
- package/build/esm/{chunk-P5HXJTVE.js → chunk-KUPCZEOX.js} +13 -13
- package/build/esm/{chunk-P5HXJTVE.js.map → chunk-KUPCZEOX.js.map} +1 -1
- package/build/esm/{chunk-2U36M44D.js → chunk-M4ZNCKMY.js} +3 -3
- package/build/esm/{chunk-2U36M44D.js.map → chunk-M4ZNCKMY.js.map} +1 -1
- package/build/esm/{chunk-OFL7F425.js → chunk-MOAFOW5T.js} +23 -51
- package/build/esm/chunk-MOAFOW5T.js.map +1 -0
- package/build/esm/{chunk-M2BWWO6L.js → chunk-PME7V3W5.js} +6 -6
- package/build/esm/chunk-PME7V3W5.js.map +1 -0
- package/build/esm/{chunk-MU54JM45.js → chunk-XOFPRGD5.js} +7 -7
- package/build/esm/{chunk-MU54JM45.js.map → chunk-XOFPRGD5.js.map} +1 -1
- package/build/esm/{chunk-ML7ZMS6G.js → chunk-YJFH4XYM.js} +3 -3
- package/build/esm/{chunk-ML7ZMS6G.js.map → chunk-YJFH4XYM.js.map} +1 -1
- package/build/esm/{estree-CSIG7D6Y.js → estree-G3OYCIFP.js} +102 -118
- package/build/esm/{estree-CSIG7D6Y.js.map → estree-G3OYCIFP.js.map} +1 -1
- package/build/esm/find-up-CF34C5LW.js +4 -0
- package/build/esm/{find-up-EKHQCTZM.js.map → find-up-CF34C5LW.js.map} +1 -1
- package/build/esm/{flow-NUNWZLRW.js → flow-76OUAQ5X.js} +14 -14
- package/build/esm/{flow-NUNWZLRW.js.map → flow-76OUAQ5X.js.map} +1 -1
- package/build/esm/{glimmer-GYUSOBQY.js → glimmer-J3JDI2DZ.js} +53 -53
- package/build/esm/{glimmer-GYUSOBQY.js.map → glimmer-J3JDI2DZ.js.map} +1 -1
- package/build/esm/{graphql-OALHBC5M.js → graphql-WMUJ6I5N.js} +22 -57
- package/build/esm/graphql-WMUJ6I5N.js.map +1 -0
- package/build/esm/{handleGenerate-3SPVQBRK.js → handleGenerate-3JOJAO7Q.js} +316 -318
- package/build/esm/handleGenerate-3JOJAO7Q.js.map +1 -0
- package/build/esm/{html-4RLNYFM4.js → html-3MJQME6X.js} +37 -66
- package/build/esm/html-3MJQME6X.js.map +1 -0
- package/build/esm/index.js +24 -24
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-YYX3TRL6.js +4 -0
- package/build/esm/{loginFlow-ETZCNKG3.js.map → loginFlow-YYX3TRL6.js.map} +1 -1
- package/build/esm/{markdown-MRACSGE5.js → markdown-H7V23EC7.js} +49 -69
- package/build/esm/{markdown-MRACSGE5.js.map → markdown-H7V23EC7.js.map} +1 -1
- package/build/esm/{meriyah-LVMHXIGF.js → meriyah-DOVZXFCT.js} +36 -36
- package/build/esm/{meriyah-LVMHXIGF.js.map → meriyah-DOVZXFCT.js.map} +1 -1
- package/build/esm/{postcss-A2ITI5N4.js → postcss-CHJDPNAX.js} +79 -115
- package/build/esm/{postcss-A2ITI5N4.js.map → postcss-CHJDPNAX.js.map} +1 -1
- package/build/esm/{siteDeployCommand-Y5UMKNDE.js → siteDeployCommand-S2IKMS4W.js} +57 -11
- package/build/esm/siteDeployCommand-S2IKMS4W.js.map +1 -0
- package/build/esm/{typescript-BMNHHGAA.js → typescript-M7LM37RB.js} +670 -668
- package/build/esm/{typescript-BMNHHGAA.js.map → typescript-M7LM37RB.js.map} +1 -1
- package/build/esm/versionDeleteCommand-FB2HYF6F.js +37 -0
- package/build/esm/versionDeleteCommand-FB2HYF6F.js.map +1 -0
- package/build/esm/{versionDeleteCommand-VTDZ5DMG.js → versionDeleteCommand-OSJJBSKF.js} +7 -7
- package/build/esm/{versionDeleteCommand-VTDZ5DMG.js.map → versionDeleteCommand-OSJJBSKF.js.map} +1 -1
- package/build/esm/{versionGetCommand-5RGYFRW4.js → versionGetCommand-W4NMDPAS.js} +6 -6
- package/build/esm/{versionGetCommand-5RGYFRW4.js.map → versionGetCommand-W4NMDPAS.js.map} +1 -1
- package/build/esm/{versionInfoCommand-GUETKW4X.js → versionInfoCommand-W7DSBUNA.js} +7 -7
- package/build/esm/versionInfoCommand-W7DSBUNA.js.map +1 -0
- package/build/esm/{versionListCommand-ETUCNREL.js → versionListCommand-2HY4GM3Y.js} +9 -9
- package/build/esm/versionListCommand-2HY4GM3Y.js.map +1 -0
- package/build/esm/{versionListCommand-BPI6W6H5.js → versionListCommand-SJBGRD2X.js} +6 -6
- package/build/esm/{versionListCommand-BPI6W6H5.js.map → versionListCommand-SJBGRD2X.js.map} +1 -1
- package/build/esm/{versionSetCommand-5JMRDYUM.js → versionSetCommand-CUUEY7YQ.js} +6 -6
- package/build/esm/{versionSetCommand-5JMRDYUM.js.map → versionSetCommand-CUUEY7YQ.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-CL5VWZ6T.js → versionUnsetCommand-6H3NE5HA.js} +7 -7
- package/build/esm/{versionUnsetCommand-CL5VWZ6T.js.map → versionUnsetCommand-6H3NE5HA.js.map} +1 -1
- package/build/esm/{widgetSetDeployCommand-KK2J3CM6.js → widgetSetDeployCommand-6RPBYASM.js} +10 -19
- package/build/esm/widgetSetDeployCommand-6RPBYASM.js.map +1 -0
- package/build/esm/{yaml-XQ236J4T.js → yaml-G7CHE6AH.js} +50 -63
- package/build/esm/yaml-G7CHE6AH.js.map +1 -0
- package/build/types/commands/site/deploy/index.d.ts.map +1 -1
- package/build/types/commands/site/deploy/siteDeployCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/get/versionGetCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/list/versionListCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/set/versionSetCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/deploy/widgetSetDeployCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/version/delete/versionDeleteCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/version/info/versionInfoCommand.d.mts.map +1 -1
- package/build/types/commands/widgetset/version/list/versionListCommand.d.mts.map +1 -1
- package/build/types/net/third-party-applications/index.d.mts +4 -4
- package/build/types/net/third-party-applications/index.d.mts.map +1 -1
- package/build/types/net/widget-registry/ListReleasesResponse.d.mts +5 -0
- package/build/types/net/widget-registry/ListReleasesResponse.d.mts.map +1 -0
- package/build/types/net/widget-registry/Release.d.mts +8 -0
- package/build/types/net/widget-registry/Release.d.mts.map +1 -0
- package/build/types/net/widget-registry/ReleaseLocator.d.mts +6 -0
- package/build/types/net/widget-registry/ReleaseLocator.d.mts.map +1 -0
- package/build/types/net/widget-registry/deleteRelease.d.mts +3 -0
- package/build/types/net/widget-registry/deleteRelease.d.mts.map +1 -0
- package/build/types/net/widget-registry/getRelease.d.mts +4 -0
- package/build/types/net/widget-registry/getRelease.d.mts.map +1 -0
- package/build/types/net/widget-registry/index.d.mts +7 -8
- package/build/types/net/widget-registry/index.d.mts.map +1 -1
- package/build/types/net/widget-registry/listReleases.d.mts +4 -0
- package/build/types/net/widget-registry/listReleases.d.mts.map +1 -0
- package/build/types/net/widget-registry/publishRelease.d.mts +4 -0
- package/build/types/net/widget-registry/publishRelease.d.mts.map +1 -0
- package/build/types/util/maybeUpdateJemmaCustomMetadata.d.ts +17 -0
- package/build/types/util/maybeUpdateJemmaCustomMetadata.d.ts.map +1 -0
- package/build/types/util/maybeUpdateJemmaCustomMetadata.test.d.ts +1 -0
- package/build/types/util/maybeUpdateJemmaCustomMetadata.test.d.ts.map +1 -0
- package/package.json +7 -7
- package/build/esm/chunk-M2BWWO6L.js.map +0 -1
- package/build/esm/chunk-OFL7F425.js.map +0 -1
- package/build/esm/find-up-EKHQCTZM.js +0 -4
- package/build/esm/graphql-OALHBC5M.js.map +0 -1
- package/build/esm/handleGenerate-3SPVQBRK.js.map +0 -1
- package/build/esm/html-4RLNYFM4.js.map +0 -1
- package/build/esm/loginFlow-ETZCNKG3.js +0 -4
- package/build/esm/siteDeployCommand-Y5UMKNDE.js.map +0 -1
- package/build/esm/versionDeleteCommand-V3ERNBUY.js +0 -59
- package/build/esm/versionDeleteCommand-V3ERNBUY.js.map +0 -1
- package/build/esm/versionInfoCommand-GUETKW4X.js.map +0 -1
- package/build/esm/versionListCommand-ETUCNREL.js.map +0 -1
- package/build/esm/widgetSetDeployCommand-KK2J3CM6.js.map +0 -1
- package/build/esm/yaml-XQ236J4T.js.map +0 -1
- package/build/types/net/widget-registry/ListWidgetSetReleasesResponse.d.mts +0 -5
- package/build/types/net/widget-registry/ListWidgetSetReleasesResponse.d.mts.map +0 -1
- package/build/types/net/widget-registry/WidgetSetLocator.d.mts +0 -16
- package/build/types/net/widget-registry/WidgetSetLocator.d.mts.map +0 -1
- package/build/types/net/widget-registry/WidgetSetRelease.d.mts +0 -13
- package/build/types/net/widget-registry/WidgetSetRelease.d.mts.map +0 -1
- package/build/types/net/widget-registry/deleteSiteVersion.d.mts +0 -4
- package/build/types/net/widget-registry/deleteSiteVersion.d.mts.map +0 -1
- package/build/types/net/widget-registry/deleteWidgetSetRelease.d.mts +0 -3
- package/build/types/net/widget-registry/deleteWidgetSetRelease.d.mts.map +0 -1
- package/build/types/net/widget-registry/getWidgetSetRelease.d.mts +0 -4
- package/build/types/net/widget-registry/getWidgetSetRelease.d.mts.map +0 -1
- package/build/types/net/widget-registry/listWidgetSetReleases.d.mts +0 -4
- package/build/types/net/widget-registry/listWidgetSetReleases.d.mts.map +0 -1
- package/build/types/net/widget-registry/publishManifest.d.mts +0 -4
- package/build/types/net/widget-registry/publishManifest.d.mts.map +0 -1
- package/build/types/net/widget-registry/uploadSiteVersion.d.mts +0 -4
- package/build/types/net/widget-registry/uploadSiteVersion.d.mts.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-KUPCZEOX.js';
|
|
2
|
+
import { YargsCheckError, ExitProcessError } from './chunk-M4ZNCKMY.js';
|
|
3
|
+
import { findUp } from './chunk-JPYBJBRJ.js';
|
|
4
|
+
import { invokeLoginFlow } from './chunk-PME7V3W5.js';
|
|
5
|
+
import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-CGHHQ7AY.js';
|
|
6
6
|
import * as fs8 from 'node:fs';
|
|
7
7
|
import * as path19 from 'node:path';
|
|
8
8
|
import path19__default from 'node:path';
|
|
@@ -57,10 +57,10 @@ var require_fast_deep_equal = __commonJS({
|
|
|
57
57
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
58
58
|
init_esm_shims();
|
|
59
59
|
|
|
60
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
60
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
|
|
61
61
|
init_esm_shims();
|
|
62
62
|
|
|
63
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
63
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
64
64
|
init_esm_shims();
|
|
65
65
|
|
|
66
66
|
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
|
|
@@ -113,9 +113,9 @@ var UnknownError = class extends PalantirApiError2 {
|
|
|
113
113
|
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
114
114
|
async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
|
|
115
115
|
const path21 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
|
|
116
|
-
const body = flags & 1 ? args.shift() :
|
|
117
|
-
const queryArgs = flags & 2 ? args.shift() :
|
|
118
|
-
const headerArgs = flags & 4 ? args.shift() :
|
|
116
|
+
const body = flags & 1 ? args.shift() : void 0;
|
|
117
|
+
const queryArgs = flags & 2 ? args.shift() : void 0;
|
|
118
|
+
const headerArgs = flags & 4 ? args.shift() : void 0;
|
|
119
119
|
const method = ["GET", "POST", "PUT", "DELETE", "PATCH"][httpMethodNum];
|
|
120
120
|
return await apiFetch(client[symbolClientContext2] ?? client[symbolClientContext] ?? client, method, path21, body, queryArgs, headerArgs, contentType, responseContentType);
|
|
121
121
|
}
|
|
@@ -171,39 +171,43 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
171
171
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
174
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
175
175
|
init_esm_shims();
|
|
176
176
|
|
|
177
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
177
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
178
178
|
init_esm_shims();
|
|
179
179
|
|
|
180
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
180
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
181
181
|
init_esm_shims();
|
|
182
182
|
|
|
183
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
183
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
184
184
|
init_esm_shims();
|
|
185
185
|
|
|
186
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
186
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
187
187
|
init_esm_shims();
|
|
188
188
|
|
|
189
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
189
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
190
190
|
init_esm_shims();
|
|
191
191
|
|
|
192
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
192
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
193
193
|
init_esm_shims();
|
|
194
194
|
|
|
195
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
195
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
196
196
|
init_esm_shims();
|
|
197
197
|
|
|
198
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
198
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
199
199
|
init_esm_shims();
|
|
200
200
|
|
|
201
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
201
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
202
|
+
init_esm_shims();
|
|
203
|
+
|
|
204
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
202
205
|
var OntologyV2_exports = {};
|
|
203
206
|
__export(OntologyV2_exports, {
|
|
204
207
|
get: () => get,
|
|
205
208
|
getFullMetadata: () => getFullMetadata,
|
|
206
|
-
list: () => list
|
|
209
|
+
list: () => list,
|
|
210
|
+
loadMetadata: () => loadMetadata
|
|
207
211
|
});
|
|
208
212
|
init_esm_shims();
|
|
209
213
|
var _list = [0, "/v2/ontologies"];
|
|
@@ -218,17 +222,21 @@ var _getFullMetadata = [0, "/v2/ontologies/{0}/fullMetadata"];
|
|
|
218
222
|
function getFullMetadata($ctx, ...args) {
|
|
219
223
|
return foundryPlatformFetch($ctx, _getFullMetadata, ...args);
|
|
220
224
|
}
|
|
225
|
+
var _loadMetadata = [1, "/v2/ontologies/{0}/metadata", 3];
|
|
226
|
+
function loadMetadata($ctx, ...args) {
|
|
227
|
+
return foundryPlatformFetch($ctx, _loadMetadata, ...args);
|
|
228
|
+
}
|
|
221
229
|
|
|
222
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
230
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
223
231
|
init_esm_shims();
|
|
224
232
|
|
|
225
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
233
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
226
234
|
init_esm_shims();
|
|
227
235
|
|
|
228
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
236
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
229
237
|
init_esm_shims();
|
|
230
238
|
|
|
231
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
239
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
232
240
|
init_esm_shims();
|
|
233
241
|
|
|
234
242
|
// ../generator/build/esm/index.js
|
|
@@ -287,7 +295,7 @@ var EnhancedBase = class extends AbstractImportable {
|
|
|
287
295
|
};
|
|
288
296
|
function extractNamespace(fqApiName) {
|
|
289
297
|
const last = fqApiName.lastIndexOf(".");
|
|
290
|
-
if (last === -1) return [
|
|
298
|
+
if (last === -1) return [void 0, fqApiName];
|
|
291
299
|
return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];
|
|
292
300
|
}
|
|
293
301
|
|
|
@@ -331,7 +339,7 @@ init_esm_shims();
|
|
|
331
339
|
function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
332
340
|
const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType, log);
|
|
333
341
|
if (sdkPropDefinition == null) {
|
|
334
|
-
return
|
|
342
|
+
return void 0;
|
|
335
343
|
}
|
|
336
344
|
switch (input.dataType.type) {
|
|
337
345
|
case "integer":
|
|
@@ -372,12 +380,12 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
|
372
380
|
case "cipherText":
|
|
373
381
|
case "vector": {
|
|
374
382
|
log?.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);
|
|
375
|
-
return
|
|
383
|
+
return void 0;
|
|
376
384
|
}
|
|
377
385
|
default:
|
|
378
386
|
input.dataType;
|
|
379
387
|
log?.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);
|
|
380
|
-
return
|
|
388
|
+
return void 0;
|
|
381
389
|
}
|
|
382
390
|
}
|
|
383
391
|
function objectPropertyTypeToSdkPropertyDefinition(propertyType, log) {
|
|
@@ -418,11 +426,11 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType, log) {
|
|
|
418
426
|
case "cipherText":
|
|
419
427
|
case "vector": {
|
|
420
428
|
log?.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);
|
|
421
|
-
return
|
|
429
|
+
return void 0;
|
|
422
430
|
}
|
|
423
431
|
default: {
|
|
424
432
|
log?.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);
|
|
425
|
-
return
|
|
433
|
+
return void 0;
|
|
426
434
|
}
|
|
427
435
|
}
|
|
428
436
|
}
|
|
@@ -502,6 +510,8 @@ function actionPropertyToSdkPropertyDefinition(parameterType) {
|
|
|
502
510
|
case "mediaReference":
|
|
503
511
|
case "marking":
|
|
504
512
|
case "objectType":
|
|
513
|
+
case "geohash":
|
|
514
|
+
case "geoshape":
|
|
505
515
|
return parameterType.type;
|
|
506
516
|
case "date":
|
|
507
517
|
return "datetime";
|
|
@@ -565,18 +575,16 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
565
575
|
case "integer":
|
|
566
576
|
case "double":
|
|
567
577
|
case "string":
|
|
568
|
-
case "boolean":
|
|
569
578
|
case "byte":
|
|
570
579
|
case "long":
|
|
571
|
-
case "short":
|
|
580
|
+
case "short":
|
|
581
|
+
case "timestamp": {
|
|
572
582
|
return input.dataType.type;
|
|
573
583
|
}
|
|
574
584
|
case "date": {
|
|
575
585
|
return "datetime";
|
|
576
586
|
}
|
|
577
|
-
case "
|
|
578
|
-
return "timestamp";
|
|
579
|
-
}
|
|
587
|
+
case "boolean":
|
|
580
588
|
case "geopoint":
|
|
581
589
|
case "geoshape":
|
|
582
590
|
case "decimal":
|
|
@@ -590,7 +598,7 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
590
598
|
case "struct":
|
|
591
599
|
case "cipherText":
|
|
592
600
|
case "vector":
|
|
593
|
-
throw new Error(`
|
|
601
|
+
throw new Error(`Primary key of type ${input.dataType.type} is not supported`);
|
|
594
602
|
default:
|
|
595
603
|
input.dataType;
|
|
596
604
|
throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);
|
|
@@ -599,7 +607,7 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
599
607
|
|
|
600
608
|
// ../generator-converters/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.js
|
|
601
609
|
function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, log) {
|
|
602
|
-
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] ===
|
|
610
|
+
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] === void 0) {
|
|
603
611
|
throw new Error(`Primary key ${objectTypeWithLink.objectType.primaryKey} not found in ${objectTypeWithLink.objectType.apiName}`);
|
|
604
612
|
}
|
|
605
613
|
if (objectTypeWithLink.implementsInterfaces2 == null && objectTypeWithLink.implementsInterfaces != null) {
|
|
@@ -622,7 +630,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, l
|
|
|
622
630
|
implements: objectTypeWithLink.implementsInterfaces,
|
|
623
631
|
interfaceMap,
|
|
624
632
|
inverseInterfaceMap: Object.fromEntries(Object.entries(interfaceMap).map(([interfaceApiName, props]) => [interfaceApiName, invertProps(props)])),
|
|
625
|
-
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon :
|
|
633
|
+
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon : void 0,
|
|
626
634
|
titleProperty: objectTypeWithLink.objectType.titleProperty,
|
|
627
635
|
displayName: objectTypeWithLink.objectType.displayName,
|
|
628
636
|
pluralDisplayName: objectTypeWithLink.objectType.pluralDisplayName,
|
|
@@ -632,7 +640,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, l
|
|
|
632
640
|
};
|
|
633
641
|
}
|
|
634
642
|
function invertProps(a) {
|
|
635
|
-
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) :
|
|
643
|
+
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) : void 0;
|
|
636
644
|
}
|
|
637
645
|
var supportedIconTypes = ["blueprint"];
|
|
638
646
|
|
|
@@ -812,7 +820,7 @@ function wireQueryParameterV2ToQueryParameterDefinition(parameter) {
|
|
|
812
820
|
// ../generator/build/esm/util/deleteUndefineds.js
|
|
813
821
|
init_esm_shims();
|
|
814
822
|
function deleteUndefineds(obj) {
|
|
815
|
-
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !==
|
|
823
|
+
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
|
|
816
824
|
}
|
|
817
825
|
|
|
818
826
|
// ../generator/build/esm/GenerateContext/EnhancedInterfaceType.js
|
|
@@ -924,7 +932,7 @@ var EnhancedOntologyDefinition = class {
|
|
|
924
932
|
return (fullApiName) => {
|
|
925
933
|
const ret = this[type2][fullApiName];
|
|
926
934
|
if (!ret) {
|
|
927
|
-
extractNamespace(fullApiName);
|
|
935
|
+
const [apiNamespace, shortApiName] = extractNamespace(fullApiName);
|
|
928
936
|
throw new Error(`Unable to find ${type2}: No entry for '${fullApiName}`);
|
|
929
937
|
}
|
|
930
938
|
return ret;
|
|
@@ -1104,7 +1112,7 @@ function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
1104
1112
|
if (!docType) {
|
|
1105
1113
|
throw new invalid_doc_error_default(doc2);
|
|
1106
1114
|
}
|
|
1107
|
-
if ((onEnter == null ?
|
|
1115
|
+
if ((onEnter == null ? void 0 : onEnter(doc2)) === false) {
|
|
1108
1116
|
continue;
|
|
1109
1117
|
}
|
|
1110
1118
|
switch (docType) {
|
|
@@ -1279,7 +1287,7 @@ function label(label2, contents) {
|
|
|
1279
1287
|
} : contents;
|
|
1280
1288
|
}
|
|
1281
1289
|
var at = (isOptionalObject, object, index) => {
|
|
1282
|
-
if (isOptionalObject && (object ===
|
|
1290
|
+
if (isOptionalObject && (object === void 0 || object === null)) {
|
|
1283
1291
|
return;
|
|
1284
1292
|
}
|
|
1285
1293
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -1289,7 +1297,7 @@ var at = (isOptionalObject, object, index) => {
|
|
|
1289
1297
|
};
|
|
1290
1298
|
var at_default = at;
|
|
1291
1299
|
var stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {
|
|
1292
|
-
if (isOptionalObject && (original ===
|
|
1300
|
+
if (isOptionalObject && (original === void 0 || original === null)) {
|
|
1293
1301
|
return;
|
|
1294
1302
|
}
|
|
1295
1303
|
if (original.replaceAll) {
|
|
@@ -1428,7 +1436,7 @@ function findInDoc(doc, fn, defaultValue) {
|
|
|
1428
1436
|
return false;
|
|
1429
1437
|
}
|
|
1430
1438
|
const maybeResult = fn(doc2);
|
|
1431
|
-
if (maybeResult !==
|
|
1439
|
+
if (maybeResult !== void 0) {
|
|
1432
1440
|
shouldSkipFurtherProcessing = true;
|
|
1433
1441
|
result = maybeResult;
|
|
1434
1442
|
}
|
|
@@ -2322,7 +2330,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
2322
2330
|
};
|
|
2323
2331
|
var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
2324
2332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2325
|
-
exports.splitWhen = exports.flatten =
|
|
2333
|
+
exports.splitWhen = exports.flatten = void 0;
|
|
2326
2334
|
function flatten(items) {
|
|
2327
2335
|
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
2328
2336
|
}
|
|
@@ -2344,7 +2352,7 @@ var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(ex
|
|
|
2344
2352
|
} });
|
|
2345
2353
|
var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
2346
2354
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2347
|
-
exports.isEnoentCodeError =
|
|
2355
|
+
exports.isEnoentCodeError = void 0;
|
|
2348
2356
|
function isEnoentCodeError(error) {
|
|
2349
2357
|
return error.code === "ENOENT";
|
|
2350
2358
|
}
|
|
@@ -2352,7 +2360,7 @@ var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(ex
|
|
|
2352
2360
|
} });
|
|
2353
2361
|
var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
2354
2362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2355
|
-
exports.createDirentFromStats =
|
|
2363
|
+
exports.createDirentFromStats = void 0;
|
|
2356
2364
|
var DirentFromStats = class {
|
|
2357
2365
|
constructor(name, stats) {
|
|
2358
2366
|
this.name = name;
|
|
@@ -2372,7 +2380,7 @@ var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports)
|
|
|
2372
2380
|
} });
|
|
2373
2381
|
var require_path = __commonJS2({ "node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
2374
2382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2375
|
-
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify =
|
|
2383
|
+
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
2376
2384
|
var os2 = __require("os");
|
|
2377
2385
|
var path132 = __require("path");
|
|
2378
2386
|
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
@@ -2645,7 +2653,7 @@ var require_utils = __commonJS2({ "node_modules/braces/lib/utils.js"(exports) {
|
|
|
2645
2653
|
const flat = (arr) => {
|
|
2646
2654
|
for (let i2 = 0; i2 < arr.length; i2++) {
|
|
2647
2655
|
let ele = arr[i2];
|
|
2648
|
-
Array.isArray(ele) ? flat(ele) : ele !==
|
|
2656
|
+
Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
|
|
2649
2657
|
}
|
|
2650
2658
|
return result;
|
|
2651
2659
|
};
|
|
@@ -2696,7 +2704,7 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2696
2704
|
if (isNumber(min) === false) {
|
|
2697
2705
|
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
2698
2706
|
}
|
|
2699
|
-
if (max ===
|
|
2707
|
+
if (max === void 0 || min === max) {
|
|
2700
2708
|
return String(min);
|
|
2701
2709
|
}
|
|
2702
2710
|
if (isNumber(max) === false) {
|
|
@@ -2754,9 +2762,9 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2754
2762
|
return state.result;
|
|
2755
2763
|
};
|
|
2756
2764
|
function collatePatterns(neg, pos2, options8) {
|
|
2757
|
-
let onlyNegative = filterPatterns(neg, pos2, "-", false);
|
|
2758
|
-
let onlyPositive = filterPatterns(pos2, neg, "", false);
|
|
2759
|
-
let intersected = filterPatterns(neg, pos2, "-?", true);
|
|
2765
|
+
let onlyNegative = filterPatterns(neg, pos2, "-", false) || [];
|
|
2766
|
+
let onlyPositive = filterPatterns(pos2, neg, "", false) || [];
|
|
2767
|
+
let intersected = filterPatterns(neg, pos2, "-?", true) || [];
|
|
2760
2768
|
let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
|
|
2761
2769
|
return subpatterns.join("|");
|
|
2762
2770
|
}
|
|
@@ -3158,7 +3166,7 @@ var require_expand = __commonJS2({ "node_modules/braces/lib/expand.js"(exports,
|
|
|
3158
3166
|
return utils2.flatten(result);
|
|
3159
3167
|
};
|
|
3160
3168
|
var expand = (ast, options8 = {}) => {
|
|
3161
|
-
let rangeLimit = options8.rangeLimit ===
|
|
3169
|
+
let rangeLimit = options8.rangeLimit === void 0 ? 1e3 : options8.rangeLimit;
|
|
3162
3170
|
let walk = (node, parent = {}) => {
|
|
3163
3171
|
node.queue = [];
|
|
3164
3172
|
let p = parent;
|
|
@@ -4666,7 +4674,7 @@ var require_parse2 = __commonJS2({ "node_modules/picomatch/lib/parse.js"(exports
|
|
|
4666
4674
|
continue;
|
|
4667
4675
|
}
|
|
4668
4676
|
if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
|
|
4669
|
-
const end = rest[1] !==
|
|
4677
|
+
const end = rest[1] !== void 0 ? "|$" : "";
|
|
4670
4678
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
4671
4679
|
prior.output = `(?:${prior.output}`;
|
|
4672
4680
|
prev.type = "globstar";
|
|
@@ -5079,7 +5087,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
5079
5087
|
let regex = picomatch.makeRe(String(glob), { ...options8, capture: true });
|
|
5080
5088
|
let match = regex.exec(posix ? utils2.toPosixSlashes(input) : input);
|
|
5081
5089
|
if (match) {
|
|
5082
|
-
return match.slice(1).map((v) => v ===
|
|
5090
|
+
return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
5083
5091
|
}
|
|
5084
5092
|
};
|
|
5085
5093
|
micromatch2.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -5108,7 +5116,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
5108
5116
|
} });
|
|
5109
5117
|
var require_pattern = __commonJS2({ "node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
5110
5118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5111
|
-
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 =
|
|
5119
|
+
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
5112
5120
|
var path132 = __require("path");
|
|
5113
5121
|
var globParent = require_glob_parent();
|
|
5114
5122
|
var micromatch2 = require_micromatch();
|
|
@@ -5365,7 +5373,7 @@ var require_merge2 = __commonJS2({ "node_modules/merge2/index.js"(exports, modul
|
|
|
5365
5373
|
} });
|
|
5366
5374
|
var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
5367
5375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5368
|
-
exports.merge =
|
|
5376
|
+
exports.merge = void 0;
|
|
5369
5377
|
var merge2 = require_merge2();
|
|
5370
5378
|
function merge3(streams) {
|
|
5371
5379
|
const mergedStream = merge2(streams);
|
|
@@ -5383,7 +5391,7 @@ var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(
|
|
|
5383
5391
|
} });
|
|
5384
5392
|
var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
5385
5393
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5386
|
-
exports.isEmpty = exports.isString =
|
|
5394
|
+
exports.isEmpty = exports.isString = void 0;
|
|
5387
5395
|
function isString(input) {
|
|
5388
5396
|
return typeof input === "string";
|
|
5389
5397
|
}
|
|
@@ -5395,7 +5403,7 @@ var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(
|
|
|
5395
5403
|
} });
|
|
5396
5404
|
var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
5397
5405
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5398
|
-
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array =
|
|
5406
|
+
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
5399
5407
|
var array2 = require_array();
|
|
5400
5408
|
exports.array = array2;
|
|
5401
5409
|
var errno = require_errno();
|
|
@@ -5413,7 +5421,7 @@ var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(e
|
|
|
5413
5421
|
} });
|
|
5414
5422
|
var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
5415
5423
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5416
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate =
|
|
5424
|
+
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
5417
5425
|
var utils2 = require_utils3();
|
|
5418
5426
|
function generate(input, settings) {
|
|
5419
5427
|
const patterns = processPatterns(input, settings);
|
|
@@ -5498,7 +5506,7 @@ var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"
|
|
|
5498
5506
|
} });
|
|
5499
5507
|
var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
5500
5508
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5501
|
-
exports.read =
|
|
5509
|
+
exports.read = void 0;
|
|
5502
5510
|
function read3(path132, settings, callback) {
|
|
5503
5511
|
settings.fs.lstat(path132, (lstatError, lstat) => {
|
|
5504
5512
|
if (lstatError !== null) {
|
|
@@ -5535,7 +5543,7 @@ var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/a
|
|
|
5535
5543
|
} });
|
|
5536
5544
|
var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
5537
5545
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5538
|
-
exports.read =
|
|
5546
|
+
exports.read = void 0;
|
|
5539
5547
|
function read3(path132, settings) {
|
|
5540
5548
|
const lstat = settings.fs.lstatSync(path132);
|
|
5541
5549
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
@@ -5558,11 +5566,11 @@ var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sy
|
|
|
5558
5566
|
} });
|
|
5559
5567
|
var require_fs2 = __commonJS2({ "node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
5560
5568
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5561
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5569
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5562
5570
|
var fs72 = __require("fs");
|
|
5563
5571
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync };
|
|
5564
5572
|
function createFileSystemAdapter(fsMethods) {
|
|
5565
|
-
if (fsMethods ===
|
|
5573
|
+
if (fsMethods === void 0) {
|
|
5566
5574
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5567
5575
|
}
|
|
5568
5576
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5581,14 +5589,14 @@ var require_settings = __commonJS2({ "node_modules/@nodelib/fs.stat/out/settings
|
|
|
5581
5589
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
5582
5590
|
}
|
|
5583
5591
|
_getValue(option, value) {
|
|
5584
|
-
return option !== null && option !==
|
|
5592
|
+
return option !== null && option !== void 0 ? option : value;
|
|
5585
5593
|
}
|
|
5586
5594
|
};
|
|
5587
5595
|
exports.default = Settings;
|
|
5588
5596
|
} });
|
|
5589
5597
|
var require_out = __commonJS2({ "node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
5590
5598
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5591
|
-
exports.statSync = exports.stat = exports.Settings =
|
|
5599
|
+
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
5592
5600
|
var async = require_async();
|
|
5593
5601
|
var sync = require_sync();
|
|
5594
5602
|
var settings_1 = require_settings();
|
|
@@ -5667,9 +5675,9 @@ var require_run_parallel = __commonJS2({ "node_modules/run-parallel/index.js"(ex
|
|
|
5667
5675
|
} });
|
|
5668
5676
|
var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
5669
5677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5670
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES =
|
|
5678
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
5671
5679
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
5672
|
-
if (NODE_PROCESS_VERSION_PARTS[0] ===
|
|
5680
|
+
if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) {
|
|
5673
5681
|
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
5674
5682
|
}
|
|
5675
5683
|
var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
@@ -5682,7 +5690,7 @@ var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/con
|
|
|
5682
5690
|
} });
|
|
5683
5691
|
var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
5684
5692
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5685
|
-
exports.createDirentFromStats =
|
|
5693
|
+
exports.createDirentFromStats = void 0;
|
|
5686
5694
|
var DirentFromStats = class {
|
|
5687
5695
|
constructor(name, stats) {
|
|
5688
5696
|
this.name = name;
|
|
@@ -5702,13 +5710,13 @@ var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.j
|
|
|
5702
5710
|
} });
|
|
5703
5711
|
var require_utils4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5704
5712
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5705
|
-
exports.fs =
|
|
5713
|
+
exports.fs = void 0;
|
|
5706
5714
|
var fs72 = require_fs3();
|
|
5707
5715
|
exports.fs = fs72;
|
|
5708
5716
|
} });
|
|
5709
5717
|
var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
5710
5718
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5711
|
-
exports.joinPathSegments =
|
|
5719
|
+
exports.joinPathSegments = void 0;
|
|
5712
5720
|
function joinPathSegments(a, b, separator) {
|
|
5713
5721
|
if (a.endsWith(separator)) {
|
|
5714
5722
|
return a + b;
|
|
@@ -5719,7 +5727,7 @@ var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5719
5727
|
} });
|
|
5720
5728
|
var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
5721
5729
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5722
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5730
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5723
5731
|
var fsStat = require_out();
|
|
5724
5732
|
var rpl = require_run_parallel();
|
|
5725
5733
|
var constants_1 = require_constants3();
|
|
@@ -5816,7 +5824,7 @@ var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5816
5824
|
} });
|
|
5817
5825
|
var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
5818
5826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5819
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5827
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5820
5828
|
var fsStat = require_out();
|
|
5821
5829
|
var constants_1 = require_constants3();
|
|
5822
5830
|
var utils2 = require_utils4();
|
|
@@ -5862,11 +5870,11 @@ var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
5862
5870
|
} });
|
|
5863
5871
|
var require_fs4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5864
5872
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5865
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5873
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5866
5874
|
var fs72 = __require("fs");
|
|
5867
5875
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync, readdir: fs72.readdir, readdirSync: fs72.readdirSync };
|
|
5868
5876
|
function createFileSystemAdapter(fsMethods) {
|
|
5869
|
-
if (fsMethods ===
|
|
5877
|
+
if (fsMethods === void 0) {
|
|
5870
5878
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5871
5879
|
}
|
|
5872
5880
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5889,14 +5897,14 @@ var require_settings2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/sett
|
|
|
5889
5897
|
this.fsStatSettings = new fsStat.Settings({ followSymbolicLink: this.followSymbolicLinks, fs: this.fs, throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink });
|
|
5890
5898
|
}
|
|
5891
5899
|
_getValue(option, value) {
|
|
5892
|
-
return option !== null && option !==
|
|
5900
|
+
return option !== null && option !== void 0 ? option : value;
|
|
5893
5901
|
}
|
|
5894
5902
|
};
|
|
5895
5903
|
exports.default = Settings;
|
|
5896
5904
|
} });
|
|
5897
5905
|
var require_out2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5898
5906
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5899
|
-
exports.Settings = exports.scandirSync = exports.scandir =
|
|
5907
|
+
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5900
5908
|
var async = require_async2();
|
|
5901
5909
|
var sync = require_sync2();
|
|
5902
5910
|
var settings_1 = require_settings2();
|
|
@@ -6164,7 +6172,7 @@ var require_queue = __commonJS2({ "node_modules/fastq/queue.js"(exports, module)
|
|
|
6164
6172
|
} });
|
|
6165
6173
|
var require_common2 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
6166
6174
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6167
|
-
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError =
|
|
6175
|
+
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
6168
6176
|
function isFatalError(settings, error) {
|
|
6169
6177
|
if (settings.errorFilter === null) {
|
|
6170
6178
|
return true;
|
|
@@ -6263,13 +6271,13 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6263
6271
|
_worker(item, done) {
|
|
6264
6272
|
this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => {
|
|
6265
6273
|
if (error !== null) {
|
|
6266
|
-
done(error,
|
|
6274
|
+
done(error, void 0);
|
|
6267
6275
|
return;
|
|
6268
6276
|
}
|
|
6269
6277
|
for (const entry of entries) {
|
|
6270
6278
|
this._handleEntry(entry, item.base);
|
|
6271
6279
|
}
|
|
6272
|
-
done(null,
|
|
6280
|
+
done(null, void 0);
|
|
6273
6281
|
});
|
|
6274
6282
|
}
|
|
6275
6283
|
_handleError(error) {
|
|
@@ -6285,14 +6293,14 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6285
6293
|
return;
|
|
6286
6294
|
}
|
|
6287
6295
|
const fullpath = entry.path;
|
|
6288
|
-
if (base !==
|
|
6296
|
+
if (base !== void 0) {
|
|
6289
6297
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6290
6298
|
}
|
|
6291
6299
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6292
6300
|
this._emitEntry(entry);
|
|
6293
6301
|
}
|
|
6294
6302
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6295
|
-
this._pushToQueue(fullpath, base ===
|
|
6303
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
6296
6304
|
}
|
|
6297
6305
|
}
|
|
6298
6306
|
_emitEntry(entry) {
|
|
@@ -6407,14 +6415,14 @@ var require_sync3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/syn
|
|
|
6407
6415
|
}
|
|
6408
6416
|
_handleEntry(entry, base) {
|
|
6409
6417
|
const fullpath = entry.path;
|
|
6410
|
-
if (base !==
|
|
6418
|
+
if (base !== void 0) {
|
|
6411
6419
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6412
6420
|
}
|
|
6413
6421
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6414
6422
|
this._pushToStorage(entry);
|
|
6415
6423
|
}
|
|
6416
6424
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6417
|
-
this._pushToQueue(fullpath, base ===
|
|
6425
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
6418
6426
|
}
|
|
6419
6427
|
}
|
|
6420
6428
|
_pushToStorage(entry) {
|
|
@@ -6445,7 +6453,7 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6445
6453
|
var Settings = class {
|
|
6446
6454
|
constructor(_options = {}) {
|
|
6447
6455
|
this._options = _options;
|
|
6448
|
-
this.basePath = this._getValue(this._options.basePath,
|
|
6456
|
+
this.basePath = this._getValue(this._options.basePath, void 0);
|
|
6449
6457
|
this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
|
|
6450
6458
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
6451
6459
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
@@ -6454,14 +6462,14 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6454
6462
|
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 });
|
|
6455
6463
|
}
|
|
6456
6464
|
_getValue(option, value) {
|
|
6457
|
-
return option !== null && option !==
|
|
6465
|
+
return option !== null && option !== void 0 ? option : value;
|
|
6458
6466
|
}
|
|
6459
6467
|
};
|
|
6460
6468
|
exports.default = Settings;
|
|
6461
6469
|
} });
|
|
6462
6470
|
var require_out3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
6463
6471
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6464
|
-
exports.Settings = exports.walkStream = exports.walkSync = exports.walk =
|
|
6472
|
+
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
6465
6473
|
var async_1 = require_async4();
|
|
6466
6474
|
var stream_1 = require_stream2();
|
|
6467
6475
|
var sync_1 = require_sync4();
|
|
@@ -6768,7 +6776,7 @@ var require_entry = __commonJS2({ "node_modules/fast-glob/out/providers/filters/
|
|
|
6768
6776
|
return this.index.has(filepath);
|
|
6769
6777
|
}
|
|
6770
6778
|
_createIndexRecord(filepath) {
|
|
6771
|
-
this.index.set(filepath,
|
|
6779
|
+
this.index.set(filepath, void 0);
|
|
6772
6780
|
}
|
|
6773
6781
|
_onlyFileFilter(entry) {
|
|
6774
6782
|
return this._settings.onlyFiles && !entry.dirent.isFile();
|
|
@@ -6986,7 +6994,7 @@ var require_sync6 = __commonJS2({ "node_modules/fast-glob/out/providers/sync.js"
|
|
|
6986
6994
|
} });
|
|
6987
6995
|
var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(exports) {
|
|
6988
6996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6989
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER =
|
|
6997
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6990
6998
|
var fs72 = __require("fs");
|
|
6991
6999
|
var os2 = __require("os");
|
|
6992
7000
|
var CPU_COUNT = Math.max(os2.cpus().length, 1);
|
|
@@ -7024,7 +7032,7 @@ var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(e
|
|
|
7024
7032
|
this.ignore = [].concat(this.ignore);
|
|
7025
7033
|
}
|
|
7026
7034
|
_getValue(option, value) {
|
|
7027
|
-
return option ===
|
|
7035
|
+
return option === void 0 ? value : option;
|
|
7028
7036
|
}
|
|
7029
7037
|
_getFileSystemMethods(methods = {}) {
|
|
7030
7038
|
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
@@ -7109,7 +7117,7 @@ var require_out4 = __commonJS2({ "node_modules/fast-glob/out/index.js"(exports,
|
|
|
7109
7117
|
}
|
|
7110
7118
|
win322.convertPathToPattern = convertPathToPattern2;
|
|
7111
7119
|
})(FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
7112
|
-
})(FastGlob);
|
|
7120
|
+
})(FastGlob || (FastGlob = {}));
|
|
7113
7121
|
function getWorks(source2, _Provider, options8) {
|
|
7114
7122
|
const patterns = [].concat(source2);
|
|
7115
7123
|
const settings = new settings_1.default(options8);
|
|
@@ -7164,8 +7172,8 @@ var require_re = __commonJS2({ "node_modules/semver/internal/re.js"(exports, mod
|
|
|
7164
7172
|
debug(name, index, value);
|
|
7165
7173
|
t[name] = index;
|
|
7166
7174
|
src[index] = value;
|
|
7167
|
-
re[index] = new RegExp(value, isGlobal ? "g" :
|
|
7168
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" :
|
|
7175
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
7176
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
7169
7177
|
};
|
|
7170
7178
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
7171
7179
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
@@ -7342,11 +7350,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7342
7350
|
const a = this.prerelease[i2];
|
|
7343
7351
|
const b = other.prerelease[i2];
|
|
7344
7352
|
debug("prerelease compare", i2, a, b);
|
|
7345
|
-
if (a ===
|
|
7353
|
+
if (a === void 0 && b === void 0) {
|
|
7346
7354
|
return 0;
|
|
7347
|
-
} else if (b ===
|
|
7355
|
+
} else if (b === void 0) {
|
|
7348
7356
|
return 1;
|
|
7349
|
-
} else if (a ===
|
|
7357
|
+
} else if (a === void 0) {
|
|
7350
7358
|
return -1;
|
|
7351
7359
|
} else if (a === b) {
|
|
7352
7360
|
continue;
|
|
@@ -7364,11 +7372,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7364
7372
|
const a = this.build[i2];
|
|
7365
7373
|
const b = other.build[i2];
|
|
7366
7374
|
debug("prerelease compare", i2, a, b);
|
|
7367
|
-
if (a ===
|
|
7375
|
+
if (a === void 0 && b === void 0) {
|
|
7368
7376
|
return 0;
|
|
7369
|
-
} else if (b ===
|
|
7377
|
+
} else if (b === void 0) {
|
|
7370
7378
|
return 1;
|
|
7371
|
-
} else if (a ===
|
|
7379
|
+
} else if (a === void 0) {
|
|
7372
7380
|
return -1;
|
|
7373
7381
|
} else if (a === b) {
|
|
7374
7382
|
continue;
|
|
@@ -7666,7 +7674,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7666
7674
|
};
|
|
7667
7675
|
Yallist.prototype.pop = function() {
|
|
7668
7676
|
if (!this.tail) {
|
|
7669
|
-
return
|
|
7677
|
+
return void 0;
|
|
7670
7678
|
}
|
|
7671
7679
|
var res = this.tail.value;
|
|
7672
7680
|
this.tail = this.tail.prev;
|
|
@@ -7680,7 +7688,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7680
7688
|
};
|
|
7681
7689
|
Yallist.prototype.shift = function() {
|
|
7682
7690
|
if (!this.head) {
|
|
7683
|
-
return
|
|
7691
|
+
return void 0;
|
|
7684
7692
|
}
|
|
7685
7693
|
var res = this.head.value;
|
|
7686
7694
|
this.head = this.head.next;
|
|
@@ -8001,7 +8009,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
8001
8009
|
if (isStale(self, hit)) {
|
|
8002
8010
|
del(self, node);
|
|
8003
8011
|
if (!self[ALLOW_STALE]) {
|
|
8004
|
-
hit =
|
|
8012
|
+
hit = void 0;
|
|
8005
8013
|
}
|
|
8006
8014
|
}
|
|
8007
8015
|
if (hit) {
|
|
@@ -8200,7 +8208,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
8200
8208
|
var hit = node.value;
|
|
8201
8209
|
if (isStale(self, hit)) {
|
|
8202
8210
|
del(self, node);
|
|
8203
|
-
if (!self[ALLOW_STALE]) hit =
|
|
8211
|
+
if (!self[ALLOW_STALE]) hit = void 0;
|
|
8204
8212
|
} else {
|
|
8205
8213
|
if (doUse) {
|
|
8206
8214
|
self[LRU_LIST].unshiftNode(node);
|
|
@@ -8940,7 +8948,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8940
8948
|
f = t = 0;
|
|
8941
8949
|
}
|
|
8942
8950
|
if (op[0] & 5) throw op[1];
|
|
8943
|
-
return { value: op[0] ? op[1] :
|
|
8951
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
8944
8952
|
}
|
|
8945
8953
|
};
|
|
8946
8954
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -8956,7 +8964,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8956
8964
|
var fs72 = __importStar(__require("fs"));
|
|
8957
8965
|
var regex = { section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/, param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/, comment: /^\s*[#;].*$/ };
|
|
8958
8966
|
function parse6(file) {
|
|
8959
|
-
return __awaiter(this,
|
|
8967
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
8960
8968
|
return __generator(this, function(_a) {
|
|
8961
8969
|
return [2, new Promise(function(resolve3, reject) {
|
|
8962
8970
|
fs72.readFile(file, "utf8", function(err, data) {
|
|
@@ -9093,7 +9101,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9093
9101
|
f = t = 0;
|
|
9094
9102
|
}
|
|
9095
9103
|
if (op[0] & 5) throw op[1];
|
|
9096
|
-
return { value: op[0] ? op[1] :
|
|
9104
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
9097
9105
|
}
|
|
9098
9106
|
};
|
|
9099
9107
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -9143,7 +9151,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9143
9151
|
return matches;
|
|
9144
9152
|
}
|
|
9145
9153
|
function processOptions(options8, filepath) {
|
|
9146
|
-
if (options8 ===
|
|
9154
|
+
if (options8 === void 0) {
|
|
9147
9155
|
options8 = {};
|
|
9148
9156
|
}
|
|
9149
9157
|
return { config: options8.config || ".editorconfig", version: options8.version || package_json_1.default.version, root: path132.resolve(options8.root || path132.parse(filepath).root) };
|
|
@@ -9160,10 +9168,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9160
9168
|
return path132.join(pathPrefix, glob);
|
|
9161
9169
|
}
|
|
9162
9170
|
function extendProps(props, options8) {
|
|
9163
|
-
if (props ===
|
|
9171
|
+
if (props === void 0) {
|
|
9164
9172
|
props = {};
|
|
9165
9173
|
}
|
|
9166
|
-
if (options8 ===
|
|
9174
|
+
if (options8 === void 0) {
|
|
9167
9175
|
options8 = {};
|
|
9168
9176
|
}
|
|
9169
9177
|
for (var key2 in options8) {
|
|
@@ -9219,7 +9227,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9219
9227
|
return configs;
|
|
9220
9228
|
}
|
|
9221
9229
|
function readConfigFiles(filepaths) {
|
|
9222
|
-
return __awaiter(this,
|
|
9230
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9223
9231
|
return __generator(this, function(_a) {
|
|
9224
9232
|
return [2, Promise.all(filepaths.map(function(name) {
|
|
9225
9233
|
return new Promise(function(resolve3) {
|
|
@@ -9245,17 +9253,17 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9245
9253
|
return files;
|
|
9246
9254
|
}
|
|
9247
9255
|
function opts(filepath, options8) {
|
|
9248
|
-
if (options8 ===
|
|
9256
|
+
if (options8 === void 0) {
|
|
9249
9257
|
options8 = {};
|
|
9250
9258
|
}
|
|
9251
9259
|
var resolvedFilePath = path132.resolve(filepath);
|
|
9252
9260
|
return [resolvedFilePath, processOptions(options8, resolvedFilePath)];
|
|
9253
9261
|
}
|
|
9254
9262
|
function parseFromFiles(filepath, files, options8) {
|
|
9255
|
-
if (options8 ===
|
|
9263
|
+
if (options8 === void 0) {
|
|
9256
9264
|
options8 = {};
|
|
9257
9265
|
}
|
|
9258
|
-
return __awaiter(this,
|
|
9266
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9259
9267
|
var _a, resolvedFilePath, processedOptions;
|
|
9260
9268
|
return __generator(this, function(_b) {
|
|
9261
9269
|
_a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9267,7 +9275,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9267
9275
|
}
|
|
9268
9276
|
exports.parseFromFiles = parseFromFiles;
|
|
9269
9277
|
function parseFromFilesSync(filepath, files, options8) {
|
|
9270
|
-
if (options8 ===
|
|
9278
|
+
if (options8 === void 0) {
|
|
9271
9279
|
options8 = {};
|
|
9272
9280
|
}
|
|
9273
9281
|
var _a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9275,10 +9283,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9275
9283
|
}
|
|
9276
9284
|
exports.parseFromFilesSync = parseFromFilesSync;
|
|
9277
9285
|
function parse6(_filepath, _options) {
|
|
9278
|
-
if (_options ===
|
|
9286
|
+
if (_options === void 0) {
|
|
9279
9287
|
_options = {};
|
|
9280
9288
|
}
|
|
9281
|
-
return __awaiter(this,
|
|
9289
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9282
9290
|
var _a, resolvedFilePath, processedOptions, filepaths;
|
|
9283
9291
|
return __generator(this, function(_b) {
|
|
9284
9292
|
_a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9291,7 +9299,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9291
9299
|
}
|
|
9292
9300
|
exports.parse = parse6;
|
|
9293
9301
|
function parseSync(_filepath, _options) {
|
|
9294
|
-
if (_options ===
|
|
9302
|
+
if (_options === void 0) {
|
|
9295
9303
|
_options = {};
|
|
9296
9304
|
}
|
|
9297
9305
|
var _a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9460,7 +9468,7 @@ var require_parser = __commonJS2({ "node_modules/@iarna/toml/lib/parser.js"(expo
|
|
|
9460
9468
|
}
|
|
9461
9469
|
return(value) {
|
|
9462
9470
|
if (this.stack.length === 0) throw this.error(new ParserError("Stack underflow"));
|
|
9463
|
-
if (value ===
|
|
9471
|
+
if (value === void 0) value = this.state.buf;
|
|
9464
9472
|
this.state = this.stack.pop();
|
|
9465
9473
|
this.state.returned = value;
|
|
9466
9474
|
}
|
|
@@ -9660,7 +9668,7 @@ var require_toml_parser = __commonJS2({ "node_modules/@iarna/toml/lib/toml-parse
|
|
|
9660
9668
|
var _declared = Symbol("declared");
|
|
9661
9669
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
9662
9670
|
var defineProperty = Object.defineProperty;
|
|
9663
|
-
var descriptor = { configurable: true, enumerable: true, writable: true, value:
|
|
9671
|
+
var descriptor = { configurable: true, enumerable: true, writable: true, value: void 0 };
|
|
9664
9672
|
function hasKey(obj, key2) {
|
|
9665
9673
|
if (hasOwnProperty3.call(obj, key2)) return true;
|
|
9666
9674
|
if (key2 === "__proto__") defineProperty(obj, "__proto__", descriptor);
|
|
@@ -10912,7 +10920,7 @@ var require_js_tokens = __commonJS2({ "node_modules/js-tokens/index.js"(exports)
|
|
|
10912
10920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10913
10921
|
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;
|
|
10914
10922
|
exports.matchToToken = function(match) {
|
|
10915
|
-
var token2 = { type: "invalid", value: match[0], closed:
|
|
10923
|
+
var token2 = { type: "invalid", value: match[0], closed: void 0 };
|
|
10916
10924
|
if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]);
|
|
10917
10925
|
else if (match[5]) token2.type = "comment";
|
|
10918
10926
|
else if (match[6]) token2.type = "comment", token2.closed = !!match[7];
|
|
@@ -11816,7 +11824,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11816
11824
|
var models = Object.keys(conversions);
|
|
11817
11825
|
function wrapRaw(fn) {
|
|
11818
11826
|
var wrappedFn = function(args) {
|
|
11819
|
-
if (args ===
|
|
11827
|
+
if (args === void 0 || args === null) {
|
|
11820
11828
|
return args;
|
|
11821
11829
|
}
|
|
11822
11830
|
if (arguments.length > 1) {
|
|
@@ -11831,7 +11839,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11831
11839
|
}
|
|
11832
11840
|
function wrapRounded(fn) {
|
|
11833
11841
|
var wrappedFn = function(args) {
|
|
11834
|
-
if (args ===
|
|
11842
|
+
if (args === void 0 || args === null) {
|
|
11835
11843
|
return args;
|
|
11836
11844
|
}
|
|
11837
11845
|
if (arguments.length > 1) {
|
|
@@ -12171,7 +12179,7 @@ var require_chalk = __commonJS2({ "node_modules/@babel/code-frame/node_modules/c
|
|
|
12171
12179
|
function applyOptions2(obj, options8) {
|
|
12172
12180
|
options8 = options8 || {};
|
|
12173
12181
|
const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
12174
|
-
obj.level = options8.level ===
|
|
12182
|
+
obj.level = options8.level === void 0 ? scLevel : options8.level;
|
|
12175
12183
|
obj.enabled = "enabled" in options8 ? options8.enabled : obj.level > 0;
|
|
12176
12184
|
}
|
|
12177
12185
|
function Chalk(options8) {
|
|
@@ -12374,7 +12382,7 @@ var require_lib2 = __commonJS2({ "node_modules/@babel/highlight/lib/index.js"(ex
|
|
|
12374
12382
|
function shouldHighlight(options8) {
|
|
12375
12383
|
return _chalk.default.level > 0 || options8.forceColor;
|
|
12376
12384
|
}
|
|
12377
|
-
var chalkWithForcedColor =
|
|
12385
|
+
var chalkWithForcedColor = void 0;
|
|
12378
12386
|
function getChalk(forceColor) {
|
|
12379
12387
|
if (forceColor) {
|
|
12380
12388
|
var _chalkWithForcedColor;
|
|
@@ -12419,7 +12427,7 @@ var require_lib3 = __commonJS2({ "node_modules/@babel/code-frame/lib/index.js"(e
|
|
|
12419
12427
|
}
|
|
12420
12428
|
return n.default = e, t && t.set(e, n), n;
|
|
12421
12429
|
}
|
|
12422
|
-
var chalkWithForcedColor =
|
|
12430
|
+
var chalkWithForcedColor = void 0;
|
|
12423
12431
|
function getChalk(forceColor) {
|
|
12424
12432
|
if (forceColor) {
|
|
12425
12433
|
var _chalkWithForcedColor;
|
|
@@ -12919,7 +12927,7 @@ var require_readlines = __commonJS2({ "node_modules/n-readlines/readlines.js"(ex
|
|
|
12919
12927
|
line3 = buffer2.slice(lastNewLineBufferPosition, bufferPosition);
|
|
12920
12928
|
lines.push(line3);
|
|
12921
12929
|
lastNewLineBufferPosition = bufferPosition;
|
|
12922
|
-
} else if (bufferPositionValue ===
|
|
12930
|
+
} else if (bufferPositionValue === void 0) {
|
|
12923
12931
|
break;
|
|
12924
12932
|
}
|
|
12925
12933
|
}
|
|
@@ -12993,7 +13001,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12993
13001
|
/*istanbul ignore start*/
|
|
12994
13002
|
/*istanbul ignore end*/
|
|
12995
13003
|
diff: function diff(oldString, newString) {
|
|
12996
|
-
var options8 = arguments.length > 2 && arguments[2] !==
|
|
13004
|
+
var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12997
13005
|
var callback = options8.callback;
|
|
12998
13006
|
if (typeof options8 === "function") {
|
|
12999
13007
|
callback = options8;
|
|
@@ -13004,7 +13012,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13004
13012
|
function done(value) {
|
|
13005
13013
|
if (callback) {
|
|
13006
13014
|
setTimeout(function() {
|
|
13007
|
-
callback(
|
|
13015
|
+
callback(void 0, value);
|
|
13008
13016
|
}, 0);
|
|
13009
13017
|
return true;
|
|
13010
13018
|
} else {
|
|
@@ -13030,24 +13038,24 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13030
13038
|
for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {
|
|
13031
13039
|
var basePath = (
|
|
13032
13040
|
/*istanbul ignore start*/
|
|
13033
|
-
|
|
13041
|
+
void 0
|
|
13034
13042
|
);
|
|
13035
13043
|
var addPath = bestPath[diagonalPath - 1], removePath = bestPath[diagonalPath + 1], _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
|
|
13036
13044
|
if (addPath) {
|
|
13037
|
-
bestPath[diagonalPath - 1] =
|
|
13045
|
+
bestPath[diagonalPath - 1] = void 0;
|
|
13038
13046
|
}
|
|
13039
13047
|
var canAdd = addPath && addPath.newPos + 1 < newLen, canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;
|
|
13040
13048
|
if (!canAdd && !canRemove) {
|
|
13041
|
-
bestPath[diagonalPath] =
|
|
13049
|
+
bestPath[diagonalPath] = void 0;
|
|
13042
13050
|
continue;
|
|
13043
13051
|
}
|
|
13044
13052
|
if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {
|
|
13045
13053
|
basePath = clonePath(removePath);
|
|
13046
|
-
self.pushComponent(basePath.components,
|
|
13054
|
+
self.pushComponent(basePath.components, void 0, true);
|
|
13047
13055
|
} else {
|
|
13048
13056
|
basePath = addPath;
|
|
13049
13057
|
basePath.newPos++;
|
|
13050
|
-
self.pushComponent(basePath.components, true,
|
|
13058
|
+
self.pushComponent(basePath.components, true, void 0);
|
|
13051
13059
|
}
|
|
13052
13060
|
_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);
|
|
13053
13061
|
if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {
|
|
@@ -13182,7 +13190,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13182
13190
|
var require_array2 = __commonJS2({ "node_modules/diff/lib/diff/array.js"(exports) {
|
|
13183
13191
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13184
13192
|
exports.diffArrays = diffArrays2;
|
|
13185
|
-
exports.arrayDiff =
|
|
13193
|
+
exports.arrayDiff = void 0;
|
|
13186
13194
|
var _base = _interopRequireDefault(require_base());
|
|
13187
13195
|
function _interopRequireDefault(obj) {
|
|
13188
13196
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -13395,7 +13403,7 @@ function translateLevel(level) {
|
|
|
13395
13403
|
}
|
|
13396
13404
|
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
13397
13405
|
const noFlagForceColor = envForceColor();
|
|
13398
|
-
if (noFlagForceColor !==
|
|
13406
|
+
if (noFlagForceColor !== void 0) {
|
|
13399
13407
|
flagForceColor = noFlagForceColor;
|
|
13400
13408
|
}
|
|
13401
13409
|
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
@@ -13413,7 +13421,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
13413
13421
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
13414
13422
|
return 1;
|
|
13415
13423
|
}
|
|
13416
|
-
if (haveStream && !streamIsTTY && forceColor ===
|
|
13424
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
13417
13425
|
return 0;
|
|
13418
13426
|
}
|
|
13419
13427
|
const min = forceColor || 0;
|
|
@@ -13512,7 +13520,7 @@ var applyOptions = (object, options8 = {}) => {
|
|
|
13512
13520
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
13513
13521
|
}
|
|
13514
13522
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
13515
|
-
object.level = options8.level ===
|
|
13523
|
+
object.level = options8.level === void 0 ? colorLevel : options8.level;
|
|
13516
13524
|
};
|
|
13517
13525
|
var chalkFactory = (options8) => {
|
|
13518
13526
|
const chalk2 = (...strings) => strings.join(" ");
|
|
@@ -13578,7 +13586,7 @@ var proto = Object.defineProperties(() => {
|
|
|
13578
13586
|
var createStyler = (open, close, parent) => {
|
|
13579
13587
|
let openAll;
|
|
13580
13588
|
let closeAll;
|
|
13581
|
-
if (parent ===
|
|
13589
|
+
if (parent === void 0) {
|
|
13582
13590
|
openAll = open;
|
|
13583
13591
|
closeAll = close;
|
|
13584
13592
|
} else {
|
|
@@ -13600,12 +13608,12 @@ var applyStyle = (self, string) => {
|
|
|
13600
13608
|
return self[IS_EMPTY] ? "" : string;
|
|
13601
13609
|
}
|
|
13602
13610
|
let styler = self[STYLER];
|
|
13603
|
-
if (styler ===
|
|
13611
|
+
if (styler === void 0) {
|
|
13604
13612
|
return string;
|
|
13605
13613
|
}
|
|
13606
13614
|
const { openAll, closeAll } = styler;
|
|
13607
13615
|
if (string.includes("\x1B")) {
|
|
13608
|
-
while (styler !==
|
|
13616
|
+
while (styler !== void 0) {
|
|
13609
13617
|
string = stringReplaceAll2(string, styler.close, styler.open);
|
|
13610
13618
|
styler = styler.parent;
|
|
13611
13619
|
}
|
|
@@ -13737,7 +13745,7 @@ var Schema = class {
|
|
|
13737
13745
|
this.name = parameters.name;
|
|
13738
13746
|
}
|
|
13739
13747
|
default(_utils) {
|
|
13740
|
-
return
|
|
13748
|
+
return void 0;
|
|
13741
13749
|
}
|
|
13742
13750
|
// this is actually an abstract method but we need a placeholder to get `function.length`
|
|
13743
13751
|
/* c8 ignore start */
|
|
@@ -13755,10 +13763,10 @@ var Schema = class {
|
|
|
13755
13763
|
return false;
|
|
13756
13764
|
}
|
|
13757
13765
|
forward(_value, _utils) {
|
|
13758
|
-
return
|
|
13766
|
+
return void 0;
|
|
13759
13767
|
}
|
|
13760
13768
|
redirect(_value, _utils) {
|
|
13761
|
-
return
|
|
13769
|
+
return void 0;
|
|
13762
13770
|
}
|
|
13763
13771
|
overlap(currentValue, _newValue, _utils) {
|
|
13764
13772
|
return currentValue;
|
|
@@ -13933,14 +13941,14 @@ function normalizeInvalidHandler(invalidHandler) {
|
|
|
13933
13941
|
};
|
|
13934
13942
|
}
|
|
13935
13943
|
function normalizeDefaultResult(result) {
|
|
13936
|
-
return result ===
|
|
13944
|
+
return result === void 0 ? {} : result;
|
|
13937
13945
|
}
|
|
13938
13946
|
function normalizeExpectedResult(result) {
|
|
13939
13947
|
if (typeof result === "string") {
|
|
13940
13948
|
return { text: result };
|
|
13941
13949
|
}
|
|
13942
13950
|
const { text, list: list2 } = result;
|
|
13943
|
-
assert((text || list2) !==
|
|
13951
|
+
assert((text || list2) !== void 0, "Unexpected `expected` result, there should be at least one field.");
|
|
13944
13952
|
if (!list2) {
|
|
13945
13953
|
return { text };
|
|
13946
13954
|
}
|
|
@@ -13956,7 +13964,7 @@ function normalizeTransferResult(result, value) {
|
|
|
13956
13964
|
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 };
|
|
13957
13965
|
}
|
|
13958
13966
|
function normalizeForwardResult(result, value) {
|
|
13959
|
-
return result ===
|
|
13967
|
+
return result === void 0 ? [] : Array.isArray(result) ? result.map((transferResult) => normalizeTransferResult(transferResult, value)) : [normalizeTransferResult(result, value)];
|
|
13960
13968
|
}
|
|
13961
13969
|
function normalizeRedirectResult(result, value) {
|
|
13962
13970
|
const redirect = normalizeForwardResult(typeof result === "object" && "redirect" in result ? result.redirect : result, value);
|
|
@@ -13988,11 +13996,11 @@ var ChoiceSchema = class extends Schema {
|
|
|
13988
13996
|
}
|
|
13989
13997
|
forward(value) {
|
|
13990
13998
|
const choiceInfo = this._choices.get(value);
|
|
13991
|
-
return choiceInfo ? choiceInfo.forward :
|
|
13999
|
+
return choiceInfo ? choiceInfo.forward : void 0;
|
|
13992
14000
|
}
|
|
13993
14001
|
redirect(value) {
|
|
13994
14002
|
const choiceInfo = this._choices.get(value);
|
|
13995
|
-
return choiceInfo ? choiceInfo.redirect :
|
|
14003
|
+
return choiceInfo ? choiceInfo.redirect : void 0;
|
|
13996
14004
|
}
|
|
13997
14005
|
};
|
|
13998
14006
|
var NumberSchema = class extends Schema {
|
|
@@ -14227,7 +14235,7 @@ function partition2(array2, predicate) {
|
|
|
14227
14235
|
var partition_default = partition2;
|
|
14228
14236
|
var import_editorconfig = __toESM2(require_src());
|
|
14229
14237
|
async function isDirectory(directory, options8) {
|
|
14230
|
-
const allowSymlinks = (options8 == null ?
|
|
14238
|
+
const allowSymlinks = (options8 == null ? void 0 : options8.allowSymlinks) ?? true;
|
|
14231
14239
|
let stats;
|
|
14232
14240
|
try {
|
|
14233
14241
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(directory));
|
|
@@ -14267,9 +14275,9 @@ var Searcher = class {
|
|
|
14267
14275
|
*/
|
|
14268
14276
|
constructor({ names, filter: filter2, stopDirectory }) {
|
|
14269
14277
|
__privateAdd(this, _searchInDirectory);
|
|
14270
|
-
__privateAdd(this, _names,
|
|
14271
|
-
__privateAdd(this, _filter,
|
|
14272
|
-
__privateAdd(this, _stopDirectory,
|
|
14278
|
+
__privateAdd(this, _names, void 0);
|
|
14279
|
+
__privateAdd(this, _filter, void 0);
|
|
14280
|
+
__privateAdd(this, _stopDirectory, void 0);
|
|
14273
14281
|
__privateAdd(this, _cache, /* @__PURE__ */ new Map());
|
|
14274
14282
|
__privateSet(this, _names, names);
|
|
14275
14283
|
__privateSet(this, _filter, filter2);
|
|
@@ -14322,10 +14330,10 @@ var searchOptions = { names: MARKERS, filter: ({ path: directory }) => is_direct
|
|
|
14322
14330
|
async function findProjectRoot(startDirectory, options8) {
|
|
14323
14331
|
searcher ?? (searcher = new searcher_default(searchOptions));
|
|
14324
14332
|
const mark = await searcher.search(startDirectory, options8);
|
|
14325
|
-
return mark ? path9.dirname(mark) :
|
|
14333
|
+
return mark ? path9.dirname(mark) : void 0;
|
|
14326
14334
|
}
|
|
14327
14335
|
function clearFindProjectRootCache() {
|
|
14328
|
-
searcher == null ?
|
|
14336
|
+
searcher == null ? void 0 : searcher.clearCache();
|
|
14329
14337
|
}
|
|
14330
14338
|
function removeUnset(editorConfig) {
|
|
14331
14339
|
const result = {};
|
|
@@ -14358,7 +14366,7 @@ function editorConfigToPrettier(editorConfig) {
|
|
|
14358
14366
|
result.tabWidth = editorConfig.tab_width;
|
|
14359
14367
|
} else if (editorConfig.indent_style === "space" && editorConfig.indent_size && editorConfig.indent_size !== "tab") {
|
|
14360
14368
|
result.tabWidth = editorConfig.indent_size;
|
|
14361
|
-
} else if (editorConfig.tab_width !==
|
|
14369
|
+
} else if (editorConfig.tab_width !== void 0) {
|
|
14362
14370
|
result.tabWidth = editorConfig.tab_width;
|
|
14363
14371
|
}
|
|
14364
14372
|
if (editorConfig.max_line_length) {
|
|
@@ -14426,10 +14434,10 @@ getStdin.buffer = async () => {
|
|
|
14426
14434
|
function writeFormattedFile(file, data) {
|
|
14427
14435
|
return fs.writeFile(file, data);
|
|
14428
14436
|
}
|
|
14429
|
-
var mockable = { getPrettierConfigSearchStopDirectory: () =>
|
|
14437
|
+
var mockable = { getPrettierConfigSearchStopDirectory: () => void 0, getStdin, isCI: () => import_ci_info.isCI, writeFormattedFile };
|
|
14430
14438
|
var mockable_default = mockable;
|
|
14431
14439
|
async function isFile(file, options8) {
|
|
14432
|
-
const allowSymlinks = (options8 == null ?
|
|
14440
|
+
const allowSymlinks = (options8 == null ? void 0 : options8.allowSymlinks) ?? true;
|
|
14433
14441
|
let stats;
|
|
14434
14442
|
try {
|
|
14435
14443
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(file));
|
|
@@ -16196,31 +16204,17 @@ function loadDocuments(input, options8) {
|
|
|
16196
16204
|
}
|
|
16197
16205
|
return state.documents;
|
|
16198
16206
|
}
|
|
16199
|
-
function loadAll$1(input, iterator, options8) {
|
|
16200
|
-
if (iterator !== null && typeof iterator === "object" && typeof options8 === "undefined") {
|
|
16201
|
-
options8 = iterator;
|
|
16202
|
-
iterator = null;
|
|
16203
|
-
}
|
|
16204
|
-
var documents = loadDocuments(input, options8);
|
|
16205
|
-
if (typeof iterator !== "function") {
|
|
16206
|
-
return documents;
|
|
16207
|
-
}
|
|
16208
|
-
for (var index = 0, length = documents.length; index < length; index += 1) {
|
|
16209
|
-
iterator(documents[index]);
|
|
16210
|
-
}
|
|
16211
|
-
}
|
|
16212
16207
|
function load$1(input, options8) {
|
|
16213
16208
|
var documents = loadDocuments(input, options8);
|
|
16214
16209
|
if (documents.length === 0) {
|
|
16215
|
-
return
|
|
16210
|
+
return void 0;
|
|
16216
16211
|
} else if (documents.length === 1) {
|
|
16217
16212
|
return documents[0];
|
|
16218
16213
|
}
|
|
16219
16214
|
throw new exception("expected a single document in the stream, but found more");
|
|
16220
16215
|
}
|
|
16221
|
-
var loadAll_1 = loadAll$1;
|
|
16222
16216
|
var load_1 = load$1;
|
|
16223
|
-
var loader = {
|
|
16217
|
+
var loader = { load: load_1 };
|
|
16224
16218
|
var load = loader.load;
|
|
16225
16219
|
var Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
16226
16220
|
var ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
@@ -16253,9 +16247,9 @@ var parse2 = function parse3(text, reviver) {
|
|
|
16253
16247
|
pos = 0;
|
|
16254
16248
|
line2 = 1;
|
|
16255
16249
|
column = 0;
|
|
16256
|
-
token =
|
|
16257
|
-
key =
|
|
16258
|
-
root =
|
|
16250
|
+
token = void 0;
|
|
16251
|
+
key = void 0;
|
|
16252
|
+
root = void 0;
|
|
16259
16253
|
do {
|
|
16260
16254
|
token = lex();
|
|
16261
16255
|
parseStates[parseState]();
|
|
@@ -16272,7 +16266,7 @@ function internalize(holder, name, reviver) {
|
|
|
16272
16266
|
for (let i2 = 0; i2 < value.length; i2++) {
|
|
16273
16267
|
const key2 = String(i2);
|
|
16274
16268
|
const replacement = internalize(value, key2, reviver);
|
|
16275
|
-
if (replacement ===
|
|
16269
|
+
if (replacement === void 0) {
|
|
16276
16270
|
delete value[key2];
|
|
16277
16271
|
} else {
|
|
16278
16272
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16281,7 +16275,7 @@ function internalize(holder, name, reviver) {
|
|
|
16281
16275
|
} else {
|
|
16282
16276
|
for (const key2 in value) {
|
|
16283
16277
|
const replacement = internalize(value, key2, reviver);
|
|
16284
|
-
if (replacement ===
|
|
16278
|
+
if (replacement === void 0) {
|
|
16285
16279
|
delete value[key2];
|
|
16286
16280
|
} else {
|
|
16287
16281
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16347,7 +16341,7 @@ var lexStates = { default() {
|
|
|
16347
16341
|
read();
|
|
16348
16342
|
lexState = "comment";
|
|
16349
16343
|
return;
|
|
16350
|
-
case
|
|
16344
|
+
case void 0:
|
|
16351
16345
|
read();
|
|
16352
16346
|
return newToken("eof");
|
|
16353
16347
|
}
|
|
@@ -16374,7 +16368,7 @@ var lexStates = { default() {
|
|
|
16374
16368
|
read();
|
|
16375
16369
|
lexState = "multiLineCommentAsterisk";
|
|
16376
16370
|
return;
|
|
16377
|
-
case
|
|
16371
|
+
case void 0:
|
|
16378
16372
|
throw invalidChar(read());
|
|
16379
16373
|
}
|
|
16380
16374
|
read();
|
|
@@ -16387,7 +16381,7 @@ var lexStates = { default() {
|
|
|
16387
16381
|
read();
|
|
16388
16382
|
lexState = "default";
|
|
16389
16383
|
return;
|
|
16390
|
-
case
|
|
16384
|
+
case void 0:
|
|
16391
16385
|
throw invalidChar(read());
|
|
16392
16386
|
}
|
|
16393
16387
|
read();
|
|
@@ -16401,7 +16395,7 @@ var lexStates = { default() {
|
|
|
16401
16395
|
read();
|
|
16402
16396
|
lexState = "default";
|
|
16403
16397
|
return;
|
|
16404
|
-
case
|
|
16398
|
+
case void 0:
|
|
16405
16399
|
read();
|
|
16406
16400
|
return newToken("eof");
|
|
16407
16401
|
}
|
|
@@ -16690,7 +16684,7 @@ var lexStates = { default() {
|
|
|
16690
16684
|
case "\u2029":
|
|
16691
16685
|
separatorChar(c);
|
|
16692
16686
|
break;
|
|
16693
|
-
case
|
|
16687
|
+
case void 0:
|
|
16694
16688
|
throw invalidChar(read());
|
|
16695
16689
|
}
|
|
16696
16690
|
buffer += read();
|
|
@@ -16821,7 +16815,7 @@ function escape() {
|
|
|
16821
16815
|
case "8":
|
|
16822
16816
|
case "9":
|
|
16823
16817
|
throw invalidChar(read());
|
|
16824
|
-
case
|
|
16818
|
+
case void 0:
|
|
16825
16819
|
throw invalidChar(read());
|
|
16826
16820
|
}
|
|
16827
16821
|
return read();
|
|
@@ -16933,7 +16927,7 @@ function push() {
|
|
|
16933
16927
|
value = token.value;
|
|
16934
16928
|
break;
|
|
16935
16929
|
}
|
|
16936
|
-
if (root ===
|
|
16930
|
+
if (root === void 0) {
|
|
16937
16931
|
root = value;
|
|
16938
16932
|
} else {
|
|
16939
16933
|
const parent = stack[stack.length - 1];
|
|
@@ -16973,7 +16967,7 @@ function pop() {
|
|
|
16973
16967
|
}
|
|
16974
16968
|
}
|
|
16975
16969
|
function invalidChar(c2) {
|
|
16976
|
-
if (c2 ===
|
|
16970
|
+
if (c2 === void 0) {
|
|
16977
16971
|
return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`);
|
|
16978
16972
|
}
|
|
16979
16973
|
return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line2}:${column}`);
|
|
@@ -17034,9 +17028,9 @@ var _JSONError = class _JSONError2 extends Error {
|
|
|
17034
17028
|
__publicField(this, "fileName");
|
|
17035
17029
|
__publicField(this, "codeFrame");
|
|
17036
17030
|
__publicField(this, "rawCodeFrame");
|
|
17037
|
-
__privateAdd(this, _message,
|
|
17031
|
+
__privateAdd(this, _message, void 0);
|
|
17038
17032
|
__privateSet(this, _message, message);
|
|
17039
|
-
(_a = Error.captureStackTrace) == null ?
|
|
17033
|
+
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, this, _JSONError2);
|
|
17040
17034
|
}
|
|
17041
17035
|
get message() {
|
|
17042
17036
|
const { fileName, codeFrame } = this;
|
|
@@ -17281,7 +17275,7 @@ codes.ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
|
17281
17275
|
* @param {string} reason
|
|
17282
17276
|
* @param {string} [base]
|
|
17283
17277
|
*/
|
|
17284
|
-
(request, reason, base =
|
|
17278
|
+
(request, reason, base = void 0) => {
|
|
17285
17279
|
return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`;
|
|
17286
17280
|
},
|
|
17287
17281
|
TypeError
|
|
@@ -17307,7 +17301,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
|
17307
17301
|
* @param {boolean} [isImport=false]
|
|
17308
17302
|
* @param {string} [base]
|
|
17309
17303
|
*/
|
|
17310
|
-
(pkgPath, key2, target, isImport = false, base =
|
|
17304
|
+
(pkgPath, key2, target, isImport = false, base = void 0) => {
|
|
17311
17305
|
const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
17312
17306
|
if (key2 === ".") {
|
|
17313
17307
|
assert2(isImport === false);
|
|
@@ -17349,7 +17343,7 @@ codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
|
17349
17343
|
* @param {string} subpath
|
|
17350
17344
|
* @param {string} [base]
|
|
17351
17345
|
*/
|
|
17352
|
-
(pkgPath, subpath, base =
|
|
17346
|
+
(pkgPath, subpath, base = void 0) => {
|
|
17353
17347
|
if (subpath === ".") return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17354
17348
|
return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17355
17349
|
},
|
|
@@ -17425,10 +17419,10 @@ function isErrorStackTraceLimitWritable() {
|
|
|
17425
17419
|
} catch {
|
|
17426
17420
|
}
|
|
17427
17421
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
17428
|
-
if (desc ===
|
|
17422
|
+
if (desc === void 0) {
|
|
17429
17423
|
return Object.isExtensible(Error);
|
|
17430
17424
|
}
|
|
17431
|
-
return own.call(desc, "writable") && desc.writable !==
|
|
17425
|
+
return own.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
17432
17426
|
}
|
|
17433
17427
|
function hideStackFrames(fn) {
|
|
17434
17428
|
const hidden = nodeInternalPrefix + fn.name;
|
|
@@ -17454,7 +17448,7 @@ var captureLargerStackTrace = hideStackFrames(
|
|
|
17454
17448
|
);
|
|
17455
17449
|
function getMessage(key2, args, self) {
|
|
17456
17450
|
const message = messages.get(key2);
|
|
17457
|
-
assert2(message !==
|
|
17451
|
+
assert2(message !== void 0, "expected `message` to be found");
|
|
17458
17452
|
if (typeof message === "function") {
|
|
17459
17453
|
assert2(
|
|
17460
17454
|
message.length <= args.length,
|
|
@@ -17472,7 +17466,7 @@ function getMessage(key2, args, self) {
|
|
|
17472
17466
|
return Reflect.apply(format, null, args);
|
|
17473
17467
|
}
|
|
17474
17468
|
function determineSpecificType(value) {
|
|
17475
|
-
if (value === null || value ===
|
|
17469
|
+
if (value === null || value === void 0) {
|
|
17476
17470
|
return String(value);
|
|
17477
17471
|
}
|
|
17478
17472
|
if (typeof value === "function" && value.name) {
|
|
@@ -17515,14 +17509,14 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
17515
17509
|
const result = {
|
|
17516
17510
|
exists: false,
|
|
17517
17511
|
pjsonPath: jsonPath,
|
|
17518
|
-
main:
|
|
17519
|
-
name:
|
|
17512
|
+
main: void 0,
|
|
17513
|
+
name: void 0,
|
|
17520
17514
|
type: "none",
|
|
17521
17515
|
// Ignore unknown types for forwards compatibility
|
|
17522
|
-
exports:
|
|
17523
|
-
imports:
|
|
17516
|
+
exports: void 0,
|
|
17517
|
+
imports: void 0
|
|
17524
17518
|
};
|
|
17525
|
-
if (string !==
|
|
17519
|
+
if (string !== void 0) {
|
|
17526
17520
|
let parsed;
|
|
17527
17521
|
try {
|
|
17528
17522
|
parsed = JSON.parse(string);
|
|
@@ -17573,7 +17567,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
17573
17567
|
}
|
|
17574
17568
|
}
|
|
17575
17569
|
const packageJSONPath = fileURLToPath(packageJSONUrl);
|
|
17576
|
-
return { pjsonPath: packageJSONPath, exists: false, main:
|
|
17570
|
+
return { pjsonPath: packageJSONPath, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
17577
17571
|
}
|
|
17578
17572
|
function getPackageType(url2) {
|
|
17579
17573
|
const packageConfig = getPackageScopeConfig(url2);
|
|
@@ -17642,7 +17636,7 @@ function getFileProtocolModuleFormat(url2, _context, ignoreErrors) {
|
|
|
17642
17636
|
const format3 = extensionFormatMap[ext];
|
|
17643
17637
|
if (format3) return format3;
|
|
17644
17638
|
if (ignoreErrors) {
|
|
17645
|
-
return
|
|
17639
|
+
return void 0;
|
|
17646
17640
|
}
|
|
17647
17641
|
const filepath = fileURLToPath(url2);
|
|
17648
17642
|
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
|
|
@@ -17666,7 +17660,7 @@ function getDefaultConditionsSet() {
|
|
|
17666
17660
|
return DEFAULT_CONDITIONS_SET;
|
|
17667
17661
|
}
|
|
17668
17662
|
function getConditionsSet(conditions) {
|
|
17669
|
-
if (conditions !==
|
|
17663
|
+
if (conditions !== void 0 && conditions !== getDefaultConditions()) {
|
|
17670
17664
|
if (!Array.isArray(conditions)) {
|
|
17671
17665
|
throw new ERR_INVALID_ARG_VALUE("conditions", conditions, "expected an array");
|
|
17672
17666
|
}
|
|
@@ -17718,12 +17712,12 @@ function tryStatSync(path132) {
|
|
|
17718
17712
|
}
|
|
17719
17713
|
function fileExists(url2) {
|
|
17720
17714
|
const stats = statSync(url2, { throwIfNoEntry: false });
|
|
17721
|
-
const isFile2 = stats ? stats.isFile() :
|
|
17722
|
-
return isFile2 === null || isFile2 ===
|
|
17715
|
+
const isFile2 = stats ? stats.isFile() : void 0;
|
|
17716
|
+
return isFile2 === null || isFile2 === void 0 ? false : isFile2;
|
|
17723
17717
|
}
|
|
17724
17718
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
17725
17719
|
let guess;
|
|
17726
|
-
if (packageConfig.main !==
|
|
17720
|
+
if (packageConfig.main !== void 0) {
|
|
17727
17721
|
guess = new URL$1(packageConfig.main, packageJsonUrl);
|
|
17728
17722
|
if (fileExists(guess)) return guess;
|
|
17729
17723
|
const tries2 = [`./${packageConfig.main}.js`, `./${packageConfig.main}.json`, `./${packageConfig.main}.node`, `./${packageConfig.main}/index.js`, `./${packageConfig.main}/index.json`, `./${packageConfig.main}/index.node`];
|
|
@@ -17731,7 +17725,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17731
17725
|
while (++i22 < tries2.length) {
|
|
17732
17726
|
guess = new URL$1(tries2[i22], packageJsonUrl);
|
|
17733
17727
|
if (fileExists(guess)) break;
|
|
17734
|
-
guess =
|
|
17728
|
+
guess = void 0;
|
|
17735
17729
|
}
|
|
17736
17730
|
if (guess) {
|
|
17737
17731
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17743,7 +17737,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17743
17737
|
while (++i2 < tries.length) {
|
|
17744
17738
|
guess = new URL$1(tries[i2], packageJsonUrl);
|
|
17745
17739
|
if (fileExists(guess)) break;
|
|
17746
|
-
guess =
|
|
17740
|
+
guess = void 0;
|
|
17747
17741
|
}
|
|
17748
17742
|
if (guess) {
|
|
17749
17743
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17878,14 +17872,14 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17878
17872
|
if (exception2.code === "ERR_INVALID_PACKAGE_TARGET") continue;
|
|
17879
17873
|
throw error;
|
|
17880
17874
|
}
|
|
17881
|
-
if (resolveResult ===
|
|
17875
|
+
if (resolveResult === void 0) continue;
|
|
17882
17876
|
if (resolveResult === null) {
|
|
17883
17877
|
lastException = null;
|
|
17884
17878
|
continue;
|
|
17885
17879
|
}
|
|
17886
17880
|
return resolveResult;
|
|
17887
17881
|
}
|
|
17888
|
-
if (lastException ===
|
|
17882
|
+
if (lastException === void 0 || lastException === null) {
|
|
17889
17883
|
return null;
|
|
17890
17884
|
}
|
|
17891
17885
|
throw lastException;
|
|
@@ -17908,7 +17902,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17908
17902
|
target[key2]
|
|
17909
17903
|
);
|
|
17910
17904
|
const resolveResult = resolvePackageTarget(packageJsonUrl, conditionalTarget, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions);
|
|
17911
|
-
if (resolveResult ===
|
|
17905
|
+
if (resolveResult === void 0) continue;
|
|
17912
17906
|
return resolveResult;
|
|
17913
17907
|
}
|
|
17914
17908
|
}
|
|
@@ -17954,7 +17948,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17954
17948
|
if (own2.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
17955
17949
|
const target = exports[packageSubpath];
|
|
17956
17950
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
|
|
17957
|
-
if (resolveResult === null || resolveResult ===
|
|
17951
|
+
if (resolveResult === null || resolveResult === void 0) {
|
|
17958
17952
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17959
17953
|
}
|
|
17960
17954
|
return resolveResult;
|
|
@@ -17983,7 +17977,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17983
17977
|
exports[bestMatch]
|
|
17984
17978
|
);
|
|
17985
17979
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
|
|
17986
|
-
if (resolveResult === null || resolveResult ===
|
|
17980
|
+
if (resolveResult === null || resolveResult === void 0) {
|
|
17987
17981
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17988
17982
|
}
|
|
17989
17983
|
return resolveResult;
|
|
@@ -18016,7 +18010,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
18016
18010
|
if (imports) {
|
|
18017
18011
|
if (own2.call(imports, name) && !name.includes("*")) {
|
|
18018
18012
|
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
|
|
18019
|
-
if (resolveResult !== null && resolveResult !==
|
|
18013
|
+
if (resolveResult !== null && resolveResult !== void 0) {
|
|
18020
18014
|
return resolveResult;
|
|
18021
18015
|
}
|
|
18022
18016
|
} else {
|
|
@@ -18038,7 +18032,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
18038
18032
|
if (bestMatch) {
|
|
18039
18033
|
const target = imports[bestMatch];
|
|
18040
18034
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
|
|
18041
|
-
if (resolveResult !== null && resolveResult !==
|
|
18035
|
+
if (resolveResult !== null && resolveResult !== void 0) {
|
|
18042
18036
|
return resolveResult;
|
|
18043
18037
|
}
|
|
18044
18038
|
}
|
|
@@ -18077,7 +18071,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
18077
18071
|
const packageConfig = getPackageScopeConfig(base);
|
|
18078
18072
|
if (packageConfig.exists) {
|
|
18079
18073
|
const packageJsonUrl2 = pathToFileURL(packageConfig.pjsonPath);
|
|
18080
|
-
if (packageConfig.name === packageName && packageConfig.exports !==
|
|
18074
|
+
if (packageConfig.name === packageName && packageConfig.exports !== void 0 && packageConfig.exports !== null) {
|
|
18081
18075
|
return packageExportsResolve(packageJsonUrl2, packageSubpath, packageConfig, base, conditions);
|
|
18082
18076
|
}
|
|
18083
18077
|
}
|
|
@@ -18093,7 +18087,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
18093
18087
|
continue;
|
|
18094
18088
|
}
|
|
18095
18089
|
const packageConfig2 = package_json_reader_default.read(packageJsonPath, { base, specifier });
|
|
18096
|
-
if (packageConfig2.exports !==
|
|
18090
|
+
if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
|
|
18097
18091
|
return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig2, base, conditions);
|
|
18098
18092
|
}
|
|
18099
18093
|
if (packageSubpath === ".") {
|
|
@@ -18134,7 +18128,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
18134
18128
|
}
|
|
18135
18129
|
}
|
|
18136
18130
|
}
|
|
18137
|
-
assert2(resolved !==
|
|
18131
|
+
assert2(resolved !== void 0, "expected to be defined");
|
|
18138
18132
|
if (resolved.protocol !== "file:") {
|
|
18139
18133
|
return resolved;
|
|
18140
18134
|
}
|
|
@@ -18145,11 +18139,11 @@ function checkIfDisallowedImport(specifier, parsed, parsedParentURL) {
|
|
|
18145
18139
|
const parentProtocol = parsedParentURL.protocol;
|
|
18146
18140
|
if (parentProtocol === "http:" || parentProtocol === "https:") {
|
|
18147
18141
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
18148
|
-
const parsedProtocol = parsed == null ?
|
|
18142
|
+
const parsedProtocol = parsed == null ? void 0 : parsed.protocol;
|
|
18149
18143
|
if (parsedProtocol && parsedProtocol !== "https:" && parsedProtocol !== "http:") {
|
|
18150
18144
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
18151
18145
|
}
|
|
18152
|
-
return { url: (parsed == null ?
|
|
18146
|
+
return { url: (parsed == null ? void 0 : parsed.href) || "" };
|
|
18153
18147
|
}
|
|
18154
18148
|
if (builtinModules.includes(specifier)) {
|
|
18155
18149
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
@@ -18162,7 +18156,7 @@ function isURL(self) {
|
|
|
18162
18156
|
return Boolean(self && typeof self === "object" && "href" in self && typeof self.href === "string" && "protocol" in self && typeof self.protocol === "string" && self.href && self.protocol);
|
|
18163
18157
|
}
|
|
18164
18158
|
function throwIfInvalidParentURL(parentURL) {
|
|
18165
|
-
if (parentURL ===
|
|
18159
|
+
if (parentURL === void 0) {
|
|
18166
18160
|
return;
|
|
18167
18161
|
}
|
|
18168
18162
|
if (typeof parentURL !== "string" && !isURL(parentURL)) {
|
|
@@ -18171,7 +18165,7 @@ function throwIfInvalidParentURL(parentURL) {
|
|
|
18171
18165
|
}
|
|
18172
18166
|
function defaultResolve(specifier, context = {}) {
|
|
18173
18167
|
const { parentURL } = context;
|
|
18174
|
-
assert2(parentURL !==
|
|
18168
|
+
assert2(parentURL !== void 0, "expected `parentURL` to be defined");
|
|
18175
18169
|
throwIfInvalidParentURL(parentURL);
|
|
18176
18170
|
let parsedParentURL;
|
|
18177
18171
|
if (parentURL) {
|
|
@@ -18233,7 +18227,7 @@ async function loadExternalConfig(externalConfig, configFile) {
|
|
|
18233
18227
|
try {
|
|
18234
18228
|
return require_from_file_default(externalConfig, configFile);
|
|
18235
18229
|
} catch (error) {
|
|
18236
|
-
if (!requireErrorCodesShouldBeIgnored.has(error == null ?
|
|
18230
|
+
if (!requireErrorCodesShouldBeIgnored.has(error == null ? void 0 : error.code)) {
|
|
18237
18231
|
throw error;
|
|
18238
18232
|
}
|
|
18239
18233
|
}
|
|
@@ -18275,7 +18269,7 @@ function loadPrettierConfig(configFile, { shouldCache }) {
|
|
|
18275
18269
|
return loadCache.get(configFile);
|
|
18276
18270
|
}
|
|
18277
18271
|
function getSearchFunction(stopDirectory) {
|
|
18278
|
-
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) :
|
|
18272
|
+
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) : void 0;
|
|
18279
18273
|
if (!searchCache.has(stopDirectory)) {
|
|
18280
18274
|
const searcher2 = config_searcher_default(stopDirectory);
|
|
18281
18275
|
const searchFunction = searcher2.search.bind(searcher2);
|
|
@@ -18304,7 +18298,7 @@ async function loadPrettierConfig2(file, options8) {
|
|
|
18304
18298
|
const shouldCache = options8.useCache;
|
|
18305
18299
|
let configFile = options8.config;
|
|
18306
18300
|
if (!configFile) {
|
|
18307
|
-
const directory = file ? path9__default.dirname(path9__default.resolve(file)) :
|
|
18301
|
+
const directory = file ? path9__default.dirname(path9__default.resolve(file)) : void 0;
|
|
18308
18302
|
configFile = await searchPrettierConfig(directory, { shouldCache });
|
|
18309
18303
|
}
|
|
18310
18304
|
if (!configFile) {
|
|
@@ -18327,7 +18321,7 @@ async function resolveConfig(fileUrlOrPath, options8) {
|
|
|
18327
18321
|
return merged;
|
|
18328
18322
|
}
|
|
18329
18323
|
async function resolveConfigFile(fileUrlOrPath) {
|
|
18330
|
-
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) :
|
|
18324
|
+
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) : void 0;
|
|
18331
18325
|
const result = await searchPrettierConfig(directory, { shouldCache: false });
|
|
18332
18326
|
return result ?? null;
|
|
18333
18327
|
}
|
|
@@ -18350,7 +18344,7 @@ function pathMatchesGlobs(filePath, patterns, excludedPatterns) {
|
|
|
18350
18344
|
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 });
|
|
18351
18345
|
}
|
|
18352
18346
|
var stringReplaceAll22 = (isOptionalObject, original, pattern, replacement) => {
|
|
18353
|
-
if (isOptionalObject && (original ===
|
|
18347
|
+
if (isOptionalObject && (original === void 0 || original === null)) {
|
|
18354
18348
|
return;
|
|
18355
18349
|
}
|
|
18356
18350
|
if (original.replaceAll) {
|
|
@@ -18397,7 +18391,7 @@ async function createSingleIsIgnoredFunction(ignoreFile, withNodeModules) {
|
|
|
18397
18391
|
}
|
|
18398
18392
|
async function createIsIgnoredFunction(ignoreFiles, withNodeModules) {
|
|
18399
18393
|
if (ignoreFiles.length === 0 && !withNodeModules) {
|
|
18400
|
-
ignoreFiles = [
|
|
18394
|
+
ignoreFiles = [void 0];
|
|
18401
18395
|
}
|
|
18402
18396
|
const isIgnoredFunctions = (await Promise.all(ignoreFiles.map((ignoreFile) => createSingleIsIgnoredFunction(ignoreFile, withNodeModules)))).filter(Boolean);
|
|
18403
18397
|
return (file) => isIgnoredFunctions.some((isIgnored2) => isIgnored2(file));
|
|
@@ -18440,13 +18434,13 @@ function getLanguageByFileName(languages2, file) {
|
|
|
18440
18434
|
return;
|
|
18441
18435
|
}
|
|
18442
18436
|
const basename = getFileBasename(file).toLowerCase();
|
|
18443
|
-
return languages2.find(({ filenames }) => filenames == null ?
|
|
18437
|
+
return languages2.find(({ filenames }) => filenames == null ? void 0 : filenames.some((name) => name.toLowerCase() === basename)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.some((extension) => basename.endsWith(extension)));
|
|
18444
18438
|
}
|
|
18445
18439
|
function getLanguageByLanguageName(languages2, languageName) {
|
|
18446
18440
|
if (!languageName) {
|
|
18447
18441
|
return;
|
|
18448
18442
|
}
|
|
18449
|
-
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ?
|
|
18443
|
+
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ? void 0 : aliases.includes(languageName)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.includes(`.${languageName}`));
|
|
18450
18444
|
}
|
|
18451
18445
|
function getLanguageByInterpreter(languages2, file) {
|
|
18452
18446
|
if (!file || getFileBasename(file).includes(".")) {
|
|
@@ -18456,7 +18450,7 @@ function getLanguageByInterpreter(languages2, file) {
|
|
|
18456
18450
|
if (!interpreter) {
|
|
18457
18451
|
return;
|
|
18458
18452
|
}
|
|
18459
|
-
return languages2.find(({ interpreters }) => interpreters == null ?
|
|
18453
|
+
return languages2.find(({ interpreters }) => interpreters == null ? void 0 : interpreters.includes(interpreter));
|
|
18460
18454
|
}
|
|
18461
18455
|
function inferParser(options8, fileInfo) {
|
|
18462
18456
|
const languages2 = options8.plugins.flatMap((plugin) => (
|
|
@@ -18464,7 +18458,7 @@ function inferParser(options8, fileInfo) {
|
|
|
18464
18458
|
plugin.languages ?? []
|
|
18465
18459
|
));
|
|
18466
18460
|
const language = getLanguageByLanguageName(languages2, fileInfo.language) ?? getLanguageByFileName(languages2, fileInfo.physicalFile) ?? getLanguageByFileName(languages2, fileInfo.file) ?? getLanguageByInterpreter(languages2, fileInfo.physicalFile);
|
|
18467
|
-
return language == null ?
|
|
18461
|
+
return language == null ? void 0 : language.parsers[0];
|
|
18468
18462
|
}
|
|
18469
18463
|
var infer_parser_default = inferParser;
|
|
18470
18464
|
async function getFileInfo(file, options8) {
|
|
@@ -18487,7 +18481,7 @@ async function getParser(file, options8) {
|
|
|
18487
18481
|
if (options8.resolveConfig !== false) {
|
|
18488
18482
|
config = await resolveConfig(file);
|
|
18489
18483
|
}
|
|
18490
|
-
return (config == null ?
|
|
18484
|
+
return (config == null ? void 0 : config.parser) ?? infer_parser_default(options8, { physicalFile: file });
|
|
18491
18485
|
}
|
|
18492
18486
|
var get_file_info_default = getFileInfo;
|
|
18493
18487
|
var import_diff = __toESM2(require_array2());
|
|
@@ -18609,7 +18603,7 @@ function traverseDoc2(doc2, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
18609
18603
|
if (!docType) {
|
|
18610
18604
|
throw new invalid_doc_error_default2(doc3);
|
|
18611
18605
|
}
|
|
18612
|
-
if ((onEnter == null ?
|
|
18606
|
+
if ((onEnter == null ? void 0 : onEnter(doc3)) === false) {
|
|
18613
18607
|
continue;
|
|
18614
18608
|
}
|
|
18615
18609
|
switch (docType) {
|
|
@@ -18704,7 +18698,7 @@ function flattenDoc(doc2) {
|
|
|
18704
18698
|
return { ...doc2, breakContents: flattenDoc(doc2.breakContents), flatContents: flattenDoc(doc2.flatContents) };
|
|
18705
18699
|
}
|
|
18706
18700
|
if (doc2.type === DOC_TYPE_GROUP2) {
|
|
18707
|
-
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ?
|
|
18701
|
+
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ? void 0 : _a.map(flattenDoc) };
|
|
18708
18702
|
}
|
|
18709
18703
|
if (doc2.type === DOC_TYPE_FILL2) {
|
|
18710
18704
|
return { type: "fill", parts: doc2.parts.map(flattenDoc) };
|
|
@@ -18728,7 +18722,7 @@ function printDocToDebug(doc2) {
|
|
|
18728
18722
|
return printed.length === 1 ? printed[0] : `[${printed.join(", ")}]`;
|
|
18729
18723
|
}
|
|
18730
18724
|
if (doc3.type === DOC_TYPE_LINE2) {
|
|
18731
|
-
const withBreakParent = ((_a = parentParts == null ?
|
|
18725
|
+
const withBreakParent = ((_a = parentParts == null ? void 0 : parentParts[index + 1]) == null ? void 0 : _a.type) === DOC_TYPE_BREAK_PARENT2;
|
|
18732
18726
|
if (doc3.literal) {
|
|
18733
18727
|
return withBreakParent ? "literalline" : "literallineWithoutBreakParent";
|
|
18734
18728
|
}
|
|
@@ -18741,8 +18735,8 @@ function printDocToDebug(doc2) {
|
|
|
18741
18735
|
return "line";
|
|
18742
18736
|
}
|
|
18743
18737
|
if (doc3.type === DOC_TYPE_BREAK_PARENT2) {
|
|
18744
|
-
const afterHardline = ((_b = parentParts == null ?
|
|
18745
|
-
return afterHardline ?
|
|
18738
|
+
const afterHardline = ((_b = parentParts == null ? void 0 : parentParts[index - 1]) == null ? void 0 : _b.type) === DOC_TYPE_LINE2 && parentParts[index - 1].hard;
|
|
18739
|
+
return afterHardline ? void 0 : "breakParent";
|
|
18746
18740
|
}
|
|
18747
18741
|
if (doc3.type === DOC_TYPE_TRIM2) {
|
|
18748
18742
|
return "trim";
|
|
@@ -18813,7 +18807,7 @@ function printDocToDebug(doc2) {
|
|
|
18813
18807
|
}
|
|
18814
18808
|
}
|
|
18815
18809
|
var at2 = (isOptionalObject, object, index) => {
|
|
18816
|
-
if (isOptionalObject && (object ===
|
|
18810
|
+
if (isOptionalObject && (object === void 0 || object === null)) {
|
|
18817
18811
|
return;
|
|
18818
18812
|
}
|
|
18819
18813
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -19735,7 +19729,7 @@ var AstPath = class {
|
|
|
19735
19729
|
let name = null;
|
|
19736
19730
|
let node = this.stack[stackPointer--];
|
|
19737
19731
|
for (const predicate of predicates) {
|
|
19738
|
-
if (node ===
|
|
19732
|
+
if (node === void 0) {
|
|
19739
19733
|
return false;
|
|
19740
19734
|
}
|
|
19741
19735
|
let number = null;
|
|
@@ -19836,7 +19830,7 @@ function* getDescendants(node, options8) {
|
|
|
19836
19830
|
}
|
|
19837
19831
|
function skip(characters) {
|
|
19838
19832
|
return (text, startIndex, options8) => {
|
|
19839
|
-
const backwards = Boolean(options8 == null ?
|
|
19833
|
+
const backwards = Boolean(options8 == null ? void 0 : options8.backwards);
|
|
19840
19834
|
if (startIndex === false) {
|
|
19841
19835
|
return false;
|
|
19842
19836
|
}
|
|
@@ -19864,7 +19858,7 @@ var skipSpaces = skip(" ");
|
|
|
19864
19858
|
var skipToLineEnd = skip(",; ");
|
|
19865
19859
|
var skipEverythingButNewLine = skip(/[^\n\r]/);
|
|
19866
19860
|
function skipNewline(text, startIndex, options8) {
|
|
19867
|
-
const backwards = Boolean(options8 == null ?
|
|
19861
|
+
const backwards = Boolean(options8 == null ? void 0 : options8.backwards);
|
|
19868
19862
|
if (startIndex === false) {
|
|
19869
19863
|
return false;
|
|
19870
19864
|
}
|
|
@@ -19944,7 +19938,7 @@ function getSortedChildNodes(node, options8) {
|
|
|
19944
19938
|
if (!canAttachComment) {
|
|
19945
19939
|
return [];
|
|
19946
19940
|
}
|
|
19947
|
-
const childNodes = ((getCommentChildNodes == null ?
|
|
19941
|
+
const childNodes = ((getCommentChildNodes == null ? void 0 : getCommentChildNodes(node, options8)) ?? [...getChildren(node, { getVisitorKeys: create_get_visitor_keys_function_default(printerGetVisitorKeys) })]).flatMap((node2) => canAttachComment(node2) ? [node2] : getSortedChildNodes(node2, options8));
|
|
19948
19942
|
childNodes.sort((nodeA, nodeB) => locStart(nodeA) - locStart(nodeB) || locEnd(nodeA) - locEnd(nodeB));
|
|
19949
19943
|
childNodesCache.set(node, childNodes);
|
|
19950
19944
|
return childNodes;
|
|
@@ -19978,7 +19972,7 @@ function decorateComment(node, comment, options8, enclosingNode) {
|
|
|
19978
19972
|
}
|
|
19979
19973
|
throw new Error("Comment location overlaps with node location");
|
|
19980
19974
|
}
|
|
19981
|
-
if ((enclosingNode == null ?
|
|
19975
|
+
if ((enclosingNode == null ? void 0 : enclosingNode.type) === "TemplateLiteral") {
|
|
19982
19976
|
const { quasis } = enclosingNode;
|
|
19983
19977
|
const commentIndex = findExpressionIndexForComment(quasis, comment, options8);
|
|
19984
19978
|
if (precedingNode && findExpressionIndexForComment(quasis, precedingNode, options8) !== commentIndex) {
|
|
@@ -20123,7 +20117,7 @@ function breakTies(tiesToBreak, options8) {
|
|
|
20123
20117
|
assert2.strictEqual(currentCommentPrecedingNode, precedingNode);
|
|
20124
20118
|
assert2.strictEqual(currentCommentFollowingNode, followingNode);
|
|
20125
20119
|
const gap = options8.originalText.slice(options8.locEnd(comment), gapEndPos);
|
|
20126
|
-
if (((_b = (_a = options8.printer).isGap) == null ?
|
|
20120
|
+
if (((_b = (_a = options8.printer).isGap) == null ? void 0 : _b.call(_a, gap, options8)) ?? /^[\s(]*$/.test(gap)) {
|
|
20127
20121
|
gapEndPos = options8.locStart(comment);
|
|
20128
20122
|
} else {
|
|
20129
20123
|
break;
|
|
@@ -20171,7 +20165,7 @@ function printLeadingComment(path132, options8) {
|
|
|
20171
20165
|
const comment = path132.node;
|
|
20172
20166
|
const parts = [printComment(path132, options8)];
|
|
20173
20167
|
const { printer: printer2, originalText, locStart, locEnd } = options8;
|
|
20174
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
20168
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? void 0 : _a.call(printer2, comment);
|
|
20175
20169
|
if (isBlock) {
|
|
20176
20170
|
const lineBreak = has_newline_default(originalText, locEnd(comment)) ? has_newline_default(originalText, locStart(comment), { backwards: true }) ? hardline2 : line22 : " ";
|
|
20177
20171
|
parts.push(lineBreak);
|
|
@@ -20189,12 +20183,12 @@ function printTrailingComment(path132, options8, previousComment) {
|
|
|
20189
20183
|
const comment = path132.node;
|
|
20190
20184
|
const printed = printComment(path132, options8);
|
|
20191
20185
|
const { printer: printer2, originalText, locStart } = options8;
|
|
20192
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
20193
|
-
if ((previousComment == null ?
|
|
20186
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? void 0 : _a.call(printer2, comment);
|
|
20187
|
+
if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true })) {
|
|
20194
20188
|
const isLineBeforeEmpty = is_previous_line_empty_default(originalText, locStart(comment));
|
|
20195
20189
|
return { doc: lineSuffix2([hardline2, isLineBeforeEmpty ? hardline2 : "", printed]), isBlock, hasLineSuffix: true };
|
|
20196
20190
|
}
|
|
20197
|
-
if (!isBlock || (previousComment == null ?
|
|
20191
|
+
if (!isBlock || (previousComment == null ? void 0 : previousComment.hasLineSuffix)) {
|
|
20198
20192
|
return { doc: [lineSuffix2([" ", printed]), breakParent2], isBlock, hasLineSuffix: true };
|
|
20199
20193
|
}
|
|
20200
20194
|
return { doc: [" ", printed], isBlock, hasLineSuffix: false };
|
|
@@ -20214,7 +20208,7 @@ function printCommentsSeparately(path132, options8) {
|
|
|
20214
20208
|
let printedTrailingComment;
|
|
20215
20209
|
path132.each(() => {
|
|
20216
20210
|
const comment = path132.node;
|
|
20217
|
-
if (ignored == null ?
|
|
20211
|
+
if (ignored == null ? void 0 : ignored.has(comment)) {
|
|
20218
20212
|
return;
|
|
20219
20213
|
}
|
|
20220
20214
|
const { leading, trailing } = comment;
|
|
@@ -20250,7 +20244,7 @@ function createPrintPreCheckFunction(options8) {
|
|
|
20250
20244
|
}
|
|
20251
20245
|
}
|
|
20252
20246
|
var create_print_pre_check_function_default = createPrintPreCheckFunction;
|
|
20253
|
-
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":
|
|
20247
|
+
var core_options_evaluate_default = { "cursorOffset": { "category": "Special", "type": "int", "default": -1, "range": { "start": -1, "end": Infinity, "step": 1 }, "description": "Print (to stderr) where a cursor at the given position would move to after formatting.", "cliCategory": "Editor" }, "endOfLine": { "category": "Global", "type": "choice", "default": "lf", "description": "Which end of line characters to apply.", "choices": [{ "value": "lf", "description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { "value": "crlf", "description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { "value": "cr", "description": "Carriage Return character only (\\r), used very rarely" }, { "value": "auto", "description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)" }] }, "filepath": { "category": "Special", "type": "path", "description": "Specify the input filepath. This will be used to do parser inference.", "cliName": "stdin-filepath", "cliCategory": "Other", "cliDescription": "Path to the file to pretend that stdin comes from." }, "insertPragma": { "category": "Special", "type": "boolean", "default": false, "description": "Insert @format pragma into file's first docblock comment.", "cliCategory": "Other" }, "parser": { "category": "Global", "type": "choice", "default": void 0, "description": "Which parser to use.", "exception": (value) => typeof value === "string" || typeof value === "function", "choices": [{ "value": "flow", "description": "Flow" }, { "value": "babel", "description": "JavaScript" }, { "value": "babel-flow", "description": "Flow" }, { "value": "babel-ts", "description": "TypeScript" }, { "value": "typescript", "description": "TypeScript" }, { "value": "acorn", "description": "JavaScript" }, { "value": "espree", "description": "JavaScript" }, { "value": "meriyah", "description": "JavaScript" }, { "value": "css", "description": "CSS" }, { "value": "less", "description": "Less" }, { "value": "scss", "description": "SCSS" }, { "value": "json", "description": "JSON" }, { "value": "json5", "description": "JSON5" }, { "value": "jsonc", "description": "JSON with Comments" }, { "value": "json-stringify", "description": "JSON.stringify" }, { "value": "graphql", "description": "GraphQL" }, { "value": "markdown", "description": "Markdown" }, { "value": "mdx", "description": "MDX" }, { "value": "vue", "description": "Vue" }, { "value": "yaml", "description": "YAML" }, { "value": "glimmer", "description": "Ember / Handlebars" }, { "value": "html", "description": "HTML" }, { "value": "angular", "description": "Angular" }, { "value": "lwc", "description": "Lightning Web Components" }] }, "plugins": { "type": "path", "array": true, "default": [{ "value": [] }], "category": "Global", "description": "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", "exception": (value) => typeof value === "string" || typeof value === "object", "cliName": "plugin", "cliCategory": "Config" }, "printWidth": { "category": "Global", "type": "int", "default": 80, "description": "The line length where Prettier will try wrap.", "range": { "start": 0, "end": Infinity, "step": 1 } }, "rangeEnd": { "category": "Special", "type": "int", "default": Infinity, "range": { "start": 0, "end": Infinity, "step": 1 }, "description": "Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.", "cliCategory": "Editor" }, "rangeStart": { "category": "Special", "type": "int", "default": 0, "range": { "start": 0, "end": Infinity, "step": 1 }, "description": "Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.", "cliCategory": "Editor" }, "requirePragma": { "category": "Special", "type": "boolean", "default": false, "description": "Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.", "cliCategory": "Other" }, "tabWidth": { "type": "int", "category": "Global", "default": 2, "description": "Number of spaces per indentation level.", "range": { "start": 0, "end": Infinity, "step": 1 } }, "useTabs": { "category": "Global", "type": "boolean", "default": false, "description": "Indent with tabs instead of spaces." }, "embeddedLanguageFormatting": { "category": "Global", "type": "choice", "default": "auto", "description": "Control how Prettier formats quoted code embedded in the file.", "choices": [{ "value": "auto", "description": "Format embedded code if Prettier can automatically identify it." }, { "value": "off", "description": "Never automatically format embedded code." }] } };
|
|
20254
20248
|
function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
20255
20249
|
const languages2 = plugins.flatMap((plugin) => plugin.languages ?? []);
|
|
20256
20250
|
const options8 = [];
|
|
@@ -20268,7 +20262,7 @@ function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
|
20268
20262
|
}
|
|
20269
20263
|
option.pluginDefaults = Object.fromEntries(plugins.filter((plugin) => {
|
|
20270
20264
|
var _a;
|
|
20271
|
-
return ((_a = plugin.defaultOptions) == null ?
|
|
20265
|
+
return ((_a = plugin.defaultOptions) == null ? void 0 : _a[option.name]) !== void 0;
|
|
20272
20266
|
}).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]]));
|
|
20273
20267
|
options8.push(option);
|
|
20274
20268
|
}
|
|
@@ -20283,7 +20277,7 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) {
|
|
|
20283
20277
|
existingParsers.add(parserName);
|
|
20284
20278
|
const plugin = plugins.find((plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
|
|
20285
20279
|
let description = language.name;
|
|
20286
|
-
if (plugin == null ?
|
|
20280
|
+
if (plugin == null ? void 0 : plugin.name) {
|
|
20287
20281
|
description += ` (plugin: ${plugin.name})`;
|
|
20288
20282
|
}
|
|
20289
20283
|
yield { value: parserName, description };
|
|
@@ -20323,7 +20317,7 @@ function normalizeOptions(options8, optionInfos, { logger = false, isCLI = false
|
|
|
20323
20317
|
const unknown = !passThrough ? (key2, value, options9) => {
|
|
20324
20318
|
const { _, ...schemas2 } = options9.schemas;
|
|
20325
20319
|
return levenUnknownHandler(key2, value, { ...options9, schemas: schemas2 });
|
|
20326
|
-
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ?
|
|
20320
|
+
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? void 0 : { [key2]: value } : (key2, value) => ({ [key2]: value });
|
|
20327
20321
|
const schemas = optionInfosToSchemas(optionInfos, { isCLI, FlagSchema });
|
|
20328
20322
|
const normalizer = new Normalizer(schemas, { logger, unknown, descriptor });
|
|
20329
20323
|
const shouldSuppressDuplicateDeprecationWarnings = logger !== false;
|
|
@@ -20370,7 +20364,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20370
20364
|
break;
|
|
20371
20365
|
case "choice":
|
|
20372
20366
|
SchemaConstructor = ChoiceSchema;
|
|
20373
|
-
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ?
|
|
20367
|
+
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ? void 0 : choiceInfo.redirect) ? { ...choiceInfo, redirect: { to: { key: optionInfo.name, value: choiceInfo.redirect } } } : choiceInfo);
|
|
20374
20368
|
break;
|
|
20375
20369
|
case "boolean":
|
|
20376
20370
|
SchemaConstructor = BooleanSchema;
|
|
@@ -20388,10 +20382,10 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20388
20382
|
if (optionInfo.exception) {
|
|
20389
20383
|
parameters.validate = (value, schema2, utils2) => optionInfo.exception(value) || schema2.validate(value, utils2);
|
|
20390
20384
|
} else {
|
|
20391
|
-
parameters.validate = (value, schema2, utils2) => value ===
|
|
20385
|
+
parameters.validate = (value, schema2, utils2) => value === void 0 || schema2.validate(value, utils2);
|
|
20392
20386
|
}
|
|
20393
20387
|
if (optionInfo.redirect) {
|
|
20394
|
-
handlers.redirect = (value) => !value ?
|
|
20388
|
+
handlers.redirect = (value) => !value ? void 0 : { to: { key: optionInfo.redirect.option, value: optionInfo.redirect.value } };
|
|
20395
20389
|
}
|
|
20396
20390
|
if (optionInfo.deprecated) {
|
|
20397
20391
|
handlers.deprecated = true;
|
|
@@ -20414,7 +20408,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20414
20408
|
}
|
|
20415
20409
|
var normalize_options_default = normalizeOptions;
|
|
20416
20410
|
var arrayFindLast = (isOptionalObject, array2, callback) => {
|
|
20417
|
-
if (isOptionalObject && (array2 ===
|
|
20411
|
+
if (isOptionalObject && (array2 === void 0 || array2 === null)) {
|
|
20418
20412
|
return;
|
|
20419
20413
|
}
|
|
20420
20414
|
if (array2.findLast) {
|
|
@@ -20472,7 +20466,7 @@ function initPrinter(plugin, astFormat) {
|
|
|
20472
20466
|
const printerOrPrinterInitFunction = plugin.printers[astFormat];
|
|
20473
20467
|
return typeof printerOrPrinterInitFunction === "function" ? printerOrPrinterInitFunction() : printerOrPrinterInitFunction;
|
|
20474
20468
|
}
|
|
20475
|
-
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText:
|
|
20469
|
+
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText: void 0, locStart: null, locEnd: null };
|
|
20476
20470
|
async function normalizeFormatOptions(options8, opts = {}) {
|
|
20477
20471
|
var _a;
|
|
20478
20472
|
const rawOptions = { ...options8 };
|
|
@@ -20487,19 +20481,19 @@ async function normalizeFormatOptions(options8, opts = {}) {
|
|
|
20487
20481
|
}
|
|
20488
20482
|
}
|
|
20489
20483
|
const supportOptions = getSupportInfo({ plugins: options8.plugins, showDeprecated: true }).options;
|
|
20490
|
-
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !==
|
|
20484
|
+
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !== void 0).map((option) => [option.name, option.default])) };
|
|
20491
20485
|
const parserPlugin = getParserPluginByParserName(rawOptions.plugins, rawOptions.parser);
|
|
20492
20486
|
const parser = await initParser(parserPlugin, rawOptions.parser);
|
|
20493
20487
|
rawOptions.astFormat = parser.astFormat;
|
|
20494
20488
|
rawOptions.locEnd = parser.locEnd;
|
|
20495
20489
|
rawOptions.locStart = parser.locStart;
|
|
20496
|
-
const printerPlugin = ((_a = parserPlugin.printers) == null ?
|
|
20490
|
+
const printerPlugin = ((_a = parserPlugin.printers) == null ? void 0 : _a[parser.astFormat]) ? parserPlugin : getPrinterPluginByAstFormat(rawOptions.plugins, parser.astFormat);
|
|
20497
20491
|
const printer2 = await initPrinter(printerPlugin, parser.astFormat);
|
|
20498
20492
|
rawOptions.printer = printer2;
|
|
20499
|
-
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !==
|
|
20493
|
+
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !== void 0)) : {};
|
|
20500
20494
|
const mixedDefaults = { ...defaults, ...pluginDefaults };
|
|
20501
20495
|
for (const [k, value] of Object.entries(mixedDefaults)) {
|
|
20502
|
-
if (rawOptions[k] === null || rawOptions[k] ===
|
|
20496
|
+
if (rawOptions[k] === null || rawOptions[k] === void 0) {
|
|
20503
20497
|
rawOptions[k] = value;
|
|
20504
20498
|
}
|
|
20505
20499
|
}
|
|
@@ -20617,11 +20611,11 @@ async function printAstToDoc(ast, options8) {
|
|
|
20617
20611
|
const ensurePrintingNode = create_print_pre_check_function_default();
|
|
20618
20612
|
const embeds = /* @__PURE__ */ new Map();
|
|
20619
20613
|
await printEmbeddedLanguages(path132, mainPrint, options8, printAstToDoc, embeds);
|
|
20620
|
-
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint,
|
|
20614
|
+
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint, void 0, embeds);
|
|
20621
20615
|
ensureAllCommentsPrinted(options8);
|
|
20622
20616
|
return doc2;
|
|
20623
20617
|
function mainPrint(selector, args) {
|
|
20624
|
-
if (selector ===
|
|
20618
|
+
if (selector === void 0 || selector === path132) {
|
|
20625
20619
|
return mainPrintInternal(args);
|
|
20626
20620
|
}
|
|
20627
20621
|
if (Array.isArray(selector)) {
|
|
@@ -20632,10 +20626,10 @@ async function printAstToDoc(ast, options8) {
|
|
|
20632
20626
|
function mainPrintInternal(args) {
|
|
20633
20627
|
ensurePrintingNode(path132);
|
|
20634
20628
|
const value = path132.node;
|
|
20635
|
-
if (value ===
|
|
20629
|
+
if (value === void 0 || value === null) {
|
|
20636
20630
|
return "";
|
|
20637
20631
|
}
|
|
20638
|
-
const shouldCache = value && typeof value === "object" && args ===
|
|
20632
|
+
const shouldCache = value && typeof value === "object" && args === void 0;
|
|
20639
20633
|
if (shouldCache && cache3.has(value)) {
|
|
20640
20634
|
return cache3.get(value);
|
|
20641
20635
|
}
|
|
@@ -20651,7 +20645,7 @@ function callPluginPrintFunction(path132, options8, printPath, args, embeds) {
|
|
|
20651
20645
|
const { node } = path132;
|
|
20652
20646
|
const { printer: printer2 } = options8;
|
|
20653
20647
|
let doc2;
|
|
20654
|
-
if ((_a = printer2.hasPrettierIgnore) == null ?
|
|
20648
|
+
if ((_a = printer2.hasPrettierIgnore) == null ? void 0 : _a.call(printer2, path132)) {
|
|
20655
20649
|
doc2 = print_ignored_default(path132, options8);
|
|
20656
20650
|
} else if (embeds.has(node)) {
|
|
20657
20651
|
doc2 = embeds.get(node);
|
|
@@ -20732,7 +20726,7 @@ function dropRootParents(parents) {
|
|
|
20732
20726
|
let lastParentIndex = parents.length - 1;
|
|
20733
20727
|
for (; ; ) {
|
|
20734
20728
|
const parent = parents[lastParentIndex];
|
|
20735
|
-
if ((parent == null ?
|
|
20729
|
+
if ((parent == null ? void 0 : parent.type) === "Program" || (parent == null ? void 0 : parent.type) === "File") {
|
|
20736
20730
|
lastParentIndex--;
|
|
20737
20731
|
} else {
|
|
20738
20732
|
break;
|
|
@@ -20803,7 +20797,7 @@ function isSourceElement(opts, node, parentNode) {
|
|
|
20803
20797
|
case "espree":
|
|
20804
20798
|
case "meriyah":
|
|
20805
20799
|
case "__babel_estree":
|
|
20806
|
-
return isJsSourceElement(node.type, parentNode == null ?
|
|
20800
|
+
return isJsSourceElement(node.type, parentNode == null ? void 0 : parentNode.type);
|
|
20807
20801
|
case "json":
|
|
20808
20802
|
case "json5":
|
|
20809
20803
|
case "jsonc":
|
|
@@ -20865,7 +20859,7 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) {
|
|
|
20865
20859
|
const result = printDocToString2(doc2, opts);
|
|
20866
20860
|
if (addAlignmentSize > 0) {
|
|
20867
20861
|
const trimmed = result.formatted.trim();
|
|
20868
|
-
if (result.cursorNodeStart !==
|
|
20862
|
+
if (result.cursorNodeStart !== void 0) {
|
|
20869
20863
|
result.cursorNodeStart -= result.formatted.indexOf(trimmed);
|
|
20870
20864
|
}
|
|
20871
20865
|
result.formatted = trimmed + convertEndOfLineToChars2(opts.endOfLine);
|
|
@@ -21064,7 +21058,7 @@ var languages_evaluate_default4 = [{ "linguistLanguageId": 146, "name": "Angular
|
|
|
21064
21058
|
var CATEGORY_HTML = "HTML";
|
|
21065
21059
|
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." } };
|
|
21066
21060
|
var options_default3 = options3;
|
|
21067
|
-
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":
|
|
21061
|
+
var languages_evaluate_default5 = [{ "linguistLanguageId": 183, "name": "JavaScript", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": ["js", "node"], "extensions": [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], "filenames": ["Jakefile"], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], "parsers": ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], "vscodeLanguageIds": ["javascript", "mongo"] }, { "linguistLanguageId": 183, "name": "Flow", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": [], "extensions": [".js.flow"], "filenames": [], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], "parsers": ["flow", "babel-flow"], "vscodeLanguageIds": ["javascript"] }, { "linguistLanguageId": 183, "name": "JSX", "type": "programming", "tmScope": "source.js.jsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "color": void 0, "aliases": void 0, "extensions": [".jsx"], "filenames": void 0, "interpreters": void 0, "parsers": ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], "vscodeLanguageIds": ["javascriptreact"], "group": "JavaScript" }, { "linguistLanguageId": 378, "name": "TypeScript", "type": "programming", "color": "#3178c6", "aliases": ["ts"], "interpreters": ["deno", "ts-node"], "extensions": [".ts", ".cts", ".mts"], "tmScope": "source.ts", "aceMode": "typescript", "codemirrorMode": "javascript", "codemirrorMimeType": "application/typescript", "parsers": ["typescript", "babel-ts"], "vscodeLanguageIds": ["typescript"] }, { "linguistLanguageId": 94901924, "name": "TSX", "type": "programming", "color": "#3178c6", "group": "TypeScript", "extensions": [".tsx"], "tmScope": "source.tsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "parsers": ["typescript", "babel-ts"], "vscodeLanguageIds": ["typescriptreact"] }];
|
|
21068
21062
|
var CATEGORY_JAVASCRIPT = "JavaScript";
|
|
21069
21063
|
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 };
|
|
21070
21064
|
var options_default4 = options4;
|
|
@@ -21096,7 +21090,7 @@ function createParsersAndPrinters(modules) {
|
|
|
21096
21090
|
}
|
|
21097
21091
|
var options7 = { ...options_default, ...options_default2, ...options_default3, ...options_default4, ...options_default5, ...options_default6 };
|
|
21098
21092
|
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];
|
|
21099
|
-
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-
|
|
21093
|
+
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-TOBUZL7E.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-KEEXFHZL.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-5PSSMNMW.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-G3OYCIFP.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-76OUAQ5X.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-J3JDI2DZ.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-WMUJ6I5N.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-3MJQME6X.js'), parsers: ["html", "angular", "vue", "lwc"], printers: ["html"] }, { importPlugin: () => import('./markdown-H7V23EC7.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-DOVZXFCT.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-CHJDPNAX.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-M7LM37RB.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-G7CHE6AH.js'), parsers: ["yaml"], printers: ["yaml"] }]);
|
|
21100
21094
|
function loadBuiltinPlugins() {
|
|
21101
21095
|
return [builtin_plugins_proxy_exports];
|
|
21102
21096
|
}
|
|
@@ -21448,7 +21442,7 @@ async function generatePerActionDataFiles({
|
|
|
21448
21442
|
${entries.map(([key2, value]) => {
|
|
21449
21443
|
return `"${key2}": {
|
|
21450
21444
|
${stringify(value, {
|
|
21451
|
-
description: (value2, d) => value2 ? d(value2) :
|
|
21445
|
+
description: (value2, d) => value2 ? d(value2) : void 0,
|
|
21452
21446
|
// trick to remove undefineds
|
|
21453
21447
|
type: (type2) => {
|
|
21454
21448
|
if (typeof type2 === "string") {
|
|
@@ -21465,7 +21459,7 @@ async function generatePerActionDataFiles({
|
|
|
21465
21459
|
} else if (type2.type === "struct") {
|
|
21466
21460
|
return `ActionMetadata.DataType.Struct<${JSON.stringify(type2.struct)}>`;
|
|
21467
21461
|
}
|
|
21468
|
-
return
|
|
21462
|
+
return void 0;
|
|
21469
21463
|
}
|
|
21470
21464
|
})}
|
|
21471
21465
|
}`;
|
|
@@ -21516,7 +21510,7 @@ async function generatePerActionDataFiles({
|
|
|
21516
21510
|
}
|
|
21517
21511
|
}
|
|
21518
21512
|
}
|
|
21519
|
-
const imports = getObjectImports(referencedObjectDefs,
|
|
21513
|
+
const imports = getObjectImports(referencedObjectDefs, void 0, currentFilePath, true);
|
|
21520
21514
|
await fs9.writeFile(path19__default.join(rootOutDir, currentFilePath), await formatTs(`
|
|
21521
21515
|
import type {
|
|
21522
21516
|
ActionDefinition,
|
|
@@ -21557,9 +21551,9 @@ async function generatePerActionDataFiles({
|
|
|
21557
21551
|
// Represents a fqn of the action
|
|
21558
21552
|
export interface Signatures {
|
|
21559
21553
|
${getDescriptionIfPresent(action.description)}
|
|
21560
|
-
applyAction<
|
|
21554
|
+
applyAction<OP extends ApplyActionOptions>(args: ${action.paramsIdentifier}, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
|
|
21561
21555
|
|
|
21562
|
-
batchApplyAction<
|
|
21556
|
+
batchApplyAction<OP extends ApplyBatchActionOptions>(args: ReadonlyArray<${action.paramsIdentifier}>, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
|
|
21563
21557
|
}
|
|
21564
21558
|
|
|
21565
21559
|
}
|
|
@@ -21576,12 +21570,12 @@ async function generatePerActionDataFiles({
|
|
|
21576
21570
|
signatures: ${action.shortApiName}.Signatures;
|
|
21577
21571
|
},
|
|
21578
21572
|
${stringify(fullActionDef, {
|
|
21579
|
-
"description": () =>
|
|
21580
|
-
"displayName": () =>
|
|
21581
|
-
"modifiedEntities": () =>
|
|
21582
|
-
"parameters": () =>
|
|
21583
|
-
"rid": () =>
|
|
21584
|
-
"status": () =>
|
|
21573
|
+
"description": () => void 0,
|
|
21574
|
+
"displayName": () => void 0,
|
|
21575
|
+
"modifiedEntities": () => void 0,
|
|
21576
|
+
"parameters": () => void 0,
|
|
21577
|
+
"rid": () => void 0,
|
|
21578
|
+
"status": () => void 0
|
|
21585
21579
|
})}
|
|
21586
21580
|
osdkMetadata: typeof $osdkMetadata;
|
|
21587
21581
|
}
|
|
@@ -21592,12 +21586,12 @@ async function generatePerActionDataFiles({
|
|
|
21592
21586
|
return ` export const ${action.shortApiName}: ${action.shortApiName} =
|
|
21593
21587
|
{
|
|
21594
21588
|
${stringify(fullActionDef, {
|
|
21595
|
-
"description": () =>
|
|
21596
|
-
"displayName": () =>
|
|
21597
|
-
"modifiedEntities": () =>
|
|
21598
|
-
"parameters": () =>
|
|
21599
|
-
"rid": () =>
|
|
21600
|
-
"status": () =>
|
|
21589
|
+
"description": () => void 0,
|
|
21590
|
+
"displayName": () => void 0,
|
|
21591
|
+
"modifiedEntities": () => void 0,
|
|
21592
|
+
"parameters": () => void 0,
|
|
21593
|
+
"rid": () => void 0,
|
|
21594
|
+
"status": () => void 0
|
|
21601
21595
|
})},
|
|
21602
21596
|
osdkMetadata: $osdkMetadata
|
|
21603
21597
|
}
|
|
@@ -21651,7 +21645,7 @@ function extractReferencedObjectsFromActionParameter(actionParameter) {
|
|
|
21651
21645
|
case "integer":
|
|
21652
21646
|
case "long":
|
|
21653
21647
|
case "timestamp":
|
|
21654
|
-
return
|
|
21648
|
+
return void 0;
|
|
21655
21649
|
}
|
|
21656
21650
|
}
|
|
21657
21651
|
|
|
@@ -21839,9 +21833,9 @@ function createProps(type2, identifier, strict) {
|
|
|
21839
21833
|
return `export interface ${identifier} {
|
|
21840
21834
|
${stringify(definition.properties, {
|
|
21841
21835
|
"*": (propertyDefinition, _, apiName) => {
|
|
21842
|
-
return [
|
|
21843
|
-
|
|
21844
|
-
""
|
|
21836
|
+
return [`${propertyJsdoc(propertyDefinition, {
|
|
21837
|
+
apiName
|
|
21838
|
+
})}readonly "${maybeStripNamespace(type2, apiName)}"`, (typeof propertyDefinition.type === "object" ? remapStructType(propertyDefinition.type) : `$PropType[${JSON.stringify(propertyDefinition.type)}]`) + `${propertyDefinition.multiplicity ? "[]" : ""}${propertyDefinition.nullable || !strict && !(definition.type === "object" && definition.primaryKeyApiName === apiName) ? `| undefined` : ""}`];
|
|
21845
21839
|
}
|
|
21846
21840
|
})}
|
|
21847
21841
|
}`;
|
|
@@ -21928,9 +21922,9 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
|
|
|
21928
21922
|
}
|
|
21929
21923
|
for (const apiName of Object.keys(parent.properties)) {
|
|
21930
21924
|
if (definition.properties[apiName] != null) {
|
|
21931
|
-
!(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() :
|
|
21925
|
+
!(0, import_fast_deep_equal.default)(definition.properties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Interface ${definition.apiName} redefines property '${apiName}' from parent '${parent.apiName}' but the properties do not match`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() : void 0;
|
|
21932
21926
|
} else if (mergedProperties[apiName] != null) {
|
|
21933
|
-
!(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() :
|
|
21927
|
+
!(0, import_fast_deep_equal.default)(mergedProperties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Some interface defines a conflicting property '${apiName}' that does not match property from parent '${parent.apiName}'`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() : void 0;
|
|
21934
21928
|
}
|
|
21935
21929
|
mergedProperties[apiName] = parent.properties[apiName];
|
|
21936
21930
|
}
|
|
@@ -22131,6 +22125,7 @@ async function generatePerQueryDataFilesV2({
|
|
|
22131
22125
|
fs: fs9,
|
|
22132
22126
|
outDir: rootOutDir,
|
|
22133
22127
|
ontology,
|
|
22128
|
+
fixedVersionQueryTypes,
|
|
22134
22129
|
importExt = "",
|
|
22135
22130
|
forInternalUse = false
|
|
22136
22131
|
}) {
|
|
@@ -22140,21 +22135,21 @@ async function generatePerQueryDataFilesV2({
|
|
|
22140
22135
|
recursive: true
|
|
22141
22136
|
});
|
|
22142
22137
|
await Promise.all(Object.values(ontology.queryTypes).map(async (query) => {
|
|
22143
|
-
await generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ontology, forInternalUse);
|
|
22138
|
+
await generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ontology, forInternalUse, fixedVersionQueryTypes);
|
|
22144
22139
|
}));
|
|
22145
22140
|
await fs9.writeFile(`${outDir}.ts`, await formatTs(`
|
|
22146
22141
|
${Object.values(ontology.queryTypes).map((query) => `export {${query.shortApiName}} from "${query.getImportPathRelTo(relOutDir)}";`).join("\n")}
|
|
22147
22142
|
${Object.keys(ontology.queryTypes).length === 0 ? "export {};" : ""}
|
|
22148
22143
|
`));
|
|
22149
22144
|
}
|
|
22150
|
-
async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ontology, forInternalUse) {
|
|
22145
|
+
async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ontology, forInternalUse, fixedVersionQueryTypes) {
|
|
22151
22146
|
const relFilePath = path19__default.join(relOutDir, `${query.shortApiName}.ts`);
|
|
22152
22147
|
const objectTypes = getObjectTypeApiNamesFromQuery(query);
|
|
22153
22148
|
const objectTypeObjects = new Set(objectTypes.map((o) => ontology.requireObjectType(o)));
|
|
22154
22149
|
const importObjects = getObjectImports(objectTypeObjects, "", relFilePath, true);
|
|
22155
22150
|
const baseProps = deleteUndefineds(wireQueryTypeV2ToSdkQueryDefinitionNoParams(query.raw));
|
|
22156
22151
|
const outputBase = deleteUndefineds(wireQueryDataTypeToQueryDataTypeDefinition(query.output));
|
|
22157
|
-
|
|
22152
|
+
const isUsingFixedVersion = fixedVersionQueryTypes.includes(query.fullApiName);
|
|
22158
22153
|
await fs9.writeFile(path19__default.join(outDir, `${query.shortApiName}.ts`), await formatTs(`
|
|
22159
22154
|
import type { ObjectSpecifier, QueryDefinition, QueryParam, QueryResult, VersionBound} from "${forInternalUse ? "@osdk/api" : "@osdk/client"}";
|
|
22160
22155
|
import type { $ExpectedClientVersion } from "../../OntologyMetadata${importExt}";
|
|
@@ -22198,6 +22193,7 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22198
22193
|
>, VersionBound<$ExpectedClientVersion>{
|
|
22199
22194
|
__DefinitionMetadata?: {
|
|
22200
22195
|
${stringify(baseProps)}
|
|
22196
|
+
isFixedVersion: ${isUsingFixedVersion};
|
|
22201
22197
|
parameters: {
|
|
22202
22198
|
${parameterDefsForType(ontology, query)}
|
|
22203
22199
|
};
|
|
@@ -22208,9 +22204,9 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22208
22204
|
signature: ${query.shortApiName}.Signature;
|
|
22209
22205
|
},
|
|
22210
22206
|
${stringify(baseProps, {
|
|
22211
|
-
"description": () =>
|
|
22212
|
-
"displayName": () =>
|
|
22213
|
-
"rid": () =>
|
|
22207
|
+
"description": () => void 0,
|
|
22208
|
+
"displayName": () => void 0,
|
|
22209
|
+
"rid": () => void 0
|
|
22214
22210
|
})},
|
|
22215
22211
|
osdkMetadata: typeof $osdkMetadata;
|
|
22216
22212
|
}
|
|
@@ -22218,10 +22214,11 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22218
22214
|
|
|
22219
22215
|
export const ${query.shortApiName}: ${query.definitionIdentifier} = {
|
|
22220
22216
|
${stringify(baseProps, {
|
|
22221
|
-
"description": () =>
|
|
22222
|
-
"displayName": () =>
|
|
22223
|
-
"rid": () =>
|
|
22217
|
+
"description": () => void 0,
|
|
22218
|
+
"displayName": () => void 0,
|
|
22219
|
+
"rid": () => void 0
|
|
22224
22220
|
})},
|
|
22221
|
+
isFixedVersion: ${isUsingFixedVersion},
|
|
22225
22222
|
osdkMetadata: $osdkMetadata
|
|
22226
22223
|
};
|
|
22227
22224
|
`));
|
|
@@ -22310,7 +22307,7 @@ function getQueryParamType(enhancedOntology, input, type2, isMapKey = false) {
|
|
|
22310
22307
|
inner = input.union.map((u) => getQueryParamType(enhancedOntology, u, type2)).join(" | ");
|
|
22311
22308
|
break;
|
|
22312
22309
|
case "map":
|
|
22313
|
-
inner = `Record<${getQueryParamType(enhancedOntology, input.keyType, type2, true)}, ${getQueryParamType(enhancedOntology, input.valueType, type2)}
|
|
22310
|
+
inner = `Partial<Record<${getQueryParamType(enhancedOntology, input.keyType, type2, true)}, ${getQueryParamType(enhancedOntology, input.valueType, type2)}>>`;
|
|
22314
22311
|
}
|
|
22315
22312
|
if (input.multiplicity && type2 === "Param") {
|
|
22316
22313
|
return `ReadonlyArray<${inner}>`;
|
|
@@ -22346,7 +22343,7 @@ function helper(x) {
|
|
|
22346
22343
|
}
|
|
22347
22344
|
|
|
22348
22345
|
// ../generator/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js
|
|
22349
|
-
async function generateClientSdkVersionTwoPointZero(ontology, userAgent, fs9, outDir, packageType = "commonjs", externalObjects = /* @__PURE__ */ new Map(), externalInterfaces = /* @__PURE__ */ new Map(), externalSpts = /* @__PURE__ */ new Map(), forInternalUse = false) {
|
|
22346
|
+
async function generateClientSdkVersionTwoPointZero(ontology, userAgent, fs9, outDir, packageType = "commonjs", externalObjects = /* @__PURE__ */ new Map(), externalInterfaces = /* @__PURE__ */ new Map(), externalSpts = /* @__PURE__ */ new Map(), forInternalUse = false, fixedVersionQueryTypes = []) {
|
|
22350
22347
|
const importExt = ".js";
|
|
22351
22348
|
await verifyOutDir(outDir, fs9);
|
|
22352
22349
|
const sanitizedOntology = sanitizeMetadata(ontology);
|
|
@@ -22366,7 +22363,8 @@ async function generateClientSdkVersionTwoPointZero(ontology, userAgent, fs9, ou
|
|
|
22366
22363
|
importExt,
|
|
22367
22364
|
fs: fs9,
|
|
22368
22365
|
outDir,
|
|
22369
|
-
forInternalUse
|
|
22366
|
+
forInternalUse,
|
|
22367
|
+
fixedVersionQueryTypes
|
|
22370
22368
|
};
|
|
22371
22369
|
await generateRootIndexTsFile(ctx);
|
|
22372
22370
|
await generateOntologyMetadataFile(ctx, userAgent);
|
|
@@ -22479,7 +22477,7 @@ function getPackageJsonContents(name, version, dependencyVersions) {
|
|
|
22479
22477
|
};
|
|
22480
22478
|
}
|
|
22481
22479
|
async function writeJson(minimalFs, filePath, body) {
|
|
22482
|
-
return void await minimalFs.writeFile(filePath, JSON.stringify(body,
|
|
22480
|
+
return void await minimalFs.writeFile(filePath, JSON.stringify(body, void 0, 2) + "\n");
|
|
22483
22481
|
}
|
|
22484
22482
|
|
|
22485
22483
|
// ../shared.client.impl/build/esm/index.js
|
|
@@ -22514,7 +22512,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
|
|
|
22514
22512
|
|
|
22515
22513
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
22516
22514
|
var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
|
|
22517
|
-
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.26.0-
|
|
22515
|
+
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.26.0-rc.24"}`;
|
|
22518
22516
|
async function handleGenerate(args) {
|
|
22519
22517
|
let success = false;
|
|
22520
22518
|
if (args.ontologyPath) {
|
|
@@ -22650,7 +22648,7 @@ async function generateClientSdk(ontology, args) {
|
|
|
22650
22648
|
}
|
|
22651
22649
|
return true;
|
|
22652
22650
|
}
|
|
22653
|
-
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.26.0-
|
|
22651
|
+
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.26.0-rc.24", args.externalObjects, args.externalInterfaces);
|
|
22654
22652
|
return true;
|
|
22655
22653
|
} catch (e) {
|
|
22656
22654
|
consola.error("OSDK generation failed", e.message, e.stack);
|
|
@@ -22677,8 +22675,8 @@ async function getDependencyVersions() {
|
|
|
22677
22675
|
typescriptVersion,
|
|
22678
22676
|
tslibVersion,
|
|
22679
22677
|
areTheTypesWrongVersion,
|
|
22680
|
-
osdkApiVersion: `^${"2.2.0-
|
|
22681
|
-
osdkClientVersion: `^${"2.2.0-
|
|
22678
|
+
osdkApiVersion: `^${"2.2.0-rc.24"}`,
|
|
22679
|
+
osdkClientVersion: `^${"2.2.0-rc.24"}`,
|
|
22682
22680
|
osdkLegacyClientVersion
|
|
22683
22681
|
};
|
|
22684
22682
|
}
|
|
@@ -22717,5 +22715,5 @@ function createNormalFs() {
|
|
|
22717
22715
|
}
|
|
22718
22716
|
|
|
22719
22717
|
export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
|
|
22720
|
-
//# sourceMappingURL=handleGenerate-
|
|
22721
|
-
//# sourceMappingURL=handleGenerate-
|
|
22718
|
+
//# sourceMappingURL=handleGenerate-3JOJAO7Q.js.map
|
|
22719
|
+
//# sourceMappingURL=handleGenerate-3JOJAO7Q.js.map
|