@shopify/cli 3.80.0 → 3.80.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/{chunk-AZ6Y4YZT.js → chunk-2SENSD2I.js} +4 -4
- package/dist/{chunk-PCSYEXIP.js → chunk-4N62VJCW.js} +6 -6
- package/dist/{chunk-YPF3IQMR.js → chunk-4O7JN5N7.js} +2 -2
- package/dist/{chunk-TC3YYLZY.js → chunk-5EUF2EDL.js} +3 -3
- package/dist/{chunk-BUJJ6TMB.js → chunk-6SM3SPO2.js} +3 -3
- package/dist/{chunk-REH3UHFP.js → chunk-6ZDFI7RQ.js} +2 -2
- package/dist/{chunk-IDQNIJ3J.js → chunk-7ABG3SAU.js} +4 -4
- package/dist/{chunk-NWFRDDT5.js → chunk-7RVTZY4V.js} +17 -5
- package/dist/{chunk-NRK4JPTC.js → chunk-AA6YHL4H.js} +4 -4
- package/dist/{chunk-VR4MPAR3.js → chunk-BJKFVTUU.js} +4 -4
- package/dist/{chunk-JSVOLQ6E.js → chunk-CC5JTJRC.js} +6 -6
- package/dist/{chunk-R3CVGGX7.js → chunk-CIGCMM7Y.js} +2 -2
- package/dist/{chunk-GFHULNRP.js → chunk-GXYYUJCZ.js} +7 -7
- package/dist/{chunk-H352PF4V.js → chunk-JEZFZHJT.js} +19 -50
- package/dist/{chunk-JH7IS4YF.js → chunk-JTTPS2WH.js} +2 -2
- package/dist/{chunk-2YZW7TJK.js → chunk-MGQUMYJJ.js} +3 -3
- package/dist/{chunk-37WBE3RC.js → chunk-MK43HXRP.js} +3 -3
- package/dist/{chunk-OGBA25HE.js → chunk-MRSGUMFQ.js} +3 -3
- package/dist/{chunk-AO63XITX.js → chunk-MUBX4Z7T.js} +2 -2
- package/dist/{chunk-GTREEQHM.js → chunk-O47Y2LR2.js} +5 -5
- package/dist/{chunk-SUFYMVTC.js → chunk-OEN366HT.js} +2 -2
- package/dist/{chunk-3MQT2ETC.js → chunk-OV2WT25T.js} +4 -4
- package/dist/{chunk-G4BLVBQD.js → chunk-PLPRXDTH.js} +4 -4
- package/dist/{chunk-MWIL24VU.js → chunk-RA6X53DS.js} +3 -3
- package/dist/{chunk-6LR4FWOA.js → chunk-SA6W52ZM.js} +4 -4
- package/dist/{chunk-GD4RPFTP.js → chunk-TV7RQJQS.js} +4 -4
- package/dist/{chunk-F43GEFQ6.js → chunk-TZT6MG73.js} +3 -3
- package/dist/{chunk-7H74TBA2.js → chunk-UNLDWBJ7.js} +3 -3
- package/dist/{chunk-PAKKG4IK.js → chunk-UWQ5RHX4.js} +7 -7
- package/dist/{chunk-S5NF3A56.js → chunk-WGIJUWK3.js} +3 -3
- package/dist/{chunk-XZ7LRLSW.js → chunk-WUIY4ZKO.js} +6 -6
- package/dist/{chunk-MMX2XAE3.js → chunk-YWMIXHIW.js} +5 -5
- package/dist/{chunk-XYKT7ZUU.js → chunk-Z4MGMNXM.js} +2 -2
- package/dist/{chunk-57Q6OQG4.js → chunk-ZUCWDIGE.js} +2 -2
- package/dist/{chunk-EDUZEBZD.js → chunk-ZXBYB5U7.js} +4 -4
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +13 -13
- package/dist/cli/commands/cache/clear.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +11 -11
- package/dist/cli/commands/docs/generate.js +11 -11
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/help.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/notifications/generate.js +12 -12
- package/dist/cli/commands/notifications/list.js +12 -12
- package/dist/cli/commands/search.js +12 -12
- package/dist/cli/commands/upgrade.js +12 -12
- package/dist/cli/commands/version.js +12 -12
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/notifications.js +7 -7
- package/dist/cli/services/commands/search.js +3 -3
- package/dist/cli/services/commands/search.test.js +3 -3
- package/dist/cli/services/commands/version.js +4 -4
- package/dist/cli/services/commands/version.test.js +5 -5
- 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 +4 -4
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-HQIYD7VA.js → custom-oclif-loader-FXIJAWX7.js} +3 -3
- package/dist/{error-handler-BQ3ZQYX7.js → error-handler-EDZQQPRP.js} +9 -9
- package/dist/hooks/postrun.js +7 -7
- package/dist/hooks/prerun.js +8 -8
- package/dist/index.js +117 -106
- package/dist/{local-F5VFMUS5.js → local-7RAANNJV.js} +3 -3
- package/dist/{node-NS4BEHX4.js → node-UQTVOAV2.js} +13 -13
- package/dist/{node-package-manager-XTTAGATX.js → node-package-manager-EM4XDXO6.js} +4 -4
- package/dist/{path-2K5HIMHZ.js → path-GWAZZN2N.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-A4PGXQX4.js → ui-OHY6IY4A.js} +3 -3
- package/dist/{workerd-WQC6GRYP.js → workerd-UWTQ4ECK.js} +13 -13
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
normalizePath,
|
|
15
15
|
relativizePath,
|
|
16
16
|
sniffForPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZUCWDIGE.js";
|
|
18
18
|
import {
|
|
19
19
|
require_cross_spawn,
|
|
20
20
|
require_lib,
|
|
@@ -29384,7 +29384,7 @@ function formatSection(title, body) {
|
|
|
29384
29384
|
}
|
|
29385
29385
|
|
|
29386
29386
|
// ../cli-kit/dist/public/node/error.js
|
|
29387
|
-
var import_core2 = __toESM(require_lib()), import_ts_error = __toESM(require_cjs()), FatalErrorType;
|
|
29387
|
+
var import_core2 = __toESM(require_lib(), 1), import_ts_error = __toESM(require_cjs(), 1), FatalErrorType;
|
|
29388
29388
|
(function(FatalErrorType2) {
|
|
29389
29389
|
FatalErrorType2[FatalErrorType2.Abort = 0] = "Abort", FatalErrorType2[FatalErrorType2.AbortSilent = 1] = "AbortSilent", FatalErrorType2[FatalErrorType2.Bug = 2] = "Bug";
|
|
29390
29390
|
})(FatalErrorType || (FatalErrorType = {}));
|
|
@@ -29512,7 +29512,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
29512
29512
|
try {
|
|
29513
29513
|
await getAndSet();
|
|
29514
29514
|
} catch (error) {
|
|
29515
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
29515
|
+
let { sendErrorToBugsnag } = await import("./error-handler-EDZQQPRP.js");
|
|
29516
29516
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
29517
29517
|
}
|
|
29518
29518
|
}, durationStack = [];
|
|
@@ -31519,4 +31519,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31519
31519
|
* LICENSE file in the root directory of this source tree.
|
|
31520
31520
|
*)
|
|
31521
31521
|
*/
|
|
31522
|
-
//# sourceMappingURL=chunk-
|
|
31522
|
+
//# sourceMappingURL=chunk-2SENSD2I.js.map
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getEnvironmentData,
|
|
3
3
|
getLastSeenUserIdAfterAuth,
|
|
4
4
|
getSensitiveEnvironmentData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7RVTZY4V.js";
|
|
6
6
|
import {
|
|
7
7
|
fetch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AA6YHL4H.js";
|
|
9
9
|
import {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OEN366HT.js";
|
|
12
12
|
import {
|
|
13
13
|
runWithRateLimit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SA6W52ZM.js";
|
|
15
15
|
import {
|
|
16
16
|
alwaysLogAnalytics,
|
|
17
17
|
alwaysLogMetrics,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
outputDebug,
|
|
29
29
|
outputToken,
|
|
30
30
|
reportingRateLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2SENSD2I.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__esm,
|
|
@@ -15930,4 +15930,4 @@ export {
|
|
|
15930
15930
|
requestIdsCollection,
|
|
15931
15931
|
reportAnalyticsEvent
|
|
15932
15932
|
};
|
|
15933
|
-
//# sourceMappingURL=chunk-
|
|
15933
|
+
//# sourceMappingURL=chunk-4N62VJCW.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2SENSD2I.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -203,4 +203,4 @@ async function staticService() {
|
|
|
203
203
|
export {
|
|
204
204
|
staticService
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-4O7JN5N7.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
4
4
|
import {
|
|
5
5
|
renderTable,
|
|
6
6
|
renderText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2SENSD2I.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
10
|
} from "./chunk-5AFYDRV4.js";
|
|
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
|
|
|
83
83
|
export {
|
|
84
84
|
CommandFlags
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-5EUF2EDL.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CIGCMM7Y.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
9
|
} from "./chunk-5AFYDRV4.js";
|
|
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
|
|
|
48
48
|
export {
|
|
49
49
|
Search
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-6SM3SPO2.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
renderDangerousConfirmationPrompt,
|
|
6
6
|
renderSelectPrompt,
|
|
7
7
|
renderTextPrompt
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2SENSD2I.js";
|
|
9
9
|
import {
|
|
10
10
|
init_cjs_shims
|
|
11
11
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -175,4 +175,4 @@ async function prompts() {
|
|
|
175
175
|
export {
|
|
176
176
|
prompts
|
|
177
177
|
};
|
|
178
|
-
//# sourceMappingURL=chunk-
|
|
178
|
+
//# sourceMappingURL=chunk-6ZDFI7RQ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
list
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YWMIXHIW.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
7
7
|
import {
|
|
8
8
|
sendErrorToBugsnag
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UWQ5RHX4.js";
|
|
10
10
|
import {
|
|
11
11
|
require_lib
|
|
12
12
|
} from "./chunk-5AFYDRV4.js";
|
|
@@ -49,4 +49,4 @@ var List = class _List extends base_command_default {
|
|
|
49
49
|
export {
|
|
50
50
|
List
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-7ABG3SAU.js.map
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
nonRandomUUID,
|
|
8
8
|
shopifyFetch,
|
|
9
9
|
z
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AA6YHL4H.js";
|
|
11
11
|
import {
|
|
12
12
|
getPackageManager,
|
|
13
13
|
getSession,
|
|
14
14
|
packageManagerFromUserAgent,
|
|
15
15
|
removeSession,
|
|
16
16
|
setSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SA6W52ZM.js";
|
|
18
18
|
import {
|
|
19
19
|
AbortError,
|
|
20
20
|
BugError,
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
sessionConstants,
|
|
46
46
|
spinFqdn,
|
|
47
47
|
themeToken
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-2SENSD2I.js";
|
|
49
49
|
import {
|
|
50
50
|
cwd
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZUCWDIGE.js";
|
|
52
52
|
import {
|
|
53
53
|
__commonJS,
|
|
54
54
|
__require,
|
|
@@ -516,6 +516,17 @@ async function partnersFqdn() {
|
|
|
516
516
|
return productionFqdn;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
+
async function adminFqdn() {
|
|
520
|
+
let environment = serviceEnvironment(), productionFqdn = "admin.shopify.com";
|
|
521
|
+
switch (environment) {
|
|
522
|
+
case "local":
|
|
523
|
+
return new DevServerCore().host("admin");
|
|
524
|
+
case "spin":
|
|
525
|
+
return `admin.shopify.${await spinFqdn()}`;
|
|
526
|
+
default:
|
|
527
|
+
return productionFqdn;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
519
530
|
async function appManagementFqdn() {
|
|
520
531
|
let environment = serviceEnvironment(), productionFqdn = "app.shopify.com";
|
|
521
532
|
switch (environment) {
|
|
@@ -1172,6 +1183,7 @@ function flagIncluded(flag, commandClass) {
|
|
|
1172
1183
|
|
|
1173
1184
|
export {
|
|
1174
1185
|
partnersFqdn,
|
|
1186
|
+
adminFqdn,
|
|
1175
1187
|
appManagementFqdn,
|
|
1176
1188
|
appDevFqdn,
|
|
1177
1189
|
developerDashboardFqdn,
|
|
@@ -1192,4 +1204,4 @@ export {
|
|
|
1192
1204
|
getEnvironmentData,
|
|
1193
1205
|
getSensitiveEnvironmentData
|
|
1194
1206
|
};
|
|
1195
|
-
//# sourceMappingURL=chunk-
|
|
1207
|
+
//# sourceMappingURL=chunk-7RVTZY4V.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-25IMI7TH.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_KIT_VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OEN366HT.js";
|
|
9
9
|
import {
|
|
10
10
|
Environment,
|
|
11
11
|
environmentVariables,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
serviceEnvironment,
|
|
19
19
|
sleep,
|
|
20
20
|
systemEnvironmentVariables
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2SENSD2I.js";
|
|
22
22
|
import {
|
|
23
23
|
sniffForJson
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZUCWDIGE.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
@@ -31452,4 +31452,4 @@ mime-types/index.js:
|
|
|
31452
31452
|
* MIT Licensed
|
|
31453
31453
|
*)
|
|
31454
31454
|
*/
|
|
31455
|
-
//# sourceMappingURL=chunk-
|
|
31455
|
+
//# sourceMappingURL=chunk-AA6YHL4H.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2SENSD2I.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZUCWDIGE.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
16
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -118,4 +118,4 @@ export {
|
|
|
118
118
|
writeCommandFlagInterface,
|
|
119
119
|
writeCommandUsageExampleFile
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-BJKFVTUU.js.map
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
fetch,
|
|
3
3
|
jsonOutputEnabled,
|
|
4
4
|
z
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AA6YHL4H.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_KIT_VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OEN366HT.js";
|
|
9
9
|
import {
|
|
10
10
|
cacheRetrieve,
|
|
11
11
|
cacheStore,
|
|
12
12
|
versionSatisfies
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SA6W52ZM.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortSilentError,
|
|
16
16
|
exec,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
renderError,
|
|
20
20
|
renderInfo,
|
|
21
21
|
renderWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2SENSD2I.js";
|
|
23
23
|
import {
|
|
24
24
|
init_cjs_shims
|
|
25
25
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -87,7 +87,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
|
|
|
87
87
|
throw new AbortSilentError();
|
|
88
88
|
let errorMessage = `Error showing notifications: ${error.message}`;
|
|
89
89
|
outputDebug(errorMessage);
|
|
90
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
90
|
+
let { sendErrorToBugsnag } = await import("./error-handler-EDZQQPRP.js");
|
|
91
91
|
await sendErrorToBugsnag(errorMessage, "unexpected_error");
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -200,4 +200,4 @@ export {
|
|
|
200
200
|
fetchNotificationsInBackground,
|
|
201
201
|
stringifyFilters
|
|
202
202
|
};
|
|
203
|
-
//# sourceMappingURL=chunk-
|
|
203
|
+
//# sourceMappingURL=chunk-CC5JTJRC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2SENSD2I.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-CIGCMM7Y.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
4
4
|
import {
|
|
5
5
|
cacheClear
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SA6W52ZM.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
isTruthy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2SENSD2I.js";
|
|
11
11
|
import {
|
|
12
12
|
require_lib
|
|
13
13
|
} from "./chunk-5AFYDRV4.js";
|
|
@@ -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-EDZQQPRP.js"), { isDevelopment } = await import("./local-7RAANNJV.js"), oclif = await import("./lib-MIBR2T7P.js"), { ShopifyConfig } = await import("./custom-oclif-loader-FXIJAWX7.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 exitIfOldNodeVersion(versions = process.versions) {
|
|
42
42
|
let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
43
43
|
if (nodeMajorVersion < 18) {
|
|
44
|
-
let { renderError } = await import("./ui-
|
|
44
|
+
let { renderError } = await import("./ui-OHY6IY4A.js");
|
|
45
45
|
renderError({
|
|
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 exitIfOldNodeVersion(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-EM4XDXO6.js"), { moduleDirectory } = await import("./path-GWAZZN2N.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-GXYYUJCZ.js.map
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
ensureAuthenticatedAdmin,
|
|
9
9
|
ensureAuthenticatedBusinessPlatform,
|
|
10
10
|
logout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OV2WT25T.js";
|
|
12
12
|
import {
|
|
13
13
|
base_command_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
15
15
|
import {
|
|
16
16
|
fanoutHooks,
|
|
17
17
|
requestIdsCollection
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4N62VJCW.js";
|
|
19
19
|
import {
|
|
20
20
|
businessPlatformFqdn,
|
|
21
21
|
normalizeStoreFqdn,
|
|
22
22
|
partnersFqdn
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7RVTZY4V.js";
|
|
24
24
|
import {
|
|
25
25
|
ClientError,
|
|
26
26
|
GraphQLClient,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
retryAwareRequest,
|
|
35
35
|
sanitizeURL,
|
|
36
36
|
sanitizedHeadersOutput
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-AA6YHL4H.js";
|
|
38
38
|
import {
|
|
39
39
|
CLI_KIT_VERSION
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-OEN366HT.js";
|
|
41
41
|
import {
|
|
42
42
|
cacheRetrieveOrRepopulate,
|
|
43
43
|
findUpAndReadPackageJson,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
readAndParsePackageJson,
|
|
48
48
|
timeIntervalToMilliseconds,
|
|
49
49
|
writePackageJSON
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-SA6W52ZM.js";
|
|
51
51
|
import {
|
|
52
52
|
AbortError,
|
|
53
53
|
BugError,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
source_default,
|
|
88
88
|
stringifyMessage,
|
|
89
89
|
writeFile
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-2SENSD2I.js";
|
|
91
91
|
import {
|
|
92
92
|
basename,
|
|
93
93
|
cwd,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
relativePath,
|
|
98
98
|
relativizePath,
|
|
99
99
|
resolvePath
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-ZUCWDIGE.js";
|
|
101
101
|
import {
|
|
102
102
|
require_lib
|
|
103
103
|
} from "./chunk-5AFYDRV4.js";
|
|
@@ -136542,50 +136542,21 @@ Request ID: ${requestId}
|
|
|
136542
136542
|
}
|
|
136543
136543
|
|
|
136544
136544
|
// ../cli-kit/dist/public/node/api/graphql.js
|
|
136545
|
-
async function
|
|
136546
|
-
let headers = {
|
|
136545
|
+
async function performGraphQLRequest(options2) {
|
|
136546
|
+
let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler, cacheOptions } = options2, headers = {
|
|
136547
136547
|
...addedHeaders,
|
|
136548
136548
|
...buildHeaders(token)
|
|
136549
|
-
}, clientOptions = { agent: await httpsAgent(), headers };
|
|
136550
|
-
return {
|
|
136551
|
-
client: new GraphQLClient(url, clientOptions),
|
|
136552
|
-
headers
|
|
136553
136549
|
};
|
|
136554
|
-
}
|
|
136555
|
-
async function performGraphQLRequest(options2) {
|
|
136556
|
-
let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler, cacheOptions } = options2, requestBehaviour = requestMode(options2.preferredBehaviour ?? "default"), { headers, client } = await createGraphQLClient({ url, addedHeaders, token });
|
|
136557
136550
|
debugLogRequestInfo(api, queryAsString, url, variables, headers);
|
|
136558
|
-
let
|
|
136551
|
+
let requestBehaviour = requestMode(options2.preferredBehaviour ?? "default"), clientOptions = { agent: await httpsAgent(), headers }, client = new GraphQLClient(url, clientOptions), performRequest = async () => {
|
|
136559
136552
|
let fullResponse;
|
|
136560
136553
|
try {
|
|
136561
136554
|
return client.requestConfig.signal = abortSignalFromRequestBehaviour(requestBehaviour), fullResponse = await client.rawRequest(queryAsString, variables), await logLastRequestIdFromResponse(fullResponse), fullResponse;
|
|
136562
136555
|
} catch (error) {
|
|
136563
136556
|
throw error instanceof ClientError && await logLastRequestIdFromResponse(error.response), error;
|
|
136564
136557
|
}
|
|
136565
|
-
},
|
|
136566
|
-
let
|
|
136567
|
-
if (refreshTokenResult.token) {
|
|
136568
|
-
let { client: newClient, headers: newHeaders } = await createGraphQLClient({
|
|
136569
|
-
url,
|
|
136570
|
-
addedHeaders,
|
|
136571
|
-
token: refreshTokenResult.token
|
|
136572
|
-
});
|
|
136573
|
-
return client = newClient, headers = newHeaders, !0;
|
|
136574
|
-
} else
|
|
136575
|
-
return !1;
|
|
136576
|
-
} : void 0, request = () => retryAwareRequest({ request: rawGraphQLRequest, url, ...requestBehaviour }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api), simpleUnauthorizedHandler), executeWithTimer = () => runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
136577
|
-
let response;
|
|
136578
|
-
try {
|
|
136579
|
-
response = await request();
|
|
136580
|
-
} catch (error) {
|
|
136581
|
-
if (error instanceof ClientError && error.response.status === 401 && tokenRefreshUnauthorizedHandlerFunction)
|
|
136582
|
-
if (await tokenRefreshUnauthorizedHandlerFunction())
|
|
136583
|
-
response = await request();
|
|
136584
|
-
else
|
|
136585
|
-
throw error;
|
|
136586
|
-
else
|
|
136587
|
-
throw error;
|
|
136588
|
-
}
|
|
136558
|
+
}, executeWithTimer = () => runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
136559
|
+
let response = await retryAwareRequest({ request: performRequest, url, ...requestBehaviour }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api), unauthorizedHandler);
|
|
136589
136560
|
return responseOptions?.onResponse && responseOptions.onResponse(response), response.data;
|
|
136590
136561
|
});
|
|
136591
136562
|
if (cacheOptions === void 0)
|
|
@@ -136979,30 +136950,28 @@ async function setupRequest(token) {
|
|
|
136979
136950
|
responseOptions: { onResponse: handleDeprecations }
|
|
136980
136951
|
};
|
|
136981
136952
|
}
|
|
136982
|
-
async function partnersRequest(query, token, variables, cacheOptions, preferredBehaviour
|
|
136953
|
+
async function partnersRequest(query, token, variables, cacheOptions, preferredBehaviour) {
|
|
136983
136954
|
let opts = await setupRequest(token);
|
|
136984
136955
|
return limiter.schedule(() => graphqlRequest({
|
|
136985
136956
|
...opts,
|
|
136986
136957
|
query,
|
|
136987
136958
|
variables,
|
|
136988
136959
|
cacheOptions,
|
|
136989
|
-
preferredBehaviour
|
|
136990
|
-
unauthorizedHandler
|
|
136960
|
+
preferredBehaviour
|
|
136991
136961
|
}));
|
|
136992
136962
|
}
|
|
136993
136963
|
var generateFetchAppLogUrl = async (cursor, filters) => {
|
|
136994
136964
|
let url = `https://${await partnersFqdn()}/app_logs/poll`;
|
|
136995
136965
|
return addCursorAndFiltersToAppLogsUrl(url, cursor, filters);
|
|
136996
136966
|
};
|
|
136997
|
-
async function partnersRequestDoc(query, token, variables, preferredBehaviour
|
|
136967
|
+
async function partnersRequestDoc(query, token, variables, preferredBehaviour) {
|
|
136998
136968
|
try {
|
|
136999
136969
|
let opts = await setupRequest(token);
|
|
137000
136970
|
return limiter.schedule(() => graphqlRequestDoc({
|
|
137001
136971
|
...opts,
|
|
137002
136972
|
query,
|
|
137003
136973
|
variables,
|
|
137004
|
-
preferredBehaviour
|
|
137005
|
-
unauthorizedHandler
|
|
136974
|
+
preferredBehaviour
|
|
137006
136975
|
}));
|
|
137007
136976
|
} catch (error) {
|
|
137008
136977
|
if (error.errors?.[0]?.extensions?.type === "unsupported_client_version") {
|
|
@@ -142593,4 +142562,4 @@ export {
|
|
|
142593
142562
|
getDebugBannerLine,
|
|
142594
142563
|
getUtilityBannerlines
|
|
142595
142564
|
};
|
|
142596
|
-
//# sourceMappingURL=chunk-
|
|
142565
|
+
//# sourceMappingURL=chunk-JEZFZHJT.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderConcurrent,
|
|
3
3
|
renderTasks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2SENSD2I.js";
|
|
5
5
|
import {
|
|
6
6
|
init_cjs_shims
|
|
7
7
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -43,4 +43,4 @@ async function asyncTasks() {
|
|
|
43
43
|
export {
|
|
44
44
|
asyncTasks
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-JTTPS2WH.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SA6W52ZM.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2SENSD2I.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
cliInstallCommand,
|
|
26
26
|
getOutputUpdateCLIReminder
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-MGQUMYJJ.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6ZDFI7RQ.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.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-MK43HXRP.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asyncTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JTTPS2WH.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.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-MRSGUMFQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WUIY4ZKO.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
6
|
} from "./chunk-5AFYDRV4.js";
|
|
@@ -46,4 +46,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
|
|
|
46
46
|
export {
|
|
47
47
|
HelpCommand
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-MUBX4Z7T.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6ZDFI7RQ.js";
|
|
4
4
|
import {
|
|
5
5
|
staticService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4O7JN5N7.js";
|
|
7
7
|
import {
|
|
8
8
|
asyncTasks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JTTPS2WH.js";
|
|
10
10
|
import {
|
|
11
11
|
base_command_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WUIY4ZKO.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-O47Y2LR2.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.80.
|
|
7
|
+
var CLI_KIT_VERSION = "3.80.1";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-OEN366HT.js.map
|