@shopify/cli 3.74.1 → 3.75.1
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/dist/assets/hydrogen/starter/CHANGELOG.md +99 -0
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +2 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +12 -2
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -0
- package/dist/assets/hydrogen/starter/package.json +10 -10
- package/dist/assets/hydrogen/starter/tsconfig.json +1 -1
- package/dist/assets/hydrogen/starter/vite.config.ts +1 -0
- package/dist/assets/hydrogen/tailwind/package.json +1 -1
- package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
- package/dist/assets/hydrogen/vite/package.json +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -0
- package/dist/{chunk-Z4WWAZEY.js → chunk-245U5NQK.js} +4 -4
- package/dist/{chunk-5L3V3XN7.js → chunk-2TEPYAPA.js} +4 -4
- package/dist/{chunk-CKTTNTVQ.js → chunk-4EZQAZ74.js} +7 -7
- package/dist/{chunk-4VWVAF7H.js → chunk-4MJNU2QF.js} +3 -3
- package/dist/{chunk-C2KCEZK7.js → chunk-5CJ7VYH7.js} +2 -2
- package/dist/{chunk-XCOZPDGL.js → chunk-63Z76ANM.js} +2 -2
- package/dist/{chunk-7HJY7CZB.js → chunk-7CQUOSVH.js} +6 -6
- package/dist/{chunk-POKIPHUC.js → chunk-7HSAZRHC.js} +3 -3
- package/dist/{chunk-7DCZ4PEB.js → chunk-7OOACYZ4.js} +3 -3
- package/dist/{chunk-6N46HJWX.js → chunk-CV5T4LOB.js} +3 -3
- package/dist/{chunk-IVI5VH2V.js → chunk-DXX7H2IH.js} +2 -2
- package/dist/{chunk-S7L4E7JJ.js → chunk-FGC2O2I5.js} +6 -6
- package/dist/{chunk-X2GSBUQM.js → chunk-FTFTFTDU.js} +4 -4
- package/dist/{chunk-P6UIGUUZ.js → chunk-H3VLXETQ.js} +2 -2
- package/dist/{chunk-H6V3ZAMP.js → chunk-IEEXWVOL.js} +2 -2
- package/dist/{chunk-BGCAU2LM.js → chunk-IHA7JJN4.js} +2 -2
- package/dist/{chunk-GSDR4V4C.js → chunk-IMWIHPKY.js} +3 -3
- package/dist/{chunk-QVSOZYZT.js → chunk-IRNTKQVQ.js} +3 -3
- package/dist/{chunk-RAAPXB5S.js → chunk-JS6RLMBK.js} +3 -3
- package/dist/{chunk-DH65BORI.js → chunk-KR2ZEBN3.js} +5 -5
- package/dist/{chunk-DDHWVLT7.js → chunk-LJHVF5TJ.js} +9970 -9968
- package/dist/{chunk-5CLGH5PH.js → chunk-MP5RLDFN.js} +15 -8
- package/dist/{chunk-PLIMIFMY.js → chunk-MTPFCNYB.js} +3 -3
- package/dist/{chunk-POBZPEHK.js → chunk-NA34VFTA.js} +430 -207
- package/dist/{chunk-J673ZU5S.js → chunk-ORGKANED.js} +3 -3
- package/dist/{chunk-LOKVDI3S.js → chunk-P654UJXI.js} +15 -14
- package/dist/{chunk-FKB56THZ.js → chunk-PB3V422W.js} +5 -5
- package/dist/{chunk-AQFGEPN5.js → chunk-PDZHLRZ2.js} +8 -8
- package/dist/{chunk-VKUWRIWE.js → chunk-S3NMVYAF.js} +4 -4
- package/dist/{chunk-DNKTPUYV.js → chunk-SXT3JFLA.js} +4 -4
- package/dist/{chunk-6J2OGZ3N.js → chunk-U673QDO3.js} +2 -2
- package/dist/{chunk-MCL7WC6G.js → chunk-UEEQNXRY.js} +3 -3
- package/dist/{chunk-L5L7GDSR.js → chunk-UYZDNGSJ.js} +2 -2
- package/dist/{chunk-WYNFQEFV.js → chunk-VSC4NMYT.js} +3 -3
- package/dist/{chunk-CDQA3SST.js → chunk-VSKRQ3JT.js} +33 -29
- package/dist/{chunk-AKL7T64Q.js → chunk-Y53XECL6.js} +34 -34
- package/dist/{chunk-CGXWFHRF.js → chunk-Y5RMFD7I.js} +3 -3
- package/dist/{chunk-TLXMY7OM.js → chunk-YEOP3EMX.js} +94 -17
- package/dist/{chunk-TKPN642B.js → chunk-ZJSUUIVI.js} +14 -10
- package/dist/cli/commands/auth/logout.js +14 -15
- package/dist/cli/commands/auth/logout.test.js +16 -17
- package/dist/cli/commands/cache/clear.js +13 -14
- package/dist/cli/commands/debug/command-flags.js +13 -14
- package/dist/cli/commands/docs/generate.js +13 -14
- package/dist/cli/commands/docs/generate.test.js +14 -15
- package/dist/cli/commands/help.js +13 -14
- package/dist/cli/commands/kitchen-sink/async.js +14 -15
- package/dist/cli/commands/kitchen-sink/async.test.js +15 -16
- package/dist/cli/commands/kitchen-sink/index.js +16 -17
- package/dist/cli/commands/kitchen-sink/index.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/prompts.js +14 -15
- package/dist/cli/commands/kitchen-sink/prompts.test.js +15 -16
- package/dist/cli/commands/kitchen-sink/static.js +14 -15
- package/dist/cli/commands/kitchen-sink/static.test.js +15 -16
- package/dist/cli/commands/notifications/generate.js +14 -15
- package/dist/cli/commands/notifications/list.js +14 -15
- package/dist/cli/commands/search.js +14 -15
- package/dist/cli/commands/upgrade.js +14 -15
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +14 -15
- package/dist/cli/commands/version.test.js +15 -16
- package/dist/cli/services/commands/notifications.js +8 -9
- package/dist/cli/services/commands/search.js +4 -5
- package/dist/cli/services/commands/search.test.js +5 -6
- package/dist/cli/services/commands/version.js +5 -6
- package/dist/cli/services/commands/version.test.js +7 -8
- package/dist/cli/services/kitchen-sink/async.js +4 -5
- package/dist/cli/services/kitchen-sink/prompts.js +4 -5
- package/dist/cli/services/kitchen-sink/static.js +4 -5
- package/dist/cli/services/upgrade.js +5 -6
- package/dist/cli/services/upgrade.test.js +8 -9
- package/dist/{custom-oclif-loader-YCFOTKOV.js → custom-oclif-loader-5N4JRQ46.js} +4 -5
- package/dist/{del-FBU5JYXS.js → del-2SYBVRHB.js} +2 -2
- package/dist/devtools-BA4WST2D.js +72 -0
- package/dist/{error-handler-S6ZLT6DF.js → error-handler-VQHDL26P.js} +11 -12
- package/dist/hooks/postrun.js +9 -10
- package/dist/hooks/prerun.js +9 -10
- package/dist/index.js +28956 -12558
- package/dist/{lib-E2DSNKUX.js → lib-SGEWXU7Z.js} +3 -3
- package/dist/{local-62JTGJVG.js → local-NKJECUJ3.js} +6 -5
- package/dist/{magic-string.es-PJMYOE6F.js → magic-string.es-BSVDQOZI.js} +32 -20
- package/dist/{morph-ACVSDUS7.js → morph-BTANDGVW.js} +9 -9
- package/dist/{node-M7KO76D7.js → node-RIZFDTN7.js} +17 -18
- package/dist/{node-package-manager-RXCBZVWU.js → node-package-manager-EOSRJYAN.js} +5 -6
- package/dist/{npa-JAX2F6CO.js → npa-E675GQOI.js} +123 -33
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-CEJ6R3AV.js → ui-II7LUT5P.js} +4 -5
- package/dist/{workerd-WLX2SY5E.js → workerd-SKOXR5SE.js} +16 -17
- package/oclif.manifest.json +33 -62
- package/package.json +11 -10
- package/dist/chunk-CFIKVUNW.js +0 -45
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_cjs_shims
|
|
3
3
|
} from "./chunk-PKR7KJ6P.js";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
5
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
6
6
|
init_cjs_shims();
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
|
|
@@ -94,7 +94,7 @@ function portNumbers(from, to) {
|
|
|
94
94
|
}(from, to);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
97
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
98
98
|
function findPort(portPreference, range = 100) {
|
|
99
99
|
return getPorts({
|
|
100
100
|
port: portNumbers(portPreference, portPreference + range)
|
|
@@ -104,4 +104,4 @@ function findPort(portPreference, range = 100) {
|
|
|
104
104
|
export {
|
|
105
105
|
findPort
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-ORGKANED.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
platformAndArch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H3VLXETQ.js";
|
|
4
4
|
import {
|
|
5
5
|
allAPIs,
|
|
6
6
|
buildHeaders,
|
|
7
7
|
shopifyFetch,
|
|
8
8
|
z
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LJHVF5TJ.js";
|
|
10
10
|
import {
|
|
11
11
|
cacheRetrieveOrRepopulate,
|
|
12
12
|
getPackageManager,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
packageManagerFromUserAgent,
|
|
15
15
|
removeSession,
|
|
16
16
|
setSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DXX7H2IH.js";
|
|
18
18
|
import {
|
|
19
19
|
AbortError,
|
|
20
20
|
BugError,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
FatalError,
|
|
23
23
|
addPublicMetadata,
|
|
24
24
|
addSensitiveMetadata,
|
|
25
|
+
blockPartnersAccess,
|
|
25
26
|
ciPlatform,
|
|
26
27
|
cloudEnvironment,
|
|
27
28
|
currentProcessIsGlobal,
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
spinFqdn,
|
|
49
50
|
themeKitAccessDomain,
|
|
50
51
|
themeToken
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-YEOP3EMX.js";
|
|
52
53
|
import {
|
|
53
54
|
cwd
|
|
54
55
|
} from "./chunk-57Q6OQG4.js";
|
|
@@ -320,6 +321,8 @@ var DevServer = class {
|
|
|
320
321
|
// ../cli-kit/dist/public/node/context/fqdn.js
|
|
321
322
|
var CouldntObtainPartnersSpinFQDNError = new AbortError("Couldn't obtain the Spin FQDN for Partners when the CLI is not running from a Spin environment."), CouldntObtainIdentitySpinFQDNError = new AbortError("Couldn't obtain the Spin FQDN for Identity when the CLI is not running from a Spin environment."), CouldntObtainShopifySpinFQDNError = new AbortError("Couldn't obtain the Spin FQDN for Shopify when the CLI is not running from a Spin environment."), NotProvidedStoreFQDNError = new AbortError("Couldn't obtain the Shopify FQDN because the store FQDN was not provided.");
|
|
322
323
|
async function partnersFqdn() {
|
|
324
|
+
if (blockPartnersAccess())
|
|
325
|
+
throw new BugError("Partners API is blocked by the SHOPIFY_CLI_NEVER_USE_PARTNERS_API environment variable.");
|
|
323
326
|
let environment = serviceEnvironment(), productionFqdn = "partners.shopify.com";
|
|
324
327
|
switch (environment) {
|
|
325
328
|
case "local":
|
|
@@ -550,10 +553,7 @@ function validateScopes(requestedScopes, identity) {
|
|
|
550
553
|
return firstPartyDev() !== currentScopes.includes("employee") ? !1 : requestedScopes.every((scope) => currentScopes.includes(scope));
|
|
551
554
|
}
|
|
552
555
|
async function validateSession(scopes, applications, session) {
|
|
553
|
-
if (!session)
|
|
554
|
-
return "needs_full_auth";
|
|
555
|
-
let scopesAreValid = validateScopes(scopes, session.identity), identityIsValid = await validateIdentityToken(session.identity.accessToken);
|
|
556
|
-
if (!scopesAreValid)
|
|
556
|
+
if (!session || !validateScopes(scopes, session.identity))
|
|
557
557
|
return "needs_full_auth";
|
|
558
558
|
let tokensAreExpired = isTokenExpired(session.identity);
|
|
559
559
|
if (applications.partnersApi) {
|
|
@@ -572,11 +572,12 @@ async function validateSession(scopes, applications, session) {
|
|
|
572
572
|
let appId = applicationId("admin"), realAppId = `${applications.adminApi.storeFqdn}-${appId}`, token = session.applications[realAppId];
|
|
573
573
|
tokensAreExpired = tokensAreExpired || isTokenExpired(token);
|
|
574
574
|
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
575
|
+
if (outputDebug(`- Token validation -> It's expired: ${tokensAreExpired}`), !validateCachedIdentityTokenStructure(session.identity))
|
|
576
|
+
return "needs_full_auth";
|
|
577
|
+
if (tokensAreExpired)
|
|
578
|
+
return "needs_refresh";
|
|
579
|
+
let identityIsValid = await validateIdentityToken(session.identity.accessToken);
|
|
580
|
+
return outputDebug(`- Token validation -> It's invalid in identity: ${!identityIsValid}`), identityIsValid ? "ok" : "needs_full_auth";
|
|
580
581
|
}
|
|
581
582
|
function isTokenExpired(token) {
|
|
582
583
|
return token ? token.expiresAt < expireThreshold() : !0;
|
|
@@ -1134,4 +1135,4 @@ export {
|
|
|
1134
1135
|
getEnvironmentData,
|
|
1135
1136
|
getSensitiveEnvironmentData
|
|
1136
1137
|
};
|
|
1137
|
-
//# sourceMappingURL=chunk-
|
|
1138
|
+
//# sourceMappingURL=chunk-P654UJXI.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5CJ7VYH7.js";
|
|
4
4
|
import {
|
|
5
5
|
staticService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-63Z76ANM.js";
|
|
7
7
|
import {
|
|
8
8
|
asyncTasks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IEEXWVOL.js";
|
|
10
10
|
import {
|
|
11
11
|
base_command_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KR2ZEBN3.js";
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
15
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
|
|
|
34
34
|
export {
|
|
35
35
|
KitchenSinkAll
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-PB3V422W.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KR2ZEBN3.js";
|
|
4
4
|
import {
|
|
5
5
|
cacheClear
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DXX7H2IH.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
isTruthy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YEOP3EMX.js";
|
|
11
11
|
import {
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VSKRQ3JT.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
@@ -26,7 +26,7 @@ init_cjs_shims();
|
|
|
26
26
|
init_cjs_shims();
|
|
27
27
|
import { fileURLToPath } from "node:url";
|
|
28
28
|
async function launchCLI(options) {
|
|
29
|
-
let { errorHandler } = await import("./error-handler-
|
|
29
|
+
let { errorHandler } = await import("./error-handler-VQHDL26P.js"), { isDevelopment } = await import("./local-NKJECUJ3.js"), oclif = await import("./lib-SGEWXU7Z.js"), { ShopifyConfig } = await import("./custom-oclif-loader-5N4JRQ46.js");
|
|
30
30
|
isDevelopment() && (oclif.default.settings.debug = !0);
|
|
31
31
|
try {
|
|
32
32
|
let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
|
|
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
|
|
|
41
41
|
async function warnIfOldNodeVersion(versions = process.versions) {
|
|
42
42
|
let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
43
43
|
if (nodeMajorVersion < 18) {
|
|
44
|
-
let { renderWarning } = await import("./ui-
|
|
44
|
+
let { renderWarning } = await import("./ui-II7LUT5P.js");
|
|
45
45
|
renderWarning({
|
|
46
46
|
headline: "Upgrade to a supported Node version now.",
|
|
47
47
|
body: [
|
|
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
|
|
|
68
68
|
return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await warnIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
|
|
69
69
|
}
|
|
70
70
|
async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
|
|
71
|
-
let { findUpAndReadPackageJson } = await import("./node-package-manager-
|
|
71
|
+
let { findUpAndReadPackageJson } = await import("./node-package-manager-EOSRJYAN.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
72
72
|
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
73
73
|
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
74
74
|
argv.splice(initIndex2, 0, "init");
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
jsonFlag,
|
|
118
118
|
ClearCache
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-PDZHLRZ2.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJSUUIVI.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KR2ZEBN3.js";
|
|
7
7
|
import {
|
|
8
8
|
outputSuccess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YEOP3EMX.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
Logout
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-S3NMVYAF.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getNotifications,
|
|
3
3
|
stringifyFilters
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7CQUOSVH.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UYZDNGSJ.js";
|
|
8
8
|
import {
|
|
9
9
|
outputInfo,
|
|
10
10
|
randomUUID,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
renderTable,
|
|
14
14
|
renderTextPrompt,
|
|
15
15
|
writeFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YEOP3EMX.js";
|
|
17
17
|
import {
|
|
18
18
|
init_cjs_shims
|
|
19
19
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -100,4 +100,4 @@ export {
|
|
|
100
100
|
generate,
|
|
101
101
|
list
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=chunk-
|
|
103
|
+
//# sourceMappingURL=chunk-SXT3JFLA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YEOP3EMX.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -15,4 +15,4 @@ async function searchService(query) {
|
|
|
15
15
|
export {
|
|
16
16
|
searchService
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-U673QDO3.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KR2ZEBN3.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YEOP3EMX.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
@@ -115,4 +115,4 @@ export {
|
|
|
115
115
|
writeCommandFlagInterface,
|
|
116
116
|
writeCommandUsageExampleFile
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
118
|
+
//# sourceMappingURL=chunk-UEEQNXRY.js.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// ../cli-kit/dist/public/common/version.js
|
|
6
6
|
init_cjs_shims();
|
|
7
|
-
var CLI_KIT_VERSION = "3.
|
|
7
|
+
var CLI_KIT_VERSION = "3.75.1";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-UYZDNGSJ.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KR2ZEBN3.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VSKRQ3JT.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims
|
|
@@ -43,4 +43,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
|
|
|
43
43
|
export {
|
|
44
44
|
HelpCommand
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-VSC4NMYT.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
require_globby,
|
|
14
14
|
require_indent_string
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MP5RLDFN.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__require,
|
|
@@ -2893,9 +2893,9 @@ var require_src = __commonJS({
|
|
|
2893
2893
|
}
|
|
2894
2894
|
});
|
|
2895
2895
|
|
|
2896
|
-
// ../../node_modules/.pnpm/typescript@5.7.
|
|
2896
|
+
// ../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/typescript.js
|
|
2897
2897
|
var require_typescript = __commonJS({
|
|
2898
|
-
"../../node_modules/.pnpm/typescript@5.7.
|
|
2898
|
+
"../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/typescript.js"(exports, module) {
|
|
2899
2899
|
init_cjs_shims();
|
|
2900
2900
|
var ts = {};
|
|
2901
2901
|
((module2) => {
|
|
@@ -5148,7 +5148,7 @@ var require_typescript = __commonJS({
|
|
|
5148
5148
|
writeFileEnsuringDirectories: () => writeFileEnsuringDirectories,
|
|
5149
5149
|
zipWith: () => zipWith
|
|
5150
5150
|
}), module2.exports = __toCommonJS(typescript_exports);
|
|
5151
|
-
var versionMajorMinor = "5.7", version = "5.7.
|
|
5151
|
+
var versionMajorMinor = "5.7", version = "5.7.3", Comparison = /* @__PURE__ */ ((Comparison3) => (Comparison3[Comparison3.LessThan = -1] = "LessThan", Comparison3[Comparison3.EqualTo = 0] = "EqualTo", Comparison3[Comparison3.GreaterThan = 1] = "GreaterThan", Comparison3))(Comparison || {}), emptyArray = [], emptyMap = /* @__PURE__ */ new Map();
|
|
5152
5152
|
function length(array) {
|
|
5153
5153
|
return array !== void 0 ? array.length : 0;
|
|
5154
5154
|
}
|
|
@@ -13707,6 +13707,7 @@ ${lanes.join(`
|
|
|
13707
13707
|
}
|
|
13708
13708
|
var targetToLibMap = /* @__PURE__ */ new Map([
|
|
13709
13709
|
[99, "lib.esnext.full.d.ts"],
|
|
13710
|
+
[11, "lib.es2024.full.d.ts"],
|
|
13710
13711
|
[10, "lib.es2023.full.d.ts"],
|
|
13711
13712
|
[9, "lib.es2022.full.d.ts"],
|
|
13712
13713
|
[8, "lib.es2021.full.d.ts"],
|
|
@@ -13722,6 +13723,7 @@ ${lanes.join(`
|
|
|
13722
13723
|
let target = getEmitScriptTarget(options);
|
|
13723
13724
|
switch (target) {
|
|
13724
13725
|
case 99:
|
|
13726
|
+
case 11:
|
|
13725
13727
|
case 10:
|
|
13726
13728
|
case 9:
|
|
13727
13729
|
case 8:
|
|
@@ -45072,6 +45074,11 @@ ${lanes.join(`
|
|
|
45072
45074
|
stringType,
|
|
45073
45075
|
/*isReadonly*/
|
|
45074
45076
|
!0
|
|
45077
|
+
), anyBaseTypeIndexInfo = createIndexInfo(
|
|
45078
|
+
stringType,
|
|
45079
|
+
anyType,
|
|
45080
|
+
/*isReadonly*/
|
|
45081
|
+
!1
|
|
45075
45082
|
), iterationTypesCache = /* @__PURE__ */ new Map(), noIterationTypes = {
|
|
45076
45083
|
get yieldType() {
|
|
45077
45084
|
return Debug.fail("Not supported");
|
|
@@ -47783,7 +47790,7 @@ ${lanes.join(`
|
|
|
47783
47790
|
let type = (_a = context.enclosingSymbolTypes) == null ? void 0 : _a.get(getSymbolId(symbol));
|
|
47784
47791
|
type === void 0 && (symbol.flags & 98304 ? type = node.kind === 178 ? getWriteTypeOfSymbol(symbol) : getTypeOfAccessors(symbol) : isValueSignatureDeclaration(node) ? type = getReturnTypeOfSignature(getSignatureFromDeclaration(node)) : type = getTypeOfSymbol(symbol));
|
|
47785
47792
|
let annotationType = getTypeFromTypeNodeWithoutContext(existing);
|
|
47786
|
-
return isErrorType(annotationType) ? !0 : (requiresAddingUndefined && annotationType && (annotationType =
|
|
47793
|
+
return isErrorType(annotationType) ? !0 : (requiresAddingUndefined && annotationType && (annotationType = addOptionality(annotationType, !isParameter(node))), !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type));
|
|
47787
47794
|
}
|
|
47788
47795
|
},
|
|
47789
47796
|
typeToTypeNode: (type, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => typeToTypeNodeHelper(type, context)),
|
|
@@ -52881,12 +52888,7 @@ ${lanes.join(`
|
|
|
52881
52888
|
1
|
|
52882
52889
|
/* Construct */
|
|
52883
52890
|
));
|
|
52884
|
-
let inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [
|
|
52885
|
-
stringType,
|
|
52886
|
-
anyType,
|
|
52887
|
-
/*isReadonly*/
|
|
52888
|
-
!1
|
|
52889
|
-
)];
|
|
52891
|
+
let inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
|
|
52890
52892
|
indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
|
|
52891
52893
|
}
|
|
52892
52894
|
}
|
|
@@ -53309,12 +53311,7 @@ ${lanes.join(`
|
|
|
53309
53311
|
let baseConstructorIndexInfo;
|
|
53310
53312
|
if (setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray), symbol.flags & 32) {
|
|
53311
53313
|
let classType = getDeclaredTypeOfClassOrInterface(symbol), baseConstructorType = getBaseConstructorTypeOfClass(classType);
|
|
53312
|
-
baseConstructorType.flags & 11272192 ? (members = createSymbolTable(getNamedOrIndexSignatureMembers(members)), addInheritedMembers(members, getPropertiesOfType(baseConstructorType))) : baseConstructorType === anyType && (baseConstructorIndexInfo =
|
|
53313
|
-
stringType,
|
|
53314
|
-
anyType,
|
|
53315
|
-
/*isReadonly*/
|
|
53316
|
-
!1
|
|
53317
|
-
));
|
|
53314
|
+
baseConstructorType.flags & 11272192 ? (members = createSymbolTable(getNamedOrIndexSignatureMembers(members)), addInheritedMembers(members, getPropertiesOfType(baseConstructorType))) : baseConstructorType === anyType && (baseConstructorIndexInfo = anyBaseTypeIndexInfo);
|
|
53318
53315
|
}
|
|
53319
53316
|
let indexSymbol = getIndexSymbolFromSymbolTable(members);
|
|
53320
53317
|
if (indexSymbol ? indexInfos = getIndexInfosOfIndexSymbol(indexSymbol, arrayFrom(members.values())) : (baseConstructorIndexInfo && (indexInfos = append(indexInfos, baseConstructorIndexInfo)), symbol.flags & 384 && (getDeclaredTypeOfSymbol(symbol).flags & 32 || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296))) && (indexInfos = append(indexInfos, enumNumberIndexInfo))), setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos || emptyArray), symbol.flags & 8208 && (type.callSignatures = getSignaturesOfSymbol(symbol)), symbol.flags & 32) {
|
|
@@ -63864,11 +63861,11 @@ ${lanes.join(`
|
|
|
63864
63861
|
}
|
|
63865
63862
|
function markJsxAliasReferenced(node) {
|
|
63866
63863
|
if (!getJsxNamespaceContainerForImplicitImport(node)) {
|
|
63867
|
-
let jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0, jsxFactoryNamespace = getJsxNamespace(node), jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node, jsxFactorySym;
|
|
63864
|
+
let jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0, jsxFactoryNamespace = getJsxNamespace(node), jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node, shouldFactoryRefErr = compilerOptions.jsx !== 1 && compilerOptions.jsx !== 3, jsxFactorySym;
|
|
63868
63865
|
if (isJsxOpeningFragment(node) && jsxFactoryNamespace === "null" || (jsxFactorySym = resolveName(
|
|
63869
63866
|
jsxFactoryLocation,
|
|
63870
63867
|
jsxFactoryNamespace,
|
|
63871
|
-
|
|
63868
|
+
shouldFactoryRefErr ? 111551 : 111167,
|
|
63872
63869
|
jsxFactoryRefErr,
|
|
63873
63870
|
/*isUse*/
|
|
63874
63871
|
!0
|
|
@@ -63877,7 +63874,7 @@ ${lanes.join(`
|
|
|
63877
63874
|
localJsxNamespace && resolveName(
|
|
63878
63875
|
jsxFactoryLocation,
|
|
63879
63876
|
localJsxNamespace,
|
|
63880
|
-
|
|
63877
|
+
shouldFactoryRefErr ? 111551 : 111167,
|
|
63881
63878
|
jsxFactoryRefErr,
|
|
63882
63879
|
/*isUse*/
|
|
63883
63880
|
!0
|
|
@@ -66637,6 +66634,10 @@ ${lanes.join(`
|
|
|
66637
66634
|
return getIntersectionType(x);
|
|
66638
66635
|
}
|
|
66639
66636
|
function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
|
|
66637
|
+
let links = getNodeLinks(propNode), cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set()), key = `${getTypeId(containingType)}|${isUncheckedJS}`;
|
|
66638
|
+
if (cache.has(key))
|
|
66639
|
+
return;
|
|
66640
|
+
cache.add(key);
|
|
66640
66641
|
let errorInfo, relatedInfo;
|
|
66641
66642
|
if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 && !(containingType.flags & 402784252)) {
|
|
66642
66643
|
for (let subtype of containingType.types)
|
|
@@ -68219,11 +68220,11 @@ ${lanes.join(`
|
|
|
68219
68220
|
let sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
|
|
68220
68221
|
if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
|
|
68221
68222
|
let jsxFragmentFactoryName = getJsxNamespace(node);
|
|
68222
|
-
if (
|
|
68223
|
-
let jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0, jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
|
|
68223
|
+
if (!((compilerOptions.jsx === 2 || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null")) return sourceFileLinks.jsxFragmentType = anyType;
|
|
68224
|
+
let shouldModuleRefErr = compilerOptions.jsx !== 1 && compilerOptions.jsx !== 3, jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0, jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
|
|
68224
68225
|
node,
|
|
68225
68226
|
jsxFragmentFactoryName,
|
|
68226
|
-
|
|
68227
|
+
shouldModuleRefErr ? 111551 : 111167,
|
|
68227
68228
|
/*nameNotFoundMessage*/
|
|
68228
68229
|
jsxFactoryRefErr,
|
|
68229
68230
|
/*isUse*/
|
|
@@ -70296,7 +70297,9 @@ ${lanes.join(`
|
|
|
70296
70297
|
switch (node = skipOuterExpressions(node), node.kind) {
|
|
70297
70298
|
case 223:
|
|
70298
70299
|
case 213:
|
|
70300
|
+
case 215:
|
|
70299
70301
|
case 212:
|
|
70302
|
+
case 236:
|
|
70300
70303
|
case 214:
|
|
70301
70304
|
case 211:
|
|
70302
70305
|
case 229:
|
|
@@ -70312,6 +70315,8 @@ ${lanes.join(`
|
|
|
70312
70315
|
case 56:
|
|
70313
70316
|
case 77:
|
|
70314
70317
|
return 3;
|
|
70318
|
+
case 28:
|
|
70319
|
+
return getSyntacticNullishnessSemantics(node.right);
|
|
70315
70320
|
}
|
|
70316
70321
|
return 2;
|
|
70317
70322
|
case 227:
|
|
@@ -74976,7 +74981,7 @@ ${lanes.join(`
|
|
|
74976
74981
|
node,
|
|
74977
74982
|
65536
|
|
74978
74983
|
/* ImportStar */
|
|
74979
|
-
)) : (resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier), resolvedModule && forEach(importClause.namedBindings.elements, checkImportBinding))), isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node) && error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind])) : noUncheckedSideEffectImports && !importClause && resolveExternalModuleName(node, node.moduleSpecifier);
|
|
74984
|
+
)) : (resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier), resolvedModule && forEach(importClause.namedBindings.elements, checkImportBinding))), !importClause.isTypeOnly && moduleKind === 199 && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node) && error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind])) : noUncheckedSideEffectImports && !importClause && resolveExternalModuleName(node, node.moduleSpecifier);
|
|
74980
74985
|
}
|
|
74981
74986
|
checkImportAttributes(node);
|
|
74982
74987
|
}
|
|
@@ -76867,7 +76872,7 @@ ${lanes.join(`
|
|
|
76867
76872
|
if (length(infoList)) {
|
|
76868
76873
|
result || (result = []);
|
|
76869
76874
|
for (let info of infoList) {
|
|
76870
|
-
if (info.declaration) continue;
|
|
76875
|
+
if (info.declaration || info === anyBaseTypeIndexInfo) continue;
|
|
76871
76876
|
let node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
|
|
76872
76877
|
node && infoList === staticInfos && (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(
|
|
76873
76878
|
126
|
|
@@ -112584,8 +112589,8 @@ ${lanes.join(`
|
|
|
112584
112589
|
function typeFromPropertyAssignment(node, symbol, context) {
|
|
112585
112590
|
let typeAnnotation = getEffectiveTypeAnnotationNode(node), result;
|
|
112586
112591
|
if (typeAnnotation && resolver.canReuseTypeNodeAnnotation(context, node, typeAnnotation, symbol) && (result = serializeExistingTypeNode(typeAnnotation, context)), !result && node.kind === 303) {
|
|
112587
|
-
let initializer = node.initializer,
|
|
112588
|
-
|
|
112592
|
+
let initializer = node.initializer, assertionNode = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 || initializer.kind === 216 ? initializer.type : void 0;
|
|
112593
|
+
assertionNode && !isConstTypeReference(assertionNode) && resolver.canReuseTypeNodeAnnotation(context, node, assertionNode, symbol) && (result = serializeExistingTypeNode(assertionNode, context));
|
|
112589
112594
|
}
|
|
112590
112595
|
return result ?? inferTypeOfDeclaration(
|
|
112591
112596
|
node,
|
|
@@ -175222,7 +175227,6 @@ var require_lib2 = __commonJS({
|
|
|
175222
175227
|
export {
|
|
175223
175228
|
require_supports_hyperlinks,
|
|
175224
175229
|
require_source,
|
|
175225
|
-
require_src,
|
|
175226
175230
|
require_cross_spawn,
|
|
175227
175231
|
require_lib2 as require_lib
|
|
175228
175232
|
};
|
|
@@ -175253,4 +175257,4 @@ ejs/lib/ejs.js:
|
|
|
175253
175257
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
175254
175258
|
*)
|
|
175255
175259
|
*/
|
|
175256
|
-
//# sourceMappingURL=chunk-
|
|
175260
|
+
//# sourceMappingURL=chunk-VSKRQ3JT.js.map
|