@shopify/cli 3.86.1 → 3.87.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/README.md +2 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/index-0hw3R_TS.css +1 -0
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/{chunk-KCMYZRDH.js → chunk-23Q74MWH.js} +5 -5
- package/dist/{chunk-4WBTBFNC.js → chunk-2UUMQCBY.js} +4 -4
- package/dist/{chunk-GNW7DUJ5.js → chunk-4QID2NII.js} +2 -2
- package/dist/{chunk-SQNWVF3V.js → chunk-6AZR3EEJ.js} +2 -2
- package/dist/{chunk-UB7QY2VF.js → chunk-6LIAGQFX.js} +3 -3
- package/dist/{chunk-AAHIUMCI.js → chunk-76WLOUWP.js} +3 -3
- package/dist/{chunk-TDSRWKL2.js → chunk-7ZPVVRUW.js} +6 -6
- package/dist/{chunk-B7H344JI.js → chunk-CKTUCT5O.js} +115 -96
- package/dist/{chunk-HUR6MF6D.js → chunk-CXQE3TGJ.js} +8 -8
- package/dist/{chunk-A5RXDG36.js → chunk-EU2KBN47.js} +7 -7
- package/dist/chunk-EZQWZ57B.js +53 -0
- package/dist/{chunk-MZWHWEIR.js → chunk-F243634J.js} +2 -2
- package/dist/{chunk-4MSYMXAX.js → chunk-GPKHDSF5.js} +2 -2
- package/dist/{chunk-PBZI5MOK.js → chunk-GWTUHQYO.js} +60 -186
- package/dist/{chunk-YRJLM3MZ.js → chunk-H7NW53OX.js} +2 -2
- package/dist/{chunk-AM4QB5OM.js → chunk-HMDWNGIV.js} +100 -206
- package/dist/{chunk-K45JWD7H.js → chunk-ITSXRFLE.js} +24 -7
- package/dist/chunk-JDEWPBGH.js +80 -0
- package/dist/{chunk-NAPXIWWP.js → chunk-JOBZ2ZJ4.js} +6 -6
- package/dist/{chunk-J6JPAWCE.js → chunk-K4JH57B7.js} +2 -2
- package/dist/{chunk-IPWP4QG4.js → chunk-K6IFMHN3.js} +5 -5
- package/dist/{chunk-2WTSZOXI.js → chunk-KDVEMQGZ.js} +3 -3
- package/dist/{chunk-AXMPBUZL.js → chunk-KFQPNPET.js} +3 -3
- package/dist/{chunk-2LK4JXAI.js → chunk-KT66WYZX.js} +28 -16
- package/dist/{chunk-6FH6AJI5.js → chunk-KUJQ4AB6.js} +103 -2
- package/dist/{chunk-QZSPMSF2.js → chunk-LY3CTHXO.js} +18 -6
- package/dist/{chunk-6VIQUXXO.js → chunk-N77BK2FR.js} +2 -2
- package/dist/{chunk-RQD77XVF.js → chunk-NAE7XFUQ.js} +3 -3
- package/dist/{chunk-CZE7TCFI.js → chunk-NECMGZD4.js} +3 -3
- package/dist/{chunk-E7SRX5ME.js → chunk-O3BBUFCD.js} +4 -4
- package/dist/{chunk-PANEHHGV.js → chunk-OIHYAA4J.js} +21 -8
- package/dist/{chunk-52OB52S5.js → chunk-QDR4INV2.js} +5 -5
- package/dist/{chunk-PPM7JU6X.js → chunk-QTFNL7OD.js} +3 -3
- package/dist/{chunk-ZKG22PUU.js → chunk-R7WD7S7O.js} +4 -4
- package/dist/{chunk-VGDJLENI.js → chunk-SOTV4GZS.js} +3 -3
- package/dist/{chunk-X2YIODUW.js → chunk-VLBE545G.js} +15 -1237
- package/dist/{chunk-NOHJOQVR.js → chunk-W5QPQW34.js} +3 -3
- package/dist/{chunk-F2V6FX7R.js → chunk-WM77PTR2.js} +4 -4
- package/dist/{chunk-AU6C5SPW.js → chunk-YFIY3MUW.js} +8 -8
- package/dist/{chunk-J4HWHB57.js → chunk-YPKPNNA3.js} +3 -3
- package/dist/{chunk-YXTZTRRV.js → chunk-ZZV5YBHG.js} +4 -4
- package/dist/cli/commands/auth/login.js +15 -12
- package/dist/cli/commands/auth/login.test.js +17 -14
- package/dist/cli/commands/auth/logout.js +15 -12
- package/dist/cli/commands/auth/logout.test.js +17 -14
- package/dist/cli/commands/cache/clear.js +15 -12
- package/dist/cli/commands/debug/command-flags.js +15 -12
- package/dist/cli/commands/docs/generate.js +15 -12
- package/dist/cli/commands/docs/generate.test.js +16 -13
- package/dist/cli/commands/help.js +15 -12
- package/dist/cli/commands/kitchen-sink/async.js +16 -13
- package/dist/cli/commands/kitchen-sink/async.test.js +17 -14
- package/dist/cli/commands/kitchen-sink/index.js +18 -15
- package/dist/cli/commands/kitchen-sink/index.test.js +19 -16
- package/dist/cli/commands/kitchen-sink/prompts.js +16 -13
- package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -14
- package/dist/cli/commands/kitchen-sink/static.js +16 -13
- package/dist/cli/commands/kitchen-sink/static.test.js +17 -14
- package/dist/cli/commands/notifications/generate.js +16 -13
- package/dist/cli/commands/notifications/list.js +16 -13
- package/dist/cli/commands/search.js +16 -13
- package/dist/cli/commands/upgrade.js +16 -13
- package/dist/cli/commands/upgrade.test.js +1 -1
- package/dist/cli/commands/version.js +16 -13
- package/dist/cli/commands/version.test.js +17 -14
- package/dist/cli/services/commands/notifications.js +11 -8
- package/dist/cli/services/commands/search.js +7 -4
- package/dist/cli/services/commands/search.test.js +8 -5
- package/dist/cli/services/commands/version.js +8 -5
- package/dist/cli/services/commands/version.test.js +10 -7
- package/dist/cli/services/kitchen-sink/async.js +7 -4
- package/dist/cli/services/kitchen-sink/prompts.js +7 -4
- package/dist/cli/services/kitchen-sink/static.js +7 -4
- package/dist/cli/services/upgrade.js +8 -5
- package/dist/cli/services/upgrade.test.js +10 -7
- package/dist/{custom-oclif-loader-IB5J422L.js → custom-oclif-loader-YCPEUXTV.js} +17 -10
- package/dist/{del-DIPVIUR3.js → del-E4LJOSMR.js} +6 -6
- package/dist/{error-handler-CU4DBAA4.js → error-handler-RCQ5H3D3.js} +13 -10
- package/dist/hooks/postrun.js +13 -71
- package/dist/hooks/prerun.js +12 -9
- package/dist/{http-proxy-node16-K5X7BUK5.js → http-proxy-node16-VGGP6PLA.js} +5 -5
- package/dist/index.js +2749 -1601
- package/dist/{lib-EMZRCLCJ.js → lib-G7Q5M6VX.js} +4 -3
- package/dist/{local-PYV7PNUD.js → local-7QIKYPL5.js} +7 -4
- package/dist/{magic-string.es-UZAAPNRE.js → magic-string.es-S5HKFBJX.js} +5 -6
- package/dist/{morph-EGK76SED.js → morph-37GC7LQM.js} +16 -20
- package/dist/{node-package-manager-BCGA26RH.js → node-package-manager-OLHLHWTL.js} +8 -5
- package/dist/{npa-LHT53SWR.js → npa-E675GQOI.js} +5 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-7POT36Q5.js → ui-GVWDQSOR.js} +7 -4
- package/dist/{workerd-UA5IB4IF.js → workerd-PYYL5AYY.js} +17 -16
- package/oclif.manifest.json +95 -127
- package/package.json +8 -8
- package/dist/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +0 -1
- package/dist/chunk-IWFYXDPH.js +0 -109
- /package/dist/assets/dev-console/extensions/dev-console/assets/{index-Cj8WCHlM.js → index-C12jKScn.js} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-XD3LXUGW.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_KIT_VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6AZR3EEJ.js";
|
|
9
9
|
import {
|
|
10
10
|
AbortError,
|
|
11
11
|
environmentVariables,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
runWithTimer,
|
|
17
17
|
sleep,
|
|
18
18
|
systemEnvironmentVariables
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GWTUHQYO.js";
|
|
20
20
|
import {
|
|
21
21
|
sniffForJson
|
|
22
22
|
} from "./chunk-EG6MBBEN.js";
|
|
@@ -28074,9 +28074,9 @@ var allAPIs = ["admin", "storefront-renderer", "partners", "business-platform",
|
|
|
28074
28074
|
function responseHeaderIsInteresting(header) {
|
|
28075
28075
|
return interestingResponseHeaders.has(header);
|
|
28076
28076
|
}
|
|
28077
|
-
function
|
|
28077
|
+
function isTransientNetworkError(error) {
|
|
28078
28078
|
if (error instanceof Error) {
|
|
28079
|
-
let
|
|
28079
|
+
let transientErrorMessages = [
|
|
28080
28080
|
"socket hang up",
|
|
28081
28081
|
"econnreset",
|
|
28082
28082
|
"econnaborted",
|
|
@@ -28087,12 +28087,24 @@ function isARetryableNetworkError(error) {
|
|
|
28087
28087
|
"econnrefused",
|
|
28088
28088
|
"eai_again",
|
|
28089
28089
|
"epipe",
|
|
28090
|
-
"the operation was aborted"
|
|
28091
|
-
|
|
28090
|
+
"the operation was aborted",
|
|
28091
|
+
"timeout",
|
|
28092
|
+
"premature close",
|
|
28093
|
+
"getaddrinfo"
|
|
28094
|
+
], errorMessage = error.message.toLowerCase(), anyMatches = transientErrorMessages.some((issueMessage) => errorMessage.includes(issueMessage)), missingReason = /^request to .* failed, reason:\s*$/.test(errorMessage);
|
|
28092
28095
|
return anyMatches || missingReason;
|
|
28093
28096
|
}
|
|
28094
28097
|
return !1;
|
|
28095
28098
|
}
|
|
28099
|
+
function isNetworkError(error) {
|
|
28100
|
+
if (isTransientNetworkError(error))
|
|
28101
|
+
return !0;
|
|
28102
|
+
if (error instanceof Error) {
|
|
28103
|
+
let permanentNetworkErrorMessages = ["certificate", "cert", "tls", "ssl", "altnames"], errorMessage = error.message.toLowerCase();
|
|
28104
|
+
return permanentNetworkErrorMessages.some((issueMessage) => errorMessage.includes(issueMessage));
|
|
28105
|
+
}
|
|
28106
|
+
return !1;
|
|
28107
|
+
}
|
|
28096
28108
|
async function runRequestWithNetworkLevelRetry(requestOptions) {
|
|
28097
28109
|
if (!requestOptions.useNetworkLevelRetry)
|
|
28098
28110
|
return requestOptions.request();
|
|
@@ -28101,7 +28113,7 @@ async function runRequestWithNetworkLevelRetry(requestOptions) {
|
|
|
28101
28113
|
try {
|
|
28102
28114
|
return await requestOptions.request();
|
|
28103
28115
|
} catch (err) {
|
|
28104
|
-
if (lastSeenError = err, !
|
|
28116
|
+
if (lastSeenError = err, !isTransientNetworkError(err))
|
|
28105
28117
|
throw err;
|
|
28106
28118
|
outputDebug(`Retrying request to ${requestOptions.url} due to network error ${err}`);
|
|
28107
28119
|
}
|
|
@@ -32121,6 +32133,7 @@ export {
|
|
|
32121
32133
|
GraphQLClient,
|
|
32122
32134
|
gql,
|
|
32123
32135
|
allAPIs,
|
|
32136
|
+
isNetworkError,
|
|
32124
32137
|
retryAwareRequest,
|
|
32125
32138
|
require_mime_types,
|
|
32126
32139
|
require_syntax,
|
|
@@ -32155,4 +32168,4 @@ mime-types/index.js:
|
|
|
32155
32168
|
* MIT Licensed
|
|
32156
32169
|
*)
|
|
32157
32170
|
*/
|
|
32158
|
-
//# sourceMappingURL=chunk-
|
|
32171
|
+
//# sourceMappingURL=chunk-OIHYAA4J.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
list
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K6IFMHN3.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ITSXRFLE.js";
|
|
7
7
|
import {
|
|
8
8
|
sendErrorToBugsnag
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YFIY3MUW.js";
|
|
10
10
|
import {
|
|
11
11
|
require_lib
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VLBE545G.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM,
|
|
15
15
|
init_cjs_shims
|
|
@@ -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-QDR4INV2.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
staticService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H7NW53OX.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ITSXRFLE.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkStatic = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkStatic
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-QTFNL7OD.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ITSXRFLE.js";
|
|
4
4
|
import {
|
|
5
5
|
logout
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KT66WYZX.js";
|
|
7
7
|
import {
|
|
8
8
|
outputSuccess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GWTUHQYO.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-R7WD7S7O.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ITSXRFLE.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GWTUHQYO.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
@@ -118,4 +118,4 @@ export {
|
|
|
118
118
|
writeCommandFlagInterface,
|
|
119
119
|
writeCommandUsageExampleFile
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-SOTV4GZS.js.map
|