@shopify/create-app 4.8.4 → 4.9.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/analytics-D5P7IMRA.js +48 -0
- package/dist/analytics-TXXYVQN7.js +40 -0
- package/dist/{chunk-ODCXYGJ2.js → chunk-23UTCSPZ.js} +14 -4
- package/dist/{chunk-QMQX3MT5.js → chunk-2UPX6QLJ.js} +6 -6
- package/dist/{chunk-FSEXIENC.js → chunk-3IJICKWH.js} +2 -2
- package/dist/chunk-5OAATCQX.js +218 -0
- package/dist/{chunk-BEUNBVME.js → chunk-A33KVF5C.js} +1 -1
- package/dist/{chunk-RJ3A4X2R.js → chunk-AJLJXEKT.js} +3093 -23
- package/dist/chunk-BBGOL4JF.js +86 -0
- package/dist/chunk-CK3T27VW.js +119 -0
- package/dist/{chunk-E43EDJOG.js → chunk-EJEHENXO.js} +3 -2
- package/dist/chunk-FKZ3NFHZ.js +7 -0
- package/dist/{chunk-2VQBQQJH.js → chunk-KZZE6H5Q.js} +51 -26
- package/dist/chunk-MHLFPQ3W.js +50 -0
- package/dist/{chunk-XZQD6FEL.js → chunk-MOB6XVGL.js} +2 -2
- package/dist/{chunk-YSB2L5XO.js → chunk-NB6X7ZFE.js} +3 -3
- package/dist/{chunk-ZOH5TKZV.js → chunk-NHN6SUTT.js} +202 -55
- package/dist/chunk-NLC4T4YS.js +1092 -0
- package/dist/{chunk-CJUIIULM.js → chunk-NW3CCDI2.js} +318 -3211
- package/dist/{chunk-U7XCB7LM.js → chunk-OG3KDO3M.js} +16 -16
- package/dist/{chunk-THSPSZ2U.js → chunk-PSP4NDSB.js} +16 -14
- package/dist/{chunk-HGTLZ6ZW.js → chunk-QNTXEHZO.js} +5 -5
- package/dist/{chunk-XPTHNPI4.js → chunk-RYTPHY47.js} +10 -10
- package/dist/{chunk-NFOBMXOQ.js → chunk-SFVOZJMO.js} +32 -10
- package/dist/chunk-SHCNJ47P.js +89 -0
- package/dist/{chunk-4ATBZZ7Q.js → chunk-SYVHC634.js} +2 -2
- package/dist/{chunk-C3J4HVUN.js → chunk-VDUAROBQ.js} +3 -2
- package/dist/command-json-schema-S3W3UW3A.js +65 -0
- package/dist/{conf-store-ZMAEEJET.js → conf-store-GW5MF5EC.js} +11 -11
- package/dist/custom-oclif-loader-MYKFWED2.js +85 -0
- package/dist/{deprecations-2ZE7F57V.js → deprecations-TJKLSMEC.js} +18 -15
- package/dist/environment-OJNKZ7ML.js +25 -0
- package/dist/environments-FLXCXEQY.js +32 -0
- package/dist/error-handler-KSSGLWAL.js +44 -0
- package/dist/{fs-ZEAP6SYM.js → fs-54TFRUFV.js} +10 -5
- package/dist/hooks/postrun.js +11 -6
- package/dist/hooks/prerun.js +6 -6
- package/dist/{http-proxy-node16-5LMQ6YXS.js → http-proxy-node16-FD2WN6JB.js} +2 -3
- package/dist/index.js +6750 -3654
- package/dist/{is-global-FYEORJBG.js → is-global-ABT2AQMZ.js} +10 -5
- package/dist/json-error-N7MI3KIX.js +104 -0
- package/dist/{lib-XCYUJYSO.js → lib-NYDMHWZM.js} +3 -4
- package/dist/{local-A2UFPWGA.js → local-BAVJFTPY.js} +11 -3
- package/dist/{metadata-WWELAOUA.js → metadata-JDWMZLO3.js} +10 -4
- package/dist/{node-package-manager-WU3OX73T.js → node-package-manager-LZQDH5RV.js} +20 -17
- package/dist/notifications-system-C4VANR5T.js +47 -0
- package/dist/os-UYRG46VD.js +24 -0
- package/dist/{output-BOE7D3BZ.js → output-WTBNQLZY.js} +12 -5
- package/dist/{path-2WA5R6GG.js → path-2KZ7FSGN.js} +2 -2
- package/dist/{prettier-SS3RRDXK.js → prettier-BNZDRHR4.js} +2 -2
- package/dist/{system-F5JGMAQ2.js → system-VYWFQ656.js} +18 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-WM75TA2X.js → ui-EW2MACA7.js} +18 -15
- package/dist/{upgrade-437BKOQU.js → upgrade-TCM7RY33.js} +47 -29
- package/dist/{version-EHF3PAN2.js → version-6BXGHP54.js} +2 -2
- package/dist/version-ANERG2ID.js +36 -0
- package/oclif.manifest.json +15 -1
- package/package.json +3 -3
- package/dist/analytics-IYBTJU64.js +0 -44
- package/dist/analytics-N7RZNZ7E.js +0 -36
- package/dist/chunk-7OHJH7BF.js +0 -21
- package/dist/chunk-UPP43IHQ.js +0 -301
- package/dist/custom-oclif-loader-HTLL62HO.js +0 -54
- package/dist/environments-4UKGWAAJ.js +0 -29
- package/dist/error-handler-OPWDDXJP.js +0 -40
- package/dist/notifications-system-SQQO6LJW.js +0 -43
- package/dist/os-WN6IUS7J.js +0 -19
- package/dist/version-Q3TUYBAR.js +0 -33
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
treeKill
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SYVHC634.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-3XNI6LP4.js";
|
|
@@ -26,22 +26,22 @@ function waitForPostRunHookAndExit() {
|
|
|
26
26
|
}
|
|
27
27
|
var hook = async ({ config, Command }) => {
|
|
28
28
|
await detectStopCommand(Command);
|
|
29
|
-
let metadata = await import("./metadata-
|
|
29
|
+
let metadata = await import("./metadata-JDWMZLO3.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
|
|
30
30
|
commandStartOptions && await metadata.addSensitiveMetadata(() => ({
|
|
31
31
|
commandStartOptions: {
|
|
32
32
|
...commandStartOptions,
|
|
33
33
|
endTime: (/* @__PURE__ */ new Date()).getTime()
|
|
34
34
|
}
|
|
35
35
|
}));
|
|
36
|
-
let { postrun: deprecationsHook } = await import("./deprecations-
|
|
36
|
+
let { postrun: deprecationsHook } = await import("./deprecations-TJKLSMEC.js");
|
|
37
37
|
deprecationsHook(Command);
|
|
38
|
-
let { outputDebug } = await import("./output-
|
|
38
|
+
let { outputDebug } = await import("./output-WTBNQLZY.js"), command = Command.id.replace(/:/g, " ");
|
|
39
39
|
outputDebug(`Completed command ${command}`), !command.includes("notifications") && !command.includes("upgrade") && !command.includes("send-analytics") && await autoUpgradeIfNeeded();
|
|
40
|
-
let { reportAnalyticsEvent } = await import("./analytics-
|
|
40
|
+
let { reportAnalyticsEvent } = await import("./analytics-D5P7IMRA.js");
|
|
41
41
|
await reportAnalyticsEvent({ config, exitMode: "ok" }), postRunHookCompleted = !0;
|
|
42
42
|
};
|
|
43
43
|
async function autoUpgradeIfNeeded() {
|
|
44
|
-
let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-
|
|
44
|
+
let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-TCM7RY33.js"), newerVersion = versionToAutoUpgrade();
|
|
45
45
|
if (!newerVersion) {
|
|
46
46
|
await warnIfUpgradeAvailable();
|
|
47
47
|
return;
|
|
@@ -49,7 +49,7 @@ async function autoUpgradeIfNeeded() {
|
|
|
49
49
|
if (process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE === "1")
|
|
50
50
|
await performAutoUpgrade(newerVersion);
|
|
51
51
|
else {
|
|
52
|
-
let { runAtMinimumInterval } = await import("./conf-store-
|
|
52
|
+
let { runAtMinimumInterval } = await import("./conf-store-GW5MF5EC.js");
|
|
53
53
|
await runAtMinimumInterval("auto-upgrade", { days: 1 }, async () => {
|
|
54
54
|
await performAutoUpgrade(newerVersion);
|
|
55
55
|
});
|
|
@@ -57,11 +57,11 @@ async function autoUpgradeIfNeeded() {
|
|
|
57
57
|
}
|
|
58
58
|
async function performAutoUpgrade(newerVersion) {
|
|
59
59
|
let [{ CLI_KIT_VERSION }, { isMajorVersionChange }, { outputWarn, outputDebug }, { getOutputUpdateCLIReminder, runCLIUpgrade, hasBlockingAutoUpgradeNotification }, metadata] = await Promise.all([
|
|
60
|
-
import("./version-
|
|
61
|
-
import("./version-
|
|
62
|
-
import("./output-
|
|
63
|
-
import("./upgrade-
|
|
64
|
-
import("./metadata-
|
|
60
|
+
import("./version-6BXGHP54.js"),
|
|
61
|
+
import("./version-ANERG2ID.js"),
|
|
62
|
+
import("./output-WTBNQLZY.js"),
|
|
63
|
+
import("./upgrade-TCM7RY33.js"),
|
|
64
|
+
import("./metadata-JDWMZLO3.js")
|
|
65
65
|
]);
|
|
66
66
|
if (isMajorVersionChange(CLI_KIT_VERSION, newerVersion)) {
|
|
67
67
|
outputWarn(getOutputUpdateCLIReminder(newerVersion, !0)), await metadata.addPublicMetadata(() => ({
|
|
@@ -81,8 +81,8 @@ async function performAutoUpgrade(newerVersion) {
|
|
|
81
81
|
let errorMessage = `Auto-upgrade failed: ${error}`;
|
|
82
82
|
outputDebug(errorMessage), outputWarn(getOutputUpdateCLIReminder(newerVersion)), await metadata.addPublicMetadata(() => ({ env_auto_upgrade_success: !1 }));
|
|
83
83
|
let [{ sendErrorToBugsnag }, { inferPackageManagerForGlobalCLI }] = await Promise.all([
|
|
84
|
-
import("./error-handler-
|
|
85
|
-
import("./is-global-
|
|
84
|
+
import("./error-handler-KSSGLWAL.js"),
|
|
85
|
+
import("./is-global-ABT2AQMZ.js")
|
|
86
86
|
]), enrichedError = Object.assign(new Error(errorMessage), {
|
|
87
87
|
packageManager: inferPackageManagerForGlobalCLI(),
|
|
88
88
|
platform: process.platform,
|
|
@@ -96,7 +96,7 @@ async function detectStopCommand(commandClass) {
|
|
|
96
96
|
if (commandClass && "analyticsStopCommand" in commandClass && typeof commandClass.analyticsStopCommand == "function") {
|
|
97
97
|
let stopCommand = commandClass.analyticsStopCommand();
|
|
98
98
|
if (stopCommand) {
|
|
99
|
-
let metadata = await import("./metadata-
|
|
99
|
+
let metadata = await import("./metadata-JDWMZLO3.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
|
|
100
100
|
if (!commandStartOptions)
|
|
101
101
|
return;
|
|
102
102
|
await metadata.addSensitiveMetadata(() => ({
|
|
@@ -114,4 +114,4 @@ export {
|
|
|
114
114
|
waitForPostRunHookAndExit,
|
|
115
115
|
hook
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=chunk-
|
|
117
|
+
//# sourceMappingURL=chunk-OG3KDO3M.js.map
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
jsonOutputEnabled
|
|
5
|
-
} from "./chunk-CJUIIULM.js";
|
|
6
|
-
import {
|
|
7
|
-
CLI_KIT_VERSION
|
|
8
|
-
} from "./chunk-FSEXIENC.js";
|
|
2
|
+
fetch
|
|
3
|
+
} from "./chunk-NW3CCDI2.js";
|
|
9
4
|
import {
|
|
10
5
|
versionSatisfies
|
|
11
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RYTPHY47.js";
|
|
7
|
+
import {
|
|
8
|
+
CLI_KIT_VERSION
|
|
9
|
+
} from "./chunk-3IJICKWH.js";
|
|
12
10
|
import {
|
|
13
11
|
cacheRetrieve,
|
|
14
12
|
cacheStore
|
|
15
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KZZE6H5Q.js";
|
|
16
14
|
import {
|
|
17
15
|
exec,
|
|
18
16
|
renderError,
|
|
19
17
|
renderInfo,
|
|
20
18
|
renderWarning
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NHN6SUTT.js";
|
|
20
|
+
import {
|
|
21
|
+
jsonOutputEnabled
|
|
22
|
+
} from "./chunk-SHCNJ47P.js";
|
|
22
23
|
import {
|
|
23
24
|
AbortSilentError
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SFVOZJMO.js";
|
|
25
26
|
import {
|
|
27
|
+
external_exports,
|
|
26
28
|
outputDebug
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AJLJXEKT.js";
|
|
28
30
|
import {
|
|
29
31
|
isTruthy
|
|
30
32
|
} from "./chunk-HNIAZN6U.js";
|
|
@@ -109,7 +111,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
|
|
|
109
111
|
throw new AbortSilentError();
|
|
110
112
|
let errorMessage = `Error showing notifications: ${error.message}`;
|
|
111
113
|
outputDebug(errorMessage);
|
|
112
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
114
|
+
let { sendErrorToBugsnag } = await import("./error-handler-KSSGLWAL.js");
|
|
113
115
|
await sendErrorToBugsnag(errorMessage, "unexpected_error");
|
|
114
116
|
}
|
|
115
117
|
}
|
|
@@ -223,4 +225,4 @@ export {
|
|
|
223
225
|
filterNotifications,
|
|
224
226
|
stringifyFilters
|
|
225
227
|
};
|
|
226
|
-
//# sourceMappingURL=chunk-
|
|
228
|
+
//# sourceMappingURL=chunk-PSP4NDSB.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mimicFunction
|
|
3
|
-
} from "./chunk-CM6ALOD7.js";
|
|
4
1
|
import {
|
|
5
2
|
require_get_stream
|
|
6
3
|
} from "./chunk-JGGOQOPO.js";
|
|
4
|
+
import {
|
|
5
|
+
mimicFunction
|
|
6
|
+
} from "./chunk-CM6ALOD7.js";
|
|
7
7
|
import {
|
|
8
8
|
outputContent,
|
|
9
9
|
outputDebug
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AJLJXEKT.js";
|
|
11
11
|
import {
|
|
12
12
|
__commonJS,
|
|
13
13
|
__require,
|
|
@@ -1395,4 +1395,4 @@ export {
|
|
|
1395
1395
|
username,
|
|
1396
1396
|
platformAndArch
|
|
1397
1397
|
};
|
|
1398
|
-
//# sourceMappingURL=chunk-
|
|
1398
|
+
//# sourceMappingURL=chunk-QNTXEHZO.js.map
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cacheRetrieve,
|
|
3
3
|
cacheRetrieveOrRepopulate
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KZZE6H5Q.js";
|
|
5
5
|
import {
|
|
6
6
|
AbortController,
|
|
7
7
|
exec
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NHN6SUTT.js";
|
|
9
9
|
import {
|
|
10
10
|
runWithTimer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NB6X7ZFE.js";
|
|
12
12
|
import {
|
|
13
13
|
AbortError,
|
|
14
14
|
BugError
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
require_semver
|
|
18
|
-
} from "./chunk-OQ3KXXGH.js";
|
|
15
|
+
} from "./chunk-SFVOZJMO.js";
|
|
19
16
|
import {
|
|
20
17
|
fileExists,
|
|
21
18
|
fileExistsSync,
|
|
@@ -27,11 +24,14 @@ import {
|
|
|
27
24
|
outputToken,
|
|
28
25
|
readFile,
|
|
29
26
|
writeFile
|
|
30
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AJLJXEKT.js";
|
|
28
|
+
import {
|
|
29
|
+
require_semver
|
|
30
|
+
} from "./chunk-OQ3KXXGH.js";
|
|
31
31
|
import {
|
|
32
32
|
dirname,
|
|
33
33
|
joinPath
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VDUAROBQ.js";
|
|
35
35
|
import {
|
|
36
36
|
__toESM,
|
|
37
37
|
init_cjs_shims
|
|
@@ -344,4 +344,4 @@ export {
|
|
|
344
344
|
writePackageJSON,
|
|
345
345
|
inferPackageManager
|
|
346
346
|
};
|
|
347
|
-
//# sourceMappingURL=chunk-
|
|
347
|
+
//# sourceMappingURL=chunk-RYTPHY47.js.map
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_lib
|
|
3
|
-
} from "./chunk-E43EDJOG.js";
|
|
4
1
|
import {
|
|
5
2
|
TokenizedString,
|
|
3
|
+
flushStdout,
|
|
6
4
|
stringifyMessage,
|
|
7
5
|
tokenItemToString
|
|
8
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AJLJXEKT.js";
|
|
7
|
+
import {
|
|
8
|
+
require_lib
|
|
9
|
+
} from "./chunk-EJEHENXO.js";
|
|
9
10
|
import {
|
|
10
11
|
normalizePath
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VDUAROBQ.js";
|
|
12
13
|
import {
|
|
13
14
|
__toESM,
|
|
14
15
|
init_cjs_shims
|
|
15
16
|
} from "./chunk-3XNI6LP4.js";
|
|
16
17
|
|
|
17
|
-
// ../cli-kit/dist/public/node/error.js
|
|
18
|
+
// ../cli-kit/dist/public/node/error/index.js
|
|
18
19
|
init_cjs_shims();
|
|
19
20
|
|
|
20
21
|
// ../cli-kit/dist/private/node/analytics/graphql-error-codes.js
|
|
@@ -43,7 +44,14 @@ function hasRateLimitCode(errors) {
|
|
|
43
44
|
return graphQLErrorCodes(errors).some(isRateLimitCode);
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
// ../cli-kit/dist/
|
|
47
|
+
// ../cli-kit/dist/private/node/api/status-checks.js
|
|
48
|
+
init_cjs_shims();
|
|
49
|
+
var GATEWAY_ERROR_STATUSES = /* @__PURE__ */ new Set([502, 503, 504]);
|
|
50
|
+
function isGatewayErrorStatus(status) {
|
|
51
|
+
return status !== void 0 && GATEWAY_ERROR_STATUSES.has(status);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// ../cli-kit/dist/public/node/error/index.js
|
|
47
55
|
var import_core = __toESM(require_lib(), 1), FatalErrorType;
|
|
48
56
|
(function(FatalErrorType2) {
|
|
49
57
|
FatalErrorType2[FatalErrorType2.Abort = 0] = "Abort", FatalErrorType2[FatalErrorType2.AbortSilent = 1] = "AbortSilent", FatalErrorType2[FatalErrorType2.Bug = 2] = "Bug";
|
|
@@ -55,6 +63,10 @@ var CancelExecution = class extends Error {
|
|
|
55
63
|
nextSteps;
|
|
56
64
|
formattedMessage;
|
|
57
65
|
customSections;
|
|
66
|
+
/** A stable code for JSON consumers to identify this error, included only when known. */
|
|
67
|
+
code;
|
|
68
|
+
/** Selected JSON-serializable data to include in JSON errors. Never attach the raw error or request. */
|
|
69
|
+
details;
|
|
58
70
|
skipOclifErrorHandling;
|
|
59
71
|
/**
|
|
60
72
|
* Creates a new FatalError error.
|
|
@@ -102,7 +114,12 @@ async function handler(error) {
|
|
|
102
114
|
let maybeError = error;
|
|
103
115
|
fatal = new BugError(maybeError?.message ?? "Unknown error"), maybeError?.stack && (fatal.stack = maybeError?.stack);
|
|
104
116
|
}
|
|
105
|
-
let {
|
|
117
|
+
let { jsonOutputEnabled } = await import("./environment-OJNKZ7ML.js");
|
|
118
|
+
if (jsonOutputEnabled()) {
|
|
119
|
+
let { renderFatalErrorAsJson } = await import("./json-error-N7MI3KIX.js");
|
|
120
|
+
return renderFatalErrorAsJson(fatal), await flushStdout(), error;
|
|
121
|
+
}
|
|
122
|
+
let { renderFatalError } = await import("./ui-EW2MACA7.js");
|
|
106
123
|
return renderFatalError(fatal), Promise.resolve(error);
|
|
107
124
|
}
|
|
108
125
|
function errorMapper(error) {
|
|
@@ -136,7 +153,7 @@ function isExpectedApiError(error) {
|
|
|
136
153
|
if (typeof candidate.response != "object" || candidate.response === null || candidate.request === void 0)
|
|
137
154
|
return !1;
|
|
138
155
|
let status = candidate.response.status;
|
|
139
|
-
return status === 401 || status === 429 || status
|
|
156
|
+
return status === 401 || status === 429 || isGatewayErrorStatus(status) ? !0 : hasRateLimitCode(candidate.response.errors);
|
|
140
157
|
}
|
|
141
158
|
function cleanSingleStackTracePath(filePath) {
|
|
142
159
|
return normalizePath(filePath).replace("file:/", "/").replace(/^\/?[A-Z]:/, "");
|
|
@@ -160,11 +177,16 @@ function errorMessageImpliesEnvironmentIssue(message) {
|
|
|
160
177
|
].some((issueMessage) => message.includes(issueMessage));
|
|
161
178
|
}
|
|
162
179
|
|
|
180
|
+
// ../cli-kit/dist/public/node/error.js
|
|
181
|
+
init_cjs_shims();
|
|
182
|
+
|
|
163
183
|
export {
|
|
164
184
|
graphQLErrorCodes,
|
|
165
185
|
isRateLimitCode,
|
|
166
186
|
isPermissionCode,
|
|
167
187
|
hasRateLimitCode,
|
|
188
|
+
isGatewayErrorStatus,
|
|
189
|
+
FatalErrorType,
|
|
168
190
|
CancelExecution,
|
|
169
191
|
FatalError,
|
|
170
192
|
AbortError,
|
|
@@ -176,4 +198,4 @@ export {
|
|
|
176
198
|
shouldReportErrorAsUnexpected,
|
|
177
199
|
cleanSingleStackTracePath
|
|
178
200
|
};
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
201
|
+
//# sourceMappingURL=chunk-SFVOZJMO.js.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
environmentVariables,
|
|
3
|
+
systemEnvironmentVariables
|
|
4
|
+
} from "./chunk-CK3T27VW.js";
|
|
5
|
+
import {
|
|
6
|
+
isTruthy
|
|
7
|
+
} from "./chunk-HNIAZN6U.js";
|
|
8
|
+
import {
|
|
9
|
+
sniffForJson
|
|
10
|
+
} from "./chunk-VDUAROBQ.js";
|
|
11
|
+
import {
|
|
12
|
+
init_cjs_shims
|
|
13
|
+
} from "./chunk-3XNI6LP4.js";
|
|
14
|
+
|
|
15
|
+
// ../cli-kit/dist/public/node/environment.js
|
|
16
|
+
init_cjs_shims();
|
|
17
|
+
|
|
18
|
+
// ../cli-kit/dist/public/node/crypto.js
|
|
19
|
+
init_cjs_shims();
|
|
20
|
+
import crypto from "crypto";
|
|
21
|
+
function sha256(str) {
|
|
22
|
+
return crypto.createHash("sha256").update(str).digest();
|
|
23
|
+
}
|
|
24
|
+
function hashString(str) {
|
|
25
|
+
return crypto.createHash("sha1").update(str).digest("hex");
|
|
26
|
+
}
|
|
27
|
+
function fileHash(buff) {
|
|
28
|
+
return crypto.createHash("md5").update(buff).digest("hex");
|
|
29
|
+
}
|
|
30
|
+
function randomUUID() {
|
|
31
|
+
return crypto.randomUUID();
|
|
32
|
+
}
|
|
33
|
+
function nonRandomUUID(subject) {
|
|
34
|
+
return crypto.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g, ""), "hex")).update(subject).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ../cli-kit/dist/public/node/environment.js
|
|
38
|
+
function getEnvironmentVariables() {
|
|
39
|
+
return process.env;
|
|
40
|
+
}
|
|
41
|
+
function getAppAutomationToken() {
|
|
42
|
+
let env = getEnvironmentVariables();
|
|
43
|
+
return env[environmentVariables.appAutomationToken] ?? env[environmentVariables.partnersToken];
|
|
44
|
+
}
|
|
45
|
+
function getOrganization() {
|
|
46
|
+
return getEnvironmentVariables()[environmentVariables.organization];
|
|
47
|
+
}
|
|
48
|
+
function parseEnvNumber(value) {
|
|
49
|
+
if (value && !isNaN(Number(value)))
|
|
50
|
+
return Number(value);
|
|
51
|
+
}
|
|
52
|
+
function getBackendPort() {
|
|
53
|
+
return parseEnvNumber(getEnvironmentVariables()[systemEnvironmentVariables.backendPort]);
|
|
54
|
+
}
|
|
55
|
+
function getIdentityTokenInformation() {
|
|
56
|
+
let identityToken = getEnvironmentVariables()[environmentVariables.identityToken], refreshToken = getEnvironmentVariables()[environmentVariables.refreshToken];
|
|
57
|
+
if (!(!identityToken || !refreshToken))
|
|
58
|
+
return {
|
|
59
|
+
accessToken: identityToken,
|
|
60
|
+
refreshToken,
|
|
61
|
+
userId: nonRandomUUID(identityToken)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function jsonOutputEnabled(environment = getEnvironmentVariables(), argv = process.argv) {
|
|
65
|
+
return sniffForJson(argv) || isTruthy(environment[environmentVariables.json]);
|
|
66
|
+
}
|
|
67
|
+
function skipNetworkLevelRetry(environment = getEnvironmentVariables()) {
|
|
68
|
+
return isTruthy(environment[environmentVariables.skipNetworkLevelRetry]);
|
|
69
|
+
}
|
|
70
|
+
function maxRequestTimeForNetworkCallsMs(environment = getEnvironmentVariables()) {
|
|
71
|
+
return parseEnvNumber(environment[environmentVariables.maxRequestTimeForNetworkCalls]) ?? 30 * 1e3;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
sha256,
|
|
76
|
+
hashString,
|
|
77
|
+
fileHash,
|
|
78
|
+
randomUUID,
|
|
79
|
+
nonRandomUUID,
|
|
80
|
+
getEnvironmentVariables,
|
|
81
|
+
getAppAutomationToken,
|
|
82
|
+
getOrganization,
|
|
83
|
+
getBackendPort,
|
|
84
|
+
getIdentityTokenInformation,
|
|
85
|
+
jsonOutputEnabled,
|
|
86
|
+
skipNetworkLevelRetry,
|
|
87
|
+
maxRequestTimeForNetworkCallsMs
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=chunk-SHCNJ47P.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
outputDebug
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AJLJXEKT.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-3XNI6LP4.js";
|
|
@@ -96,4 +96,4 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
|
|
|
96
96
|
export {
|
|
97
97
|
treeKill
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
99
|
+
//# sourceMappingURL=chunk-SYVHC634.js.map
|
|
@@ -163,7 +163,8 @@ function sniffForPath(argv = process.argv) {
|
|
|
163
163
|
return pathFlag;
|
|
164
164
|
}
|
|
165
165
|
function sniffForJson(argv = process.argv) {
|
|
166
|
-
|
|
166
|
+
let passthroughIndex = argv.indexOf("--"), commandArguments = passthroughIndex === -1 ? argv : argv.slice(0, passthroughIndex);
|
|
167
|
+
return commandArguments.includes("--json") || commandArguments.includes("-j");
|
|
167
168
|
}
|
|
168
169
|
function sanitizeRelativePath(input, warn) {
|
|
169
170
|
let segments = input.replace(/\\/g, "/").split("/"), stack = [], stripped = !1;
|
|
@@ -196,4 +197,4 @@ export {
|
|
|
196
197
|
sniffForJson,
|
|
197
198
|
sanitizeRelativePath
|
|
198
199
|
};
|
|
199
|
-
//# sourceMappingURL=chunk-
|
|
200
|
+
//# sourceMappingURL=chunk-VDUAROBQ.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
jsonErrorOutputSchema
|
|
3
|
+
} from "./chunk-MHLFPQ3W.js";
|
|
4
|
+
import "./chunk-FKZ3NFHZ.js";
|
|
5
|
+
import {
|
|
6
|
+
commandEventOutputSchema
|
|
7
|
+
} from "./chunk-BBGOL4JF.js";
|
|
8
|
+
import "./chunk-SHCNJ47P.js";
|
|
9
|
+
import {
|
|
10
|
+
defineJsonOutputSchema
|
|
11
|
+
} from "./chunk-NLC4T4YS.js";
|
|
12
|
+
import {
|
|
13
|
+
AbortError
|
|
14
|
+
} from "./chunk-SFVOZJMO.js";
|
|
15
|
+
import {
|
|
16
|
+
external_exports,
|
|
17
|
+
flushStdout,
|
|
18
|
+
outputResult
|
|
19
|
+
} from "./chunk-AJLJXEKT.js";
|
|
20
|
+
import "./chunk-5OAATCQX.js";
|
|
21
|
+
import "./chunk-CK3T27VW.js";
|
|
22
|
+
import "./chunk-HNIAZN6U.js";
|
|
23
|
+
import {
|
|
24
|
+
require_help
|
|
25
|
+
} from "./chunk-EJEHENXO.js";
|
|
26
|
+
import "./chunk-23UTCSPZ.js";
|
|
27
|
+
import "./chunk-LBXDGVFS.js";
|
|
28
|
+
import "./chunk-OQ3KXXGH.js";
|
|
29
|
+
import "./chunk-D6NYWNY2.js";
|
|
30
|
+
import "./chunk-VDUAROBQ.js";
|
|
31
|
+
import "./chunk-UFLX7QDP.js";
|
|
32
|
+
import "./chunk-SI4LHZYW.js";
|
|
33
|
+
import {
|
|
34
|
+
__toESM,
|
|
35
|
+
init_cjs_shims
|
|
36
|
+
} from "./chunk-3XNI6LP4.js";
|
|
37
|
+
|
|
38
|
+
// ../cli-kit/dist/private/node/command-json-schema.js
|
|
39
|
+
init_cjs_shims();
|
|
40
|
+
var import_help = __toESM(require_help(), 1);
|
|
41
|
+
async function printCommandJsonSchema(config, argv, lazyCommandLoader) {
|
|
42
|
+
let [id] = (0, import_help.normalizeArgv)(config, argv);
|
|
43
|
+
if (!id || id.startsWith("-"))
|
|
44
|
+
throw new AbortError("Specify a command to inspect its JSON output schema.");
|
|
45
|
+
let command = config.findCommand(id);
|
|
46
|
+
if (!command)
|
|
47
|
+
throw new AbortError(`Command "${id}" not found.`);
|
|
48
|
+
let outputSchema = (await lazyCommandLoader?.(command.id) ?? await command.load()).jsonOutputSchema;
|
|
49
|
+
if (!outputSchema)
|
|
50
|
+
throw new AbortError("This command does not define a JSON output schema.");
|
|
51
|
+
let commandSchema = defineJsonOutputSchema({
|
|
52
|
+
name: "CommandOutput",
|
|
53
|
+
schema: external_exports.union([outputSchema.schema, jsonErrorOutputSchema.schema, commandEventOutputSchema.schema]),
|
|
54
|
+
definitions: {
|
|
55
|
+
Result: outputSchema.schema,
|
|
56
|
+
Error: jsonErrorOutputSchema.schema,
|
|
57
|
+
Event: commandEventOutputSchema.schema
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
outputResult(JSON.stringify(commandSchema.jsonSchema, null, 2)), await flushStdout();
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
printCommandJsonSchema
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=command-json-schema-S3W3UW3A.js.map
|
|
@@ -17,21 +17,21 @@ import {
|
|
|
17
17
|
setCurrentSessionId,
|
|
18
18
|
setSessions,
|
|
19
19
|
timeIntervalToMilliseconds
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-NFOBMXOQ.js";
|
|
20
|
+
} from "./chunk-KZZE6H5Q.js";
|
|
22
21
|
import "./chunk-CM6ALOD7.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-SFVOZJMO.js";
|
|
23
|
+
import "./chunk-AJLJXEKT.js";
|
|
24
|
+
import "./chunk-5OAATCQX.js";
|
|
25
|
+
import "./chunk-CK3T27VW.js";
|
|
26
|
+
import "./chunk-HNIAZN6U.js";
|
|
27
|
+
import "./chunk-EJEHENXO.js";
|
|
28
|
+
import "./chunk-23UTCSPZ.js";
|
|
25
29
|
import "./chunk-LBXDGVFS.js";
|
|
26
30
|
import "./chunk-OQ3KXXGH.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-7OHJH7BF.js";
|
|
30
|
-
import "./chunk-HNIAZN6U.js";
|
|
31
|
-
import "./chunk-C3J4HVUN.js";
|
|
31
|
+
import "./chunk-D6NYWNY2.js";
|
|
32
|
+
import "./chunk-VDUAROBQ.js";
|
|
32
33
|
import "./chunk-UFLX7QDP.js";
|
|
33
34
|
import "./chunk-SI4LHZYW.js";
|
|
34
|
-
import "./chunk-D6NYWNY2.js";
|
|
35
35
|
import "./chunk-3XNI6LP4.js";
|
|
36
36
|
export {
|
|
37
37
|
cacheClear,
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
setSessions,
|
|
54
54
|
timeIntervalToMilliseconds
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=conf-store-
|
|
56
|
+
//# sourceMappingURL=conf-store-GW5MF5EC.js.map
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runWithCommandEventsForCommand
|
|
3
|
+
} from "./chunk-BBGOL4JF.js";
|
|
4
|
+
import "./chunk-SHCNJ47P.js";
|
|
5
|
+
import "./chunk-NLC4T4YS.js";
|
|
6
|
+
import "./chunk-AJLJXEKT.js";
|
|
7
|
+
import "./chunk-5OAATCQX.js";
|
|
8
|
+
import "./chunk-CK3T27VW.js";
|
|
9
|
+
import "./chunk-HNIAZN6U.js";
|
|
10
|
+
import {
|
|
11
|
+
require_lib
|
|
12
|
+
} from "./chunk-EJEHENXO.js";
|
|
13
|
+
import "./chunk-23UTCSPZ.js";
|
|
14
|
+
import "./chunk-LBXDGVFS.js";
|
|
15
|
+
import "./chunk-OQ3KXXGH.js";
|
|
16
|
+
import "./chunk-D6NYWNY2.js";
|
|
17
|
+
import "./chunk-VDUAROBQ.js";
|
|
18
|
+
import "./chunk-UFLX7QDP.js";
|
|
19
|
+
import "./chunk-SI4LHZYW.js";
|
|
20
|
+
import {
|
|
21
|
+
__toESM,
|
|
22
|
+
init_cjs_shims
|
|
23
|
+
} from "./chunk-3XNI6LP4.js";
|
|
24
|
+
|
|
25
|
+
// ../cli-kit/dist/public/node/custom-oclif-loader.js
|
|
26
|
+
init_cjs_shims();
|
|
27
|
+
var import_core = __toESM(require_lib(), 1);
|
|
28
|
+
import os from "os";
|
|
29
|
+
var ShopifyConfig = class extends import_core.Config {
|
|
30
|
+
lazyCommandLoader;
|
|
31
|
+
/**
|
|
32
|
+
* Set a lazy command loader that will be used to load individual command classes on demand,
|
|
33
|
+
* bypassing the default oclif behavior of importing the entire COMMANDS module.
|
|
34
|
+
*
|
|
35
|
+
* @param loader - The lazy command loader function.
|
|
36
|
+
*/
|
|
37
|
+
setLazyCommandLoader(loader) {
|
|
38
|
+
this.lazyCommandLoader = loader;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Override load to protect oclif's shell detection from a failing OS user lookup.
|
|
42
|
+
*
|
|
43
|
+
* @returns A promise that resolves once the config is loaded.
|
|
44
|
+
*/
|
|
45
|
+
async load() {
|
|
46
|
+
return setShellVariableWhenUserLookupFails(), super.load();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Override runCommand to use lazy loading when available.
|
|
50
|
+
* Instead of calling cmd.load() which triggers loading ALL commands via index.js,
|
|
51
|
+
* we directly import only the needed command module.
|
|
52
|
+
*
|
|
53
|
+
* @param id - The command ID to run.
|
|
54
|
+
* @param argv - The arguments to pass to the command.
|
|
55
|
+
* @param cachedCommand - An optional cached command loadable.
|
|
56
|
+
* @returns The command result.
|
|
57
|
+
*/
|
|
58
|
+
async runCommand(id, argv = [], cachedCommand = null) {
|
|
59
|
+
return runWithCommandEventsForCommand(argv, async () => {
|
|
60
|
+
if (!this.lazyCommandLoader)
|
|
61
|
+
return super.runCommand(id, argv, cachedCommand);
|
|
62
|
+
let cmd = cachedCommand ?? this.findCommand(id);
|
|
63
|
+
if (!cmd)
|
|
64
|
+
return super.runCommand(id, argv, cachedCommand);
|
|
65
|
+
let commandClass = await this.lazyCommandLoader(id);
|
|
66
|
+
if (!commandClass)
|
|
67
|
+
return super.runCommand(id, argv, cachedCommand);
|
|
68
|
+
commandClass.id = id, commandClass.plugin = cmd.plugin ?? this.rootPlugin, await this.runHook("prerun", { argv, Command: commandClass });
|
|
69
|
+
let result = await commandClass.run(argv, this);
|
|
70
|
+
return await this.runHook("postrun", { argv, Command: commandClass, result }), result;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
function setShellVariableWhenUserLookupFails() {
|
|
75
|
+
if (process.env.SHELL === void 0)
|
|
76
|
+
try {
|
|
77
|
+
os.userInfo();
|
|
78
|
+
} catch {
|
|
79
|
+
process.env.SHELL = "unknown";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
ShopifyConfig
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=custom-oclif-loader-MYKFWED2.js.map
|
|
@@ -3,25 +3,28 @@ import {
|
|
|
3
3
|
} from "./chunk-MSED5ZFM.js";
|
|
4
4
|
import {
|
|
5
5
|
renderWarning
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NHN6SUTT.js";
|
|
7
|
+
import "./chunk-BBGOL4JF.js";
|
|
8
|
+
import "./chunk-QNTXEHZO.js";
|
|
9
|
+
import "./chunk-JGGOQOPO.js";
|
|
10
|
+
import "./chunk-NB6X7ZFE.js";
|
|
11
|
+
import "./chunk-SHCNJ47P.js";
|
|
12
|
+
import "./chunk-NLC4T4YS.js";
|
|
10
13
|
import "./chunk-CM6ALOD7.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SFVOZJMO.js";
|
|
15
|
+
import "./chunk-SYVHC634.js";
|
|
16
|
+
import "./chunk-AJLJXEKT.js";
|
|
17
|
+
import "./chunk-5OAATCQX.js";
|
|
18
|
+
import "./chunk-CK3T27VW.js";
|
|
19
|
+
import "./chunk-HNIAZN6U.js";
|
|
20
|
+
import "./chunk-EJEHENXO.js";
|
|
21
|
+
import "./chunk-23UTCSPZ.js";
|
|
13
22
|
import "./chunk-LBXDGVFS.js";
|
|
14
|
-
import "./chunk-JGGOQOPO.js";
|
|
15
23
|
import "./chunk-OQ3KXXGH.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-UPP43IHQ.js";
|
|
19
|
-
import "./chunk-7OHJH7BF.js";
|
|
20
|
-
import "./chunk-HNIAZN6U.js";
|
|
21
|
-
import "./chunk-C3J4HVUN.js";
|
|
24
|
+
import "./chunk-D6NYWNY2.js";
|
|
25
|
+
import "./chunk-VDUAROBQ.js";
|
|
22
26
|
import "./chunk-UFLX7QDP.js";
|
|
23
27
|
import "./chunk-SI4LHZYW.js";
|
|
24
|
-
import "./chunk-D6NYWNY2.js";
|
|
25
28
|
import {
|
|
26
29
|
init_cjs_shims
|
|
27
30
|
} from "./chunk-3XNI6LP4.js";
|
|
@@ -55,4 +58,4 @@ function renderUpgradeWarning(upgradeByDate, forThemes) {
|
|
|
55
58
|
export {
|
|
56
59
|
postrun
|
|
57
60
|
};
|
|
58
|
-
//# sourceMappingURL=deprecations-
|
|
61
|
+
//# sourceMappingURL=deprecations-TJKLSMEC.js.map
|