@shopify/cli 3.62.0 → 3.63.0
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/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-Dui3DO9f.js +64 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +19 -0
- package/dist/assets/dev-console/index.html +8 -9
- package/dist/{chunk-CYQRKZVM.js → chunk-243ST4XI.js} +4 -4
- package/dist/{chunk-PIB2FEJJ.js → chunk-33LTHUXG.js} +6 -6
- package/dist/{chunk-2ZSNH7CD.js → chunk-3F45YLTU.js} +2 -2
- package/dist/{chunk-PO6SEYU4.js → chunk-3ME57HGL.js} +3 -3
- package/dist/{chunk-HJ4AUFE7.js → chunk-3ZZCPHVD.js} +105 -87
- package/dist/{chunk-66NABVCG.js → chunk-4BUSSDYG.js} +2 -2
- package/dist/{chunk-B62HZLMM.js → chunk-4NDUTTUN.js} +2 -2
- package/dist/{chunk-NNASIYCT.js → chunk-53POJOM4.js} +2 -2
- package/dist/{chunk-YX5VXHSJ.js → chunk-5LXPV7MQ.js} +3 -3
- package/dist/{chunk-BZFXXFUC.js → chunk-5UBUOU6Y.js} +5 -5
- package/dist/{chunk-MQ2RGCDU.js → chunk-6QZIH2E2.js} +3 -3
- package/dist/{chunk-MG6QFKFM.js → chunk-7CRRPQKB.js} +3 -3
- package/dist/{chunk-LC6MEJT3.js → chunk-A2UVOX6O.js} +2 -1
- package/dist/{chunk-UACSLX64.js → chunk-A3RCZVBD.js} +4 -4
- package/dist/{chunk-PIVNWN2P.js → chunk-AAQFJMC7.js} +3 -3
- package/dist/{chunk-7MXLRMOY.js → chunk-ACPCT2DV.js} +2 -2
- package/dist/{chunk-5X4QXYEZ.js → chunk-BJR33ED4.js} +8 -4
- package/dist/{chunk-Q4XGXPUG.js → chunk-CM4H6QMH.js} +3 -3
- package/dist/{chunk-CKFE55FX.js → chunk-DNLEJ5LP.js} +3 -3
- package/dist/{chunk-TCRWMUKX.js → chunk-DSAXN5QR.js} +2 -2
- package/dist/{chunk-W5VEUSWG.js → chunk-FG5DDIHX.js} +3 -3
- package/dist/{chunk-K3GG6Y3J.js → chunk-FPF4R7ZF.js} +6 -6
- package/dist/{chunk-ZCMXEGSE.js → chunk-GL65ZDTM.js} +4 -4
- package/dist/{chunk-5FNE3T7E.js → chunk-GLKNDMGH.js} +3 -3
- package/dist/chunk-IQ5Z34TA.js +61 -0
- package/dist/{chunk-QGJLRFY4.js → chunk-MTFNX5KT.js} +50 -18
- package/dist/{chunk-JKYNFUD3.js → chunk-MUNPP2TW.js} +5 -5
- package/dist/{chunk-BMTG2VHL.js → chunk-OS7HES3C.js} +2 -2
- package/dist/{chunk-JOOYCYFU.js → chunk-QTM35S2J.js} +4 -4
- package/dist/{chunk-YECNACSF.js → chunk-QZESETWK.js} +5460 -4963
- package/dist/{chunk-JL3ESOD2.js → chunk-ROASFVE3.js} +2 -2
- package/dist/{chunk-22PYIFA2.js → chunk-RSV3YFLD.js} +3 -3
- package/dist/chunk-SWNRLCC6.js +61 -0
- package/dist/{chunk-A5STII7T.js → chunk-WOXKF5EA.js} +2 -2
- package/dist/{chunk-WAEWSGBK.js → chunk-Y72FSG23.js} +59 -4
- package/dist/{chunk-VS6RWOLM.js → chunk-YDFDTWXH.js} +7 -6
- package/dist/{chunk-RUSG4O2Z.js → chunk-ZK4ND26M.js} +2 -2
- package/dist/{chunk-ADESJ2KG.js → chunk-ZYYSQDXK.js} +4 -4
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +14 -14
- package/dist/cli/commands/debug/command-flags.js +12 -12
- package/dist/cli/commands/demo/catalog.js +13 -13
- package/dist/cli/commands/demo/generate-file.js +13 -13
- package/dist/cli/commands/demo/index.d.ts +1 -0
- package/dist/cli/commands/demo/index.js +17 -57
- package/dist/cli/commands/demo/print-ai-prompt.js +13 -13
- package/dist/cli/commands/docs/generate.js +12 -12
- package/dist/cli/commands/docs/generate.test.js +13 -13
- package/dist/cli/commands/help.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.js +13 -13
- package/dist/cli/commands/kitchen-sink/async.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.js +15 -15
- package/dist/cli/commands/kitchen-sink/index.test.js +16 -16
- package/dist/cli/commands/kitchen-sink/prompts.js +13 -13
- package/dist/cli/commands/kitchen-sink/prompts.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/static.js +13 -13
- package/dist/cli/commands/kitchen-sink/static.test.js +14 -14
- package/dist/cli/commands/search.js +13 -13
- package/dist/cli/commands/upgrade.js +12 -12
- package/dist/cli/commands/upgrade.test.js +2 -2
- package/dist/cli/commands/version.js +13 -13
- package/dist/cli/commands/version.test.js +14 -14
- package/dist/cli/services/commands/search.js +3 -3
- package/dist/cli/services/commands/search.test.js +4 -4
- package/dist/cli/services/commands/version.js +6 -6
- package/dist/cli/services/commands/version.test.js +8 -8
- package/dist/cli/services/demo.js +3 -3
- package/dist/cli/services/demo.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +3 -3
- package/dist/cli/services/kitchen-sink/prompts.js +3 -3
- package/dist/cli/services/kitchen-sink/static.js +3 -3
- package/dist/cli/services/upgrade.js +5 -5
- package/dist/cli/services/upgrade.test.js +8 -8
- package/dist/configs/all.yml +10 -0
- package/dist/configs/recommended.yml +10 -0
- package/dist/{custom-oclif-loader-ZH42ZTTC.js → custom-oclif-loader-U6KVT6TC.js} +3 -3
- package/dist/data/filters.json +1 -1
- package/dist/data/latest.json +1 -1
- package/dist/data/objects.json +25 -7
- package/dist/data/shopify_system_translations.json +52 -11
- package/dist/{error-handler-JFX2TIYX.js → error-handler-6ZEAADAF.js} +6 -6
- package/dist/{error-handler-I6WJC3U2.js → error-handler-B2KIESVH.js} +11 -11
- package/dist/hooks/postrun.js +9 -9
- package/dist/hooks/prerun.js +6 -6
- package/dist/index.js +3092 -753
- package/dist/{local-QXPV4RF5.js → local-PE4YEEBC.js} +3 -3
- package/dist/{morph-WKKSW22O.js → morph-6NYGHGNT.js} +9 -9
- package/dist/{node-5XXX7TNJ.js → node-PG7YJ7IO.js} +9 -9
- package/dist/{node-package-manager-O65VOP6W.js → node-package-manager-3I7UKBM5.js} +5 -5
- package/dist/{system-EEQBTJMJ.js → system-ZYBFLHSK.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-3BAHGNCQ.js → ui-L3T46TFT.js} +3 -3
- package/dist/{workerd-WR22YQIS.js → workerd-BLYIZYIT.js} +8 -8
- package/oclif.manifest.json +131 -1
- package/package.json +9 -8
- package/dist/assets/dev-console/extensions/dev-console/assets/index-e3682a83.js +0 -64
- package/dist/assets/dev-console/extensions/dev-console/assets/safari-pinned-tab-456f340b.svg +0 -18
- package/dist/chunk-ZPFJOUKZ.js +0 -115
- /package/dist/assets/dev-console/extensions/dev-console/assets/{favicon-1f90fefa.ico → favicon-ByUl89Ab.ico} +0 -0
- /package/dist/assets/dev-console/extensions/dev-console/assets/{index-dfaab2a5.css → index-Bi7y6lI5.css} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
execa,
|
|
3
3
|
outputContent,
|
|
4
4
|
outputDebug
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y72FSG23.js";
|
|
6
6
|
import {
|
|
7
7
|
init_cjs_shims
|
|
8
8
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -70,4 +70,4 @@ export {
|
|
|
70
70
|
username,
|
|
71
71
|
platformAndArch
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-4BUSSDYG.js.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// ../cli-kit/src/public/common/version.ts
|
|
6
6
|
init_cjs_shims();
|
|
7
|
-
var CLI_KIT_VERSION = "3.
|
|
7
|
+
var CLI_KIT_VERSION = "3.63.0";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-4NDUTTUN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y72FSG23.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -16,4 +16,4 @@ async function searchService(query) {
|
|
|
16
16
|
export {
|
|
17
17
|
searchService
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-53POJOM4.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3F45YLTU.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BJR33ED4.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkPrompts
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-5LXPV7MQ.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
staticService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ACPCT2DV.js";
|
|
4
4
|
import {
|
|
5
5
|
asyncTasks
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WOXKF5EA.js";
|
|
7
7
|
import {
|
|
8
8
|
prompts
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3F45YLTU.js";
|
|
10
10
|
import {
|
|
11
11
|
base_command_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BJR33ED4.js";
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
15
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -36,4 +36,4 @@ var KitchenSinkAll = class extends base_command_default {
|
|
|
36
36
|
export {
|
|
37
37
|
KitchenSinkAll
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-5UBUOU6Y.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-53POJOM4.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BJR33ED4.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
9
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -46,4 +46,4 @@ var Search = class _Search extends base_command_default {
|
|
|
46
46
|
export {
|
|
47
47
|
Search
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-6QZIH2E2.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RSV3YFLD.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
exec,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
outputSuccess,
|
|
16
16
|
outputToken,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y72FSG23.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
@@ -167,4 +167,4 @@ function usingPackageManager({ env } = { env: process.env }) {
|
|
|
167
167
|
export {
|
|
168
168
|
upgrade
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-7CRRPQKB.js.map
|
|
@@ -51361,6 +51361,7 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
|
51361
51361
|
export {
|
|
51362
51362
|
require_mime_types,
|
|
51363
51363
|
require_graphql2 as require_graphql,
|
|
51364
|
+
resolveRequestDocument,
|
|
51364
51365
|
ClientError,
|
|
51365
51366
|
require_lib2 as require_lib,
|
|
51366
51367
|
GraphQLClient,
|
|
@@ -51393,4 +51394,4 @@ mime-types/index.js:
|
|
|
51393
51394
|
* MIT Licensed
|
|
51394
51395
|
*)
|
|
51395
51396
|
*/
|
|
51396
|
-
//# sourceMappingURL=chunk-
|
|
51397
|
+
//# sourceMappingURL=chunk-A2UVOX6O.js.map
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-DLK3F3DC.js";
|
|
4
4
|
import {
|
|
5
5
|
demoStepsSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OS7HES3C.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BJR33ED4.js";
|
|
10
10
|
import {
|
|
11
11
|
outputInfo,
|
|
12
12
|
renderInfo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Y72FSG23.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
@@ -59,4 +59,4 @@ The demo should perform the following steps:
|
|
|
59
59
|
export {
|
|
60
60
|
PrintAIPrompt
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
62
|
+
//# sourceMappingURL=chunk-A3RCZVBD.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asyncTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WOXKF5EA.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BJR33ED4.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkAsync = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkAsync
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-AAQFJMC7.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y72FSG23.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -194,4 +194,4 @@ async function staticService() {
|
|
|
194
194
|
export {
|
|
195
195
|
staticService
|
|
196
196
|
};
|
|
197
|
-
//# sourceMappingURL=chunk-
|
|
197
|
+
//# sourceMappingURL=chunk-ACPCT2DV.js.map
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
errorHandler,
|
|
6
6
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MUNPP2TW.js";
|
|
8
8
|
import {
|
|
9
9
|
hashString
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZYYSQDXK.js";
|
|
11
11
|
import {
|
|
12
12
|
AbortError,
|
|
13
13
|
addPublicMetadata,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
renderWarning,
|
|
24
24
|
terminalSupportsRawMode,
|
|
25
25
|
underscore
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Y72FSG23.js";
|
|
27
27
|
import {
|
|
28
28
|
require_lib
|
|
29
29
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -86,6 +86,10 @@ async function loadEnvironment(environmentName, fileName, options) {
|
|
|
86
86
|
// ../cli-kit/src/public/node/base-command.ts
|
|
87
87
|
var import_core = __toESM(require_lib(), 1);
|
|
88
88
|
var BaseCommand = class extends import_core.Command {
|
|
89
|
+
static {
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
91
|
+
this.baseFlags = {};
|
|
92
|
+
}
|
|
89
93
|
// Replace markdown links to plain text like: "link label" (url)
|
|
90
94
|
static descriptionWithoutMarkdown() {
|
|
91
95
|
return (this.descriptionWithMarkdown ?? "").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm, '"$2" ($5)');
|
|
@@ -258,4 +262,4 @@ export {
|
|
|
258
262
|
encodeToml,
|
|
259
263
|
base_command_default
|
|
260
264
|
};
|
|
261
|
-
//# sourceMappingURL=chunk-
|
|
265
|
+
//# sourceMappingURL=chunk-BJR33ED4.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_cjs_shims
|
|
3
3
|
} from "./chunk-ZPL24Y2D.js";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-
|
|
5
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_@graphql-codegen+cli@5.0.2_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
|
|
@@ -141,7 +141,7 @@ function portNumbers(from, to) {
|
|
|
141
141
|
return generator(from, to);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-
|
|
144
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
145
145
|
function findPort(portPreference, range = 100) {
|
|
146
146
|
return getPorts({
|
|
147
147
|
port: portNumbers(portPreference, portPreference + range)
|
|
@@ -151,4 +151,4 @@ function findPort(portPreference, range = 100) {
|
|
|
151
151
|
export {
|
|
152
152
|
findPort
|
|
153
153
|
};
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-CM4H6QMH.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
versionService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-243ST4XI.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BJR33ED4.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
|
|
|
22
22
|
export {
|
|
23
23
|
Version
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-DNLEJ5LP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BJR33ED4.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
6
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -45,4 +45,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
|
|
|
45
45
|
export {
|
|
46
46
|
HelpCommand
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-DSAXN5QR.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BJR33ED4.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y72FSG23.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
writeCommandFlagInterface,
|
|
155
155
|
writeCommandUsageExampleFile
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=chunk-
|
|
157
|
+
//# sourceMappingURL=chunk-FG5DDIHX.js.map
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
require_src4,
|
|
9
9
|
require_src5,
|
|
10
10
|
require_src6
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A2UVOX6O.js";
|
|
12
12
|
import {
|
|
13
13
|
getEnvironmentData,
|
|
14
14
|
getSensitiveEnvironmentData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZYYSQDXK.js";
|
|
16
16
|
import {
|
|
17
17
|
platformAndArch
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4BUSSDYG.js";
|
|
19
19
|
import {
|
|
20
20
|
CLI_KIT_VERSION
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4NDUTTUN.js";
|
|
22
22
|
import {
|
|
23
23
|
require_semver
|
|
24
24
|
} from "./chunk-PRJ3U7MR.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
spinFqdn,
|
|
55
55
|
touchFile,
|
|
56
56
|
useEmbeddedThemeCLI
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-Y72FSG23.js";
|
|
58
58
|
import {
|
|
59
59
|
envPaths,
|
|
60
60
|
environmentVariables,
|
|
@@ -1067,4 +1067,4 @@ export {
|
|
|
1067
1067
|
getListOfTunnelPlugins,
|
|
1068
1068
|
reportAnalyticsEvent
|
|
1069
1069
|
};
|
|
1070
|
-
//# sourceMappingURL=chunk-
|
|
1070
|
+
//# sourceMappingURL=chunk-FPF4R7ZF.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BJR33ED4.js";
|
|
4
4
|
import {
|
|
5
5
|
packageManagerFromUserAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RSV3YFLD.js";
|
|
7
7
|
import {
|
|
8
8
|
currentProcessIsGlobal,
|
|
9
9
|
inferPackageManagerForGlobalCLI,
|
|
10
10
|
renderInfo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y72FSG23.js";
|
|
12
12
|
import {
|
|
13
13
|
init_cjs_shims
|
|
14
14
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -44,4 +44,4 @@ var Upgrade = class extends base_command_default {
|
|
|
44
44
|
export {
|
|
45
45
|
Upgrade
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-GL65ZDTM.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BJR33ED4.js";
|
|
4
4
|
import {
|
|
5
5
|
renderTable,
|
|
6
6
|
renderText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y72FSG23.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
10
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -96,4 +96,4 @@ var CommandFlags = class _CommandFlags extends base_command_default {
|
|
|
96
96
|
export {
|
|
97
97
|
CommandFlags
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
99
|
+
//# sourceMappingURL=chunk-GLKNDMGH.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
demo
|
|
3
|
+
} from "./chunk-OS7HES3C.js";
|
|
4
|
+
import {
|
|
5
|
+
base_command_default
|
|
6
|
+
} from "./chunk-BJR33ED4.js";
|
|
7
|
+
import {
|
|
8
|
+
readFile
|
|
9
|
+
} from "./chunk-Y72FSG23.js";
|
|
10
|
+
import {
|
|
11
|
+
require_lib
|
|
12
|
+
} from "./chunk-GEN4RXTD.js";
|
|
13
|
+
import {
|
|
14
|
+
cwd,
|
|
15
|
+
resolvePath
|
|
16
|
+
} from "./chunk-UNPXLODI.js";
|
|
17
|
+
import {
|
|
18
|
+
__toESM,
|
|
19
|
+
init_cjs_shims
|
|
20
|
+
} from "./chunk-ZPL24Y2D.js";
|
|
21
|
+
|
|
22
|
+
// src/cli/commands/demo/index.ts
|
|
23
|
+
init_cjs_shims();
|
|
24
|
+
var import_core = __toESM(require_lib(), 1);
|
|
25
|
+
var Demo = class _Demo extends base_command_default {
|
|
26
|
+
static {
|
|
27
|
+
this.description = "Demo a command design defined in a file";
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.hidden = true;
|
|
31
|
+
}
|
|
32
|
+
static {
|
|
33
|
+
this.flags = {
|
|
34
|
+
path: import_core.Flags.string({
|
|
35
|
+
hidden: false,
|
|
36
|
+
description: "The directory where the demo file is located. Defaults to the current directory.",
|
|
37
|
+
env: "SHOPIFY_FLAG_PATH",
|
|
38
|
+
parse: async (input) => resolvePath(input),
|
|
39
|
+
default: async () => cwd()
|
|
40
|
+
}),
|
|
41
|
+
file: import_core.Flags.string({
|
|
42
|
+
hidden: false,
|
|
43
|
+
description: "The name of the demo file.",
|
|
44
|
+
env: "SHOPIFY_FLAG_PATH",
|
|
45
|
+
parse: async (input) => resolvePath(input),
|
|
46
|
+
default: async () => cwd()
|
|
47
|
+
})
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
async run() {
|
|
51
|
+
const { flags } = await this.parse(_Demo);
|
|
52
|
+
const contents = await readFile(flags.file);
|
|
53
|
+
const design = JSON.parse(contents);
|
|
54
|
+
await demo(design);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
Demo
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=chunk-IQ5Z34TA.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-6UDFXWNE.js";
|
|
12
12
|
import {
|
|
13
13
|
base_command_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BJR33ED4.js";
|
|
15
15
|
import {
|
|
16
16
|
GraphQLClientError,
|
|
17
17
|
RequestClientError,
|
|
@@ -23,24 +23,25 @@ import {
|
|
|
23
23
|
httpsAgent,
|
|
24
24
|
sanitizedHeadersOutput,
|
|
25
25
|
shopifyFetch
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FPF4R7ZF.js";
|
|
27
27
|
import {
|
|
28
28
|
ClientError,
|
|
29
29
|
GraphQLClient,
|
|
30
|
-
gql
|
|
31
|
-
|
|
30
|
+
gql,
|
|
31
|
+
resolveRequestDocument
|
|
32
|
+
} from "./chunk-A2UVOX6O.js";
|
|
32
33
|
import {
|
|
33
34
|
base64URLEncode,
|
|
34
35
|
randomBytes,
|
|
35
36
|
randomHex,
|
|
36
37
|
sha256
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZYYSQDXK.js";
|
|
38
39
|
import {
|
|
39
40
|
cacheRetrieveOrRepopulate,
|
|
40
41
|
getSession,
|
|
41
42
|
removeSession,
|
|
42
43
|
setSession
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RSV3YFLD.js";
|
|
44
45
|
import {
|
|
45
46
|
AbortError,
|
|
46
47
|
BugError,
|
|
@@ -68,7 +69,7 @@ import {
|
|
|
68
69
|
spinFqdn,
|
|
69
70
|
stringifyMessage,
|
|
70
71
|
useDeviceAuth
|
|
71
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-Y72FSG23.js";
|
|
72
73
|
import {
|
|
73
74
|
sessionConstants
|
|
74
75
|
} from "./chunk-WADS2TV5.js";
|
|
@@ -1028,18 +1029,18 @@ Request ID: ${requestId}
|
|
|
1028
1029
|
}
|
|
1029
1030
|
|
|
1030
1031
|
// ../cli-kit/src/public/node/api/graphql.ts
|
|
1031
|
-
async function
|
|
1032
|
-
const {
|
|
1032
|
+
async function performGraphQLRequest(options) {
|
|
1033
|
+
const { token, addedHeaders, queryAsString, variables, api, url: url2, responseOptions } = options;
|
|
1033
1034
|
const headers = {
|
|
1034
1035
|
...addedHeaders,
|
|
1035
1036
|
...buildHeaders(token)
|
|
1036
1037
|
};
|
|
1037
|
-
debugLogRequestInfo(api,
|
|
1038
|
+
debugLogRequestInfo(api, queryAsString, variables, headers);
|
|
1038
1039
|
const clientOptions = { agent: await httpsAgent(), headers };
|
|
1039
1040
|
const client = new GraphQLClient(url2, clientOptions);
|
|
1040
1041
|
return runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
1041
1042
|
const response = await debugLogResponseInfo(
|
|
1042
|
-
{ request: client.rawRequest(
|
|
1043
|
+
{ request: client.rawRequest(queryAsString, variables), url: url2 },
|
|
1043
1044
|
responseOptions?.handleErrors === false ? void 0 : errorHandler(api)
|
|
1044
1045
|
);
|
|
1045
1046
|
if (responseOptions?.onResponse) {
|
|
@@ -1048,6 +1049,18 @@ async function graphqlRequest(options) {
|
|
|
1048
1049
|
return response.data;
|
|
1049
1050
|
});
|
|
1050
1051
|
}
|
|
1052
|
+
async function graphqlRequest(options) {
|
|
1053
|
+
return performGraphQLRequest({
|
|
1054
|
+
...options,
|
|
1055
|
+
queryAsString: options.query
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
async function graphqlRequestDoc(options) {
|
|
1059
|
+
return performGraphQLRequest({
|
|
1060
|
+
...options,
|
|
1061
|
+
queryAsString: resolveRequestDocument(options.query).query
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1051
1064
|
|
|
1052
1065
|
// ../cli-kit/src/public/node/api/partners.ts
|
|
1053
1066
|
var import_bottleneck = __toESM(require_lib(), 1);
|
|
@@ -1055,18 +1068,35 @@ var limiter = new import_bottleneck.default({
|
|
|
1055
1068
|
minTime: 150,
|
|
1056
1069
|
maxConcurrent: 10
|
|
1057
1070
|
});
|
|
1058
|
-
async function
|
|
1071
|
+
async function setupRequest(token) {
|
|
1059
1072
|
const api = "Partners";
|
|
1060
1073
|
const fqdn = await partnersFqdn();
|
|
1061
1074
|
const url2 = `https://${fqdn}/api/cli/graphql`;
|
|
1075
|
+
return {
|
|
1076
|
+
token,
|
|
1077
|
+
api,
|
|
1078
|
+
url: url2,
|
|
1079
|
+
responseOptions: { onResponse: handleDeprecations }
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
async function partnersRequest(query, token, variables) {
|
|
1083
|
+
const opts = await setupRequest(token);
|
|
1062
1084
|
const result = limiter.schedule(
|
|
1063
1085
|
() => graphqlRequest({
|
|
1086
|
+
...opts,
|
|
1087
|
+
query,
|
|
1088
|
+
variables
|
|
1089
|
+
})
|
|
1090
|
+
);
|
|
1091
|
+
return result;
|
|
1092
|
+
}
|
|
1093
|
+
async function partnersRequestDoc(query, token, variables) {
|
|
1094
|
+
const opts = await setupRequest(token);
|
|
1095
|
+
const result = limiter.schedule(
|
|
1096
|
+
() => graphqlRequestDoc({
|
|
1097
|
+
...opts,
|
|
1064
1098
|
query,
|
|
1065
|
-
|
|
1066
|
-
url: url2,
|
|
1067
|
-
token,
|
|
1068
|
-
variables,
|
|
1069
|
-
responseOptions: { onResponse: handleDeprecations }
|
|
1099
|
+
variables
|
|
1070
1100
|
})
|
|
1071
1101
|
);
|
|
1072
1102
|
return result;
|
|
@@ -1406,7 +1436,9 @@ export {
|
|
|
1406
1436
|
ok,
|
|
1407
1437
|
err,
|
|
1408
1438
|
graphqlRequest,
|
|
1439
|
+
graphqlRequestDoc,
|
|
1409
1440
|
partnersRequest,
|
|
1441
|
+
partnersRequestDoc,
|
|
1410
1442
|
FunctionUploadUrlGenerateMutation,
|
|
1411
1443
|
handleDeprecations,
|
|
1412
1444
|
ensureAuthenticatedPartners,
|
|
@@ -1418,4 +1450,4 @@ export {
|
|
|
1418
1450
|
logout,
|
|
1419
1451
|
Logout
|
|
1420
1452
|
};
|
|
1421
|
-
//# sourceMappingURL=chunk-
|
|
1453
|
+
//# sourceMappingURL=chunk-MTFNX5KT.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
fanoutHooks,
|
|
6
6
|
reportAnalyticsEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FPF4R7ZF.js";
|
|
8
8
|
import {
|
|
9
9
|
getEnvironmentData
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZYYSQDXK.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_KIT_VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4NDUTTUN.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortSilentError,
|
|
16
16
|
CancelExecution,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
printEventsJson,
|
|
25
25
|
require_stacktracey,
|
|
26
26
|
shouldReportError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Y72FSG23.js";
|
|
28
28
|
import {
|
|
29
29
|
bugsnagApiKey
|
|
30
30
|
} from "./chunk-WADS2TV5.js";
|
|
@@ -218,4 +218,4 @@ export {
|
|
|
218
218
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
219
219
|
addBugsnagMetadata
|
|
220
220
|
};
|
|
221
|
-
//# sourceMappingURL=chunk-
|
|
221
|
+
//# sourceMappingURL=chunk-MUNPP2TW.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
renderTextPrompt,
|
|
18
18
|
renderWarning,
|
|
19
19
|
sleep
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y72FSG23.js";
|
|
21
21
|
import {
|
|
22
22
|
init_cjs_shims
|
|
23
23
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
demoStepsSchema,
|
|
352
352
|
demo
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-OS7HES3C.js.map
|