@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.
Files changed (99) hide show
  1. package/README.md +2 -1
  2. package/dist/assets/dev-console/extensions/dev-console/assets/index-0hw3R_TS.css +1 -0
  3. package/dist/assets/dev-console/index.html +2 -2
  4. package/dist/{chunk-KCMYZRDH.js → chunk-23Q74MWH.js} +5 -5
  5. package/dist/{chunk-4WBTBFNC.js → chunk-2UUMQCBY.js} +4 -4
  6. package/dist/{chunk-GNW7DUJ5.js → chunk-4QID2NII.js} +2 -2
  7. package/dist/{chunk-SQNWVF3V.js → chunk-6AZR3EEJ.js} +2 -2
  8. package/dist/{chunk-UB7QY2VF.js → chunk-6LIAGQFX.js} +3 -3
  9. package/dist/{chunk-AAHIUMCI.js → chunk-76WLOUWP.js} +3 -3
  10. package/dist/{chunk-TDSRWKL2.js → chunk-7ZPVVRUW.js} +6 -6
  11. package/dist/{chunk-B7H344JI.js → chunk-CKTUCT5O.js} +115 -96
  12. package/dist/{chunk-HUR6MF6D.js → chunk-CXQE3TGJ.js} +8 -8
  13. package/dist/{chunk-A5RXDG36.js → chunk-EU2KBN47.js} +7 -7
  14. package/dist/chunk-EZQWZ57B.js +53 -0
  15. package/dist/{chunk-MZWHWEIR.js → chunk-F243634J.js} +2 -2
  16. package/dist/{chunk-4MSYMXAX.js → chunk-GPKHDSF5.js} +2 -2
  17. package/dist/{chunk-PBZI5MOK.js → chunk-GWTUHQYO.js} +60 -186
  18. package/dist/{chunk-YRJLM3MZ.js → chunk-H7NW53OX.js} +2 -2
  19. package/dist/{chunk-AM4QB5OM.js → chunk-HMDWNGIV.js} +100 -206
  20. package/dist/{chunk-K45JWD7H.js → chunk-ITSXRFLE.js} +24 -7
  21. package/dist/chunk-JDEWPBGH.js +80 -0
  22. package/dist/{chunk-NAPXIWWP.js → chunk-JOBZ2ZJ4.js} +6 -6
  23. package/dist/{chunk-J6JPAWCE.js → chunk-K4JH57B7.js} +2 -2
  24. package/dist/{chunk-IPWP4QG4.js → chunk-K6IFMHN3.js} +5 -5
  25. package/dist/{chunk-2WTSZOXI.js → chunk-KDVEMQGZ.js} +3 -3
  26. package/dist/{chunk-AXMPBUZL.js → chunk-KFQPNPET.js} +3 -3
  27. package/dist/{chunk-2LK4JXAI.js → chunk-KT66WYZX.js} +28 -16
  28. package/dist/{chunk-6FH6AJI5.js → chunk-KUJQ4AB6.js} +103 -2
  29. package/dist/{chunk-QZSPMSF2.js → chunk-LY3CTHXO.js} +18 -6
  30. package/dist/{chunk-6VIQUXXO.js → chunk-N77BK2FR.js} +2 -2
  31. package/dist/{chunk-RQD77XVF.js → chunk-NAE7XFUQ.js} +3 -3
  32. package/dist/{chunk-CZE7TCFI.js → chunk-NECMGZD4.js} +3 -3
  33. package/dist/{chunk-E7SRX5ME.js → chunk-O3BBUFCD.js} +4 -4
  34. package/dist/{chunk-PANEHHGV.js → chunk-OIHYAA4J.js} +21 -8
  35. package/dist/{chunk-52OB52S5.js → chunk-QDR4INV2.js} +5 -5
  36. package/dist/{chunk-PPM7JU6X.js → chunk-QTFNL7OD.js} +3 -3
  37. package/dist/{chunk-ZKG22PUU.js → chunk-R7WD7S7O.js} +4 -4
  38. package/dist/{chunk-VGDJLENI.js → chunk-SOTV4GZS.js} +3 -3
  39. package/dist/{chunk-X2YIODUW.js → chunk-VLBE545G.js} +15 -1237
  40. package/dist/{chunk-NOHJOQVR.js → chunk-W5QPQW34.js} +3 -3
  41. package/dist/{chunk-F2V6FX7R.js → chunk-WM77PTR2.js} +4 -4
  42. package/dist/{chunk-AU6C5SPW.js → chunk-YFIY3MUW.js} +8 -8
  43. package/dist/{chunk-J4HWHB57.js → chunk-YPKPNNA3.js} +3 -3
  44. package/dist/{chunk-YXTZTRRV.js → chunk-ZZV5YBHG.js} +4 -4
  45. package/dist/cli/commands/auth/login.js +15 -12
  46. package/dist/cli/commands/auth/login.test.js +17 -14
  47. package/dist/cli/commands/auth/logout.js +15 -12
  48. package/dist/cli/commands/auth/logout.test.js +17 -14
  49. package/dist/cli/commands/cache/clear.js +15 -12
  50. package/dist/cli/commands/debug/command-flags.js +15 -12
  51. package/dist/cli/commands/docs/generate.js +15 -12
  52. package/dist/cli/commands/docs/generate.test.js +16 -13
  53. package/dist/cli/commands/help.js +15 -12
  54. package/dist/cli/commands/kitchen-sink/async.js +16 -13
  55. package/dist/cli/commands/kitchen-sink/async.test.js +17 -14
  56. package/dist/cli/commands/kitchen-sink/index.js +18 -15
  57. package/dist/cli/commands/kitchen-sink/index.test.js +19 -16
  58. package/dist/cli/commands/kitchen-sink/prompts.js +16 -13
  59. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -14
  60. package/dist/cli/commands/kitchen-sink/static.js +16 -13
  61. package/dist/cli/commands/kitchen-sink/static.test.js +17 -14
  62. package/dist/cli/commands/notifications/generate.js +16 -13
  63. package/dist/cli/commands/notifications/list.js +16 -13
  64. package/dist/cli/commands/search.js +16 -13
  65. package/dist/cli/commands/upgrade.js +16 -13
  66. package/dist/cli/commands/upgrade.test.js +1 -1
  67. package/dist/cli/commands/version.js +16 -13
  68. package/dist/cli/commands/version.test.js +17 -14
  69. package/dist/cli/services/commands/notifications.js +11 -8
  70. package/dist/cli/services/commands/search.js +7 -4
  71. package/dist/cli/services/commands/search.test.js +8 -5
  72. package/dist/cli/services/commands/version.js +8 -5
  73. package/dist/cli/services/commands/version.test.js +10 -7
  74. package/dist/cli/services/kitchen-sink/async.js +7 -4
  75. package/dist/cli/services/kitchen-sink/prompts.js +7 -4
  76. package/dist/cli/services/kitchen-sink/static.js +7 -4
  77. package/dist/cli/services/upgrade.js +8 -5
  78. package/dist/cli/services/upgrade.test.js +10 -7
  79. package/dist/{custom-oclif-loader-IB5J422L.js → custom-oclif-loader-YCPEUXTV.js} +17 -10
  80. package/dist/{del-DIPVIUR3.js → del-E4LJOSMR.js} +6 -6
  81. package/dist/{error-handler-CU4DBAA4.js → error-handler-RCQ5H3D3.js} +13 -10
  82. package/dist/hooks/postrun.js +13 -71
  83. package/dist/hooks/prerun.js +12 -9
  84. package/dist/{http-proxy-node16-K5X7BUK5.js → http-proxy-node16-VGGP6PLA.js} +5 -5
  85. package/dist/index.js +2749 -1601
  86. package/dist/{lib-EMZRCLCJ.js → lib-G7Q5M6VX.js} +4 -3
  87. package/dist/{local-PYV7PNUD.js → local-7QIKYPL5.js} +7 -4
  88. package/dist/{magic-string.es-UZAAPNRE.js → magic-string.es-S5HKFBJX.js} +5 -6
  89. package/dist/{morph-EGK76SED.js → morph-37GC7LQM.js} +16 -20
  90. package/dist/{node-package-manager-BCGA26RH.js → node-package-manager-OLHLHWTL.js} +8 -5
  91. package/dist/{npa-LHT53SWR.js → npa-E675GQOI.js} +5 -3
  92. package/dist/tsconfig.tsbuildinfo +1 -1
  93. package/dist/{ui-7POT36Q5.js → ui-GVWDQSOR.js} +7 -4
  94. package/dist/{workerd-UA5IB4IF.js → workerd-PYYL5AYY.js} +17 -16
  95. package/oclif.manifest.json +95 -127
  96. package/package.json +8 -8
  97. package/dist/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +0 -1
  98. package/dist/chunk-IWFYXDPH.js +0 -109
  99. /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-SQNWVF3V.js";
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-PBZI5MOK.js";
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 isARetryableNetworkError(error) {
28077
+ function isTransientNetworkError(error) {
28078
28078
  if (error instanceof Error) {
28079
- let networkErrorMessages = [
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
- ], errorMessage = error.message.toLowerCase(), anyMatches = networkErrorMessages.some((issueMessage) => errorMessage.includes(issueMessage)), missingReason = /^request to .* failed, reason:\s*$/.test(errorMessage);
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, !isARetryableNetworkError(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-PANEHHGV.js.map
32171
+ //# sourceMappingURL=chunk-OIHYAA4J.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  list
3
- } from "./chunk-IPWP4QG4.js";
3
+ } from "./chunk-K6IFMHN3.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-K45JWD7H.js";
6
+ } from "./chunk-ITSXRFLE.js";
7
7
  import {
8
8
  sendErrorToBugsnag
9
- } from "./chunk-AU6C5SPW.js";
9
+ } from "./chunk-YFIY3MUW.js";
10
10
  import {
11
11
  require_lib
12
- } from "./chunk-X2YIODUW.js";
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-52OB52S5.js.map
52
+ //# sourceMappingURL=chunk-QDR4INV2.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-YRJLM3MZ.js";
3
+ } from "./chunk-H7NW53OX.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-K45JWD7H.js";
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-PPM7JU6X.js.map
28
+ //# sourceMappingURL=chunk-QTFNL7OD.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-K45JWD7H.js";
3
+ } from "./chunk-ITSXRFLE.js";
4
4
  import {
5
5
  logout
6
- } from "./chunk-2LK4JXAI.js";
6
+ } from "./chunk-KT66WYZX.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-PBZI5MOK.js";
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-ZKG22PUU.js.map
28
+ //# sourceMappingURL=chunk-R7WD7S7O.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-K45JWD7H.js";
3
+ } from "./chunk-ITSXRFLE.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-PBZI5MOK.js";
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-VGDJLENI.js.map
121
+ //# sourceMappingURL=chunk-SOTV4GZS.js.map