@osdk/cli 0.26.0-beta.2 → 0.26.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/build/esm/{acorn-LQZJTRX7.js → acorn-6J2XFAF2.js} +33 -34
- package/build/esm/{acorn-LQZJTRX7.js.map → acorn-6J2XFAF2.js.map} +1 -1
- package/build/esm/{angular-VWUX447C.js → angular-FXKB67LX.js} +11 -11
- package/build/esm/{angular-VWUX447C.js.map → angular-FXKB67LX.js.map} +1 -1
- package/build/esm/{babel-7BWEVLBS.js → babel-P3PJ67NT.js} +67 -67
- package/build/esm/{babel-7BWEVLBS.js.map → babel-P3PJ67NT.js.map} +1 -1
- package/build/esm/{chunk-LR3YBME3.js → chunk-FNSPUDYX.js} +10 -10
- package/build/esm/{chunk-LR3YBME3.js.map → chunk-FNSPUDYX.js.map} +1 -1
- package/build/esm/{chunk-KHVWTBWA.js → chunk-G4YHZ22X.js} +8 -8
- package/build/esm/{chunk-KHVWTBWA.js.map → chunk-G4YHZ22X.js.map} +1 -1
- package/build/esm/{chunk-GVZBRYRL.js → chunk-GMSFWYOD.js} +3 -3
- package/build/esm/{chunk-GVZBRYRL.js.map → chunk-GMSFWYOD.js.map} +1 -1
- package/build/esm/{chunk-DMUWBIYY.js → chunk-HRFGJCX3.js} +4 -4
- package/build/esm/{chunk-DMUWBIYY.js.map → chunk-HRFGJCX3.js.map} +1 -1
- package/build/esm/{chunk-SAOPV5FF.js → chunk-MX6IUHH6.js} +3 -3
- package/build/esm/{chunk-SAOPV5FF.js.map → chunk-MX6IUHH6.js.map} +1 -1
- package/build/esm/{chunk-3XCF7EHX.js → chunk-OMACPIR2.js} +47 -65
- package/build/esm/chunk-OMACPIR2.js.map +1 -0
- package/build/esm/{chunk-KXNCVDQG.js → chunk-SB26PVZG.js} +11 -11
- package/build/esm/{chunk-KXNCVDQG.js.map → chunk-SB26PVZG.js.map} +1 -1
- package/build/esm/{chunk-PXU2ECCD.js → chunk-WID24PKG.js} +23 -16
- package/build/esm/chunk-WID24PKG.js.map +1 -0
- package/build/esm/{chunk-HCWMXOMI.js → chunk-WJJGFC5B.js} +5 -4
- package/build/esm/chunk-WJJGFC5B.js.map +1 -0
- package/build/esm/{estree-PI6JMQNR.js → estree-YZZ76ZCZ.js} +102 -118
- package/build/esm/{estree-PI6JMQNR.js.map → estree-YZZ76ZCZ.js.map} +1 -1
- package/build/esm/find-up-J6UG2A4A.js +4 -0
- package/build/esm/{find-up-QYNPYSRQ.js.map → find-up-J6UG2A4A.js.map} +1 -1
- package/build/esm/{flow-AP4DEOL5.js → flow-FLMB2WRS.js} +14 -14
- package/build/esm/{flow-AP4DEOL5.js.map → flow-FLMB2WRS.js.map} +1 -1
- package/build/esm/{glimmer-LM2ZFC5U.js → glimmer-QTYNZR7I.js} +53 -53
- package/build/esm/{glimmer-LM2ZFC5U.js.map → glimmer-QTYNZR7I.js.map} +1 -1
- package/build/esm/{graphql-U5CPDQKQ.js → graphql-RJWZIGAD.js} +22 -57
- package/build/esm/graphql-RJWZIGAD.js.map +1 -0
- package/build/esm/{handleGenerate-WWXANW5U.js → handleGenerate-BGRQWN5E.js} +364 -346
- package/build/esm/handleGenerate-BGRQWN5E.js.map +1 -0
- package/build/esm/{html-FNGHE355.js → html-CASQPPRX.js} +37 -66
- package/build/esm/html-CASQPPRX.js.map +1 -0
- package/build/esm/index.js +24 -24
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-UZUROTUU.js +4 -0
- package/build/esm/{loginFlow-ESPJDVBX.js.map → loginFlow-UZUROTUU.js.map} +1 -1
- package/build/esm/{markdown-HUHOYR5Q.js → markdown-SVGJ3QZI.js} +49 -69
- package/build/esm/{markdown-HUHOYR5Q.js.map → markdown-SVGJ3QZI.js.map} +1 -1
- package/build/esm/{meriyah-WP7UQXC7.js → meriyah-YDXWEWLV.js} +36 -36
- package/build/esm/{meriyah-WP7UQXC7.js.map → meriyah-YDXWEWLV.js.map} +1 -1
- package/build/esm/{postcss-JMNG34CL.js → postcss-BBOQTN3X.js} +79 -115
- package/build/esm/{postcss-JMNG34CL.js.map → postcss-BBOQTN3X.js.map} +1 -1
- package/build/esm/{siteDeployCommand-MPU32NSO.js → siteDeployCommand-SICXNVXE.js} +12 -12
- package/build/esm/{siteDeployCommand-MPU32NSO.js.map → siteDeployCommand-SICXNVXE.js.map} +1 -1
- package/build/esm/{typescript-A4QI3FB6.js → typescript-JGKMLQMS.js} +670 -668
- package/build/esm/{typescript-A4QI3FB6.js.map → typescript-JGKMLQMS.js.map} +1 -1
- package/build/esm/versionDeleteCommand-N4IDMM6T.js +37 -0
- package/build/esm/versionDeleteCommand-N4IDMM6T.js.map +1 -0
- package/build/esm/{versionDeleteCommand-DGFC2RVA.js → versionDeleteCommand-UVJD22UF.js} +9 -8
- package/build/esm/versionDeleteCommand-UVJD22UF.js.map +1 -0
- package/build/esm/{versionGetCommand-GAS2KI7X.js → versionGetCommand-H4WKX33Z.js} +6 -6
- package/build/esm/{versionGetCommand-GAS2KI7X.js.map → versionGetCommand-H4WKX33Z.js.map} +1 -1
- package/build/esm/{versionInfoCommand-D2I45O6W.js → versionInfoCommand-MG3WUM5J.js} +7 -7
- package/build/esm/versionInfoCommand-MG3WUM5J.js.map +1 -0
- package/build/esm/{versionListCommand-LOJCLRAG.js → versionListCommand-HEFKKWOR.js} +6 -6
- package/build/esm/{versionListCommand-LOJCLRAG.js.map → versionListCommand-HEFKKWOR.js.map} +1 -1
- package/build/esm/{versionListCommand-FOLF3MQJ.js → versionListCommand-IRI46I2S.js} +9 -9
- package/build/esm/versionListCommand-IRI46I2S.js.map +1 -0
- package/build/esm/{versionSetCommand-3PPJLHJU.js → versionSetCommand-22FWWWMY.js} +6 -6
- package/build/esm/{versionSetCommand-3PPJLHJU.js.map → versionSetCommand-22FWWWMY.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-7A4RM25B.js → versionUnsetCommand-JJYWMBIF.js} +9 -8
- package/build/esm/versionUnsetCommand-JJYWMBIF.js.map +1 -0
- package/build/esm/{widgetSetDeployCommand-VLVRA7AB.js → widgetSetDeployCommand-5VWOAMBB.js} +13 -22
- package/build/esm/widgetSetDeployCommand-5VWOAMBB.js.map +1 -0
- package/build/esm/{yaml-IT3UOTAK.js → yaml-C7WVEV2M.js} +50 -63
- package/build/esm/yaml-C7WVEV2M.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/consola/handlePromptCancel.d.ts.map +1 -1
- package/build/types/net/createFetch.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/package.json +8 -8
- package/build/esm/chunk-3XCF7EHX.js.map +0 -1
- package/build/esm/chunk-HCWMXOMI.js.map +0 -1
- package/build/esm/chunk-PXU2ECCD.js.map +0 -1
- package/build/esm/find-up-QYNPYSRQ.js +0 -4
- package/build/esm/graphql-U5CPDQKQ.js.map +0 -1
- package/build/esm/handleGenerate-WWXANW5U.js.map +0 -1
- package/build/esm/html-FNGHE355.js.map +0 -1
- package/build/esm/loginFlow-ESPJDVBX.js +0 -4
- package/build/esm/versionDeleteCommand-DGFC2RVA.js.map +0 -1
- package/build/esm/versionDeleteCommand-YZVRSZFQ.js +0 -58
- package/build/esm/versionDeleteCommand-YZVRSZFQ.js.map +0 -1
- package/build/esm/versionInfoCommand-D2I45O6W.js.map +0 -1
- package/build/esm/versionListCommand-FOLF3MQJ.js.map +0 -1
- package/build/esm/versionUnsetCommand-7A4RM25B.js.map +0 -1
- package/build/esm/widgetSetDeployCommand-VLVRA7AB.js.map +0 -1
- package/build/esm/yaml-IT3UOTAK.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,10 +1,11 @@
|
|
|
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-
|
|
6
|
-
import * as fs8 from 'fs';
|
|
7
|
-
import
|
|
1
|
+
import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-WID24PKG.js';
|
|
2
|
+
import { YargsCheckError, ExitProcessError } from './chunk-MX6IUHH6.js';
|
|
3
|
+
import { findUp } from './chunk-FNSPUDYX.js';
|
|
4
|
+
import { invokeLoginFlow } from './chunk-G4YHZ22X.js';
|
|
5
|
+
import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-HRFGJCX3.js';
|
|
6
|
+
import * as fs8 from 'node:fs';
|
|
7
|
+
import * as path19 from 'node:path';
|
|
8
|
+
import path19__default from 'node:path';
|
|
8
9
|
import * as path9 from 'path';
|
|
9
10
|
import path9__default, { dirname } from 'path';
|
|
10
11
|
import { createRequire, builtinModules } from 'module';
|
|
@@ -14,9 +15,11 @@ import os from 'os';
|
|
|
14
15
|
import tty from 'tty';
|
|
15
16
|
import fs from 'fs/promises';
|
|
16
17
|
import assert2 from 'assert';
|
|
18
|
+
import fs6, { realpathSync, statSync, Stats } from 'fs';
|
|
17
19
|
import v8 from 'v8';
|
|
18
20
|
import { format, inspect } from 'util';
|
|
19
21
|
import consola$1, { consola } from 'consola';
|
|
22
|
+
import { fileURLToPath as fileURLToPath$1 } from 'node:url';
|
|
20
23
|
|
|
21
24
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
22
25
|
var require_fast_deep_equal = __commonJS({
|
|
@@ -54,10 +57,10 @@ var require_fast_deep_equal = __commonJS({
|
|
|
54
57
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
55
58
|
init_esm_shims();
|
|
56
59
|
|
|
57
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
60
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
|
|
58
61
|
init_esm_shims();
|
|
59
62
|
|
|
60
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
63
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
61
64
|
init_esm_shims();
|
|
62
65
|
|
|
63
66
|
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
|
|
@@ -110,9 +113,9 @@ var UnknownError = class extends PalantirApiError2 {
|
|
|
110
113
|
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
111
114
|
async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
|
|
112
115
|
const path21 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
|
|
113
|
-
const body = flags & 1 ? args.shift() :
|
|
114
|
-
const queryArgs = flags & 2 ? args.shift() :
|
|
115
|
-
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;
|
|
116
119
|
const method = ["GET", "POST", "PUT", "DELETE", "PATCH"][httpMethodNum];
|
|
117
120
|
return await apiFetch(client[symbolClientContext2] ?? client[symbolClientContext] ?? client, method, path21, body, queryArgs, headerArgs, contentType, responseContentType);
|
|
118
121
|
}
|
|
@@ -168,34 +171,37 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
168
171
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
174
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
172
175
|
init_esm_shims();
|
|
173
176
|
|
|
174
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
177
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
175
178
|
init_esm_shims();
|
|
176
179
|
|
|
177
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
180
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
178
181
|
init_esm_shims();
|
|
179
182
|
|
|
180
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
183
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
181
184
|
init_esm_shims();
|
|
182
185
|
|
|
183
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
186
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
184
187
|
init_esm_shims();
|
|
185
188
|
|
|
186
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
189
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
187
190
|
init_esm_shims();
|
|
188
191
|
|
|
189
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
192
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
190
193
|
init_esm_shims();
|
|
191
194
|
|
|
192
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
195
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
193
196
|
init_esm_shims();
|
|
194
197
|
|
|
195
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
198
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
196
199
|
init_esm_shims();
|
|
197
200
|
|
|
198
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
201
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
202
|
+
init_esm_shims();
|
|
203
|
+
|
|
204
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
199
205
|
var OntologyV2_exports = {};
|
|
200
206
|
__export(OntologyV2_exports, {
|
|
201
207
|
get: () => get,
|
|
@@ -216,16 +222,16 @@ function getFullMetadata($ctx, ...args) {
|
|
|
216
222
|
return foundryPlatformFetch($ctx, _getFullMetadata, ...args);
|
|
217
223
|
}
|
|
218
224
|
|
|
219
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
225
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
220
226
|
init_esm_shims();
|
|
221
227
|
|
|
222
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
228
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
223
229
|
init_esm_shims();
|
|
224
230
|
|
|
225
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
231
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
226
232
|
init_esm_shims();
|
|
227
233
|
|
|
228
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
234
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.18.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
229
235
|
init_esm_shims();
|
|
230
236
|
|
|
231
237
|
// ../generator/build/esm/index.js
|
|
@@ -265,7 +271,7 @@ var AbstractImportable = class {
|
|
|
265
271
|
}
|
|
266
272
|
getImportPathRelTo = (filePath) => {
|
|
267
273
|
if (this.importPath.startsWith(".")) {
|
|
268
|
-
const result =
|
|
274
|
+
const result = path19.relative(path19.dirname(filePath), this.importPath).split(path19.sep).join("/");
|
|
269
275
|
if (result.startsWith(".")) {
|
|
270
276
|
return result;
|
|
271
277
|
} else {
|
|
@@ -284,7 +290,7 @@ var EnhancedBase = class extends AbstractImportable {
|
|
|
284
290
|
};
|
|
285
291
|
function extractNamespace(fqApiName) {
|
|
286
292
|
const last = fqApiName.lastIndexOf(".");
|
|
287
|
-
if (last === -1) return [
|
|
293
|
+
if (last === -1) return [void 0, fqApiName];
|
|
288
294
|
return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];
|
|
289
295
|
}
|
|
290
296
|
|
|
@@ -328,7 +334,7 @@ init_esm_shims();
|
|
|
328
334
|
function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
329
335
|
const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType, log);
|
|
330
336
|
if (sdkPropDefinition == null) {
|
|
331
|
-
return
|
|
337
|
+
return void 0;
|
|
332
338
|
}
|
|
333
339
|
switch (input.dataType.type) {
|
|
334
340
|
case "integer":
|
|
@@ -369,12 +375,12 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
|
369
375
|
case "cipherText":
|
|
370
376
|
case "vector": {
|
|
371
377
|
log?.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);
|
|
372
|
-
return
|
|
378
|
+
return void 0;
|
|
373
379
|
}
|
|
374
380
|
default:
|
|
375
381
|
input.dataType;
|
|
376
382
|
log?.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);
|
|
377
|
-
return
|
|
383
|
+
return void 0;
|
|
378
384
|
}
|
|
379
385
|
}
|
|
380
386
|
function objectPropertyTypeToSdkPropertyDefinition(propertyType, log) {
|
|
@@ -415,11 +421,11 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType, log) {
|
|
|
415
421
|
case "cipherText":
|
|
416
422
|
case "vector": {
|
|
417
423
|
log?.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);
|
|
418
|
-
return
|
|
424
|
+
return void 0;
|
|
419
425
|
}
|
|
420
426
|
default: {
|
|
421
427
|
log?.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);
|
|
422
|
-
return
|
|
428
|
+
return void 0;
|
|
423
429
|
}
|
|
424
430
|
}
|
|
425
431
|
}
|
|
@@ -432,8 +438,8 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType, v2,
|
|
|
432
438
|
apiName: interfaceType.apiName,
|
|
433
439
|
displayName: interfaceType.displayName,
|
|
434
440
|
description: interfaceType.description,
|
|
435
|
-
implements: interfaceType.extendsInterfaces,
|
|
436
|
-
properties: Object.fromEntries(Object.entries(interfaceType.properties).map(([key2, value]) => {
|
|
441
|
+
implements: interfaceType.allExtendsInterfaces ?? interfaceType.extendsInterfaces,
|
|
442
|
+
properties: Object.fromEntries(Object.entries(interfaceType.allProperties ?? interfaceType.properties).map(([key2, value]) => {
|
|
437
443
|
return [key2, wirePropertyV2ToSdkPropertyDefinition(value, true, log)];
|
|
438
444
|
}).filter(([key2, value]) => value != null)),
|
|
439
445
|
links: {},
|
|
@@ -499,6 +505,8 @@ function actionPropertyToSdkPropertyDefinition(parameterType) {
|
|
|
499
505
|
case "mediaReference":
|
|
500
506
|
case "marking":
|
|
501
507
|
case "objectType":
|
|
508
|
+
case "geohash":
|
|
509
|
+
case "geoshape":
|
|
502
510
|
return parameterType.type;
|
|
503
511
|
case "date":
|
|
504
512
|
return "datetime";
|
|
@@ -562,18 +570,16 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
562
570
|
case "integer":
|
|
563
571
|
case "double":
|
|
564
572
|
case "string":
|
|
565
|
-
case "boolean":
|
|
566
573
|
case "byte":
|
|
567
574
|
case "long":
|
|
568
|
-
case "short":
|
|
575
|
+
case "short":
|
|
576
|
+
case "timestamp": {
|
|
569
577
|
return input.dataType.type;
|
|
570
578
|
}
|
|
571
579
|
case "date": {
|
|
572
580
|
return "datetime";
|
|
573
581
|
}
|
|
574
|
-
case "
|
|
575
|
-
return "timestamp";
|
|
576
|
-
}
|
|
582
|
+
case "boolean":
|
|
577
583
|
case "geopoint":
|
|
578
584
|
case "geoshape":
|
|
579
585
|
case "decimal":
|
|
@@ -587,7 +593,7 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
587
593
|
case "struct":
|
|
588
594
|
case "cipherText":
|
|
589
595
|
case "vector":
|
|
590
|
-
throw new Error(`
|
|
596
|
+
throw new Error(`Primary key of type ${input.dataType.type} is not supported`);
|
|
591
597
|
default:
|
|
592
598
|
input.dataType;
|
|
593
599
|
throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);
|
|
@@ -596,7 +602,7 @@ function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
|
596
602
|
|
|
597
603
|
// ../generator-converters/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.js
|
|
598
604
|
function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, log) {
|
|
599
|
-
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] ===
|
|
605
|
+
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] === void 0) {
|
|
600
606
|
throw new Error(`Primary key ${objectTypeWithLink.objectType.primaryKey} not found in ${objectTypeWithLink.objectType.apiName}`);
|
|
601
607
|
}
|
|
602
608
|
if (objectTypeWithLink.implementsInterfaces2 == null && objectTypeWithLink.implementsInterfaces != null) {
|
|
@@ -619,7 +625,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, l
|
|
|
619
625
|
implements: objectTypeWithLink.implementsInterfaces,
|
|
620
626
|
interfaceMap,
|
|
621
627
|
inverseInterfaceMap: Object.fromEntries(Object.entries(interfaceMap).map(([interfaceApiName, props]) => [interfaceApiName, invertProps(props)])),
|
|
622
|
-
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon :
|
|
628
|
+
icon: supportedIconTypes.includes(objectTypeWithLink.objectType.icon.type) ? objectTypeWithLink.objectType.icon : void 0,
|
|
623
629
|
titleProperty: objectTypeWithLink.objectType.titleProperty,
|
|
624
630
|
displayName: objectTypeWithLink.objectType.displayName,
|
|
625
631
|
pluralDisplayName: objectTypeWithLink.objectType.pluralDisplayName,
|
|
@@ -629,7 +635,7 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, l
|
|
|
629
635
|
};
|
|
630
636
|
}
|
|
631
637
|
function invertProps(a) {
|
|
632
|
-
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) :
|
|
638
|
+
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) : void 0;
|
|
633
639
|
}
|
|
634
640
|
var supportedIconTypes = ["blueprint"];
|
|
635
641
|
|
|
@@ -727,6 +733,20 @@ function wireQueryDataTypeToQueryDataTypeDefinition(input) {
|
|
|
727
733
|
threeDimensionalAggregation: get3DQueryAggregationProps(input),
|
|
728
734
|
nullable: false
|
|
729
735
|
};
|
|
736
|
+
case "entrySet":
|
|
737
|
+
const keyType = wireQueryDataTypeToQueryDataTypeDefinition(input.keyType);
|
|
738
|
+
if (!validMapKeyTypes.includes(keyType.type)) {
|
|
739
|
+
throw new Error("Map types with a key type of " + keyType.type + " are not supported" + validMapKeyTypes.toString());
|
|
740
|
+
}
|
|
741
|
+
if (keyType.multiplicity === true) {
|
|
742
|
+
throw new Error("Map types cannot have keys as arrays");
|
|
743
|
+
}
|
|
744
|
+
return {
|
|
745
|
+
type: "map",
|
|
746
|
+
nullable: false,
|
|
747
|
+
keyType,
|
|
748
|
+
valueType: wireQueryDataTypeToQueryDataTypeDefinition(input.valueType)
|
|
749
|
+
};
|
|
730
750
|
case "null":
|
|
731
751
|
case "unsupported":
|
|
732
752
|
throw new Error(`Unable to process query because the server indicated an unsupported QueryDataType.type: ${input.type}. Please check that your query is using supported types.`);
|
|
@@ -771,6 +791,7 @@ function get3DQueryAggregationProps(input) {
|
|
|
771
791
|
function guardInvalidKeyTypes(key2) {
|
|
772
792
|
return key2.type === "string" || key2.type === "boolean";
|
|
773
793
|
}
|
|
794
|
+
var validMapKeyTypes = ["string", "object", "double", "float", "integer", "long", "date", "timestamp", "byte", "datetime", "decimal", "marking", "short", "objectType"];
|
|
774
795
|
|
|
775
796
|
// ../generator-converters/build/esm/wireQueryTypeV2ToSdkQueryMetadata.js
|
|
776
797
|
init_esm_shims();
|
|
@@ -794,7 +815,7 @@ function wireQueryParameterV2ToQueryParameterDefinition(parameter) {
|
|
|
794
815
|
// ../generator/build/esm/util/deleteUndefineds.js
|
|
795
816
|
init_esm_shims();
|
|
796
817
|
function deleteUndefineds(obj) {
|
|
797
|
-
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !==
|
|
818
|
+
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
|
|
798
819
|
}
|
|
799
820
|
|
|
800
821
|
// ../generator/build/esm/GenerateContext/EnhancedInterfaceType.js
|
|
@@ -906,7 +927,7 @@ var EnhancedOntologyDefinition = class {
|
|
|
906
927
|
return (fullApiName) => {
|
|
907
928
|
const ret = this[type2][fullApiName];
|
|
908
929
|
if (!ret) {
|
|
909
|
-
extractNamespace(fullApiName);
|
|
930
|
+
const [apiNamespace, shortApiName] = extractNamespace(fullApiName);
|
|
910
931
|
throw new Error(`Unable to find ${type2}: No entry for '${fullApiName}`);
|
|
911
932
|
}
|
|
912
933
|
return ret;
|
|
@@ -1086,7 +1107,7 @@ function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
1086
1107
|
if (!docType) {
|
|
1087
1108
|
throw new invalid_doc_error_default(doc2);
|
|
1088
1109
|
}
|
|
1089
|
-
if ((onEnter == null ?
|
|
1110
|
+
if ((onEnter == null ? void 0 : onEnter(doc2)) === false) {
|
|
1090
1111
|
continue;
|
|
1091
1112
|
}
|
|
1092
1113
|
switch (docType) {
|
|
@@ -1261,7 +1282,7 @@ function label(label2, contents) {
|
|
|
1261
1282
|
} : contents;
|
|
1262
1283
|
}
|
|
1263
1284
|
var at = (isOptionalObject, object, index) => {
|
|
1264
|
-
if (isOptionalObject && (object ===
|
|
1285
|
+
if (isOptionalObject && (object === void 0 || object === null)) {
|
|
1265
1286
|
return;
|
|
1266
1287
|
}
|
|
1267
1288
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -1271,7 +1292,7 @@ var at = (isOptionalObject, object, index) => {
|
|
|
1271
1292
|
};
|
|
1272
1293
|
var at_default = at;
|
|
1273
1294
|
var stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {
|
|
1274
|
-
if (isOptionalObject && (original ===
|
|
1295
|
+
if (isOptionalObject && (original === void 0 || original === null)) {
|
|
1275
1296
|
return;
|
|
1276
1297
|
}
|
|
1277
1298
|
if (original.replaceAll) {
|
|
@@ -1410,7 +1431,7 @@ function findInDoc(doc, fn, defaultValue) {
|
|
|
1410
1431
|
return false;
|
|
1411
1432
|
}
|
|
1412
1433
|
const maybeResult = fn(doc2);
|
|
1413
|
-
if (maybeResult !==
|
|
1434
|
+
if (maybeResult !== void 0) {
|
|
1414
1435
|
shouldSkipFurtherProcessing = true;
|
|
1415
1436
|
result = maybeResult;
|
|
1416
1437
|
}
|
|
@@ -2304,7 +2325,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
2304
2325
|
};
|
|
2305
2326
|
var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
2306
2327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2307
|
-
exports.splitWhen = exports.flatten =
|
|
2328
|
+
exports.splitWhen = exports.flatten = void 0;
|
|
2308
2329
|
function flatten(items) {
|
|
2309
2330
|
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
2310
2331
|
}
|
|
@@ -2326,7 +2347,7 @@ var require_array = __commonJS2({ "node_modules/fast-glob/out/utils/array.js"(ex
|
|
|
2326
2347
|
} });
|
|
2327
2348
|
var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
2328
2349
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2329
|
-
exports.isEnoentCodeError =
|
|
2350
|
+
exports.isEnoentCodeError = void 0;
|
|
2330
2351
|
function isEnoentCodeError(error) {
|
|
2331
2352
|
return error.code === "ENOENT";
|
|
2332
2353
|
}
|
|
@@ -2334,7 +2355,7 @@ var require_errno = __commonJS2({ "node_modules/fast-glob/out/utils/errno.js"(ex
|
|
|
2334
2355
|
} });
|
|
2335
2356
|
var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
2336
2357
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2337
|
-
exports.createDirentFromStats =
|
|
2358
|
+
exports.createDirentFromStats = void 0;
|
|
2338
2359
|
var DirentFromStats = class {
|
|
2339
2360
|
constructor(name, stats) {
|
|
2340
2361
|
this.name = name;
|
|
@@ -2354,7 +2375,7 @@ var require_fs = __commonJS2({ "node_modules/fast-glob/out/utils/fs.js"(exports)
|
|
|
2354
2375
|
} });
|
|
2355
2376
|
var require_path = __commonJS2({ "node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
2356
2377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2357
|
-
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify =
|
|
2378
|
+
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
2358
2379
|
var os2 = __require("os");
|
|
2359
2380
|
var path132 = __require("path");
|
|
2360
2381
|
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
@@ -2627,7 +2648,7 @@ var require_utils = __commonJS2({ "node_modules/braces/lib/utils.js"(exports) {
|
|
|
2627
2648
|
const flat = (arr) => {
|
|
2628
2649
|
for (let i2 = 0; i2 < arr.length; i2++) {
|
|
2629
2650
|
let ele = arr[i2];
|
|
2630
|
-
Array.isArray(ele) ? flat(ele) : ele !==
|
|
2651
|
+
Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
|
|
2631
2652
|
}
|
|
2632
2653
|
return result;
|
|
2633
2654
|
};
|
|
@@ -2678,7 +2699,7 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2678
2699
|
if (isNumber(min) === false) {
|
|
2679
2700
|
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
2680
2701
|
}
|
|
2681
|
-
if (max ===
|
|
2702
|
+
if (max === void 0 || min === max) {
|
|
2682
2703
|
return String(min);
|
|
2683
2704
|
}
|
|
2684
2705
|
if (isNumber(max) === false) {
|
|
@@ -2736,9 +2757,9 @@ var require_to_regex_range = __commonJS2({ "node_modules/to-regex-range/index.js
|
|
|
2736
2757
|
return state.result;
|
|
2737
2758
|
};
|
|
2738
2759
|
function collatePatterns(neg, pos2, options8) {
|
|
2739
|
-
let onlyNegative = filterPatterns(neg, pos2, "-", false);
|
|
2740
|
-
let onlyPositive = filterPatterns(pos2, neg, "", false);
|
|
2741
|
-
let intersected = filterPatterns(neg, pos2, "-?", true);
|
|
2760
|
+
let onlyNegative = filterPatterns(neg, pos2, "-", false) || [];
|
|
2761
|
+
let onlyPositive = filterPatterns(pos2, neg, "", false) || [];
|
|
2762
|
+
let intersected = filterPatterns(neg, pos2, "-?", true) || [];
|
|
2742
2763
|
let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
|
|
2743
2764
|
return subpatterns.join("|");
|
|
2744
2765
|
}
|
|
@@ -3140,7 +3161,7 @@ var require_expand = __commonJS2({ "node_modules/braces/lib/expand.js"(exports,
|
|
|
3140
3161
|
return utils2.flatten(result);
|
|
3141
3162
|
};
|
|
3142
3163
|
var expand = (ast, options8 = {}) => {
|
|
3143
|
-
let rangeLimit = options8.rangeLimit ===
|
|
3164
|
+
let rangeLimit = options8.rangeLimit === void 0 ? 1e3 : options8.rangeLimit;
|
|
3144
3165
|
let walk = (node, parent = {}) => {
|
|
3145
3166
|
node.queue = [];
|
|
3146
3167
|
let p = parent;
|
|
@@ -4648,7 +4669,7 @@ var require_parse2 = __commonJS2({ "node_modules/picomatch/lib/parse.js"(exports
|
|
|
4648
4669
|
continue;
|
|
4649
4670
|
}
|
|
4650
4671
|
if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
|
|
4651
|
-
const end = rest[1] !==
|
|
4672
|
+
const end = rest[1] !== void 0 ? "|$" : "";
|
|
4652
4673
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
4653
4674
|
prior.output = `(?:${prior.output}`;
|
|
4654
4675
|
prev.type = "globstar";
|
|
@@ -5061,7 +5082,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
5061
5082
|
let regex = picomatch.makeRe(String(glob), { ...options8, capture: true });
|
|
5062
5083
|
let match = regex.exec(posix ? utils2.toPosixSlashes(input) : input);
|
|
5063
5084
|
if (match) {
|
|
5064
|
-
return match.slice(1).map((v) => v ===
|
|
5085
|
+
return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
5065
5086
|
}
|
|
5066
5087
|
};
|
|
5067
5088
|
micromatch2.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -5090,7 +5111,7 @@ var require_micromatch = __commonJS2({ "node_modules/micromatch/index.js"(export
|
|
|
5090
5111
|
} });
|
|
5091
5112
|
var require_pattern = __commonJS2({ "node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
5092
5113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5093
|
-
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern =
|
|
5114
|
+
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
5094
5115
|
var path132 = __require("path");
|
|
5095
5116
|
var globParent = require_glob_parent();
|
|
5096
5117
|
var micromatch2 = require_micromatch();
|
|
@@ -5347,7 +5368,7 @@ var require_merge2 = __commonJS2({ "node_modules/merge2/index.js"(exports, modul
|
|
|
5347
5368
|
} });
|
|
5348
5369
|
var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
5349
5370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5350
|
-
exports.merge =
|
|
5371
|
+
exports.merge = void 0;
|
|
5351
5372
|
var merge2 = require_merge2();
|
|
5352
5373
|
function merge3(streams) {
|
|
5353
5374
|
const mergedStream = merge2(streams);
|
|
@@ -5365,7 +5386,7 @@ var require_stream = __commonJS2({ "node_modules/fast-glob/out/utils/stream.js"(
|
|
|
5365
5386
|
} });
|
|
5366
5387
|
var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
5367
5388
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5368
|
-
exports.isEmpty = exports.isString =
|
|
5389
|
+
exports.isEmpty = exports.isString = void 0;
|
|
5369
5390
|
function isString(input) {
|
|
5370
5391
|
return typeof input === "string";
|
|
5371
5392
|
}
|
|
@@ -5377,7 +5398,7 @@ var require_string = __commonJS2({ "node_modules/fast-glob/out/utils/string.js"(
|
|
|
5377
5398
|
} });
|
|
5378
5399
|
var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
5379
5400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5380
|
-
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array =
|
|
5401
|
+
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
5381
5402
|
var array2 = require_array();
|
|
5382
5403
|
exports.array = array2;
|
|
5383
5404
|
var errno = require_errno();
|
|
@@ -5395,7 +5416,7 @@ var require_utils3 = __commonJS2({ "node_modules/fast-glob/out/utils/index.js"(e
|
|
|
5395
5416
|
} });
|
|
5396
5417
|
var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
5397
5418
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5398
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate =
|
|
5419
|
+
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
5399
5420
|
var utils2 = require_utils3();
|
|
5400
5421
|
function generate(input, settings) {
|
|
5401
5422
|
const patterns = processPatterns(input, settings);
|
|
@@ -5480,7 +5501,7 @@ var require_tasks = __commonJS2({ "node_modules/fast-glob/out/managers/tasks.js"
|
|
|
5480
5501
|
} });
|
|
5481
5502
|
var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
5482
5503
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5483
|
-
exports.read =
|
|
5504
|
+
exports.read = void 0;
|
|
5484
5505
|
function read3(path132, settings, callback) {
|
|
5485
5506
|
settings.fs.lstat(path132, (lstatError, lstat) => {
|
|
5486
5507
|
if (lstatError !== null) {
|
|
@@ -5517,7 +5538,7 @@ var require_async = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/a
|
|
|
5517
5538
|
} });
|
|
5518
5539
|
var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
5519
5540
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5520
|
-
exports.read =
|
|
5541
|
+
exports.read = void 0;
|
|
5521
5542
|
function read3(path132, settings) {
|
|
5522
5543
|
const lstat = settings.fs.lstatSync(path132);
|
|
5523
5544
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
@@ -5540,11 +5561,11 @@ var require_sync = __commonJS2({ "node_modules/@nodelib/fs.stat/out/providers/sy
|
|
|
5540
5561
|
} });
|
|
5541
5562
|
var require_fs2 = __commonJS2({ "node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
5542
5563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5543
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5564
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5544
5565
|
var fs72 = __require("fs");
|
|
5545
5566
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync };
|
|
5546
5567
|
function createFileSystemAdapter(fsMethods) {
|
|
5547
|
-
if (fsMethods ===
|
|
5568
|
+
if (fsMethods === void 0) {
|
|
5548
5569
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5549
5570
|
}
|
|
5550
5571
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5563,14 +5584,14 @@ var require_settings = __commonJS2({ "node_modules/@nodelib/fs.stat/out/settings
|
|
|
5563
5584
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
5564
5585
|
}
|
|
5565
5586
|
_getValue(option, value) {
|
|
5566
|
-
return option !== null && option !==
|
|
5587
|
+
return option !== null && option !== void 0 ? option : value;
|
|
5567
5588
|
}
|
|
5568
5589
|
};
|
|
5569
5590
|
exports.default = Settings;
|
|
5570
5591
|
} });
|
|
5571
5592
|
var require_out = __commonJS2({ "node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
5572
5593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5573
|
-
exports.statSync = exports.stat = exports.Settings =
|
|
5594
|
+
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
5574
5595
|
var async = require_async();
|
|
5575
5596
|
var sync = require_sync();
|
|
5576
5597
|
var settings_1 = require_settings();
|
|
@@ -5649,9 +5670,9 @@ var require_run_parallel = __commonJS2({ "node_modules/run-parallel/index.js"(ex
|
|
|
5649
5670
|
} });
|
|
5650
5671
|
var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
5651
5672
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5652
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES =
|
|
5673
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
5653
5674
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
5654
|
-
if (NODE_PROCESS_VERSION_PARTS[0] ===
|
|
5675
|
+
if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) {
|
|
5655
5676
|
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
5656
5677
|
}
|
|
5657
5678
|
var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
@@ -5664,7 +5685,7 @@ var require_constants3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/con
|
|
|
5664
5685
|
} });
|
|
5665
5686
|
var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
5666
5687
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5667
|
-
exports.createDirentFromStats =
|
|
5688
|
+
exports.createDirentFromStats = void 0;
|
|
5668
5689
|
var DirentFromStats = class {
|
|
5669
5690
|
constructor(name, stats) {
|
|
5670
5691
|
this.name = name;
|
|
@@ -5684,13 +5705,13 @@ var require_fs3 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/fs.j
|
|
|
5684
5705
|
} });
|
|
5685
5706
|
var require_utils4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5686
5707
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5687
|
-
exports.fs =
|
|
5708
|
+
exports.fs = void 0;
|
|
5688
5709
|
var fs72 = require_fs3();
|
|
5689
5710
|
exports.fs = fs72;
|
|
5690
5711
|
} });
|
|
5691
5712
|
var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
5692
5713
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5693
|
-
exports.joinPathSegments =
|
|
5714
|
+
exports.joinPathSegments = void 0;
|
|
5694
5715
|
function joinPathSegments(a, b, separator) {
|
|
5695
5716
|
if (a.endsWith(separator)) {
|
|
5696
5717
|
return a + b;
|
|
@@ -5701,7 +5722,7 @@ var require_common = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5701
5722
|
} });
|
|
5702
5723
|
var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
5703
5724
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5704
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5725
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5705
5726
|
var fsStat = require_out();
|
|
5706
5727
|
var rpl = require_run_parallel();
|
|
5707
5728
|
var constants_1 = require_constants3();
|
|
@@ -5798,7 +5819,7 @@ var require_async2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provide
|
|
|
5798
5819
|
} });
|
|
5799
5820
|
var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
5800
5821
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5801
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read =
|
|
5822
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5802
5823
|
var fsStat = require_out();
|
|
5803
5824
|
var constants_1 = require_constants3();
|
|
5804
5825
|
var utils2 = require_utils4();
|
|
@@ -5844,11 +5865,11 @@ var require_sync2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
5844
5865
|
} });
|
|
5845
5866
|
var require_fs4 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5846
5867
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5847
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER =
|
|
5868
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5848
5869
|
var fs72 = __require("fs");
|
|
5849
5870
|
exports.FILE_SYSTEM_ADAPTER = { lstat: fs72.lstat, stat: fs72.stat, lstatSync: fs72.lstatSync, statSync: fs72.statSync, readdir: fs72.readdir, readdirSync: fs72.readdirSync };
|
|
5850
5871
|
function createFileSystemAdapter(fsMethods) {
|
|
5851
|
-
if (fsMethods ===
|
|
5872
|
+
if (fsMethods === void 0) {
|
|
5852
5873
|
return exports.FILE_SYSTEM_ADAPTER;
|
|
5853
5874
|
}
|
|
5854
5875
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
@@ -5871,14 +5892,14 @@ var require_settings2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/sett
|
|
|
5871
5892
|
this.fsStatSettings = new fsStat.Settings({ followSymbolicLink: this.followSymbolicLinks, fs: this.fs, throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink });
|
|
5872
5893
|
}
|
|
5873
5894
|
_getValue(option, value) {
|
|
5874
|
-
return option !== null && option !==
|
|
5895
|
+
return option !== null && option !== void 0 ? option : value;
|
|
5875
5896
|
}
|
|
5876
5897
|
};
|
|
5877
5898
|
exports.default = Settings;
|
|
5878
5899
|
} });
|
|
5879
5900
|
var require_out2 = __commonJS2({ "node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5880
5901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5881
|
-
exports.Settings = exports.scandirSync = exports.scandir =
|
|
5902
|
+
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5882
5903
|
var async = require_async2();
|
|
5883
5904
|
var sync = require_sync2();
|
|
5884
5905
|
var settings_1 = require_settings2();
|
|
@@ -6146,7 +6167,7 @@ var require_queue = __commonJS2({ "node_modules/fastq/queue.js"(exports, module)
|
|
|
6146
6167
|
} });
|
|
6147
6168
|
var require_common2 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
6148
6169
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6149
|
-
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError =
|
|
6170
|
+
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
6150
6171
|
function isFatalError(settings, error) {
|
|
6151
6172
|
if (settings.errorFilter === null) {
|
|
6152
6173
|
return true;
|
|
@@ -6245,13 +6266,13 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6245
6266
|
_worker(item, done) {
|
|
6246
6267
|
this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => {
|
|
6247
6268
|
if (error !== null) {
|
|
6248
|
-
done(error,
|
|
6269
|
+
done(error, void 0);
|
|
6249
6270
|
return;
|
|
6250
6271
|
}
|
|
6251
6272
|
for (const entry of entries) {
|
|
6252
6273
|
this._handleEntry(entry, item.base);
|
|
6253
6274
|
}
|
|
6254
|
-
done(null,
|
|
6275
|
+
done(null, void 0);
|
|
6255
6276
|
});
|
|
6256
6277
|
}
|
|
6257
6278
|
_handleError(error) {
|
|
@@ -6267,14 +6288,14 @@ var require_async3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/as
|
|
|
6267
6288
|
return;
|
|
6268
6289
|
}
|
|
6269
6290
|
const fullpath = entry.path;
|
|
6270
|
-
if (base !==
|
|
6291
|
+
if (base !== void 0) {
|
|
6271
6292
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6272
6293
|
}
|
|
6273
6294
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6274
6295
|
this._emitEntry(entry);
|
|
6275
6296
|
}
|
|
6276
6297
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6277
|
-
this._pushToQueue(fullpath, base ===
|
|
6298
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
6278
6299
|
}
|
|
6279
6300
|
}
|
|
6280
6301
|
_emitEntry(entry) {
|
|
@@ -6389,14 +6410,14 @@ var require_sync3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/readers/syn
|
|
|
6389
6410
|
}
|
|
6390
6411
|
_handleEntry(entry, base) {
|
|
6391
6412
|
const fullpath = entry.path;
|
|
6392
|
-
if (base !==
|
|
6413
|
+
if (base !== void 0) {
|
|
6393
6414
|
entry.path = common2.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
6394
6415
|
}
|
|
6395
6416
|
if (common2.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
6396
6417
|
this._pushToStorage(entry);
|
|
6397
6418
|
}
|
|
6398
6419
|
if (entry.dirent.isDirectory() && common2.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
6399
|
-
this._pushToQueue(fullpath, base ===
|
|
6420
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
6400
6421
|
}
|
|
6401
6422
|
}
|
|
6402
6423
|
_pushToStorage(entry) {
|
|
@@ -6427,7 +6448,7 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6427
6448
|
var Settings = class {
|
|
6428
6449
|
constructor(_options = {}) {
|
|
6429
6450
|
this._options = _options;
|
|
6430
|
-
this.basePath = this._getValue(this._options.basePath,
|
|
6451
|
+
this.basePath = this._getValue(this._options.basePath, void 0);
|
|
6431
6452
|
this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
|
|
6432
6453
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
6433
6454
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
@@ -6436,14 +6457,14 @@ var require_settings3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/setting
|
|
|
6436
6457
|
this.fsScandirSettings = new fsScandir.Settings({ followSymbolicLinks: this._options.followSymbolicLinks, fs: this._options.fs, pathSegmentSeparator: this._options.pathSegmentSeparator, stats: this._options.stats, throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink });
|
|
6437
6458
|
}
|
|
6438
6459
|
_getValue(option, value) {
|
|
6439
|
-
return option !== null && option !==
|
|
6460
|
+
return option !== null && option !== void 0 ? option : value;
|
|
6440
6461
|
}
|
|
6441
6462
|
};
|
|
6442
6463
|
exports.default = Settings;
|
|
6443
6464
|
} });
|
|
6444
6465
|
var require_out3 = __commonJS2({ "node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
6445
6466
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6446
|
-
exports.Settings = exports.walkStream = exports.walkSync = exports.walk =
|
|
6467
|
+
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
6447
6468
|
var async_1 = require_async4();
|
|
6448
6469
|
var stream_1 = require_stream2();
|
|
6449
6470
|
var sync_1 = require_sync4();
|
|
@@ -6750,7 +6771,7 @@ var require_entry = __commonJS2({ "node_modules/fast-glob/out/providers/filters/
|
|
|
6750
6771
|
return this.index.has(filepath);
|
|
6751
6772
|
}
|
|
6752
6773
|
_createIndexRecord(filepath) {
|
|
6753
|
-
this.index.set(filepath,
|
|
6774
|
+
this.index.set(filepath, void 0);
|
|
6754
6775
|
}
|
|
6755
6776
|
_onlyFileFilter(entry) {
|
|
6756
6777
|
return this._settings.onlyFiles && !entry.dirent.isFile();
|
|
@@ -6968,7 +6989,7 @@ var require_sync6 = __commonJS2({ "node_modules/fast-glob/out/providers/sync.js"
|
|
|
6968
6989
|
} });
|
|
6969
6990
|
var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(exports) {
|
|
6970
6991
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6971
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER =
|
|
6992
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6972
6993
|
var fs72 = __require("fs");
|
|
6973
6994
|
var os2 = __require("os");
|
|
6974
6995
|
var CPU_COUNT = Math.max(os2.cpus().length, 1);
|
|
@@ -7006,7 +7027,7 @@ var require_settings4 = __commonJS2({ "node_modules/fast-glob/out/settings.js"(e
|
|
|
7006
7027
|
this.ignore = [].concat(this.ignore);
|
|
7007
7028
|
}
|
|
7008
7029
|
_getValue(option, value) {
|
|
7009
|
-
return option ===
|
|
7030
|
+
return option === void 0 ? value : option;
|
|
7010
7031
|
}
|
|
7011
7032
|
_getFileSystemMethods(methods = {}) {
|
|
7012
7033
|
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
@@ -7091,7 +7112,7 @@ var require_out4 = __commonJS2({ "node_modules/fast-glob/out/index.js"(exports,
|
|
|
7091
7112
|
}
|
|
7092
7113
|
win322.convertPathToPattern = convertPathToPattern2;
|
|
7093
7114
|
})(FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
7094
|
-
})(FastGlob);
|
|
7115
|
+
})(FastGlob || (FastGlob = {}));
|
|
7095
7116
|
function getWorks(source2, _Provider, options8) {
|
|
7096
7117
|
const patterns = [].concat(source2);
|
|
7097
7118
|
const settings = new settings_1.default(options8);
|
|
@@ -7146,8 +7167,8 @@ var require_re = __commonJS2({ "node_modules/semver/internal/re.js"(exports, mod
|
|
|
7146
7167
|
debug(name, index, value);
|
|
7147
7168
|
t[name] = index;
|
|
7148
7169
|
src[index] = value;
|
|
7149
|
-
re[index] = new RegExp(value, isGlobal ? "g" :
|
|
7150
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" :
|
|
7170
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
7171
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
7151
7172
|
};
|
|
7152
7173
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
7153
7174
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
@@ -7324,11 +7345,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7324
7345
|
const a = this.prerelease[i2];
|
|
7325
7346
|
const b = other.prerelease[i2];
|
|
7326
7347
|
debug("prerelease compare", i2, a, b);
|
|
7327
|
-
if (a ===
|
|
7348
|
+
if (a === void 0 && b === void 0) {
|
|
7328
7349
|
return 0;
|
|
7329
|
-
} else if (b ===
|
|
7350
|
+
} else if (b === void 0) {
|
|
7330
7351
|
return 1;
|
|
7331
|
-
} else if (a ===
|
|
7352
|
+
} else if (a === void 0) {
|
|
7332
7353
|
return -1;
|
|
7333
7354
|
} else if (a === b) {
|
|
7334
7355
|
continue;
|
|
@@ -7346,11 +7367,11 @@ var require_semver = __commonJS2({ "node_modules/semver/classes/semver.js"(expor
|
|
|
7346
7367
|
const a = this.build[i2];
|
|
7347
7368
|
const b = other.build[i2];
|
|
7348
7369
|
debug("prerelease compare", i2, a, b);
|
|
7349
|
-
if (a ===
|
|
7370
|
+
if (a === void 0 && b === void 0) {
|
|
7350
7371
|
return 0;
|
|
7351
|
-
} else if (b ===
|
|
7372
|
+
} else if (b === void 0) {
|
|
7352
7373
|
return 1;
|
|
7353
|
-
} else if (a ===
|
|
7374
|
+
} else if (a === void 0) {
|
|
7354
7375
|
return -1;
|
|
7355
7376
|
} else if (a === b) {
|
|
7356
7377
|
continue;
|
|
@@ -7648,7 +7669,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7648
7669
|
};
|
|
7649
7670
|
Yallist.prototype.pop = function() {
|
|
7650
7671
|
if (!this.tail) {
|
|
7651
|
-
return
|
|
7672
|
+
return void 0;
|
|
7652
7673
|
}
|
|
7653
7674
|
var res = this.tail.value;
|
|
7654
7675
|
this.tail = this.tail.prev;
|
|
@@ -7662,7 +7683,7 @@ var require_yallist = __commonJS2({ "node_modules/editorconfig/node_modules/yall
|
|
|
7662
7683
|
};
|
|
7663
7684
|
Yallist.prototype.shift = function() {
|
|
7664
7685
|
if (!this.head) {
|
|
7665
|
-
return
|
|
7686
|
+
return void 0;
|
|
7666
7687
|
}
|
|
7667
7688
|
var res = this.head.value;
|
|
7668
7689
|
this.head = this.head.next;
|
|
@@ -7983,7 +8004,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
7983
8004
|
if (isStale(self, hit)) {
|
|
7984
8005
|
del(self, node);
|
|
7985
8006
|
if (!self[ALLOW_STALE]) {
|
|
7986
|
-
hit =
|
|
8007
|
+
hit = void 0;
|
|
7987
8008
|
}
|
|
7988
8009
|
}
|
|
7989
8010
|
if (hit) {
|
|
@@ -8182,7 +8203,7 @@ var require_lru_cache = __commonJS2({ "node_modules/editorconfig/node_modules/lr
|
|
|
8182
8203
|
var hit = node.value;
|
|
8183
8204
|
if (isStale(self, hit)) {
|
|
8184
8205
|
del(self, node);
|
|
8185
|
-
if (!self[ALLOW_STALE]) hit =
|
|
8206
|
+
if (!self[ALLOW_STALE]) hit = void 0;
|
|
8186
8207
|
} else {
|
|
8187
8208
|
if (doUse) {
|
|
8188
8209
|
self[LRU_LIST].unshiftNode(node);
|
|
@@ -8922,7 +8943,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8922
8943
|
f = t = 0;
|
|
8923
8944
|
}
|
|
8924
8945
|
if (op[0] & 5) throw op[1];
|
|
8925
|
-
return { value: op[0] ? op[1] :
|
|
8946
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
8926
8947
|
}
|
|
8927
8948
|
};
|
|
8928
8949
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -8938,7 +8959,7 @@ var require_ini = __commonJS2({ "node_modules/editorconfig/src/lib/ini.js"(expor
|
|
|
8938
8959
|
var fs72 = __importStar(__require("fs"));
|
|
8939
8960
|
var regex = { section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/, param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/, comment: /^\s*[#;].*$/ };
|
|
8940
8961
|
function parse6(file) {
|
|
8941
|
-
return __awaiter(this,
|
|
8962
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
8942
8963
|
return __generator(this, function(_a) {
|
|
8943
8964
|
return [2, new Promise(function(resolve3, reject) {
|
|
8944
8965
|
fs72.readFile(file, "utf8", function(err, data) {
|
|
@@ -9075,7 +9096,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9075
9096
|
f = t = 0;
|
|
9076
9097
|
}
|
|
9077
9098
|
if (op[0] & 5) throw op[1];
|
|
9078
|
-
return { value: op[0] ? op[1] :
|
|
9099
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
9079
9100
|
}
|
|
9080
9101
|
};
|
|
9081
9102
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -9125,7 +9146,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9125
9146
|
return matches;
|
|
9126
9147
|
}
|
|
9127
9148
|
function processOptions(options8, filepath) {
|
|
9128
|
-
if (options8 ===
|
|
9149
|
+
if (options8 === void 0) {
|
|
9129
9150
|
options8 = {};
|
|
9130
9151
|
}
|
|
9131
9152
|
return { config: options8.config || ".editorconfig", version: options8.version || package_json_1.default.version, root: path132.resolve(options8.root || path132.parse(filepath).root) };
|
|
@@ -9142,10 +9163,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9142
9163
|
return path132.join(pathPrefix, glob);
|
|
9143
9164
|
}
|
|
9144
9165
|
function extendProps(props, options8) {
|
|
9145
|
-
if (props ===
|
|
9166
|
+
if (props === void 0) {
|
|
9146
9167
|
props = {};
|
|
9147
9168
|
}
|
|
9148
|
-
if (options8 ===
|
|
9169
|
+
if (options8 === void 0) {
|
|
9149
9170
|
options8 = {};
|
|
9150
9171
|
}
|
|
9151
9172
|
for (var key2 in options8) {
|
|
@@ -9201,7 +9222,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9201
9222
|
return configs;
|
|
9202
9223
|
}
|
|
9203
9224
|
function readConfigFiles(filepaths) {
|
|
9204
|
-
return __awaiter(this,
|
|
9225
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9205
9226
|
return __generator(this, function(_a) {
|
|
9206
9227
|
return [2, Promise.all(filepaths.map(function(name) {
|
|
9207
9228
|
return new Promise(function(resolve3) {
|
|
@@ -9227,17 +9248,17 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9227
9248
|
return files;
|
|
9228
9249
|
}
|
|
9229
9250
|
function opts(filepath, options8) {
|
|
9230
|
-
if (options8 ===
|
|
9251
|
+
if (options8 === void 0) {
|
|
9231
9252
|
options8 = {};
|
|
9232
9253
|
}
|
|
9233
9254
|
var resolvedFilePath = path132.resolve(filepath);
|
|
9234
9255
|
return [resolvedFilePath, processOptions(options8, resolvedFilePath)];
|
|
9235
9256
|
}
|
|
9236
9257
|
function parseFromFiles(filepath, files, options8) {
|
|
9237
|
-
if (options8 ===
|
|
9258
|
+
if (options8 === void 0) {
|
|
9238
9259
|
options8 = {};
|
|
9239
9260
|
}
|
|
9240
|
-
return __awaiter(this,
|
|
9261
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9241
9262
|
var _a, resolvedFilePath, processedOptions;
|
|
9242
9263
|
return __generator(this, function(_b) {
|
|
9243
9264
|
_a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9249,7 +9270,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9249
9270
|
}
|
|
9250
9271
|
exports.parseFromFiles = parseFromFiles;
|
|
9251
9272
|
function parseFromFilesSync(filepath, files, options8) {
|
|
9252
|
-
if (options8 ===
|
|
9273
|
+
if (options8 === void 0) {
|
|
9253
9274
|
options8 = {};
|
|
9254
9275
|
}
|
|
9255
9276
|
var _a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9257,10 +9278,10 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9257
9278
|
}
|
|
9258
9279
|
exports.parseFromFilesSync = parseFromFilesSync;
|
|
9259
9280
|
function parse6(_filepath, _options) {
|
|
9260
|
-
if (_options ===
|
|
9281
|
+
if (_options === void 0) {
|
|
9261
9282
|
_options = {};
|
|
9262
9283
|
}
|
|
9263
|
-
return __awaiter(this,
|
|
9284
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
9264
9285
|
var _a, resolvedFilePath, processedOptions, filepaths;
|
|
9265
9286
|
return __generator(this, function(_b) {
|
|
9266
9287
|
_a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9273,7 +9294,7 @@ var require_src = __commonJS2({ "node_modules/editorconfig/src/index.js"(exports
|
|
|
9273
9294
|
}
|
|
9274
9295
|
exports.parse = parse6;
|
|
9275
9296
|
function parseSync(_filepath, _options) {
|
|
9276
|
-
if (_options ===
|
|
9297
|
+
if (_options === void 0) {
|
|
9277
9298
|
_options = {};
|
|
9278
9299
|
}
|
|
9279
9300
|
var _a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
@@ -9442,7 +9463,7 @@ var require_parser = __commonJS2({ "node_modules/@iarna/toml/lib/parser.js"(expo
|
|
|
9442
9463
|
}
|
|
9443
9464
|
return(value) {
|
|
9444
9465
|
if (this.stack.length === 0) throw this.error(new ParserError("Stack underflow"));
|
|
9445
|
-
if (value ===
|
|
9466
|
+
if (value === void 0) value = this.state.buf;
|
|
9446
9467
|
this.state = this.stack.pop();
|
|
9447
9468
|
this.state.returned = value;
|
|
9448
9469
|
}
|
|
@@ -9642,7 +9663,7 @@ var require_toml_parser = __commonJS2({ "node_modules/@iarna/toml/lib/toml-parse
|
|
|
9642
9663
|
var _declared = Symbol("declared");
|
|
9643
9664
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
9644
9665
|
var defineProperty = Object.defineProperty;
|
|
9645
|
-
var descriptor = { configurable: true, enumerable: true, writable: true, value:
|
|
9666
|
+
var descriptor = { configurable: true, enumerable: true, writable: true, value: void 0 };
|
|
9646
9667
|
function hasKey(obj, key2) {
|
|
9647
9668
|
if (hasOwnProperty3.call(obj, key2)) return true;
|
|
9648
9669
|
if (key2 === "__proto__") defineProperty(obj, "__proto__", descriptor);
|
|
@@ -10894,7 +10915,7 @@ var require_js_tokens = __commonJS2({ "node_modules/js-tokens/index.js"(exports)
|
|
|
10894
10915
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10895
10916
|
exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
|
|
10896
10917
|
exports.matchToToken = function(match) {
|
|
10897
|
-
var token2 = { type: "invalid", value: match[0], closed:
|
|
10918
|
+
var token2 = { type: "invalid", value: match[0], closed: void 0 };
|
|
10898
10919
|
if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]);
|
|
10899
10920
|
else if (match[5]) token2.type = "comment";
|
|
10900
10921
|
else if (match[6]) token2.type = "comment", token2.closed = !!match[7];
|
|
@@ -11798,7 +11819,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11798
11819
|
var models = Object.keys(conversions);
|
|
11799
11820
|
function wrapRaw(fn) {
|
|
11800
11821
|
var wrappedFn = function(args) {
|
|
11801
|
-
if (args ===
|
|
11822
|
+
if (args === void 0 || args === null) {
|
|
11802
11823
|
return args;
|
|
11803
11824
|
}
|
|
11804
11825
|
if (arguments.length > 1) {
|
|
@@ -11813,7 +11834,7 @@ var require_color_convert = __commonJS2({ "node_modules/color-convert/index.js"(
|
|
|
11813
11834
|
}
|
|
11814
11835
|
function wrapRounded(fn) {
|
|
11815
11836
|
var wrappedFn = function(args) {
|
|
11816
|
-
if (args ===
|
|
11837
|
+
if (args === void 0 || args === null) {
|
|
11817
11838
|
return args;
|
|
11818
11839
|
}
|
|
11819
11840
|
if (arguments.length > 1) {
|
|
@@ -12153,7 +12174,7 @@ var require_chalk = __commonJS2({ "node_modules/@babel/code-frame/node_modules/c
|
|
|
12153
12174
|
function applyOptions2(obj, options8) {
|
|
12154
12175
|
options8 = options8 || {};
|
|
12155
12176
|
const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
12156
|
-
obj.level = options8.level ===
|
|
12177
|
+
obj.level = options8.level === void 0 ? scLevel : options8.level;
|
|
12157
12178
|
obj.enabled = "enabled" in options8 ? options8.enabled : obj.level > 0;
|
|
12158
12179
|
}
|
|
12159
12180
|
function Chalk(options8) {
|
|
@@ -12356,7 +12377,7 @@ var require_lib2 = __commonJS2({ "node_modules/@babel/highlight/lib/index.js"(ex
|
|
|
12356
12377
|
function shouldHighlight(options8) {
|
|
12357
12378
|
return _chalk.default.level > 0 || options8.forceColor;
|
|
12358
12379
|
}
|
|
12359
|
-
var chalkWithForcedColor =
|
|
12380
|
+
var chalkWithForcedColor = void 0;
|
|
12360
12381
|
function getChalk(forceColor) {
|
|
12361
12382
|
if (forceColor) {
|
|
12362
12383
|
var _chalkWithForcedColor;
|
|
@@ -12401,7 +12422,7 @@ var require_lib3 = __commonJS2({ "node_modules/@babel/code-frame/lib/index.js"(e
|
|
|
12401
12422
|
}
|
|
12402
12423
|
return n.default = e, t && t.set(e, n), n;
|
|
12403
12424
|
}
|
|
12404
|
-
var chalkWithForcedColor =
|
|
12425
|
+
var chalkWithForcedColor = void 0;
|
|
12405
12426
|
function getChalk(forceColor) {
|
|
12406
12427
|
if (forceColor) {
|
|
12407
12428
|
var _chalkWithForcedColor;
|
|
@@ -12901,7 +12922,7 @@ var require_readlines = __commonJS2({ "node_modules/n-readlines/readlines.js"(ex
|
|
|
12901
12922
|
line3 = buffer2.slice(lastNewLineBufferPosition, bufferPosition);
|
|
12902
12923
|
lines.push(line3);
|
|
12903
12924
|
lastNewLineBufferPosition = bufferPosition;
|
|
12904
|
-
} else if (bufferPositionValue ===
|
|
12925
|
+
} else if (bufferPositionValue === void 0) {
|
|
12905
12926
|
break;
|
|
12906
12927
|
}
|
|
12907
12928
|
}
|
|
@@ -12975,7 +12996,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12975
12996
|
/*istanbul ignore start*/
|
|
12976
12997
|
/*istanbul ignore end*/
|
|
12977
12998
|
diff: function diff(oldString, newString) {
|
|
12978
|
-
var options8 = arguments.length > 2 && arguments[2] !==
|
|
12999
|
+
var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12979
13000
|
var callback = options8.callback;
|
|
12980
13001
|
if (typeof options8 === "function") {
|
|
12981
13002
|
callback = options8;
|
|
@@ -12986,7 +13007,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
12986
13007
|
function done(value) {
|
|
12987
13008
|
if (callback) {
|
|
12988
13009
|
setTimeout(function() {
|
|
12989
|
-
callback(
|
|
13010
|
+
callback(void 0, value);
|
|
12990
13011
|
}, 0);
|
|
12991
13012
|
return true;
|
|
12992
13013
|
} else {
|
|
@@ -13012,24 +13033,24 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13012
13033
|
for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {
|
|
13013
13034
|
var basePath = (
|
|
13014
13035
|
/*istanbul ignore start*/
|
|
13015
|
-
|
|
13036
|
+
void 0
|
|
13016
13037
|
);
|
|
13017
13038
|
var addPath = bestPath[diagonalPath - 1], removePath = bestPath[diagonalPath + 1], _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
|
|
13018
13039
|
if (addPath) {
|
|
13019
|
-
bestPath[diagonalPath - 1] =
|
|
13040
|
+
bestPath[diagonalPath - 1] = void 0;
|
|
13020
13041
|
}
|
|
13021
13042
|
var canAdd = addPath && addPath.newPos + 1 < newLen, canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;
|
|
13022
13043
|
if (!canAdd && !canRemove) {
|
|
13023
|
-
bestPath[diagonalPath] =
|
|
13044
|
+
bestPath[diagonalPath] = void 0;
|
|
13024
13045
|
continue;
|
|
13025
13046
|
}
|
|
13026
13047
|
if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {
|
|
13027
13048
|
basePath = clonePath(removePath);
|
|
13028
|
-
self.pushComponent(basePath.components,
|
|
13049
|
+
self.pushComponent(basePath.components, void 0, true);
|
|
13029
13050
|
} else {
|
|
13030
13051
|
basePath = addPath;
|
|
13031
13052
|
basePath.newPos++;
|
|
13032
|
-
self.pushComponent(basePath.components, true,
|
|
13053
|
+
self.pushComponent(basePath.components, true, void 0);
|
|
13033
13054
|
}
|
|
13034
13055
|
_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);
|
|
13035
13056
|
if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {
|
|
@@ -13164,7 +13185,7 @@ var require_base = __commonJS2({ "node_modules/diff/lib/diff/base.js"(exports) {
|
|
|
13164
13185
|
var require_array2 = __commonJS2({ "node_modules/diff/lib/diff/array.js"(exports) {
|
|
13165
13186
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13166
13187
|
exports.diffArrays = diffArrays2;
|
|
13167
|
-
exports.arrayDiff =
|
|
13188
|
+
exports.arrayDiff = void 0;
|
|
13168
13189
|
var _base = _interopRequireDefault(require_base());
|
|
13169
13190
|
function _interopRequireDefault(obj) {
|
|
13170
13191
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -13377,7 +13398,7 @@ function translateLevel(level) {
|
|
|
13377
13398
|
}
|
|
13378
13399
|
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
13379
13400
|
const noFlagForceColor = envForceColor();
|
|
13380
|
-
if (noFlagForceColor !==
|
|
13401
|
+
if (noFlagForceColor !== void 0) {
|
|
13381
13402
|
flagForceColor = noFlagForceColor;
|
|
13382
13403
|
}
|
|
13383
13404
|
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
@@ -13395,7 +13416,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
13395
13416
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
13396
13417
|
return 1;
|
|
13397
13418
|
}
|
|
13398
|
-
if (haveStream && !streamIsTTY && forceColor ===
|
|
13419
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
13399
13420
|
return 0;
|
|
13400
13421
|
}
|
|
13401
13422
|
const min = forceColor || 0;
|
|
@@ -13494,7 +13515,7 @@ var applyOptions = (object, options8 = {}) => {
|
|
|
13494
13515
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
13495
13516
|
}
|
|
13496
13517
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
13497
|
-
object.level = options8.level ===
|
|
13518
|
+
object.level = options8.level === void 0 ? colorLevel : options8.level;
|
|
13498
13519
|
};
|
|
13499
13520
|
var chalkFactory = (options8) => {
|
|
13500
13521
|
const chalk2 = (...strings) => strings.join(" ");
|
|
@@ -13560,7 +13581,7 @@ var proto = Object.defineProperties(() => {
|
|
|
13560
13581
|
var createStyler = (open, close, parent) => {
|
|
13561
13582
|
let openAll;
|
|
13562
13583
|
let closeAll;
|
|
13563
|
-
if (parent ===
|
|
13584
|
+
if (parent === void 0) {
|
|
13564
13585
|
openAll = open;
|
|
13565
13586
|
closeAll = close;
|
|
13566
13587
|
} else {
|
|
@@ -13582,12 +13603,12 @@ var applyStyle = (self, string) => {
|
|
|
13582
13603
|
return self[IS_EMPTY] ? "" : string;
|
|
13583
13604
|
}
|
|
13584
13605
|
let styler = self[STYLER];
|
|
13585
|
-
if (styler ===
|
|
13606
|
+
if (styler === void 0) {
|
|
13586
13607
|
return string;
|
|
13587
13608
|
}
|
|
13588
13609
|
const { openAll, closeAll } = styler;
|
|
13589
13610
|
if (string.includes("\x1B")) {
|
|
13590
|
-
while (styler !==
|
|
13611
|
+
while (styler !== void 0) {
|
|
13591
13612
|
string = stringReplaceAll2(string, styler.close, styler.open);
|
|
13592
13613
|
styler = styler.parent;
|
|
13593
13614
|
}
|
|
@@ -13719,7 +13740,7 @@ var Schema = class {
|
|
|
13719
13740
|
this.name = parameters.name;
|
|
13720
13741
|
}
|
|
13721
13742
|
default(_utils) {
|
|
13722
|
-
return
|
|
13743
|
+
return void 0;
|
|
13723
13744
|
}
|
|
13724
13745
|
// this is actually an abstract method but we need a placeholder to get `function.length`
|
|
13725
13746
|
/* c8 ignore start */
|
|
@@ -13737,10 +13758,10 @@ var Schema = class {
|
|
|
13737
13758
|
return false;
|
|
13738
13759
|
}
|
|
13739
13760
|
forward(_value, _utils) {
|
|
13740
|
-
return
|
|
13761
|
+
return void 0;
|
|
13741
13762
|
}
|
|
13742
13763
|
redirect(_value, _utils) {
|
|
13743
|
-
return
|
|
13764
|
+
return void 0;
|
|
13744
13765
|
}
|
|
13745
13766
|
overlap(currentValue, _newValue, _utils) {
|
|
13746
13767
|
return currentValue;
|
|
@@ -13915,14 +13936,14 @@ function normalizeInvalidHandler(invalidHandler) {
|
|
|
13915
13936
|
};
|
|
13916
13937
|
}
|
|
13917
13938
|
function normalizeDefaultResult(result) {
|
|
13918
|
-
return result ===
|
|
13939
|
+
return result === void 0 ? {} : result;
|
|
13919
13940
|
}
|
|
13920
13941
|
function normalizeExpectedResult(result) {
|
|
13921
13942
|
if (typeof result === "string") {
|
|
13922
13943
|
return { text: result };
|
|
13923
13944
|
}
|
|
13924
13945
|
const { text, list: list2 } = result;
|
|
13925
|
-
assert((text || list2) !==
|
|
13946
|
+
assert((text || list2) !== void 0, "Unexpected `expected` result, there should be at least one field.");
|
|
13926
13947
|
if (!list2) {
|
|
13927
13948
|
return { text };
|
|
13928
13949
|
}
|
|
@@ -13938,7 +13959,7 @@ function normalizeTransferResult(result, value) {
|
|
|
13938
13959
|
return typeof result === "string" || "key" in result ? { from: value, to: result } : "from" in result ? { from: result.from, to: result.to } : { from: value, to: result.to };
|
|
13939
13960
|
}
|
|
13940
13961
|
function normalizeForwardResult(result, value) {
|
|
13941
|
-
return result ===
|
|
13962
|
+
return result === void 0 ? [] : Array.isArray(result) ? result.map((transferResult) => normalizeTransferResult(transferResult, value)) : [normalizeTransferResult(result, value)];
|
|
13942
13963
|
}
|
|
13943
13964
|
function normalizeRedirectResult(result, value) {
|
|
13944
13965
|
const redirect = normalizeForwardResult(typeof result === "object" && "redirect" in result ? result.redirect : result, value);
|
|
@@ -13970,11 +13991,11 @@ var ChoiceSchema = class extends Schema {
|
|
|
13970
13991
|
}
|
|
13971
13992
|
forward(value) {
|
|
13972
13993
|
const choiceInfo = this._choices.get(value);
|
|
13973
|
-
return choiceInfo ? choiceInfo.forward :
|
|
13994
|
+
return choiceInfo ? choiceInfo.forward : void 0;
|
|
13974
13995
|
}
|
|
13975
13996
|
redirect(value) {
|
|
13976
13997
|
const choiceInfo = this._choices.get(value);
|
|
13977
|
-
return choiceInfo ? choiceInfo.redirect :
|
|
13998
|
+
return choiceInfo ? choiceInfo.redirect : void 0;
|
|
13978
13999
|
}
|
|
13979
14000
|
};
|
|
13980
14001
|
var NumberSchema = class extends Schema {
|
|
@@ -14209,7 +14230,7 @@ function partition2(array2, predicate) {
|
|
|
14209
14230
|
var partition_default = partition2;
|
|
14210
14231
|
var import_editorconfig = __toESM2(require_src());
|
|
14211
14232
|
async function isDirectory(directory, options8) {
|
|
14212
|
-
const allowSymlinks = (options8 == null ?
|
|
14233
|
+
const allowSymlinks = (options8 == null ? void 0 : options8.allowSymlinks) ?? true;
|
|
14213
14234
|
let stats;
|
|
14214
14235
|
try {
|
|
14215
14236
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(directory));
|
|
@@ -14249,9 +14270,9 @@ var Searcher = class {
|
|
|
14249
14270
|
*/
|
|
14250
14271
|
constructor({ names, filter: filter2, stopDirectory }) {
|
|
14251
14272
|
__privateAdd(this, _searchInDirectory);
|
|
14252
|
-
__privateAdd(this, _names,
|
|
14253
|
-
__privateAdd(this, _filter,
|
|
14254
|
-
__privateAdd(this, _stopDirectory,
|
|
14273
|
+
__privateAdd(this, _names, void 0);
|
|
14274
|
+
__privateAdd(this, _filter, void 0);
|
|
14275
|
+
__privateAdd(this, _stopDirectory, void 0);
|
|
14255
14276
|
__privateAdd(this, _cache, /* @__PURE__ */ new Map());
|
|
14256
14277
|
__privateSet(this, _names, names);
|
|
14257
14278
|
__privateSet(this, _filter, filter2);
|
|
@@ -14304,10 +14325,10 @@ var searchOptions = { names: MARKERS, filter: ({ path: directory }) => is_direct
|
|
|
14304
14325
|
async function findProjectRoot(startDirectory, options8) {
|
|
14305
14326
|
searcher ?? (searcher = new searcher_default(searchOptions));
|
|
14306
14327
|
const mark = await searcher.search(startDirectory, options8);
|
|
14307
|
-
return mark ? path9.dirname(mark) :
|
|
14328
|
+
return mark ? path9.dirname(mark) : void 0;
|
|
14308
14329
|
}
|
|
14309
14330
|
function clearFindProjectRootCache() {
|
|
14310
|
-
searcher == null ?
|
|
14331
|
+
searcher == null ? void 0 : searcher.clearCache();
|
|
14311
14332
|
}
|
|
14312
14333
|
function removeUnset(editorConfig) {
|
|
14313
14334
|
const result = {};
|
|
@@ -14340,7 +14361,7 @@ function editorConfigToPrettier(editorConfig) {
|
|
|
14340
14361
|
result.tabWidth = editorConfig.tab_width;
|
|
14341
14362
|
} else if (editorConfig.indent_style === "space" && editorConfig.indent_size && editorConfig.indent_size !== "tab") {
|
|
14342
14363
|
result.tabWidth = editorConfig.indent_size;
|
|
14343
|
-
} else if (editorConfig.tab_width !==
|
|
14364
|
+
} else if (editorConfig.tab_width !== void 0) {
|
|
14344
14365
|
result.tabWidth = editorConfig.tab_width;
|
|
14345
14366
|
}
|
|
14346
14367
|
if (editorConfig.max_line_length) {
|
|
@@ -14408,10 +14429,10 @@ getStdin.buffer = async () => {
|
|
|
14408
14429
|
function writeFormattedFile(file, data) {
|
|
14409
14430
|
return fs.writeFile(file, data);
|
|
14410
14431
|
}
|
|
14411
|
-
var mockable = { getPrettierConfigSearchStopDirectory: () =>
|
|
14432
|
+
var mockable = { getPrettierConfigSearchStopDirectory: () => void 0, getStdin, isCI: () => import_ci_info.isCI, writeFormattedFile };
|
|
14412
14433
|
var mockable_default = mockable;
|
|
14413
14434
|
async function isFile(file, options8) {
|
|
14414
|
-
const allowSymlinks = (options8 == null ?
|
|
14435
|
+
const allowSymlinks = (options8 == null ? void 0 : options8.allowSymlinks) ?? true;
|
|
14415
14436
|
let stats;
|
|
14416
14437
|
try {
|
|
14417
14438
|
stats = await (allowSymlinks ? fs.stat : fs.lstat)(toPath(file));
|
|
@@ -16178,31 +16199,17 @@ function loadDocuments(input, options8) {
|
|
|
16178
16199
|
}
|
|
16179
16200
|
return state.documents;
|
|
16180
16201
|
}
|
|
16181
|
-
function loadAll$1(input, iterator, options8) {
|
|
16182
|
-
if (iterator !== null && typeof iterator === "object" && typeof options8 === "undefined") {
|
|
16183
|
-
options8 = iterator;
|
|
16184
|
-
iterator = null;
|
|
16185
|
-
}
|
|
16186
|
-
var documents = loadDocuments(input, options8);
|
|
16187
|
-
if (typeof iterator !== "function") {
|
|
16188
|
-
return documents;
|
|
16189
|
-
}
|
|
16190
|
-
for (var index = 0, length = documents.length; index < length; index += 1) {
|
|
16191
|
-
iterator(documents[index]);
|
|
16192
|
-
}
|
|
16193
|
-
}
|
|
16194
16202
|
function load$1(input, options8) {
|
|
16195
16203
|
var documents = loadDocuments(input, options8);
|
|
16196
16204
|
if (documents.length === 0) {
|
|
16197
|
-
return
|
|
16205
|
+
return void 0;
|
|
16198
16206
|
} else if (documents.length === 1) {
|
|
16199
16207
|
return documents[0];
|
|
16200
16208
|
}
|
|
16201
16209
|
throw new exception("expected a single document in the stream, but found more");
|
|
16202
16210
|
}
|
|
16203
|
-
var loadAll_1 = loadAll$1;
|
|
16204
16211
|
var load_1 = load$1;
|
|
16205
|
-
var loader = {
|
|
16212
|
+
var loader = { load: load_1 };
|
|
16206
16213
|
var load = loader.load;
|
|
16207
16214
|
var Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
16208
16215
|
var ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
@@ -16235,9 +16242,9 @@ var parse2 = function parse3(text, reviver) {
|
|
|
16235
16242
|
pos = 0;
|
|
16236
16243
|
line2 = 1;
|
|
16237
16244
|
column = 0;
|
|
16238
|
-
token =
|
|
16239
|
-
key =
|
|
16240
|
-
root =
|
|
16245
|
+
token = void 0;
|
|
16246
|
+
key = void 0;
|
|
16247
|
+
root = void 0;
|
|
16241
16248
|
do {
|
|
16242
16249
|
token = lex();
|
|
16243
16250
|
parseStates[parseState]();
|
|
@@ -16254,7 +16261,7 @@ function internalize(holder, name, reviver) {
|
|
|
16254
16261
|
for (let i2 = 0; i2 < value.length; i2++) {
|
|
16255
16262
|
const key2 = String(i2);
|
|
16256
16263
|
const replacement = internalize(value, key2, reviver);
|
|
16257
|
-
if (replacement ===
|
|
16264
|
+
if (replacement === void 0) {
|
|
16258
16265
|
delete value[key2];
|
|
16259
16266
|
} else {
|
|
16260
16267
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16263,7 +16270,7 @@ function internalize(holder, name, reviver) {
|
|
|
16263
16270
|
} else {
|
|
16264
16271
|
for (const key2 in value) {
|
|
16265
16272
|
const replacement = internalize(value, key2, reviver);
|
|
16266
|
-
if (replacement ===
|
|
16273
|
+
if (replacement === void 0) {
|
|
16267
16274
|
delete value[key2];
|
|
16268
16275
|
} else {
|
|
16269
16276
|
Object.defineProperty(value, key2, { value: replacement, writable: true, enumerable: true, configurable: true });
|
|
@@ -16329,7 +16336,7 @@ var lexStates = { default() {
|
|
|
16329
16336
|
read();
|
|
16330
16337
|
lexState = "comment";
|
|
16331
16338
|
return;
|
|
16332
|
-
case
|
|
16339
|
+
case void 0:
|
|
16333
16340
|
read();
|
|
16334
16341
|
return newToken("eof");
|
|
16335
16342
|
}
|
|
@@ -16356,7 +16363,7 @@ var lexStates = { default() {
|
|
|
16356
16363
|
read();
|
|
16357
16364
|
lexState = "multiLineCommentAsterisk";
|
|
16358
16365
|
return;
|
|
16359
|
-
case
|
|
16366
|
+
case void 0:
|
|
16360
16367
|
throw invalidChar(read());
|
|
16361
16368
|
}
|
|
16362
16369
|
read();
|
|
@@ -16369,7 +16376,7 @@ var lexStates = { default() {
|
|
|
16369
16376
|
read();
|
|
16370
16377
|
lexState = "default";
|
|
16371
16378
|
return;
|
|
16372
|
-
case
|
|
16379
|
+
case void 0:
|
|
16373
16380
|
throw invalidChar(read());
|
|
16374
16381
|
}
|
|
16375
16382
|
read();
|
|
@@ -16383,7 +16390,7 @@ var lexStates = { default() {
|
|
|
16383
16390
|
read();
|
|
16384
16391
|
lexState = "default";
|
|
16385
16392
|
return;
|
|
16386
|
-
case
|
|
16393
|
+
case void 0:
|
|
16387
16394
|
read();
|
|
16388
16395
|
return newToken("eof");
|
|
16389
16396
|
}
|
|
@@ -16672,7 +16679,7 @@ var lexStates = { default() {
|
|
|
16672
16679
|
case "\u2029":
|
|
16673
16680
|
separatorChar(c);
|
|
16674
16681
|
break;
|
|
16675
|
-
case
|
|
16682
|
+
case void 0:
|
|
16676
16683
|
throw invalidChar(read());
|
|
16677
16684
|
}
|
|
16678
16685
|
buffer += read();
|
|
@@ -16803,7 +16810,7 @@ function escape() {
|
|
|
16803
16810
|
case "8":
|
|
16804
16811
|
case "9":
|
|
16805
16812
|
throw invalidChar(read());
|
|
16806
|
-
case
|
|
16813
|
+
case void 0:
|
|
16807
16814
|
throw invalidChar(read());
|
|
16808
16815
|
}
|
|
16809
16816
|
return read();
|
|
@@ -16915,7 +16922,7 @@ function push() {
|
|
|
16915
16922
|
value = token.value;
|
|
16916
16923
|
break;
|
|
16917
16924
|
}
|
|
16918
|
-
if (root ===
|
|
16925
|
+
if (root === void 0) {
|
|
16919
16926
|
root = value;
|
|
16920
16927
|
} else {
|
|
16921
16928
|
const parent = stack[stack.length - 1];
|
|
@@ -16955,7 +16962,7 @@ function pop() {
|
|
|
16955
16962
|
}
|
|
16956
16963
|
}
|
|
16957
16964
|
function invalidChar(c2) {
|
|
16958
|
-
if (c2 ===
|
|
16965
|
+
if (c2 === void 0) {
|
|
16959
16966
|
return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`);
|
|
16960
16967
|
}
|
|
16961
16968
|
return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line2}:${column}`);
|
|
@@ -17016,9 +17023,9 @@ var _JSONError = class _JSONError2 extends Error {
|
|
|
17016
17023
|
__publicField(this, "fileName");
|
|
17017
17024
|
__publicField(this, "codeFrame");
|
|
17018
17025
|
__publicField(this, "rawCodeFrame");
|
|
17019
|
-
__privateAdd(this, _message,
|
|
17026
|
+
__privateAdd(this, _message, void 0);
|
|
17020
17027
|
__privateSet(this, _message, message);
|
|
17021
|
-
(_a = Error.captureStackTrace) == null ?
|
|
17028
|
+
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, this, _JSONError2);
|
|
17022
17029
|
}
|
|
17023
17030
|
get message() {
|
|
17024
17031
|
const { fileName, codeFrame } = this;
|
|
@@ -17263,7 +17270,7 @@ codes.ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
|
17263
17270
|
* @param {string} reason
|
|
17264
17271
|
* @param {string} [base]
|
|
17265
17272
|
*/
|
|
17266
|
-
(request, reason, base =
|
|
17273
|
+
(request, reason, base = void 0) => {
|
|
17267
17274
|
return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`;
|
|
17268
17275
|
},
|
|
17269
17276
|
TypeError
|
|
@@ -17289,7 +17296,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
|
17289
17296
|
* @param {boolean} [isImport=false]
|
|
17290
17297
|
* @param {string} [base]
|
|
17291
17298
|
*/
|
|
17292
|
-
(pkgPath, key2, target, isImport = false, base =
|
|
17299
|
+
(pkgPath, key2, target, isImport = false, base = void 0) => {
|
|
17293
17300
|
const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
17294
17301
|
if (key2 === ".") {
|
|
17295
17302
|
assert2(isImport === false);
|
|
@@ -17331,7 +17338,7 @@ codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
|
17331
17338
|
* @param {string} subpath
|
|
17332
17339
|
* @param {string} [base]
|
|
17333
17340
|
*/
|
|
17334
|
-
(pkgPath, subpath, base =
|
|
17341
|
+
(pkgPath, subpath, base = void 0) => {
|
|
17335
17342
|
if (subpath === ".") return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17336
17343
|
return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
17337
17344
|
},
|
|
@@ -17407,10 +17414,10 @@ function isErrorStackTraceLimitWritable() {
|
|
|
17407
17414
|
} catch {
|
|
17408
17415
|
}
|
|
17409
17416
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
17410
|
-
if (desc ===
|
|
17417
|
+
if (desc === void 0) {
|
|
17411
17418
|
return Object.isExtensible(Error);
|
|
17412
17419
|
}
|
|
17413
|
-
return own.call(desc, "writable") && desc.writable !==
|
|
17420
|
+
return own.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
17414
17421
|
}
|
|
17415
17422
|
function hideStackFrames(fn) {
|
|
17416
17423
|
const hidden = nodeInternalPrefix + fn.name;
|
|
@@ -17436,7 +17443,7 @@ var captureLargerStackTrace = hideStackFrames(
|
|
|
17436
17443
|
);
|
|
17437
17444
|
function getMessage(key2, args, self) {
|
|
17438
17445
|
const message = messages.get(key2);
|
|
17439
|
-
assert2(message !==
|
|
17446
|
+
assert2(message !== void 0, "expected `message` to be found");
|
|
17440
17447
|
if (typeof message === "function") {
|
|
17441
17448
|
assert2(
|
|
17442
17449
|
message.length <= args.length,
|
|
@@ -17454,7 +17461,7 @@ function getMessage(key2, args, self) {
|
|
|
17454
17461
|
return Reflect.apply(format, null, args);
|
|
17455
17462
|
}
|
|
17456
17463
|
function determineSpecificType(value) {
|
|
17457
|
-
if (value === null || value ===
|
|
17464
|
+
if (value === null || value === void 0) {
|
|
17458
17465
|
return String(value);
|
|
17459
17466
|
}
|
|
17460
17467
|
if (typeof value === "function" && value.name) {
|
|
@@ -17484,7 +17491,7 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
17484
17491
|
}
|
|
17485
17492
|
let string;
|
|
17486
17493
|
try {
|
|
17487
|
-
string =
|
|
17494
|
+
string = fs6.readFileSync(path9__default.toNamespacedPath(jsonPath), "utf8");
|
|
17488
17495
|
} catch (error) {
|
|
17489
17496
|
const exception2 = (
|
|
17490
17497
|
/** @type {ErrnoException} */
|
|
@@ -17497,14 +17504,14 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
17497
17504
|
const result = {
|
|
17498
17505
|
exists: false,
|
|
17499
17506
|
pjsonPath: jsonPath,
|
|
17500
|
-
main:
|
|
17501
|
-
name:
|
|
17507
|
+
main: void 0,
|
|
17508
|
+
name: void 0,
|
|
17502
17509
|
type: "none",
|
|
17503
17510
|
// Ignore unknown types for forwards compatibility
|
|
17504
|
-
exports:
|
|
17505
|
-
imports:
|
|
17511
|
+
exports: void 0,
|
|
17512
|
+
imports: void 0
|
|
17506
17513
|
};
|
|
17507
|
-
if (string !==
|
|
17514
|
+
if (string !== void 0) {
|
|
17508
17515
|
let parsed;
|
|
17509
17516
|
try {
|
|
17510
17517
|
parsed = JSON.parse(string);
|
|
@@ -17555,7 +17562,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
17555
17562
|
}
|
|
17556
17563
|
}
|
|
17557
17564
|
const packageJSONPath = fileURLToPath(packageJSONUrl);
|
|
17558
|
-
return { pjsonPath: packageJSONPath, exists: false, main:
|
|
17565
|
+
return { pjsonPath: packageJSONPath, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
17559
17566
|
}
|
|
17560
17567
|
function getPackageType(url2) {
|
|
17561
17568
|
const packageConfig = getPackageScopeConfig(url2);
|
|
@@ -17624,7 +17631,7 @@ function getFileProtocolModuleFormat(url2, _context, ignoreErrors) {
|
|
|
17624
17631
|
const format3 = extensionFormatMap[ext];
|
|
17625
17632
|
if (format3) return format3;
|
|
17626
17633
|
if (ignoreErrors) {
|
|
17627
|
-
return
|
|
17634
|
+
return void 0;
|
|
17628
17635
|
}
|
|
17629
17636
|
const filepath = fileURLToPath(url2);
|
|
17630
17637
|
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
|
|
@@ -17648,7 +17655,7 @@ function getDefaultConditionsSet() {
|
|
|
17648
17655
|
return DEFAULT_CONDITIONS_SET;
|
|
17649
17656
|
}
|
|
17650
17657
|
function getConditionsSet(conditions) {
|
|
17651
|
-
if (conditions !==
|
|
17658
|
+
if (conditions !== void 0 && conditions !== getDefaultConditions()) {
|
|
17652
17659
|
if (!Array.isArray(conditions)) {
|
|
17653
17660
|
throw new ERR_INVALID_ARG_VALUE("conditions", conditions, "expected an array");
|
|
17654
17661
|
}
|
|
@@ -17700,12 +17707,12 @@ function tryStatSync(path132) {
|
|
|
17700
17707
|
}
|
|
17701
17708
|
function fileExists(url2) {
|
|
17702
17709
|
const stats = statSync(url2, { throwIfNoEntry: false });
|
|
17703
|
-
const isFile2 = stats ? stats.isFile() :
|
|
17704
|
-
return isFile2 === null || isFile2 ===
|
|
17710
|
+
const isFile2 = stats ? stats.isFile() : void 0;
|
|
17711
|
+
return isFile2 === null || isFile2 === void 0 ? false : isFile2;
|
|
17705
17712
|
}
|
|
17706
17713
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
17707
17714
|
let guess;
|
|
17708
|
-
if (packageConfig.main !==
|
|
17715
|
+
if (packageConfig.main !== void 0) {
|
|
17709
17716
|
guess = new URL$1(packageConfig.main, packageJsonUrl);
|
|
17710
17717
|
if (fileExists(guess)) return guess;
|
|
17711
17718
|
const tries2 = [`./${packageConfig.main}.js`, `./${packageConfig.main}.json`, `./${packageConfig.main}.node`, `./${packageConfig.main}/index.js`, `./${packageConfig.main}/index.json`, `./${packageConfig.main}/index.node`];
|
|
@@ -17713,7 +17720,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17713
17720
|
while (++i22 < tries2.length) {
|
|
17714
17721
|
guess = new URL$1(tries2[i22], packageJsonUrl);
|
|
17715
17722
|
if (fileExists(guess)) break;
|
|
17716
|
-
guess =
|
|
17723
|
+
guess = void 0;
|
|
17717
17724
|
}
|
|
17718
17725
|
if (guess) {
|
|
17719
17726
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17725,7 +17732,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
17725
17732
|
while (++i2 < tries.length) {
|
|
17726
17733
|
guess = new URL$1(tries[i2], packageJsonUrl);
|
|
17727
17734
|
if (fileExists(guess)) break;
|
|
17728
|
-
guess =
|
|
17735
|
+
guess = void 0;
|
|
17729
17736
|
}
|
|
17730
17737
|
if (guess) {
|
|
17731
17738
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
@@ -17860,14 +17867,14 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17860
17867
|
if (exception2.code === "ERR_INVALID_PACKAGE_TARGET") continue;
|
|
17861
17868
|
throw error;
|
|
17862
17869
|
}
|
|
17863
|
-
if (resolveResult ===
|
|
17870
|
+
if (resolveResult === void 0) continue;
|
|
17864
17871
|
if (resolveResult === null) {
|
|
17865
17872
|
lastException = null;
|
|
17866
17873
|
continue;
|
|
17867
17874
|
}
|
|
17868
17875
|
return resolveResult;
|
|
17869
17876
|
}
|
|
17870
|
-
if (lastException ===
|
|
17877
|
+
if (lastException === void 0 || lastException === null) {
|
|
17871
17878
|
return null;
|
|
17872
17879
|
}
|
|
17873
17880
|
throw lastException;
|
|
@@ -17890,7 +17897,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
17890
17897
|
target[key2]
|
|
17891
17898
|
);
|
|
17892
17899
|
const resolveResult = resolvePackageTarget(packageJsonUrl, conditionalTarget, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions);
|
|
17893
|
-
if (resolveResult ===
|
|
17900
|
+
if (resolveResult === void 0) continue;
|
|
17894
17901
|
return resolveResult;
|
|
17895
17902
|
}
|
|
17896
17903
|
}
|
|
@@ -17936,7 +17943,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17936
17943
|
if (own2.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
17937
17944
|
const target = exports[packageSubpath];
|
|
17938
17945
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
|
|
17939
|
-
if (resolveResult === null || resolveResult ===
|
|
17946
|
+
if (resolveResult === null || resolveResult === void 0) {
|
|
17940
17947
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17941
17948
|
}
|
|
17942
17949
|
return resolveResult;
|
|
@@ -17965,7 +17972,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
17965
17972
|
exports[bestMatch]
|
|
17966
17973
|
);
|
|
17967
17974
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
|
|
17968
|
-
if (resolveResult === null || resolveResult ===
|
|
17975
|
+
if (resolveResult === null || resolveResult === void 0) {
|
|
17969
17976
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
17970
17977
|
}
|
|
17971
17978
|
return resolveResult;
|
|
@@ -17998,7 +18005,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
17998
18005
|
if (imports) {
|
|
17999
18006
|
if (own2.call(imports, name) && !name.includes("*")) {
|
|
18000
18007
|
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
|
|
18001
|
-
if (resolveResult !== null && resolveResult !==
|
|
18008
|
+
if (resolveResult !== null && resolveResult !== void 0) {
|
|
18002
18009
|
return resolveResult;
|
|
18003
18010
|
}
|
|
18004
18011
|
} else {
|
|
@@ -18020,7 +18027,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
18020
18027
|
if (bestMatch) {
|
|
18021
18028
|
const target = imports[bestMatch];
|
|
18022
18029
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
|
|
18023
|
-
if (resolveResult !== null && resolveResult !==
|
|
18030
|
+
if (resolveResult !== null && resolveResult !== void 0) {
|
|
18024
18031
|
return resolveResult;
|
|
18025
18032
|
}
|
|
18026
18033
|
}
|
|
@@ -18059,7 +18066,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
18059
18066
|
const packageConfig = getPackageScopeConfig(base);
|
|
18060
18067
|
if (packageConfig.exists) {
|
|
18061
18068
|
const packageJsonUrl2 = pathToFileURL(packageConfig.pjsonPath);
|
|
18062
|
-
if (packageConfig.name === packageName && packageConfig.exports !==
|
|
18069
|
+
if (packageConfig.name === packageName && packageConfig.exports !== void 0 && packageConfig.exports !== null) {
|
|
18063
18070
|
return packageExportsResolve(packageJsonUrl2, packageSubpath, packageConfig, base, conditions);
|
|
18064
18071
|
}
|
|
18065
18072
|
}
|
|
@@ -18075,7 +18082,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
18075
18082
|
continue;
|
|
18076
18083
|
}
|
|
18077
18084
|
const packageConfig2 = package_json_reader_default.read(packageJsonPath, { base, specifier });
|
|
18078
|
-
if (packageConfig2.exports !==
|
|
18085
|
+
if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
|
|
18079
18086
|
return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig2, base, conditions);
|
|
18080
18087
|
}
|
|
18081
18088
|
if (packageSubpath === ".") {
|
|
@@ -18116,7 +18123,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
18116
18123
|
}
|
|
18117
18124
|
}
|
|
18118
18125
|
}
|
|
18119
|
-
assert2(resolved !==
|
|
18126
|
+
assert2(resolved !== void 0, "expected to be defined");
|
|
18120
18127
|
if (resolved.protocol !== "file:") {
|
|
18121
18128
|
return resolved;
|
|
18122
18129
|
}
|
|
@@ -18127,11 +18134,11 @@ function checkIfDisallowedImport(specifier, parsed, parsedParentURL) {
|
|
|
18127
18134
|
const parentProtocol = parsedParentURL.protocol;
|
|
18128
18135
|
if (parentProtocol === "http:" || parentProtocol === "https:") {
|
|
18129
18136
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
18130
|
-
const parsedProtocol = parsed == null ?
|
|
18137
|
+
const parsedProtocol = parsed == null ? void 0 : parsed.protocol;
|
|
18131
18138
|
if (parsedProtocol && parsedProtocol !== "https:" && parsedProtocol !== "http:") {
|
|
18132
18139
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
18133
18140
|
}
|
|
18134
|
-
return { url: (parsed == null ?
|
|
18141
|
+
return { url: (parsed == null ? void 0 : parsed.href) || "" };
|
|
18135
18142
|
}
|
|
18136
18143
|
if (builtinModules.includes(specifier)) {
|
|
18137
18144
|
throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, "remote imports cannot import from a local location.");
|
|
@@ -18144,7 +18151,7 @@ function isURL(self) {
|
|
|
18144
18151
|
return Boolean(self && typeof self === "object" && "href" in self && typeof self.href === "string" && "protocol" in self && typeof self.protocol === "string" && self.href && self.protocol);
|
|
18145
18152
|
}
|
|
18146
18153
|
function throwIfInvalidParentURL(parentURL) {
|
|
18147
|
-
if (parentURL ===
|
|
18154
|
+
if (parentURL === void 0) {
|
|
18148
18155
|
return;
|
|
18149
18156
|
}
|
|
18150
18157
|
if (typeof parentURL !== "string" && !isURL(parentURL)) {
|
|
@@ -18153,7 +18160,7 @@ function throwIfInvalidParentURL(parentURL) {
|
|
|
18153
18160
|
}
|
|
18154
18161
|
function defaultResolve(specifier, context = {}) {
|
|
18155
18162
|
const { parentURL } = context;
|
|
18156
|
-
assert2(parentURL !==
|
|
18163
|
+
assert2(parentURL !== void 0, "expected `parentURL` to be defined");
|
|
18157
18164
|
throwIfInvalidParentURL(parentURL);
|
|
18158
18165
|
let parsedParentURL;
|
|
18159
18166
|
if (parentURL) {
|
|
@@ -18215,7 +18222,7 @@ async function loadExternalConfig(externalConfig, configFile) {
|
|
|
18215
18222
|
try {
|
|
18216
18223
|
return require_from_file_default(externalConfig, configFile);
|
|
18217
18224
|
} catch (error) {
|
|
18218
|
-
if (!requireErrorCodesShouldBeIgnored.has(error == null ?
|
|
18225
|
+
if (!requireErrorCodesShouldBeIgnored.has(error == null ? void 0 : error.code)) {
|
|
18219
18226
|
throw error;
|
|
18220
18227
|
}
|
|
18221
18228
|
}
|
|
@@ -18257,7 +18264,7 @@ function loadPrettierConfig(configFile, { shouldCache }) {
|
|
|
18257
18264
|
return loadCache.get(configFile);
|
|
18258
18265
|
}
|
|
18259
18266
|
function getSearchFunction(stopDirectory) {
|
|
18260
|
-
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) :
|
|
18267
|
+
stopDirectory = stopDirectory ? path9__default.resolve(stopDirectory) : void 0;
|
|
18261
18268
|
if (!searchCache.has(stopDirectory)) {
|
|
18262
18269
|
const searcher2 = config_searcher_default(stopDirectory);
|
|
18263
18270
|
const searchFunction = searcher2.search.bind(searcher2);
|
|
@@ -18286,7 +18293,7 @@ async function loadPrettierConfig2(file, options8) {
|
|
|
18286
18293
|
const shouldCache = options8.useCache;
|
|
18287
18294
|
let configFile = options8.config;
|
|
18288
18295
|
if (!configFile) {
|
|
18289
|
-
const directory = file ? path9__default.dirname(path9__default.resolve(file)) :
|
|
18296
|
+
const directory = file ? path9__default.dirname(path9__default.resolve(file)) : void 0;
|
|
18290
18297
|
configFile = await searchPrettierConfig(directory, { shouldCache });
|
|
18291
18298
|
}
|
|
18292
18299
|
if (!configFile) {
|
|
@@ -18309,7 +18316,7 @@ async function resolveConfig(fileUrlOrPath, options8) {
|
|
|
18309
18316
|
return merged;
|
|
18310
18317
|
}
|
|
18311
18318
|
async function resolveConfigFile(fileUrlOrPath) {
|
|
18312
|
-
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) :
|
|
18319
|
+
const directory = fileUrlOrPath ? path9__default.dirname(path9__default.resolve(toPath(fileUrlOrPath))) : void 0;
|
|
18313
18320
|
const result = await searchPrettierConfig(directory, { shouldCache: false });
|
|
18314
18321
|
return result ?? null;
|
|
18315
18322
|
}
|
|
@@ -18332,7 +18339,7 @@ function pathMatchesGlobs(filePath, patterns, excludedPatterns) {
|
|
|
18332
18339
|
return import_micromatch.default.isMatch(filePath, withoutSlashes, { ignore: excludedPatterns, basename: true, dot: true }) || import_micromatch.default.isMatch(filePath, withSlashes, { ignore: excludedPatterns, basename: false, dot: true });
|
|
18333
18340
|
}
|
|
18334
18341
|
var stringReplaceAll22 = (isOptionalObject, original, pattern, replacement) => {
|
|
18335
|
-
if (isOptionalObject && (original ===
|
|
18342
|
+
if (isOptionalObject && (original === void 0 || original === null)) {
|
|
18336
18343
|
return;
|
|
18337
18344
|
}
|
|
18338
18345
|
if (original.replaceAll) {
|
|
@@ -18379,7 +18386,7 @@ async function createSingleIsIgnoredFunction(ignoreFile, withNodeModules) {
|
|
|
18379
18386
|
}
|
|
18380
18387
|
async function createIsIgnoredFunction(ignoreFiles, withNodeModules) {
|
|
18381
18388
|
if (ignoreFiles.length === 0 && !withNodeModules) {
|
|
18382
|
-
ignoreFiles = [
|
|
18389
|
+
ignoreFiles = [void 0];
|
|
18383
18390
|
}
|
|
18384
18391
|
const isIgnoredFunctions = (await Promise.all(ignoreFiles.map((ignoreFile) => createSingleIsIgnoredFunction(ignoreFile, withNodeModules)))).filter(Boolean);
|
|
18385
18392
|
return (file) => isIgnoredFunctions.some((isIgnored2) => isIgnored2(file));
|
|
@@ -18393,7 +18400,7 @@ var import_n_readlines = __toESM2(require_readlines());
|
|
|
18393
18400
|
function getInterpreter(file) {
|
|
18394
18401
|
let fd;
|
|
18395
18402
|
try {
|
|
18396
|
-
fd =
|
|
18403
|
+
fd = fs6.openSync(file, "r");
|
|
18397
18404
|
} catch {
|
|
18398
18405
|
return;
|
|
18399
18406
|
}
|
|
@@ -18410,7 +18417,7 @@ function getInterpreter(file) {
|
|
|
18410
18417
|
}
|
|
18411
18418
|
} finally {
|
|
18412
18419
|
try {
|
|
18413
|
-
|
|
18420
|
+
fs6.closeSync(fd);
|
|
18414
18421
|
} catch {
|
|
18415
18422
|
}
|
|
18416
18423
|
}
|
|
@@ -18422,13 +18429,13 @@ function getLanguageByFileName(languages2, file) {
|
|
|
18422
18429
|
return;
|
|
18423
18430
|
}
|
|
18424
18431
|
const basename = getFileBasename(file).toLowerCase();
|
|
18425
|
-
return languages2.find(({ filenames }) => filenames == null ?
|
|
18432
|
+
return languages2.find(({ filenames }) => filenames == null ? void 0 : filenames.some((name) => name.toLowerCase() === basename)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.some((extension) => basename.endsWith(extension)));
|
|
18426
18433
|
}
|
|
18427
18434
|
function getLanguageByLanguageName(languages2, languageName) {
|
|
18428
18435
|
if (!languageName) {
|
|
18429
18436
|
return;
|
|
18430
18437
|
}
|
|
18431
|
-
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ?
|
|
18438
|
+
return languages2.find(({ name }) => name.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ? void 0 : aliases.includes(languageName)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.includes(`.${languageName}`));
|
|
18432
18439
|
}
|
|
18433
18440
|
function getLanguageByInterpreter(languages2, file) {
|
|
18434
18441
|
if (!file || getFileBasename(file).includes(".")) {
|
|
@@ -18438,7 +18445,7 @@ function getLanguageByInterpreter(languages2, file) {
|
|
|
18438
18445
|
if (!interpreter) {
|
|
18439
18446
|
return;
|
|
18440
18447
|
}
|
|
18441
|
-
return languages2.find(({ interpreters }) => interpreters == null ?
|
|
18448
|
+
return languages2.find(({ interpreters }) => interpreters == null ? void 0 : interpreters.includes(interpreter));
|
|
18442
18449
|
}
|
|
18443
18450
|
function inferParser(options8, fileInfo) {
|
|
18444
18451
|
const languages2 = options8.plugins.flatMap((plugin) => (
|
|
@@ -18446,7 +18453,7 @@ function inferParser(options8, fileInfo) {
|
|
|
18446
18453
|
plugin.languages ?? []
|
|
18447
18454
|
));
|
|
18448
18455
|
const language = getLanguageByLanguageName(languages2, fileInfo.language) ?? getLanguageByFileName(languages2, fileInfo.physicalFile) ?? getLanguageByFileName(languages2, fileInfo.file) ?? getLanguageByInterpreter(languages2, fileInfo.physicalFile);
|
|
18449
|
-
return language == null ?
|
|
18456
|
+
return language == null ? void 0 : language.parsers[0];
|
|
18450
18457
|
}
|
|
18451
18458
|
var infer_parser_default = inferParser;
|
|
18452
18459
|
async function getFileInfo(file, options8) {
|
|
@@ -18469,7 +18476,7 @@ async function getParser(file, options8) {
|
|
|
18469
18476
|
if (options8.resolveConfig !== false) {
|
|
18470
18477
|
config = await resolveConfig(file);
|
|
18471
18478
|
}
|
|
18472
|
-
return (config == null ?
|
|
18479
|
+
return (config == null ? void 0 : config.parser) ?? infer_parser_default(options8, { physicalFile: file });
|
|
18473
18480
|
}
|
|
18474
18481
|
var get_file_info_default = getFileInfo;
|
|
18475
18482
|
var import_diff = __toESM2(require_array2());
|
|
@@ -18591,7 +18598,7 @@ function traverseDoc2(doc2, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
18591
18598
|
if (!docType) {
|
|
18592
18599
|
throw new invalid_doc_error_default2(doc3);
|
|
18593
18600
|
}
|
|
18594
|
-
if ((onEnter == null ?
|
|
18601
|
+
if ((onEnter == null ? void 0 : onEnter(doc3)) === false) {
|
|
18595
18602
|
continue;
|
|
18596
18603
|
}
|
|
18597
18604
|
switch (docType) {
|
|
@@ -18686,7 +18693,7 @@ function flattenDoc(doc2) {
|
|
|
18686
18693
|
return { ...doc2, breakContents: flattenDoc(doc2.breakContents), flatContents: flattenDoc(doc2.flatContents) };
|
|
18687
18694
|
}
|
|
18688
18695
|
if (doc2.type === DOC_TYPE_GROUP2) {
|
|
18689
|
-
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ?
|
|
18696
|
+
return { ...doc2, contents: flattenDoc(doc2.contents), expandedStates: (_a = doc2.expandedStates) == null ? void 0 : _a.map(flattenDoc) };
|
|
18690
18697
|
}
|
|
18691
18698
|
if (doc2.type === DOC_TYPE_FILL2) {
|
|
18692
18699
|
return { type: "fill", parts: doc2.parts.map(flattenDoc) };
|
|
@@ -18710,7 +18717,7 @@ function printDocToDebug(doc2) {
|
|
|
18710
18717
|
return printed.length === 1 ? printed[0] : `[${printed.join(", ")}]`;
|
|
18711
18718
|
}
|
|
18712
18719
|
if (doc3.type === DOC_TYPE_LINE2) {
|
|
18713
|
-
const withBreakParent = ((_a = parentParts == null ?
|
|
18720
|
+
const withBreakParent = ((_a = parentParts == null ? void 0 : parentParts[index + 1]) == null ? void 0 : _a.type) === DOC_TYPE_BREAK_PARENT2;
|
|
18714
18721
|
if (doc3.literal) {
|
|
18715
18722
|
return withBreakParent ? "literalline" : "literallineWithoutBreakParent";
|
|
18716
18723
|
}
|
|
@@ -18723,8 +18730,8 @@ function printDocToDebug(doc2) {
|
|
|
18723
18730
|
return "line";
|
|
18724
18731
|
}
|
|
18725
18732
|
if (doc3.type === DOC_TYPE_BREAK_PARENT2) {
|
|
18726
|
-
const afterHardline = ((_b = parentParts == null ?
|
|
18727
|
-
return afterHardline ?
|
|
18733
|
+
const afterHardline = ((_b = parentParts == null ? void 0 : parentParts[index - 1]) == null ? void 0 : _b.type) === DOC_TYPE_LINE2 && parentParts[index - 1].hard;
|
|
18734
|
+
return afterHardline ? void 0 : "breakParent";
|
|
18728
18735
|
}
|
|
18729
18736
|
if (doc3.type === DOC_TYPE_TRIM2) {
|
|
18730
18737
|
return "trim";
|
|
@@ -18795,7 +18802,7 @@ function printDocToDebug(doc2) {
|
|
|
18795
18802
|
}
|
|
18796
18803
|
}
|
|
18797
18804
|
var at2 = (isOptionalObject, object, index) => {
|
|
18798
|
-
if (isOptionalObject && (object ===
|
|
18805
|
+
if (isOptionalObject && (object === void 0 || object === null)) {
|
|
18799
18806
|
return;
|
|
18800
18807
|
}
|
|
18801
18808
|
if (Array.isArray(object) || typeof object === "string") {
|
|
@@ -19717,7 +19724,7 @@ var AstPath = class {
|
|
|
19717
19724
|
let name = null;
|
|
19718
19725
|
let node = this.stack[stackPointer--];
|
|
19719
19726
|
for (const predicate of predicates) {
|
|
19720
|
-
if (node ===
|
|
19727
|
+
if (node === void 0) {
|
|
19721
19728
|
return false;
|
|
19722
19729
|
}
|
|
19723
19730
|
let number = null;
|
|
@@ -19818,7 +19825,7 @@ function* getDescendants(node, options8) {
|
|
|
19818
19825
|
}
|
|
19819
19826
|
function skip(characters) {
|
|
19820
19827
|
return (text, startIndex, options8) => {
|
|
19821
|
-
const backwards = Boolean(options8 == null ?
|
|
19828
|
+
const backwards = Boolean(options8 == null ? void 0 : options8.backwards);
|
|
19822
19829
|
if (startIndex === false) {
|
|
19823
19830
|
return false;
|
|
19824
19831
|
}
|
|
@@ -19846,7 +19853,7 @@ var skipSpaces = skip(" ");
|
|
|
19846
19853
|
var skipToLineEnd = skip(",; ");
|
|
19847
19854
|
var skipEverythingButNewLine = skip(/[^\n\r]/);
|
|
19848
19855
|
function skipNewline(text, startIndex, options8) {
|
|
19849
|
-
const backwards = Boolean(options8 == null ?
|
|
19856
|
+
const backwards = Boolean(options8 == null ? void 0 : options8.backwards);
|
|
19850
19857
|
if (startIndex === false) {
|
|
19851
19858
|
return false;
|
|
19852
19859
|
}
|
|
@@ -19926,7 +19933,7 @@ function getSortedChildNodes(node, options8) {
|
|
|
19926
19933
|
if (!canAttachComment) {
|
|
19927
19934
|
return [];
|
|
19928
19935
|
}
|
|
19929
|
-
const childNodes = ((getCommentChildNodes == null ?
|
|
19936
|
+
const childNodes = ((getCommentChildNodes == null ? void 0 : getCommentChildNodes(node, options8)) ?? [...getChildren(node, { getVisitorKeys: create_get_visitor_keys_function_default(printerGetVisitorKeys) })]).flatMap((node2) => canAttachComment(node2) ? [node2] : getSortedChildNodes(node2, options8));
|
|
19930
19937
|
childNodes.sort((nodeA, nodeB) => locStart(nodeA) - locStart(nodeB) || locEnd(nodeA) - locEnd(nodeB));
|
|
19931
19938
|
childNodesCache.set(node, childNodes);
|
|
19932
19939
|
return childNodes;
|
|
@@ -19960,7 +19967,7 @@ function decorateComment(node, comment, options8, enclosingNode) {
|
|
|
19960
19967
|
}
|
|
19961
19968
|
throw new Error("Comment location overlaps with node location");
|
|
19962
19969
|
}
|
|
19963
|
-
if ((enclosingNode == null ?
|
|
19970
|
+
if ((enclosingNode == null ? void 0 : enclosingNode.type) === "TemplateLiteral") {
|
|
19964
19971
|
const { quasis } = enclosingNode;
|
|
19965
19972
|
const commentIndex = findExpressionIndexForComment(quasis, comment, options8);
|
|
19966
19973
|
if (precedingNode && findExpressionIndexForComment(quasis, precedingNode, options8) !== commentIndex) {
|
|
@@ -20105,7 +20112,7 @@ function breakTies(tiesToBreak, options8) {
|
|
|
20105
20112
|
assert2.strictEqual(currentCommentPrecedingNode, precedingNode);
|
|
20106
20113
|
assert2.strictEqual(currentCommentFollowingNode, followingNode);
|
|
20107
20114
|
const gap = options8.originalText.slice(options8.locEnd(comment), gapEndPos);
|
|
20108
|
-
if (((_b = (_a = options8.printer).isGap) == null ?
|
|
20115
|
+
if (((_b = (_a = options8.printer).isGap) == null ? void 0 : _b.call(_a, gap, options8)) ?? /^[\s(]*$/.test(gap)) {
|
|
20109
20116
|
gapEndPos = options8.locStart(comment);
|
|
20110
20117
|
} else {
|
|
20111
20118
|
break;
|
|
@@ -20153,7 +20160,7 @@ function printLeadingComment(path132, options8) {
|
|
|
20153
20160
|
const comment = path132.node;
|
|
20154
20161
|
const parts = [printComment(path132, options8)];
|
|
20155
20162
|
const { printer: printer2, originalText, locStart, locEnd } = options8;
|
|
20156
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
20163
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? void 0 : _a.call(printer2, comment);
|
|
20157
20164
|
if (isBlock) {
|
|
20158
20165
|
const lineBreak = has_newline_default(originalText, locEnd(comment)) ? has_newline_default(originalText, locStart(comment), { backwards: true }) ? hardline2 : line22 : " ";
|
|
20159
20166
|
parts.push(lineBreak);
|
|
@@ -20171,12 +20178,12 @@ function printTrailingComment(path132, options8, previousComment) {
|
|
|
20171
20178
|
const comment = path132.node;
|
|
20172
20179
|
const printed = printComment(path132, options8);
|
|
20173
20180
|
const { printer: printer2, originalText, locStart } = options8;
|
|
20174
|
-
const isBlock = (_a = printer2.isBlockComment) == null ?
|
|
20175
|
-
if ((previousComment == null ?
|
|
20181
|
+
const isBlock = (_a = printer2.isBlockComment) == null ? void 0 : _a.call(printer2, comment);
|
|
20182
|
+
if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true })) {
|
|
20176
20183
|
const isLineBeforeEmpty = is_previous_line_empty_default(originalText, locStart(comment));
|
|
20177
20184
|
return { doc: lineSuffix2([hardline2, isLineBeforeEmpty ? hardline2 : "", printed]), isBlock, hasLineSuffix: true };
|
|
20178
20185
|
}
|
|
20179
|
-
if (!isBlock || (previousComment == null ?
|
|
20186
|
+
if (!isBlock || (previousComment == null ? void 0 : previousComment.hasLineSuffix)) {
|
|
20180
20187
|
return { doc: [lineSuffix2([" ", printed]), breakParent2], isBlock, hasLineSuffix: true };
|
|
20181
20188
|
}
|
|
20182
20189
|
return { doc: [" ", printed], isBlock, hasLineSuffix: false };
|
|
@@ -20196,7 +20203,7 @@ function printCommentsSeparately(path132, options8) {
|
|
|
20196
20203
|
let printedTrailingComment;
|
|
20197
20204
|
path132.each(() => {
|
|
20198
20205
|
const comment = path132.node;
|
|
20199
|
-
if (ignored == null ?
|
|
20206
|
+
if (ignored == null ? void 0 : ignored.has(comment)) {
|
|
20200
20207
|
return;
|
|
20201
20208
|
}
|
|
20202
20209
|
const { leading, trailing } = comment;
|
|
@@ -20232,7 +20239,7 @@ function createPrintPreCheckFunction(options8) {
|
|
|
20232
20239
|
}
|
|
20233
20240
|
}
|
|
20234
20241
|
var create_print_pre_check_function_default = createPrintPreCheckFunction;
|
|
20235
|
-
var core_options_evaluate_default = { "cursorOffset": { "category": "Special", "type": "int", "default": -1, "range": { "start": -1, "end": Infinity, "step": 1 }, "description": "Print (to stderr) where a cursor at the given position would move to after formatting.", "cliCategory": "Editor" }, "endOfLine": { "category": "Global", "type": "choice", "default": "lf", "description": "Which end of line characters to apply.", "choices": [{ "value": "lf", "description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { "value": "crlf", "description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { "value": "cr", "description": "Carriage Return character only (\\r), used very rarely" }, { "value": "auto", "description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)" }] }, "filepath": { "category": "Special", "type": "path", "description": "Specify the input filepath. This will be used to do parser inference.", "cliName": "stdin-filepath", "cliCategory": "Other", "cliDescription": "Path to the file to pretend that stdin comes from." }, "insertPragma": { "category": "Special", "type": "boolean", "default": false, "description": "Insert @format pragma into file's first docblock comment.", "cliCategory": "Other" }, "parser": { "category": "Global", "type": "choice", "default":
|
|
20242
|
+
var core_options_evaluate_default = { "cursorOffset": { "category": "Special", "type": "int", "default": -1, "range": { "start": -1, "end": Infinity, "step": 1 }, "description": "Print (to stderr) where a cursor at the given position would move to after formatting.", "cliCategory": "Editor" }, "endOfLine": { "category": "Global", "type": "choice", "default": "lf", "description": "Which end of line characters to apply.", "choices": [{ "value": "lf", "description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { "value": "crlf", "description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { "value": "cr", "description": "Carriage Return character only (\\r), used very rarely" }, { "value": "auto", "description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)" }] }, "filepath": { "category": "Special", "type": "path", "description": "Specify the input filepath. This will be used to do parser inference.", "cliName": "stdin-filepath", "cliCategory": "Other", "cliDescription": "Path to the file to pretend that stdin comes from." }, "insertPragma": { "category": "Special", "type": "boolean", "default": false, "description": "Insert @format pragma into file's first docblock comment.", "cliCategory": "Other" }, "parser": { "category": "Global", "type": "choice", "default": void 0, "description": "Which parser to use.", "exception": (value) => typeof value === "string" || typeof value === "function", "choices": [{ "value": "flow", "description": "Flow" }, { "value": "babel", "description": "JavaScript" }, { "value": "babel-flow", "description": "Flow" }, { "value": "babel-ts", "description": "TypeScript" }, { "value": "typescript", "description": "TypeScript" }, { "value": "acorn", "description": "JavaScript" }, { "value": "espree", "description": "JavaScript" }, { "value": "meriyah", "description": "JavaScript" }, { "value": "css", "description": "CSS" }, { "value": "less", "description": "Less" }, { "value": "scss", "description": "SCSS" }, { "value": "json", "description": "JSON" }, { "value": "json5", "description": "JSON5" }, { "value": "jsonc", "description": "JSON with Comments" }, { "value": "json-stringify", "description": "JSON.stringify" }, { "value": "graphql", "description": "GraphQL" }, { "value": "markdown", "description": "Markdown" }, { "value": "mdx", "description": "MDX" }, { "value": "vue", "description": "Vue" }, { "value": "yaml", "description": "YAML" }, { "value": "glimmer", "description": "Ember / Handlebars" }, { "value": "html", "description": "HTML" }, { "value": "angular", "description": "Angular" }, { "value": "lwc", "description": "Lightning Web Components" }] }, "plugins": { "type": "path", "array": true, "default": [{ "value": [] }], "category": "Global", "description": "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", "exception": (value) => typeof value === "string" || typeof value === "object", "cliName": "plugin", "cliCategory": "Config" }, "printWidth": { "category": "Global", "type": "int", "default": 80, "description": "The line length where Prettier will try wrap.", "range": { "start": 0, "end": Infinity, "step": 1 } }, "rangeEnd": { "category": "Special", "type": "int", "default": Infinity, "range": { "start": 0, "end": Infinity, "step": 1 }, "description": "Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.", "cliCategory": "Editor" }, "rangeStart": { "category": "Special", "type": "int", "default": 0, "range": { "start": 0, "end": Infinity, "step": 1 }, "description": "Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.", "cliCategory": "Editor" }, "requirePragma": { "category": "Special", "type": "boolean", "default": false, "description": "Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.", "cliCategory": "Other" }, "tabWidth": { "type": "int", "category": "Global", "default": 2, "description": "Number of spaces per indentation level.", "range": { "start": 0, "end": Infinity, "step": 1 } }, "useTabs": { "category": "Global", "type": "boolean", "default": false, "description": "Indent with tabs instead of spaces." }, "embeddedLanguageFormatting": { "category": "Global", "type": "choice", "default": "auto", "description": "Control how Prettier formats quoted code embedded in the file.", "choices": [{ "value": "auto", "description": "Format embedded code if Prettier can automatically identify it." }, { "value": "off", "description": "Never automatically format embedded code." }] } };
|
|
20236
20243
|
function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
20237
20244
|
const languages2 = plugins.flatMap((plugin) => plugin.languages ?? []);
|
|
20238
20245
|
const options8 = [];
|
|
@@ -20250,7 +20257,7 @@ function getSupportInfo({ plugins = [], showDeprecated = false } = {}) {
|
|
|
20250
20257
|
}
|
|
20251
20258
|
option.pluginDefaults = Object.fromEntries(plugins.filter((plugin) => {
|
|
20252
20259
|
var _a;
|
|
20253
|
-
return ((_a = plugin.defaultOptions) == null ?
|
|
20260
|
+
return ((_a = plugin.defaultOptions) == null ? void 0 : _a[option.name]) !== void 0;
|
|
20254
20261
|
}).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]]));
|
|
20255
20262
|
options8.push(option);
|
|
20256
20263
|
}
|
|
@@ -20265,7 +20272,7 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) {
|
|
|
20265
20272
|
existingParsers.add(parserName);
|
|
20266
20273
|
const plugin = plugins.find((plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
|
|
20267
20274
|
let description = language.name;
|
|
20268
|
-
if (plugin == null ?
|
|
20275
|
+
if (plugin == null ? void 0 : plugin.name) {
|
|
20269
20276
|
description += ` (plugin: ${plugin.name})`;
|
|
20270
20277
|
}
|
|
20271
20278
|
yield { value: parserName, description };
|
|
@@ -20305,7 +20312,7 @@ function normalizeOptions(options8, optionInfos, { logger = false, isCLI = false
|
|
|
20305
20312
|
const unknown = !passThrough ? (key2, value, options9) => {
|
|
20306
20313
|
const { _, ...schemas2 } = options9.schemas;
|
|
20307
20314
|
return levenUnknownHandler(key2, value, { ...options9, schemas: schemas2 });
|
|
20308
|
-
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ?
|
|
20315
|
+
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? void 0 : { [key2]: value } : (key2, value) => ({ [key2]: value });
|
|
20309
20316
|
const schemas = optionInfosToSchemas(optionInfos, { isCLI, FlagSchema });
|
|
20310
20317
|
const normalizer = new Normalizer(schemas, { logger, unknown, descriptor });
|
|
20311
20318
|
const shouldSuppressDuplicateDeprecationWarnings = logger !== false;
|
|
@@ -20352,7 +20359,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20352
20359
|
break;
|
|
20353
20360
|
case "choice":
|
|
20354
20361
|
SchemaConstructor = ChoiceSchema;
|
|
20355
|
-
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ?
|
|
20362
|
+
parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ? void 0 : choiceInfo.redirect) ? { ...choiceInfo, redirect: { to: { key: optionInfo.name, value: choiceInfo.redirect } } } : choiceInfo);
|
|
20356
20363
|
break;
|
|
20357
20364
|
case "boolean":
|
|
20358
20365
|
SchemaConstructor = BooleanSchema;
|
|
@@ -20370,10 +20377,10 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20370
20377
|
if (optionInfo.exception) {
|
|
20371
20378
|
parameters.validate = (value, schema2, utils2) => optionInfo.exception(value) || schema2.validate(value, utils2);
|
|
20372
20379
|
} else {
|
|
20373
|
-
parameters.validate = (value, schema2, utils2) => value ===
|
|
20380
|
+
parameters.validate = (value, schema2, utils2) => value === void 0 || schema2.validate(value, utils2);
|
|
20374
20381
|
}
|
|
20375
20382
|
if (optionInfo.redirect) {
|
|
20376
|
-
handlers.redirect = (value) => !value ?
|
|
20383
|
+
handlers.redirect = (value) => !value ? void 0 : { to: { key: optionInfo.redirect.option, value: optionInfo.redirect.value } };
|
|
20377
20384
|
}
|
|
20378
20385
|
if (optionInfo.deprecated) {
|
|
20379
20386
|
handlers.deprecated = true;
|
|
@@ -20396,7 +20403,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
20396
20403
|
}
|
|
20397
20404
|
var normalize_options_default = normalizeOptions;
|
|
20398
20405
|
var arrayFindLast = (isOptionalObject, array2, callback) => {
|
|
20399
|
-
if (isOptionalObject && (array2 ===
|
|
20406
|
+
if (isOptionalObject && (array2 === void 0 || array2 === null)) {
|
|
20400
20407
|
return;
|
|
20401
20408
|
}
|
|
20402
20409
|
if (array2.findLast) {
|
|
@@ -20454,7 +20461,7 @@ function initPrinter(plugin, astFormat) {
|
|
|
20454
20461
|
const printerOrPrinterInitFunction = plugin.printers[astFormat];
|
|
20455
20462
|
return typeof printerOrPrinterInitFunction === "function" ? printerOrPrinterInitFunction() : printerOrPrinterInitFunction;
|
|
20456
20463
|
}
|
|
20457
|
-
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText:
|
|
20464
|
+
var formatOptionsHiddenDefaults = { astFormat: "estree", printer: {}, originalText: void 0, locStart: null, locEnd: null };
|
|
20458
20465
|
async function normalizeFormatOptions(options8, opts = {}) {
|
|
20459
20466
|
var _a;
|
|
20460
20467
|
const rawOptions = { ...options8 };
|
|
@@ -20469,19 +20476,19 @@ async function normalizeFormatOptions(options8, opts = {}) {
|
|
|
20469
20476
|
}
|
|
20470
20477
|
}
|
|
20471
20478
|
const supportOptions = getSupportInfo({ plugins: options8.plugins, showDeprecated: true }).options;
|
|
20472
|
-
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !==
|
|
20479
|
+
const defaults = { ...formatOptionsHiddenDefaults, ...Object.fromEntries(supportOptions.filter((optionInfo) => optionInfo.default !== void 0).map((option) => [option.name, option.default])) };
|
|
20473
20480
|
const parserPlugin = getParserPluginByParserName(rawOptions.plugins, rawOptions.parser);
|
|
20474
20481
|
const parser = await initParser(parserPlugin, rawOptions.parser);
|
|
20475
20482
|
rawOptions.astFormat = parser.astFormat;
|
|
20476
20483
|
rawOptions.locEnd = parser.locEnd;
|
|
20477
20484
|
rawOptions.locStart = parser.locStart;
|
|
20478
|
-
const printerPlugin = ((_a = parserPlugin.printers) == null ?
|
|
20485
|
+
const printerPlugin = ((_a = parserPlugin.printers) == null ? void 0 : _a[parser.astFormat]) ? parserPlugin : getPrinterPluginByAstFormat(rawOptions.plugins, parser.astFormat);
|
|
20479
20486
|
const printer2 = await initPrinter(printerPlugin, parser.astFormat);
|
|
20480
20487
|
rawOptions.printer = printer2;
|
|
20481
|
-
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !==
|
|
20488
|
+
const pluginDefaults = printerPlugin.defaultOptions ? Object.fromEntries(Object.entries(printerPlugin.defaultOptions).filter(([, value]) => value !== void 0)) : {};
|
|
20482
20489
|
const mixedDefaults = { ...defaults, ...pluginDefaults };
|
|
20483
20490
|
for (const [k, value] of Object.entries(mixedDefaults)) {
|
|
20484
|
-
if (rawOptions[k] === null || rawOptions[k] ===
|
|
20491
|
+
if (rawOptions[k] === null || rawOptions[k] === void 0) {
|
|
20485
20492
|
rawOptions[k] = value;
|
|
20486
20493
|
}
|
|
20487
20494
|
}
|
|
@@ -20599,11 +20606,11 @@ async function printAstToDoc(ast, options8) {
|
|
|
20599
20606
|
const ensurePrintingNode = create_print_pre_check_function_default();
|
|
20600
20607
|
const embeds = /* @__PURE__ */ new Map();
|
|
20601
20608
|
await printEmbeddedLanguages(path132, mainPrint, options8, printAstToDoc, embeds);
|
|
20602
|
-
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint,
|
|
20609
|
+
const doc2 = await callPluginPrintFunction(path132, options8, mainPrint, void 0, embeds);
|
|
20603
20610
|
ensureAllCommentsPrinted(options8);
|
|
20604
20611
|
return doc2;
|
|
20605
20612
|
function mainPrint(selector, args) {
|
|
20606
|
-
if (selector ===
|
|
20613
|
+
if (selector === void 0 || selector === path132) {
|
|
20607
20614
|
return mainPrintInternal(args);
|
|
20608
20615
|
}
|
|
20609
20616
|
if (Array.isArray(selector)) {
|
|
@@ -20614,10 +20621,10 @@ async function printAstToDoc(ast, options8) {
|
|
|
20614
20621
|
function mainPrintInternal(args) {
|
|
20615
20622
|
ensurePrintingNode(path132);
|
|
20616
20623
|
const value = path132.node;
|
|
20617
|
-
if (value ===
|
|
20624
|
+
if (value === void 0 || value === null) {
|
|
20618
20625
|
return "";
|
|
20619
20626
|
}
|
|
20620
|
-
const shouldCache = value && typeof value === "object" && args ===
|
|
20627
|
+
const shouldCache = value && typeof value === "object" && args === void 0;
|
|
20621
20628
|
if (shouldCache && cache3.has(value)) {
|
|
20622
20629
|
return cache3.get(value);
|
|
20623
20630
|
}
|
|
@@ -20633,7 +20640,7 @@ function callPluginPrintFunction(path132, options8, printPath, args, embeds) {
|
|
|
20633
20640
|
const { node } = path132;
|
|
20634
20641
|
const { printer: printer2 } = options8;
|
|
20635
20642
|
let doc2;
|
|
20636
|
-
if ((_a = printer2.hasPrettierIgnore) == null ?
|
|
20643
|
+
if ((_a = printer2.hasPrettierIgnore) == null ? void 0 : _a.call(printer2, path132)) {
|
|
20637
20644
|
doc2 = print_ignored_default(path132, options8);
|
|
20638
20645
|
} else if (embeds.has(node)) {
|
|
20639
20646
|
doc2 = embeds.get(node);
|
|
@@ -20714,7 +20721,7 @@ function dropRootParents(parents) {
|
|
|
20714
20721
|
let lastParentIndex = parents.length - 1;
|
|
20715
20722
|
for (; ; ) {
|
|
20716
20723
|
const parent = parents[lastParentIndex];
|
|
20717
|
-
if ((parent == null ?
|
|
20724
|
+
if ((parent == null ? void 0 : parent.type) === "Program" || (parent == null ? void 0 : parent.type) === "File") {
|
|
20718
20725
|
lastParentIndex--;
|
|
20719
20726
|
} else {
|
|
20720
20727
|
break;
|
|
@@ -20785,7 +20792,7 @@ function isSourceElement(opts, node, parentNode) {
|
|
|
20785
20792
|
case "espree":
|
|
20786
20793
|
case "meriyah":
|
|
20787
20794
|
case "__babel_estree":
|
|
20788
|
-
return isJsSourceElement(node.type, parentNode == null ?
|
|
20795
|
+
return isJsSourceElement(node.type, parentNode == null ? void 0 : parentNode.type);
|
|
20789
20796
|
case "json":
|
|
20790
20797
|
case "json5":
|
|
20791
20798
|
case "jsonc":
|
|
@@ -20847,7 +20854,7 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) {
|
|
|
20847
20854
|
const result = printDocToString2(doc2, opts);
|
|
20848
20855
|
if (addAlignmentSize > 0) {
|
|
20849
20856
|
const trimmed = result.formatted.trim();
|
|
20850
|
-
if (result.cursorNodeStart !==
|
|
20857
|
+
if (result.cursorNodeStart !== void 0) {
|
|
20851
20858
|
result.cursorNodeStart -= result.formatted.indexOf(trimmed);
|
|
20852
20859
|
}
|
|
20853
20860
|
result.formatted = trimmed + convertEndOfLineToChars2(opts.endOfLine);
|
|
@@ -21046,7 +21053,7 @@ var languages_evaluate_default4 = [{ "linguistLanguageId": 146, "name": "Angular
|
|
|
21046
21053
|
var CATEGORY_HTML = "HTML";
|
|
21047
21054
|
var options3 = { bracketSameLine: common_options_evaluate_default.bracketSameLine, htmlWhitespaceSensitivity: { category: CATEGORY_HTML, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: common_options_evaluate_default.singleAttributePerLine, vueIndentScriptAndStyle: { category: CATEGORY_HTML, type: "boolean", default: false, description: "Indent script and style tags in Vue files." } };
|
|
21048
21055
|
var options_default3 = options3;
|
|
21049
|
-
var languages_evaluate_default5 = [{ "linguistLanguageId": 183, "name": "JavaScript", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": ["js", "node"], "extensions": [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], "filenames": ["Jakefile"], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], "parsers": ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], "vscodeLanguageIds": ["javascript", "mongo"] }, { "linguistLanguageId": 183, "name": "Flow", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": [], "extensions": [".js.flow"], "filenames": [], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], "parsers": ["flow", "babel-flow"], "vscodeLanguageIds": ["javascript"] }, { "linguistLanguageId": 183, "name": "JSX", "type": "programming", "tmScope": "source.js.jsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "color":
|
|
21056
|
+
var languages_evaluate_default5 = [{ "linguistLanguageId": 183, "name": "JavaScript", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": ["js", "node"], "extensions": [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], "filenames": ["Jakefile"], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], "parsers": ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], "vscodeLanguageIds": ["javascript", "mongo"] }, { "linguistLanguageId": 183, "name": "Flow", "type": "programming", "tmScope": "source.js", "aceMode": "javascript", "codemirrorMode": "javascript", "codemirrorMimeType": "text/javascript", "color": "#f1e05a", "aliases": [], "extensions": [".js.flow"], "filenames": [], "interpreters": ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], "parsers": ["flow", "babel-flow"], "vscodeLanguageIds": ["javascript"] }, { "linguistLanguageId": 183, "name": "JSX", "type": "programming", "tmScope": "source.js.jsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "color": void 0, "aliases": void 0, "extensions": [".jsx"], "filenames": void 0, "interpreters": void 0, "parsers": ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], "vscodeLanguageIds": ["javascriptreact"], "group": "JavaScript" }, { "linguistLanguageId": 378, "name": "TypeScript", "type": "programming", "color": "#3178c6", "aliases": ["ts"], "interpreters": ["deno", "ts-node"], "extensions": [".ts", ".cts", ".mts"], "tmScope": "source.ts", "aceMode": "typescript", "codemirrorMode": "javascript", "codemirrorMimeType": "application/typescript", "parsers": ["typescript", "babel-ts"], "vscodeLanguageIds": ["typescript"] }, { "linguistLanguageId": 94901924, "name": "TSX", "type": "programming", "color": "#3178c6", "group": "TypeScript", "extensions": [".tsx"], "tmScope": "source.tsx", "aceMode": "javascript", "codemirrorMode": "jsx", "codemirrorMimeType": "text/jsx", "parsers": ["typescript", "babel-ts"], "vscodeLanguageIds": ["typescriptreact"] }];
|
|
21050
21057
|
var CATEGORY_JAVASCRIPT = "JavaScript";
|
|
21051
21058
|
var options4 = { arrowParens: { category: CATEGORY_JAVASCRIPT, type: "choice", default: "always", description: "Include parentheses around a sole arrow function parameter.", choices: [{ value: "always", description: "Always include parens. Example: `(x) => x`" }, { value: "avoid", description: "Omit parens when possible. Example: `x => x`" }] }, bracketSameLine: common_options_evaluate_default.bracketSameLine, bracketSpacing: common_options_evaluate_default.bracketSpacing, jsxBracketSameLine: { category: CATEGORY_JAVASCRIPT, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: CATEGORY_JAVASCRIPT, type: "boolean", default: true, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalTernaries: { category: CATEGORY_JAVASCRIPT, type: "boolean", default: false, description: "Use curious ternaries, with the question mark after the condition.", oppositeDescription: "Default behavior of ternaries; keep question marks on the same line as the consequent." }, singleQuote: common_options_evaluate_default.singleQuote, jsxSingleQuote: { category: CATEGORY_JAVASCRIPT, type: "boolean", default: false, description: "Use single quotes in JSX." }, quoteProps: { category: CATEGORY_JAVASCRIPT, type: "choice", default: "as-needed", description: "Change when properties in objects are quoted.", choices: [{ value: "as-needed", description: "Only add quotes around object properties where required." }, { value: "consistent", description: "If at least one property in an object requires quotes, quote all properties." }, { value: "preserve", description: "Respect the input use of quotes in object properties." }] }, trailingComma: { category: CATEGORY_JAVASCRIPT, type: "choice", default: "all", description: "Print trailing commas wherever possible when multi-line.", choices: [{ value: "all", description: "Trailing commas wherever possible (including function arguments)." }, { value: "es5", description: "Trailing commas where valid in ES5 (objects, arrays, etc.)" }, { value: "none", description: "No trailing commas." }] }, singleAttributePerLine: common_options_evaluate_default.singleAttributePerLine };
|
|
21052
21059
|
var options_default4 = options4;
|
|
@@ -21078,7 +21085,7 @@ function createParsersAndPrinters(modules) {
|
|
|
21078
21085
|
}
|
|
21079
21086
|
var options7 = { ...options_default, ...options_default2, ...options_default3, ...options_default4, ...options_default5, ...options_default6 };
|
|
21080
21087
|
var languages = [...languages_evaluate_default, ...languages_evaluate_default2, ...languages_evaluate_default3, ...languages_evaluate_default4, ...languages_evaluate_default5, ...languages_evaluate_default6, ...languages_evaluate_default7, ...languages_evaluate_default8];
|
|
21081
|
-
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-
|
|
21088
|
+
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-6J2XFAF2.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-FXKB67LX.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-P3PJ67NT.js'), parsers: ["babel", "babel-flow", "babel-ts", "__js_expression", "__ts_expression", "__vue_expression", "__vue_ts_expression", "__vue_event_binding", "__vue_ts_event_binding", "__babel_estree", "json", "json5", "jsonc", "json-stringify"] }, { importPlugin: () => import('./estree-YZZ76ZCZ.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-FLMB2WRS.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-QTYNZR7I.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-RJWZIGAD.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-CASQPPRX.js'), parsers: ["html", "angular", "vue", "lwc"], printers: ["html"] }, { importPlugin: () => import('./markdown-SVGJ3QZI.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-YDXWEWLV.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-BBOQTN3X.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-JGKMLQMS.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-C7WVEV2M.js'), parsers: ["yaml"], printers: ["yaml"] }]);
|
|
21082
21089
|
function loadBuiltinPlugins() {
|
|
21083
21090
|
return [builtin_plugins_proxy_exports];
|
|
21084
21091
|
}
|
|
@@ -21408,12 +21415,12 @@ async function generatePerActionDataFiles({
|
|
|
21408
21415
|
ontology: enhancedOntology,
|
|
21409
21416
|
forInternalUse = false
|
|
21410
21417
|
}) {
|
|
21411
|
-
const outDir =
|
|
21418
|
+
const outDir = path19__default.join(rootOutDir, "ontology", "actions");
|
|
21412
21419
|
await fs9.mkdir(outDir, {
|
|
21413
21420
|
recursive: true
|
|
21414
21421
|
});
|
|
21415
21422
|
await Promise.all(Object.values(enhancedOntology.actionTypes).map(async (action) => {
|
|
21416
|
-
const currentFilePath =
|
|
21423
|
+
const currentFilePath = path19__default.join("ontology", "actions", `${action.shortApiName}.ts`);
|
|
21417
21424
|
const uniqueApiNamesArray = extractReferencedObjectsFromAction(action.raw);
|
|
21418
21425
|
const uniqueApiNames = new Set(uniqueApiNamesArray);
|
|
21419
21426
|
stringUnionFrom([...uniqueApiNames]);
|
|
@@ -21430,7 +21437,7 @@ async function generatePerActionDataFiles({
|
|
|
21430
21437
|
${entries.map(([key2, value]) => {
|
|
21431
21438
|
return `"${key2}": {
|
|
21432
21439
|
${stringify(value, {
|
|
21433
|
-
description: (value2, d) => value2 ? d(value2) :
|
|
21440
|
+
description: (value2, d) => value2 ? d(value2) : void 0,
|
|
21434
21441
|
// trick to remove undefineds
|
|
21435
21442
|
type: (type2) => {
|
|
21436
21443
|
if (typeof type2 === "string") {
|
|
@@ -21447,7 +21454,7 @@ async function generatePerActionDataFiles({
|
|
|
21447
21454
|
} else if (type2.type === "struct") {
|
|
21448
21455
|
return `ActionMetadata.DataType.Struct<${JSON.stringify(type2.struct)}>`;
|
|
21449
21456
|
}
|
|
21450
|
-
return
|
|
21457
|
+
return void 0;
|
|
21451
21458
|
}
|
|
21452
21459
|
})}
|
|
21453
21460
|
}`;
|
|
@@ -21498,8 +21505,8 @@ async function generatePerActionDataFiles({
|
|
|
21498
21505
|
}
|
|
21499
21506
|
}
|
|
21500
21507
|
}
|
|
21501
|
-
const imports = getObjectImports(referencedObjectDefs,
|
|
21502
|
-
await fs9.writeFile(
|
|
21508
|
+
const imports = getObjectImports(referencedObjectDefs, void 0, currentFilePath, true);
|
|
21509
|
+
await fs9.writeFile(path19__default.join(rootOutDir, currentFilePath), await formatTs(`
|
|
21503
21510
|
import type {
|
|
21504
21511
|
ActionDefinition,
|
|
21505
21512
|
ActionMetadata,
|
|
@@ -21539,9 +21546,9 @@ async function generatePerActionDataFiles({
|
|
|
21539
21546
|
// Represents a fqn of the action
|
|
21540
21547
|
export interface Signatures {
|
|
21541
21548
|
${getDescriptionIfPresent(action.description)}
|
|
21542
|
-
applyAction<
|
|
21549
|
+
applyAction<OP extends ApplyActionOptions>(args: ${action.paramsIdentifier}, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
|
|
21543
21550
|
|
|
21544
|
-
batchApplyAction<
|
|
21551
|
+
batchApplyAction<OP extends ApplyBatchActionOptions>(args: ReadonlyArray<${action.paramsIdentifier}>, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
|
|
21545
21552
|
}
|
|
21546
21553
|
|
|
21547
21554
|
}
|
|
@@ -21558,12 +21565,12 @@ async function generatePerActionDataFiles({
|
|
|
21558
21565
|
signatures: ${action.shortApiName}.Signatures;
|
|
21559
21566
|
},
|
|
21560
21567
|
${stringify(fullActionDef, {
|
|
21561
|
-
"description": () =>
|
|
21562
|
-
"displayName": () =>
|
|
21563
|
-
"modifiedEntities": () =>
|
|
21564
|
-
"parameters": () =>
|
|
21565
|
-
"rid": () =>
|
|
21566
|
-
"status": () =>
|
|
21568
|
+
"description": () => void 0,
|
|
21569
|
+
"displayName": () => void 0,
|
|
21570
|
+
"modifiedEntities": () => void 0,
|
|
21571
|
+
"parameters": () => void 0,
|
|
21572
|
+
"rid": () => void 0,
|
|
21573
|
+
"status": () => void 0
|
|
21567
21574
|
})}
|
|
21568
21575
|
osdkMetadata: typeof $osdkMetadata;
|
|
21569
21576
|
}
|
|
@@ -21574,12 +21581,12 @@ async function generatePerActionDataFiles({
|
|
|
21574
21581
|
return ` export const ${action.shortApiName}: ${action.shortApiName} =
|
|
21575
21582
|
{
|
|
21576
21583
|
${stringify(fullActionDef, {
|
|
21577
|
-
"description": () =>
|
|
21578
|
-
"displayName": () =>
|
|
21579
|
-
"modifiedEntities": () =>
|
|
21580
|
-
"parameters": () =>
|
|
21581
|
-
"rid": () =>
|
|
21582
|
-
"status": () =>
|
|
21584
|
+
"description": () => void 0,
|
|
21585
|
+
"displayName": () => void 0,
|
|
21586
|
+
"modifiedEntities": () => void 0,
|
|
21587
|
+
"parameters": () => void 0,
|
|
21588
|
+
"rid": () => void 0,
|
|
21589
|
+
"status": () => void 0
|
|
21583
21590
|
})},
|
|
21584
21591
|
osdkMetadata: $osdkMetadata
|
|
21585
21592
|
}
|
|
@@ -21587,8 +21594,8 @@ async function generatePerActionDataFiles({
|
|
|
21587
21594
|
}()}
|
|
21588
21595
|
`));
|
|
21589
21596
|
}));
|
|
21590
|
-
const indexFileRelPath =
|
|
21591
|
-
await fs9.writeFile(
|
|
21597
|
+
const indexFileRelPath = path19__default.join("ontology", "actions.ts");
|
|
21598
|
+
await fs9.writeFile(path19__default.join(rootOutDir, indexFileRelPath), await formatTs(`
|
|
21592
21599
|
${Object.values(enhancedOntology.actionTypes).map((action) => {
|
|
21593
21600
|
const exportConstLine = `export {${action.shortApiName} } from "${action.getImportPathRelTo(indexFileRelPath)}";`;
|
|
21594
21601
|
return exportConstLine;
|
|
@@ -21633,7 +21640,7 @@ function extractReferencedObjectsFromActionParameter(actionParameter) {
|
|
|
21633
21640
|
case "integer":
|
|
21634
21641
|
case "long":
|
|
21635
21642
|
case "timestamp":
|
|
21636
|
-
return
|
|
21643
|
+
return void 0;
|
|
21637
21644
|
}
|
|
21638
21645
|
}
|
|
21639
21646
|
|
|
@@ -21821,9 +21828,9 @@ function createProps(type2, identifier, strict) {
|
|
|
21821
21828
|
return `export interface ${identifier} {
|
|
21822
21829
|
${stringify(definition.properties, {
|
|
21823
21830
|
"*": (propertyDefinition, _, apiName) => {
|
|
21824
|
-
return [
|
|
21825
|
-
|
|
21826
|
-
""
|
|
21831
|
+
return [`${propertyJsdoc(propertyDefinition, {
|
|
21832
|
+
apiName
|
|
21833
|
+
})}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` : ""}`];
|
|
21827
21834
|
}
|
|
21828
21835
|
})}
|
|
21829
21836
|
}`;
|
|
@@ -21910,9 +21917,9 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
|
|
|
21910
21917
|
}
|
|
21911
21918
|
for (const apiName of Object.keys(parent.properties)) {
|
|
21912
21919
|
if (definition.properties[apiName] != null) {
|
|
21913
|
-
!(0, import_fast_deep_equal.default)(definition.properties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Interface ${definition.apiName} redefines property '${apiName}' from parent '${parent.apiName}' but the properties do not match`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() :
|
|
21920
|
+
!(0, import_fast_deep_equal.default)(definition.properties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Interface ${definition.apiName} redefines property '${apiName}' from parent '${parent.apiName}' but the properties do not match`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() : void 0;
|
|
21914
21921
|
} else if (mergedProperties[apiName] != null) {
|
|
21915
|
-
!(0, import_fast_deep_equal.default)(mergedProperties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Some interface defines a conflicting property '${apiName}' that does not match property from parent '${parent.apiName}'`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() :
|
|
21922
|
+
!(0, import_fast_deep_equal.default)(mergedProperties[apiName], parent.properties[apiName]) ? process.env.NODE_ENV !== "production" ? process.env.NODE_ENV !== "production" ? invariant(false, `Some interface defines a conflicting property '${apiName}' that does not match property from parent '${parent.apiName}'`) : invariant() : process.env.NODE_ENV !== "production" ? invariant() : invariant() : void 0;
|
|
21916
21923
|
}
|
|
21917
21924
|
mergedProperties[apiName] = parent.properties[apiName];
|
|
21918
21925
|
}
|
|
@@ -21995,13 +22002,13 @@ async function generatePerInterfaceDataFiles({
|
|
|
21995
22002
|
importExt,
|
|
21996
22003
|
forInternalUse
|
|
21997
22004
|
}) {
|
|
21998
|
-
const interfacesDir =
|
|
22005
|
+
const interfacesDir = path19__default.join(outDir, "ontology", "interfaces");
|
|
21999
22006
|
await fs9.mkdir(interfacesDir, {
|
|
22000
22007
|
recursive: true
|
|
22001
22008
|
});
|
|
22002
22009
|
for (const obj of Object.values(ontology.interfaceTypes)) {
|
|
22003
22010
|
if (obj instanceof ForeignType) continue;
|
|
22004
|
-
await fs9.writeFile(
|
|
22011
|
+
await fs9.writeFile(path19__default.join(interfacesDir, `${obj.shortApiName}.ts`), await formatTs(`
|
|
22005
22012
|
import type { PropertyDef as $PropertyDef } from "${forInternalUse ? "@osdk/api" : "@osdk/client"}";
|
|
22006
22013
|
import { $osdkMetadata } from "../../OntologyMetadata${importExt}";
|
|
22007
22014
|
${__UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(obj, ontology, true, forInternalUse)}
|
|
@@ -22022,13 +22029,13 @@ async function generatePerObjectDataFiles(ctx) {
|
|
|
22022
22029
|
ontology,
|
|
22023
22030
|
importExt
|
|
22024
22031
|
} = ctx;
|
|
22025
|
-
await fs9.mkdir(
|
|
22032
|
+
await fs9.mkdir(path19__default.join(outDir, "ontology", "objects"), {
|
|
22026
22033
|
recursive: true
|
|
22027
22034
|
});
|
|
22028
22035
|
for (const obj of Object.values(ontology.objectTypes)) {
|
|
22029
22036
|
if (obj instanceof ForeignType) continue;
|
|
22030
|
-
const relPath =
|
|
22031
|
-
const outFilePath =
|
|
22037
|
+
const relPath = path19__default.join(".", "ontology", `objects`, `${obj.shortApiName}.ts`);
|
|
22038
|
+
const outFilePath = path19__default.join(outDir, relPath);
|
|
22032
22039
|
await fs9.writeFile(outFilePath, await formatTs(`
|
|
22033
22040
|
import type { PropertyDef as $PropertyDef } from "${ctx.forInternalUse ? "@osdk/api" : "@osdk/client"}";
|
|
22034
22041
|
import { $osdkMetadata } from "../../OntologyMetadata${importExt}";
|
|
@@ -22036,7 +22043,7 @@ async function generatePerObjectDataFiles(ctx) {
|
|
|
22036
22043
|
${wireObjectTypeV2ToSdkObjectConstV2(obj.raw, ctx, relPath)}
|
|
22037
22044
|
`));
|
|
22038
22045
|
}
|
|
22039
|
-
await fs9.writeFile(
|
|
22046
|
+
await fs9.writeFile(path19__default.join(outDir, "ontology", "objects.ts"), await formatTs(`
|
|
22040
22047
|
${Object.values(ctx.ontology.objectTypes).filter((o) => o instanceof EnhancedObjectType).map((objType) => `export {${objType.shortApiName}} from "./objects/${objType.shortApiName}${importExt}";`).join("\n")}
|
|
22041
22048
|
${Object.keys(ontology.objectTypes).length === 0 ? "export {};" : ""}
|
|
22042
22049
|
`));
|
|
@@ -22072,6 +22079,10 @@ function getObjectTypesFromQueryDataType(dataType, types) {
|
|
|
22072
22079
|
getObjectTypesFromQueryDataType(type2, types);
|
|
22073
22080
|
}
|
|
22074
22081
|
return;
|
|
22082
|
+
case "entrySet":
|
|
22083
|
+
getObjectTypesFromQueryDataType(dataType.keyType, types);
|
|
22084
|
+
getObjectTypesFromQueryDataType(dataType.valueType, types);
|
|
22085
|
+
return;
|
|
22075
22086
|
case "attachment":
|
|
22076
22087
|
case "boolean":
|
|
22077
22088
|
case "date":
|
|
@@ -22084,6 +22095,7 @@ function getObjectTypesFromQueryDataType(dataType, types) {
|
|
|
22084
22095
|
case "threeDimensionalAggregation":
|
|
22085
22096
|
case "timestamp":
|
|
22086
22097
|
case "twoDimensionalAggregation":
|
|
22098
|
+
case "entrySet":
|
|
22087
22099
|
case "unsupported":
|
|
22088
22100
|
return;
|
|
22089
22101
|
default:
|
|
@@ -22111,8 +22123,8 @@ async function generatePerQueryDataFilesV2({
|
|
|
22111
22123
|
importExt = "",
|
|
22112
22124
|
forInternalUse = false
|
|
22113
22125
|
}) {
|
|
22114
|
-
const relOutDir =
|
|
22115
|
-
const outDir =
|
|
22126
|
+
const relOutDir = path19__default.join(".", "ontology", "queries");
|
|
22127
|
+
const outDir = path19__default.join(rootOutDir, "ontology", "queries");
|
|
22116
22128
|
await fs9.mkdir(outDir, {
|
|
22117
22129
|
recursive: true
|
|
22118
22130
|
});
|
|
@@ -22125,15 +22137,15 @@ async function generatePerQueryDataFilesV2({
|
|
|
22125
22137
|
`));
|
|
22126
22138
|
}
|
|
22127
22139
|
async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ontology, forInternalUse) {
|
|
22128
|
-
const relFilePath =
|
|
22140
|
+
const relFilePath = path19__default.join(relOutDir, `${query.shortApiName}.ts`);
|
|
22129
22141
|
const objectTypes = getObjectTypeApiNamesFromQuery(query);
|
|
22130
22142
|
const objectTypeObjects = new Set(objectTypes.map((o) => ontology.requireObjectType(o)));
|
|
22131
22143
|
const importObjects = getObjectImports(objectTypeObjects, "", relFilePath, true);
|
|
22132
22144
|
const baseProps = deleteUndefineds(wireQueryTypeV2ToSdkQueryDefinitionNoParams(query.raw));
|
|
22133
22145
|
const outputBase = deleteUndefineds(wireQueryDataTypeToQueryDataTypeDefinition(query.output));
|
|
22134
22146
|
objectTypes.length > 0 ? objectTypes.map((apiNameObj) => `"${apiNameObj}"`).join("|") : "never";
|
|
22135
|
-
await fs9.writeFile(
|
|
22136
|
-
import type { QueryDefinition
|
|
22147
|
+
await fs9.writeFile(path19__default.join(outDir, `${query.shortApiName}.ts`), await formatTs(`
|
|
22148
|
+
import type { ObjectSpecifier, QueryDefinition, QueryParam, QueryResult, VersionBound} from "${forInternalUse ? "@osdk/api" : "@osdk/client"}";
|
|
22137
22149
|
import type { $ExpectedClientVersion } from "../../OntologyMetadata${importExt}";
|
|
22138
22150
|
import { $osdkMetadata} from "../../OntologyMetadata${importExt}";
|
|
22139
22151
|
${importObjects}
|
|
@@ -22185,9 +22197,9 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22185
22197
|
signature: ${query.shortApiName}.Signature;
|
|
22186
22198
|
},
|
|
22187
22199
|
${stringify(baseProps, {
|
|
22188
|
-
"description": () =>
|
|
22189
|
-
"displayName": () =>
|
|
22190
|
-
"rid": () =>
|
|
22200
|
+
"description": () => void 0,
|
|
22201
|
+
"displayName": () => void 0,
|
|
22202
|
+
"rid": () => void 0
|
|
22191
22203
|
})},
|
|
22192
22204
|
osdkMetadata: typeof $osdkMetadata;
|
|
22193
22205
|
}
|
|
@@ -22195,9 +22207,9 @@ async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ont
|
|
|
22195
22207
|
|
|
22196
22208
|
export const ${query.shortApiName}: ${query.definitionIdentifier} = {
|
|
22197
22209
|
${stringify(baseProps, {
|
|
22198
|
-
"description": () =>
|
|
22199
|
-
"displayName": () =>
|
|
22200
|
-
"rid": () =>
|
|
22210
|
+
"description": () => void 0,
|
|
22211
|
+
"displayName": () => void 0,
|
|
22212
|
+
"rid": () => void 0
|
|
22201
22213
|
})},
|
|
22202
22214
|
osdkMetadata: $osdkMetadata
|
|
22203
22215
|
};
|
|
@@ -22237,7 +22249,7 @@ function queryParamJsDoc(param, {
|
|
|
22237
22249
|
`;
|
|
22238
22250
|
return ret;
|
|
22239
22251
|
}
|
|
22240
|
-
function getQueryParamType(enhancedOntology, input, type2) {
|
|
22252
|
+
function getQueryParamType(enhancedOntology, input, type2, isMapKey = false) {
|
|
22241
22253
|
let inner = `unknown /* ${input.type} */`;
|
|
22242
22254
|
switch (input.type) {
|
|
22243
22255
|
case "date":
|
|
@@ -22271,6 +22283,10 @@ function getQueryParamType(enhancedOntology, input, type2) {
|
|
|
22271
22283
|
"${input.threeDimensionalAggregation.valueType.valueType}">`;
|
|
22272
22284
|
break;
|
|
22273
22285
|
case "object":
|
|
22286
|
+
if (isMapKey) {
|
|
22287
|
+
inner = `ObjectSpecifier<${enhancedOntology.requireObjectType(input.object).getImportedDefinitionIdentifier(true)}>`;
|
|
22288
|
+
break;
|
|
22289
|
+
}
|
|
22274
22290
|
inner = `Query${type2}.ObjectType<${enhancedOntology.requireObjectType(input.object).getImportedDefinitionIdentifier(true)}>`;
|
|
22275
22291
|
break;
|
|
22276
22292
|
case "objectSet":
|
|
@@ -22282,6 +22298,8 @@ function getQueryParamType(enhancedOntology, input, type2) {
|
|
|
22282
22298
|
case "union":
|
|
22283
22299
|
inner = input.union.map((u) => getQueryParamType(enhancedOntology, u, type2)).join(" | ");
|
|
22284
22300
|
break;
|
|
22301
|
+
case "map":
|
|
22302
|
+
inner = `Partial<Record<${getQueryParamType(enhancedOntology, input.keyType, type2, true)}, ${getQueryParamType(enhancedOntology, input.valueType, type2)}>>`;
|
|
22285
22303
|
}
|
|
22286
22304
|
if (input.multiplicity && type2 === "Param") {
|
|
22287
22305
|
return `ReadonlyArray<${inner}>`;
|
|
@@ -22300,7 +22318,7 @@ async function generateRootIndexTsFile({
|
|
|
22300
22318
|
ontologyApiNamespace,
|
|
22301
22319
|
ontology
|
|
22302
22320
|
}) {
|
|
22303
|
-
await fs9.writeFile(
|
|
22321
|
+
await fs9.writeFile(path19__default.join(outDir, "index.ts"), await formatTs(`export {${helper(ontology.actionTypes)}} from "./ontology/actions${importExt}";
|
|
22304
22322
|
export * as $Actions from "./ontology/actions${importExt}";
|
|
22305
22323
|
export {${helper(ontology.interfaceTypes)}} from "./ontology/interfaces${importExt}";
|
|
22306
22324
|
export * as $Interfaces from "./ontology/interfaces${importExt}";
|
|
@@ -22354,24 +22372,24 @@ async function generateClientSdkPackage(packageName, packageVersion, sdkVersion,
|
|
|
22354
22372
|
throw new Error("This generator version does not support generating v1 sdks");
|
|
22355
22373
|
}
|
|
22356
22374
|
for (const packageType of ["module", "commonjs"]) {
|
|
22357
|
-
const outDir =
|
|
22375
|
+
const outDir = path19.join(baseOutDir, "dist", packageType);
|
|
22358
22376
|
await generateClientSdkVersionTwoPointZero(ontology, `typescript-sdk/${packageVersion} osdk-cli/${cliVersion}`, minimalFs, outDir, packageType, externalObjects, externalInterfaces);
|
|
22359
22377
|
await fs8.promises.mkdir(outDir, {
|
|
22360
22378
|
recursive: true
|
|
22361
22379
|
});
|
|
22362
|
-
await writeJson(minimalFs,
|
|
22380
|
+
await writeJson(minimalFs, path19.join(outDir, "package.json"), {
|
|
22363
22381
|
type: packageType
|
|
22364
22382
|
});
|
|
22365
|
-
await writeJson(minimalFs,
|
|
22383
|
+
await writeJson(minimalFs, path19.join(outDir, `tsconfig.json`), {
|
|
22366
22384
|
compilerOptions: getTsCompilerOptions(packageType)
|
|
22367
22385
|
});
|
|
22368
22386
|
}
|
|
22369
|
-
await writeJson(minimalFs,
|
|
22370
|
-
await minimalFs.mkdir(
|
|
22387
|
+
await writeJson(minimalFs, path19.join(baseOutDir, "package.json"), getPackageJsonContents(packageName, packageVersion, dependencyVersions));
|
|
22388
|
+
await minimalFs.mkdir(path19.join(baseOutDir, "ontology"), {
|
|
22371
22389
|
recursive: true
|
|
22372
22390
|
});
|
|
22373
|
-
await minimalFs.writeFile(
|
|
22374
|
-
await minimalFs.writeFile(
|
|
22391
|
+
await minimalFs.writeFile(path19.join(baseOutDir, "ontology", "objects.js"), `module.exports = require("../../dist/module/ontology/objects")`);
|
|
22392
|
+
await minimalFs.writeFile(path19.join(baseOutDir, "ontology", "objects.d.ts"), `export * from "../dist/module/ontology/objects"`);
|
|
22375
22393
|
}
|
|
22376
22394
|
function getTsCompilerOptions(packageType) {
|
|
22377
22395
|
const commonTsconfig = {
|
|
@@ -22450,7 +22468,7 @@ function getPackageJsonContents(name, version, dependencyVersions) {
|
|
|
22450
22468
|
};
|
|
22451
22469
|
}
|
|
22452
22470
|
async function writeJson(minimalFs, filePath, body) {
|
|
22453
|
-
return void await minimalFs.writeFile(filePath, JSON.stringify(body,
|
|
22471
|
+
return void await minimalFs.writeFile(filePath, JSON.stringify(body, void 0, 2) + "\n");
|
|
22454
22472
|
}
|
|
22455
22473
|
|
|
22456
22474
|
// ../shared.client.impl/build/esm/index.js
|
|
@@ -22485,7 +22503,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
|
|
|
22485
22503
|
|
|
22486
22504
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
22487
22505
|
var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
|
|
22488
|
-
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.26.0-beta.
|
|
22506
|
+
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.26.0-beta.20"}`;
|
|
22489
22507
|
async function handleGenerate(args) {
|
|
22490
22508
|
let success = false;
|
|
22491
22509
|
if (args.ontologyPath) {
|
|
@@ -22559,7 +22577,7 @@ async function generateFromStack(args) {
|
|
|
22559
22577
|
return {
|
|
22560
22578
|
...x,
|
|
22561
22579
|
extendsInterfaces: [...x.extendsInterfaces].sort(),
|
|
22562
|
-
properties: sortKeys2(x.properties)
|
|
22580
|
+
properties: sortKeys2(x.allProperties ?? x.properties)
|
|
22563
22581
|
};
|
|
22564
22582
|
});
|
|
22565
22583
|
ontology.queryTypes = sortKeys2(ontology.queryTypes, (x) => {
|
|
@@ -22621,7 +22639,7 @@ async function generateClientSdk(ontology, args) {
|
|
|
22621
22639
|
}
|
|
22622
22640
|
return true;
|
|
22623
22641
|
}
|
|
22624
|
-
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.26.0-beta.
|
|
22642
|
+
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.26.0-beta.20", args.externalObjects, args.externalInterfaces);
|
|
22625
22643
|
return true;
|
|
22626
22644
|
} catch (e) {
|
|
22627
22645
|
consola.error("OSDK generation failed", e.message, e.stack);
|
|
@@ -22648,15 +22666,15 @@ async function getDependencyVersions() {
|
|
|
22648
22666
|
typescriptVersion,
|
|
22649
22667
|
tslibVersion,
|
|
22650
22668
|
areTheTypesWrongVersion,
|
|
22651
|
-
osdkApiVersion: `^${"2.2.0-beta.
|
|
22652
|
-
osdkClientVersion: `^${"2.2.0-beta.
|
|
22669
|
+
osdkApiVersion: `^${"2.2.0-beta.20"}`,
|
|
22670
|
+
osdkClientVersion: `^${"2.2.0-beta.20"}`,
|
|
22653
22671
|
osdkLegacyClientVersion
|
|
22654
22672
|
};
|
|
22655
22673
|
}
|
|
22656
22674
|
var cachedOurPackageJsonPath;
|
|
22657
22675
|
async function getOurPackageJsonPath() {
|
|
22658
22676
|
if (cachedOurPackageJsonPath) return cachedOurPackageJsonPath;
|
|
22659
|
-
const __dir =
|
|
22677
|
+
const __dir = path19.dirname(fileURLToPath$1(import.meta.url));
|
|
22660
22678
|
const ourPackageJsonPath = await findUp("package.json", {
|
|
22661
22679
|
cwd: __dir
|
|
22662
22680
|
});
|
|
@@ -22688,5 +22706,5 @@ function createNormalFs() {
|
|
|
22688
22706
|
}
|
|
22689
22707
|
|
|
22690
22708
|
export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
|
|
22691
|
-
//# sourceMappingURL=handleGenerate-
|
|
22692
|
-
//# sourceMappingURL=handleGenerate-
|
|
22709
|
+
//# sourceMappingURL=handleGenerate-BGRQWN5E.js.map
|
|
22710
|
+
//# sourceMappingURL=handleGenerate-BGRQWN5E.js.map
|