@shopify/cli 3.72.2 → 3.73.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 (149) hide show
  1. package/dist/assets/hydrogen/starter/CHANGELOG.md +814 -0
  2. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +1 -1
  3. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +3 -4
  4. package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +113 -44
  5. package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +8 -3
  6. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +6 -5
  7. package/dist/assets/hydrogen/starter/app/lib/variants.ts +3 -3
  8. package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +1 -1
  9. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +9 -16
  10. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -10
  11. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +1 -10
  12. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +50 -119
  13. package/dist/assets/hydrogen/starter/app/routes/search.tsx +42 -38
  14. package/dist/assets/hydrogen/starter/app/styles/app.css +25 -1
  15. package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +23 -20
  16. package/dist/assets/hydrogen/starter/guides/search/search.md +27 -25
  17. package/dist/assets/hydrogen/starter/package.json +3 -3
  18. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +177 -194
  19. package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
  20. package/dist/{chokidar-OESTCX4H.js → chokidar-5LLC6S6D.js} +47 -90
  21. package/dist/{chunk-VSLR7ET4.js → chunk-25IMI7TH.js} +8 -46
  22. package/dist/{chunk-NCKQIOV4.js → chunk-3HBRMIPY.js} +28 -50
  23. package/dist/{chunk-NXHZX3WR.js → chunk-3UQTWISO.js} +9 -9
  24. package/dist/{chunk-GVNIHXMX.js → chunk-4SP4IRCQ.js} +38 -60
  25. package/dist/{chunk-QDPQB6WU.js → chunk-4UAFBJXJ.js} +5 -5
  26. package/dist/{chunk-L2J5VM7R.js → chunk-5YYJVU2L.js} +41 -68
  27. package/dist/{chunk-I6R52HNI.js → chunk-6NZVGPSV.js} +39 -68
  28. package/dist/{chunk-XVNW332R.js → chunk-75LV6AQS.js} +6 -10
  29. package/dist/{chunk-N2V4IFX3.js → chunk-7JQIHXLD.js} +3 -3
  30. package/dist/{chunk-2HGYYNE5.js → chunk-B5EXYCV3.js} +5 -9
  31. package/dist/{chunk-NB4NLOEJ.js → chunk-BUFIEXZ5.js} +11 -20
  32. package/dist/{chunk-522OB3EU.js → chunk-CFIKVUNW.js} +2 -2
  33. package/dist/{chunk-KYB6A4PE.js → chunk-CRHXI6PS.js} +13 -23
  34. package/dist/{chunk-SO2RZ6TZ.js → chunk-CXHISGHD.js} +5 -5
  35. package/dist/{chunk-2YCRDHPC.js → chunk-DZHO64DX.js} +4 -4
  36. package/dist/{chunk-KGKTCQ7H.js → chunk-EKIVYQZC.js} +5 -5
  37. package/dist/{chunk-NUP5TATA.js → chunk-EZQWZ57B.js} +2 -2
  38. package/dist/{chunk-UBB7JKND.js → chunk-G2ZZKGSV.js} +2 -2
  39. package/dist/{chunk-CBBS4CV7.js → chunk-G5R6YD27.js} +8 -13
  40. package/dist/{chunk-ECWFBV2F.js → chunk-GLYEBL66.js} +5 -5
  41. package/dist/{chunk-E37RRDIH.js → chunk-HIQDOFZI.js} +4 -4
  42. package/dist/{chunk-HYGCZ6GV.js → chunk-HYVCBINV.js} +68 -49
  43. package/dist/{chunk-ZESD7DR7.js → chunk-I72O5WWR.js} +67 -104
  44. package/dist/{chunk-OXKHBIW7.js → chunk-IG5SOACB.js} +29 -34
  45. package/dist/{chunk-OWLPHMUA.js → chunk-J673ZU5S.js} +4 -4
  46. package/dist/{chunk-K6Y4FYT5.js → chunk-K7HGDAI4.js} +17 -20
  47. package/dist/{chunk-UIRMJZRW.js → chunk-KD7WMX4J.js} +4 -4
  48. package/dist/{chunk-BYPQXSAL.js → chunk-KUM3DVPF.js} +17 -13
  49. package/dist/{chunk-6IUL3QZW.js → chunk-LPBV67AA.js} +4 -4
  50. package/dist/{chunk-WNDN5FAY.js → chunk-MHUINF7I.js} +3 -3
  51. package/dist/{chunk-JDM5VOXB.js → chunk-MJWFXPPX.js} +3 -3
  52. package/dist/{chunk-NE43V3EI.js → chunk-MLL3JKVY.js} +6 -7
  53. package/dist/{chunk-QXIIXX7G.js → chunk-NHV2E73I.js} +16518 -24140
  54. package/dist/{chunk-HMUOOT55.js → chunk-NQZUE7SY.js} +6 -6
  55. package/dist/{chunk-PQQTBTYM.js → chunk-O72ZUVEA.js} +4 -5
  56. package/dist/{chunk-SNOECVP4.js → chunk-OAZFIMJ3.js} +2 -2
  57. package/dist/{chunk-UIAIRQSP.js → chunk-OFYEMT6X.js} +3 -3
  58. package/dist/{chunk-4HTVLK2H.js → chunk-OXS42VB7.js} +1402 -1989
  59. package/dist/{chunk-TAKO7LSJ.js → chunk-P63UVLRS.js} +7 -7
  60. package/dist/{chunk-GKEFW755.js → chunk-PBDGN4T2.js} +6 -6
  61. package/dist/{chunk-POZ5MGPT.js → chunk-PKR7KJ6P.js} +2 -3
  62. package/dist/{chunk-PKJLXLTR.js → chunk-PVMQM44E.js} +5 -5
  63. package/dist/{chunk-KCI6QCAV.js → chunk-PWMEMGZN.js} +4 -4
  64. package/dist/{chunk-KMZ5JSGS.js → chunk-QIM24FVT.js} +3 -3
  65. package/dist/{chunk-VJ7TIVX7.js → chunk-RBLSG22M.js} +6 -7
  66. package/dist/{chunk-K7B4JJLF.js → chunk-RDZJQNFU.js} +4 -4
  67. package/dist/{chunk-YKUYPSCY.js → chunk-RZOW7U2N.js} +3 -3
  68. package/dist/{chunk-OJOHMVV7.js → chunk-SBPFWO4S.js} +294 -448
  69. package/dist/{chunk-O5K4AU7Q.js → chunk-SHWOPMLQ.js} +3 -4
  70. package/dist/{chunk-KWLJTNRE.js → chunk-SNXQ36U2.js} +4 -4
  71. package/dist/{chunk-KVEY52WG.js → chunk-TIXENOYB.js} +4 -4
  72. package/dist/{chunk-RCRRAFH7.js → chunk-X4N2QZOS.js} +3 -3
  73. package/dist/{chunk-VWNWE4HG.js → chunk-X5WKMCE4.js} +111 -84
  74. package/dist/{chunk-PMUQTGZJ.js → chunk-X7YTIMNN.js} +4 -6
  75. package/dist/{chunk-7Q3MMWAC.js → chunk-XE5EOEBL.js} +2 -2
  76. package/dist/{chunk-YXJHYEP7.js → chunk-YVXC5Q6R.js} +4 -4
  77. package/dist/{chunk-HSTSRNLJ.js → chunk-ZX3L2JKV.js} +64 -86
  78. package/dist/cli/commands/auth/logout.js +28 -28
  79. package/dist/cli/commands/auth/logout.test.js +30 -30
  80. package/dist/cli/commands/cache/clear.js +27 -27
  81. package/dist/cli/commands/debug/command-flags.js +27 -27
  82. package/dist/cli/commands/docs/generate.js +27 -27
  83. package/dist/cli/commands/docs/generate.test.js +28 -28
  84. package/dist/cli/commands/help.js +27 -27
  85. package/dist/cli/commands/kitchen-sink/async.js +28 -28
  86. package/dist/cli/commands/kitchen-sink/async.test.js +29 -29
  87. package/dist/cli/commands/kitchen-sink/index.js +30 -30
  88. package/dist/cli/commands/kitchen-sink/index.test.js +31 -31
  89. package/dist/cli/commands/kitchen-sink/prompts.js +28 -28
  90. package/dist/cli/commands/kitchen-sink/prompts.test.js +29 -29
  91. package/dist/cli/commands/kitchen-sink/static.js +28 -28
  92. package/dist/cli/commands/kitchen-sink/static.test.js +29 -29
  93. package/dist/cli/commands/notifications/generate.js +28 -28
  94. package/dist/cli/commands/notifications/list.js +28 -28
  95. package/dist/cli/commands/search.js +28 -28
  96. package/dist/cli/commands/upgrade.js +28 -28
  97. package/dist/cli/commands/upgrade.test.js +3 -3
  98. package/dist/cli/commands/version.js +28 -28
  99. package/dist/cli/commands/version.test.js +29 -29
  100. package/dist/cli/services/commands/notifications.js +21 -21
  101. package/dist/cli/services/commands/search.js +15 -15
  102. package/dist/cli/services/commands/search.test.js +16 -16
  103. package/dist/cli/services/commands/version.js +16 -16
  104. package/dist/cli/services/commands/version.test.js +18 -18
  105. package/dist/cli/services/kitchen-sink/async.js +15 -15
  106. package/dist/cli/services/kitchen-sink/prompts.js +15 -15
  107. package/dist/cli/services/kitchen-sink/static.js +15 -15
  108. package/dist/cli/services/upgrade.js +17 -17
  109. package/dist/cli/services/upgrade.test.js +20 -20
  110. package/dist/configs/all.yml +12 -0
  111. package/dist/configs/recommended.yml +15 -0
  112. package/dist/configs/theme-app-extension.yml +3 -0
  113. package/dist/{custom-oclif-loader-G2DAJL7B.js → custom-oclif-loader-L4JT3EUD.js} +15 -15
  114. package/dist/data/latest.json +1 -1
  115. package/dist/data/manifest_theme.json +1 -0
  116. package/dist/data/preset.json +66 -0
  117. package/dist/data/preset_blocks.json +20 -13
  118. package/dist/data/section.json +1 -15
  119. package/dist/data/setting.json +1 -1
  120. package/dist/data/theme_block.json +1 -15
  121. package/dist/{del-K5ZJEWTD.js → del-P2RS6GN2.js} +9 -9
  122. package/dist/{devtools-KYKGATNX.js → devtools-K7FXBBFZ.js} +3 -3
  123. package/dist/error-handler-4CU3ZOV7.js +38 -0
  124. package/dist/hooks/postrun.js +22 -22
  125. package/dist/hooks/prerun.js +22 -22
  126. package/dist/{http-proxy-GGTVQ6CU.js → http-proxy-FXWKYHZ3.js} +14 -24
  127. package/dist/index.js +7234 -7320
  128. package/dist/lib-JVEIEXYB.js +6 -0
  129. package/dist/lib-QZGSY5YB.js +13 -0
  130. package/dist/{local-Q5ZG2NHX.js → local-2K66O4X2.js} +15 -15
  131. package/dist/{magic-string.es-3RXPUXZF.js → magic-string.es-PJMYOE6F.js} +49 -96
  132. package/dist/{morph-SEECJQ2W.js → morph-OSHCID2F.js} +261 -347
  133. package/dist/{multipart-parser-QKUAJJP5.js → multipart-parser-WSNBP656.js} +8 -7
  134. package/dist/{node-S6CM3NTX.js → node-342GUJIM.js} +31 -31
  135. package/dist/{node-package-manager-GUY5IO3W.js → node-package-manager-RJSBCFD7.js} +19 -17
  136. package/dist/{npa-RLWNZ3BM.js → npa-TM76BGG3.js} +10 -16
  137. package/dist/{open-MZGVNFZO.js → open-BHIF7E3E.js} +3 -3
  138. package/dist/out-JR4DWQ2G.js +7 -0
  139. package/dist/{path-NDLRQPLA.js → path-2HZUSAGR.js} +3 -3
  140. package/dist/{source-map-7AAPWPHZ.js → source-map-QCVC46UY.js} +2 -2
  141. package/dist/tsconfig.tsbuildinfo +1 -1
  142. package/dist/{ui-AWSBLSD4.js → ui-YBLW4B72.js} +15 -15
  143. package/dist/{workerd-3HGLHQET.js → workerd-5KR5CP5F.js} +30 -30
  144. package/oclif.manifest.json +81 -1
  145. package/package.json +8 -8
  146. package/dist/error-handler-6HCFKLTC.js +0 -38
  147. package/dist/lib-PPXZBVZX.js +0 -6
  148. package/dist/lib-XYCLX35G.js +0 -13
  149. package/dist/out-MHEKZJWS.js +0 -7
@@ -3,7 +3,7 @@ import {
3
3
  __require,
4
4
  __toESM,
5
5
  init_cjs_shims
6
- } from "./chunk-POZ5MGPT.js";
6
+ } from "./chunk-PKR7KJ6P.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/ws@8.13.0/node_modules/ws/lib/stream.js
9
9
  var require_stream = __commonJS({
@@ -98,10 +98,8 @@ var require_buffer_util = __commonJS({
98
98
  init_cjs_shims();
99
99
  var { EMPTY_BUFFER } = require_constants(), FastBuffer = Buffer[Symbol.species];
100
100
  function concat(list, totalLength) {
101
- if (list.length === 0)
102
- return EMPTY_BUFFER;
103
- if (list.length === 1)
104
- return list[0];
101
+ if (list.length === 0) return EMPTY_BUFFER;
102
+ if (list.length === 1) return list[0];
105
103
  let target = Buffer.allocUnsafe(totalLength), offset = 0;
106
104
  for (let i = 0; i < list.length; i++) {
107
105
  let buf = list[i];
@@ -121,8 +119,7 @@ var require_buffer_util = __commonJS({
121
119
  return buf.length === buf.buffer.byteLength ? buf.buffer : buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length);
122
120
  }
123
121
  function toBuffer(data) {
124
- if (toBuffer.readOnly = !0, Buffer.isBuffer(data))
125
- return data;
122
+ if (toBuffer.readOnly = !0, Buffer.isBuffer(data)) return data;
126
123
  let buf;
127
124
  return data instanceof ArrayBuffer ? buf = new FastBuffer(data) : ArrayBuffer.isView(data) ? buf = new FastBuffer(data.buffer, data.byteOffset, data.byteLength) : (buf = Buffer.from(data), toBuffer.readOnly = !1), buf;
128
125
  }
@@ -670,8 +667,7 @@ var require_receiver = __commonJS({
670
667
  * @private
671
668
  */
672
669
  _write(chunk, encoding, cb) {
673
- if (this._opcode === 8 && this._state == GET_INFO)
674
- return cb();
670
+ if (this._opcode === 8 && this._state == GET_INFO) return cb();
675
671
  this._bufferedBytes += chunk.length, this._buffers.push(chunk), this.startLoop(cb);
676
672
  }
677
673
  /**
@@ -682,8 +678,7 @@ var require_receiver = __commonJS({
682
678
  * @private
683
679
  */
684
680
  consume(n) {
685
- if (this._bufferedBytes -= n, n === this._buffers[0].length)
686
- return this._buffers.shift();
681
+ if (this._bufferedBytes -= n, n === this._buffers[0].length) return this._buffers.shift();
687
682
  if (n < this._buffers[0].length) {
688
683
  let buf = this._buffers[0];
689
684
  return this._buffers[0] = new FastBuffer(
@@ -843,12 +838,9 @@ var require_receiver = __commonJS({
843
838
  1002,
844
839
  "WS_ERR_UNEXPECTED_MASK"
845
840
  );
846
- if (this._payloadLength === 126)
847
- this._state = GET_PAYLOAD_LENGTH_16;
848
- else if (this._payloadLength === 127)
849
- this._state = GET_PAYLOAD_LENGTH_64;
850
- else
851
- return this.haveLength();
841
+ if (this._payloadLength === 126) this._state = GET_PAYLOAD_LENGTH_16;
842
+ else if (this._payloadLength === 127) this._state = GET_PAYLOAD_LENGTH_64;
843
+ else return this.haveLength();
852
844
  }
853
845
  /**
854
846
  * Gets extended payload length (7+16).
@@ -928,8 +920,7 @@ var require_receiver = __commonJS({
928
920
  }
929
921
  data = this.consume(this._payloadLength), this._masked && this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3] && unmask(data, this._mask);
930
922
  }
931
- if (this._opcode > 7)
932
- return this.controlMessage(data);
923
+ if (this._opcode > 7) return this.controlMessage(data);
933
924
  if (this._compressed) {
934
925
  this._state = INFLATING, this.decompress(data, cb);
935
926
  return;
@@ -945,8 +936,7 @@ var require_receiver = __commonJS({
945
936
  */
946
937
  decompress(data, cb) {
947
938
  this._extensions[PerMessageDeflate.extensionName].decompress(data, this._fin, (err, buf) => {
948
- if (err)
949
- return cb(err);
939
+ if (err) return cb(err);
950
940
  if (buf.length) {
951
941
  if (this._messageLength += buf.length, this._messageLength > this._maxPayload && this._maxPayload > 0)
952
942
  return cb(
@@ -961,8 +951,7 @@ var require_receiver = __commonJS({
961
951
  this._fragments.push(buf);
962
952
  }
963
953
  let er = this.dataMessage();
964
- if (er)
965
- return cb(er);
954
+ if (er) return cb(er);
966
955
  this.startLoop(cb);
967
956
  });
968
957
  }
@@ -1029,8 +1018,7 @@ var require_receiver = __commonJS({
1029
1018
  );
1030
1019
  this.emit("conclude", code, buf), this.end();
1031
1020
  }
1032
- else
1033
- this._opcode === 9 ? this.emit("ping", data) : this.emit("pong", data);
1021
+ else this._opcode === 9 ? this.emit("ping", data) : this.emit("pong", data);
1034
1022
  this._state = GET_INFO;
1035
1023
  }
1036
1024
  };
@@ -1746,8 +1734,7 @@ var require_websocket = __commonJS({
1746
1734
  close(code, data) {
1747
1735
  if (this.readyState !== _WebSocket.CLOSED) {
1748
1736
  if (this.readyState === _WebSocket.CONNECTING) {
1749
- let msg = "WebSocket was closed before the connection was established";
1750
- abortHandshake(this, this._req, msg);
1737
+ abortHandshake(this, this._req, "WebSocket was closed before the connection was established");
1751
1738
  return;
1752
1739
  }
1753
1740
  if (this.readyState === _WebSocket.CLOSING) {
@@ -1851,8 +1838,7 @@ var require_websocket = __commonJS({
1851
1838
  terminate() {
1852
1839
  if (this.readyState !== _WebSocket.CLOSED) {
1853
1840
  if (this.readyState === _WebSocket.CONNECTING) {
1854
- let msg = "WebSocket was closed before the connection was established";
1855
- abortHandshake(this, this._req, msg);
1841
+ abortHandshake(this, this._req, "WebSocket was closed before the connection was established");
1856
1842
  return;
1857
1843
  }
1858
1844
  this._socket && (this._readyState = _WebSocket.CLOSING, this._socket.destroy());
@@ -1907,8 +1893,7 @@ var require_websocket = __commonJS({
1907
1893
  enumerable: !0,
1908
1894
  get() {
1909
1895
  for (let listener of this.listeners(method))
1910
- if (listener[kForOnEventAttribute])
1911
- return listener[kListener];
1896
+ if (listener[kForOnEventAttribute]) return listener[kListener];
1912
1897
  return null;
1913
1898
  },
1914
1899
  set(handler) {
@@ -2031,15 +2016,13 @@ var require_websocket = __commonJS({
2031
2016
  return;
2032
2017
  }
2033
2018
  initAsClient(websocket, addr, protocols, options);
2034
- } else
2035
- websocket.emit("unexpected-response", req, res) || abortHandshake(
2036
- websocket,
2037
- req,
2038
- `Unexpected server response: ${res.statusCode}`
2039
- );
2019
+ } else websocket.emit("unexpected-response", req, res) || abortHandshake(
2020
+ websocket,
2021
+ req,
2022
+ `Unexpected server response: ${res.statusCode}`
2023
+ );
2040
2024
  }), req.on("upgrade", (res, socket, head) => {
2041
- if (websocket.emit("upgrade", res), websocket.readyState !== WebSocket2.CONNECTING)
2042
- return;
2025
+ if (websocket.emit("upgrade", res), websocket.readyState !== WebSocket2.CONNECTING) return;
2043
2026
  if (req = websocket._req = null, res.headers.upgrade.toLowerCase() !== "websocket") {
2044
2027
  abortHandshake(websocket, socket, "Invalid Upgrade header");
2045
2028
  return;
@@ -2322,8 +2305,7 @@ var require_websocket_server = __commonJS({
2322
2305
  shouldHandle(req) {
2323
2306
  if (this.options.path) {
2324
2307
  let index = req.url.indexOf("?");
2325
- if ((index !== -1 ? req.url.slice(0, index) : req.url) !== this.options.path)
2326
- return !1;
2308
+ if ((index !== -1 ? req.url.slice(0, index) : req.url) !== this.options.path) return !1;
2327
2309
  }
2328
2310
  return !0;
2329
2311
  }
@@ -2405,8 +2387,7 @@ var require_websocket_server = __commonJS({
2405
2387
  });
2406
2388
  return;
2407
2389
  }
2408
- if (!this.options.verifyClient(info))
2409
- return abortHandshake(socket, 401);
2390
+ if (!this.options.verifyClient(info)) return abortHandshake(socket, 401);
2410
2391
  }
2411
2392
  this.completeUpgrade(extensions, key, protocols, req, socket, head, cb);
2412
2393
  }
@@ -2425,14 +2406,12 @@ var require_websocket_server = __commonJS({
2425
2406
  * @private
2426
2407
  */
2427
2408
  completeUpgrade(extensions, key, protocols, req, socket, head, cb) {
2428
- if (!socket.readable || !socket.writable)
2429
- return socket.destroy();
2409
+ if (!socket.readable || !socket.writable) return socket.destroy();
2430
2410
  if (socket[kWebSocket])
2431
2411
  throw new Error(
2432
2412
  "server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration"
2433
2413
  );
2434
- if (this._state > RUNNING)
2435
- return abortHandshake(socket, 503);
2414
+ if (this._state > RUNNING) return abortHandshake(socket, 503);
2436
2415
  let headers = [
2437
2416
  "HTTP/1.1 101 Switching Protocols",
2438
2417
  "Upgrade: websocket",
@@ -2461,8 +2440,7 @@ var require_websocket_server = __commonJS({
2461
2440
  };
2462
2441
  module.exports = WebSocketServer2;
2463
2442
  function addListeners(server, map) {
2464
- for (let event of Object.keys(map))
2465
- server.on(event, map[event]);
2443
+ for (let event of Object.keys(map)) server.on(event, map[event]);
2466
2444
  return function() {
2467
2445
  for (let event of Object.keys(map))
2468
2446
  server.removeListener(event, map[event]);
@@ -2507,4 +2485,4 @@ export {
2507
2485
  import_websocket_server,
2508
2486
  wrapper_default
2509
2487
  };
2510
- //# sourceMappingURL=chunk-NCKQIOV4.js.map
2488
+ //# sourceMappingURL=chunk-3HBRMIPY.js.map
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-GVNIHXMX.js";
3
+ } from "./chunk-4SP4IRCQ.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-ZESD7DR7.js";
6
+ } from "./chunk-I72O5WWR.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-4HTVLK2H.js";
10
+ } from "./chunk-OXS42VB7.js";
11
11
  import {
12
12
  require_lib
13
- } from "./chunk-OJOHMVV7.js";
13
+ } from "./chunk-SBPFWO4S.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
17
- } from "./chunk-POZ5MGPT.js";
17
+ } from "./chunk-PKR7KJ6P.js";
18
18
 
19
19
  // src/cli/commands/cache/clear.ts
20
20
  init_cjs_shims();
@@ -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-6HCFKLTC.js"), { isDevelopment } = await import("./local-Q5ZG2NHX.js"), oclif = await import("./lib-XYCLX35G.js"), { ShopifyConfig } = await import("./custom-oclif-loader-G2DAJL7B.js");
29
+ let { errorHandler } = await import("./error-handler-4CU3ZOV7.js"), { isDevelopment } = await import("./local-2K66O4X2.js"), oclif = await import("./lib-QZGSY5YB.js"), { ShopifyConfig } = await import("./custom-oclif-loader-L4JT3EUD.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 warnIfOldNodeVersion(versions = process.versions) {
42
42
  let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
43
43
  if (nodeMajorVersion < 18) {
44
- let { renderWarning } = await import("./ui-AWSBLSD4.js");
44
+ let { renderWarning } = await import("./ui-YBLW4B72.js");
45
45
  renderWarning({
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 warnIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
69
69
  }
70
70
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
71
- let { findUpAndReadPackageJson } = await import("./node-package-manager-GUY5IO3W.js"), { moduleDirectory } = await import("./path-NDLRQPLA.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-RJSBCFD7.js"), { moduleDirectory } = await import("./path-2HZUSAGR.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-NXHZX3WR.js.map
120
+ //# sourceMappingURL=chunk-3UQTWISO.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-I6R52HNI.js";
4
+ } from "./chunk-6NZVGPSV.js";
5
5
  import {
6
6
  setCurrentCommandId,
7
7
  showNotificationsIfNeeded
8
- } from "./chunk-TAKO7LSJ.js";
8
+ } from "./chunk-P63UVLRS.js";
9
9
  import {
10
10
  hashString
11
- } from "./chunk-VWNWE4HG.js";
11
+ } from "./chunk-X5WKMCE4.js";
12
12
  import {
13
13
  AbortError,
14
14
  addPublicMetadata,
@@ -24,19 +24,19 @@ import {
24
24
  renderWarning,
25
25
  terminalSupportsPrompting,
26
26
  underscore
27
- } from "./chunk-4HTVLK2H.js";
27
+ } from "./chunk-OXS42VB7.js";
28
28
  import {
29
29
  cwd
30
- } from "./chunk-K6Y4FYT5.js";
30
+ } from "./chunk-K7HGDAI4.js";
31
31
  import {
32
32
  require_lib
33
- } from "./chunk-OJOHMVV7.js";
33
+ } from "./chunk-SBPFWO4S.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __require,
37
37
  __toESM,
38
38
  init_cjs_shims
39
- } from "./chunk-POZ5MGPT.js";
39
+ } from "./chunk-PKR7KJ6P.js";
40
40
 
41
41
  // ../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js
42
42
  var require_parser = __commonJS({
@@ -57,8 +57,7 @@ var require_parser = __commonJS({
57
57
  this.pos = 0, this.col = 0, this.line = 0, this.obj = {}, this.ctx = this.obj, this.stack = [], this._buf = "", this.char = null, this.ii = 0, this.state = new State(this.parseStart);
58
58
  }
59
59
  parse(str) {
60
- if (str.length === 0 || str.length == null)
61
- return;
60
+ if (str.length === 0 || str.length == null) return;
62
61
  this._buf = String(str), this.ii = -1, this.char = -1;
63
62
  let getNext;
64
63
  for (; getNext === !1 || this.nextChar(); )
@@ -83,8 +82,7 @@ var require_parser = __commonJS({
83
82
  return this.ctx = null, this.state = null, this._buf = null, this.obj;
84
83
  }
85
84
  next(fn) {
86
- if (typeof fn != "function")
87
- throw new ParserError("Tried to set state to non-existent state: " + JSON.stringify(fn));
85
+ if (typeof fn != "function") throw new ParserError("Tried to set state to non-existent state: " + JSON.stringify(fn));
88
86
  this.state.parser = fn;
89
87
  }
90
88
  goto(fn) {
@@ -97,16 +95,14 @@ var require_parser = __commonJS({
97
95
  return this.call(fn, returnWith), this.runOne();
98
96
  }
99
97
  return(value) {
100
- if (this.stack.length === 0)
101
- throw this.error(new ParserError("Stack underflow"));
98
+ if (this.stack.length === 0) throw this.error(new ParserError("Stack underflow"));
102
99
  value === void 0 && (value = this.state.buf), this.state = this.stack.pop(), this.state.returned = value;
103
100
  }
104
101
  returnNow(value) {
105
102
  return this.return(value), this.runOne();
106
103
  }
107
104
  consume() {
108
- if (this.char === 1114112)
109
- throw this.error(new ParserError("Unexpected end-of-buffer"));
105
+ if (this.char === 1114112) throw this.error(new ParserError("Unexpected end-of-buffer"));
110
106
  this.state.buf += this._buf[this.ii];
111
107
  }
112
108
  error(err) {
@@ -143,8 +139,7 @@ var require_format_num = __commonJS({
143
139
  "use strict";
144
140
  init_cjs_shims();
145
141
  module2.exports = (d, num) => {
146
- for (num = String(num); num.length < d; )
147
- num = "0" + num;
142
+ for (num = String(num); num.length < d; ) num = "0" + num;
148
143
  return num;
149
144
  };
150
145
  }
@@ -360,18 +355,18 @@ var require_toml_parser = __commonJS({
360
355
  function tomlType(value) {
361
356
  let type = typeof value;
362
357
  if (type === "object") {
363
- if (value === null)
364
- return "null";
365
- if (value instanceof Date)
366
- return "datetime";
358
+ if (value === null) return "null";
359
+ if (value instanceof Date) return "datetime";
367
360
  if (_type in value)
368
361
  switch (value[_type]) {
369
362
  case INLINE_TABLE:
370
363
  return "inline-table";
371
364
  case INLINE_LIST:
372
365
  return "inline-list";
366
+ /* istanbul ignore next */
373
367
  case TABLE:
374
368
  return "table";
369
+ /* istanbul ignore next */
375
370
  case LIST:
376
371
  return "list";
377
372
  case FLOAT:
@@ -734,15 +729,13 @@ var require_toml_parser = __commonJS({
734
729
  }
735
730
  parseSmallUnicode() {
736
731
  if (isHexit(this.char)) {
737
- if (this.consume(), this.state.buf.length >= 4)
738
- return this.return();
732
+ if (this.consume(), this.state.buf.length >= 4) return this.return();
739
733
  } else
740
734
  throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));
741
735
  }
742
736
  parseLargeUnicode() {
743
737
  if (isHexit(this.char)) {
744
- if (this.consume(), this.state.buf.length >= 8)
745
- return this.return();
738
+ if (this.consume(), this.state.buf.length >= 8) return this.return();
746
739
  } else
747
740
  throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));
748
741
  }
@@ -796,8 +789,7 @@ var require_toml_parser = __commonJS({
796
789
  return this.call(this.parseNoUnder, this.parseNumberFloat);
797
790
  if (isDigit(this.char))
798
791
  this.consume();
799
- else
800
- return this.char === CHAR_E || this.char === CHAR_e ? (this.consume(), this.next(this.parseNumberExponentSign)) : this.returnNow(Float(this.state.buf));
792
+ else return this.char === CHAR_E || this.char === CHAR_e ? (this.consume(), this.next(this.parseNumberExponentSign)) : this.returnNow(Float(this.state.buf));
801
793
  }
802
794
  parseNumberExponentSign() {
803
795
  if (isDigit(this.char))
@@ -810,8 +802,7 @@ var require_toml_parser = __commonJS({
810
802
  parseNumberExponent() {
811
803
  if (isDigit(this.char))
812
804
  this.consume();
813
- else
814
- return this.char === CHAR_LOWBAR ? this.call(this.parseNoUnder) : this.returnNow(Float(this.state.buf));
805
+ else return this.char === CHAR_LOWBAR ? this.call(this.parseNoUnder) : this.returnNow(Float(this.state.buf));
815
806
  }
816
807
  /* NUMBERS or DATETIMES */
817
808
  parseNumberOrDateTime() {
@@ -822,8 +813,7 @@ var require_toml_parser = __commonJS({
822
813
  return this.call(this.parseNoUnder, this.parseNumberInteger);
823
814
  if (isDigit(this.char))
824
815
  this.consume(), this.state.buf.length > 4 && this.next(this.parseNumberInteger);
825
- else
826
- return this.char === CHAR_E || this.char === CHAR_e ? (this.consume(), this.next(this.parseNumberExponentSign)) : this.char === CHAR_PERIOD ? (this.consume(), this.call(this.parseNoUnder, this.parseNumberFloat)) : this.char === CHAR_HYPHEN ? this.goto(this.parseDateTime) : this.char === CHAR_COLON ? this.goto(this.parseOnlyTimeHour) : this.returnNow(Integer(this.state.buf));
816
+ else return this.char === CHAR_E || this.char === CHAR_e ? (this.consume(), this.next(this.parseNumberExponentSign)) : this.char === CHAR_PERIOD ? (this.consume(), this.call(this.parseNoUnder, this.parseNumberFloat)) : this.char === CHAR_HYPHEN ? this.goto(this.parseDateTime) : this.char === CHAR_COLON ? this.goto(this.parseOnlyTimeHour) : this.returnNow(Integer(this.state.buf));
827
817
  }
828
818
  parseDateTimeOnly() {
829
819
  if (this.state.buf.length < 4) {
@@ -976,8 +966,7 @@ var require_toml_parser = __commonJS({
976
966
  if (isDigit(this.char))
977
967
  this.consume();
978
968
  else if (this.atEndOfWord()) {
979
- if (this.state.buf.length === 0)
980
- throw this.error(new TomlError("Expected digit in milliseconds"));
969
+ if (this.state.buf.length === 0) throw this.error(new TomlError("Expected digit in milliseconds"));
981
970
  return this.returnNow(createTime(this.state.result + "." + this.state.buf));
982
971
  } else
983
972
  throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"));
@@ -1014,8 +1003,7 @@ var require_toml_parser = __commonJS({
1014
1003
  }
1015
1004
  parseTimeZoneHour() {
1016
1005
  if (isDigit(this.char)) {
1017
- if (this.consume(), /\d\d$/.test(this.state.buf))
1018
- return this.next(this.parseTimeZoneSep);
1006
+ if (this.consume(), /\d\d$/.test(this.state.buf)) return this.next(this.parseTimeZoneSep);
1019
1007
  } else
1020
1008
  throw this.error(new TomlError("Unexpected character in datetime, expected digit"));
1021
1009
  }
@@ -1027,8 +1015,7 @@ var require_toml_parser = __commonJS({
1027
1015
  }
1028
1016
  parseTimeZoneMin() {
1029
1017
  if (isDigit(this.char)) {
1030
- if (this.consume(), /\d\d$/.test(this.state.buf))
1031
- return this.return(createDateTime(this.state.result + this.state.buf));
1018
+ if (this.consume(), /\d\d$/.test(this.state.buf)) return this.return(createDateTime(this.state.result + this.state.buf));
1032
1019
  } else
1033
1020
  throw this.error(new TomlError("Unexpected character in datetime, expected digit"));
1034
1021
  }
@@ -1145,14 +1132,12 @@ var require_parse_pretty_error = __commonJS({
1145
1132
  init_cjs_shims();
1146
1133
  module2.exports = prettyError;
1147
1134
  function prettyError(err, buf) {
1148
- if (err.pos == null || err.line == null)
1149
- return err;
1135
+ if (err.pos == null || err.line == null) return err;
1150
1136
  let msg = err.message;
1151
1137
  if (msg += ` at row ${err.line + 1}, col ${err.col + 1}, pos ${err.pos}:
1152
1138
  `, buf && buf.split) {
1153
1139
  let lines = buf.split(/\n/), lineNumWidth = String(Math.min(lines.length, err.line + 3)).length, linePadding = " ";
1154
- for (; linePadding.length < lineNumWidth; )
1155
- linePadding += " ";
1140
+ for (; linePadding.length < lineNumWidth; ) linePadding += " ";
1156
1141
  for (let ii = Math.max(0, err.line - 1); ii < Math.min(lines.length, err.line + 2); ++ii) {
1157
1142
  let lineNum = String(ii + 1);
1158
1143
  if (lineNum.length < lineNumWidth && (lineNum = " " + lineNum), err.line === ii) {
@@ -1257,8 +1242,7 @@ var require_parse_stream = __commonJS({
1257
1242
  } catch (err) {
1258
1243
  return error(err);
1259
1244
  }
1260
- if (readable = !1, ended)
1261
- return finish();
1245
+ if (readable = !1, ended) return finish();
1262
1246
  errored || stm.once("readable", readNext);
1263
1247
  }
1264
1248
  });
@@ -1308,17 +1292,12 @@ var require_stringify = __commonJS({
1308
1292
  module2.exports = stringify2;
1309
1293
  module2.exports.value = stringifyInline;
1310
1294
  function stringify2(obj) {
1311
- if (obj === null)
1312
- throw typeError("null");
1313
- if (obj === void 0)
1314
- throw typeError("undefined");
1315
- if (typeof obj != "object")
1316
- throw typeError(typeof obj);
1317
- if (typeof obj.toJSON == "function" && (obj = obj.toJSON()), obj == null)
1318
- return null;
1295
+ if (obj === null) throw typeError("null");
1296
+ if (obj === void 0) throw typeError("undefined");
1297
+ if (typeof obj != "object") throw typeError(typeof obj);
1298
+ if (typeof obj.toJSON == "function" && (obj = obj.toJSON()), obj == null) return null;
1319
1299
  let type = tomlType2(obj);
1320
- if (type !== "table")
1321
- throw typeError(type);
1300
+ if (type !== "table") throw typeError(type);
1322
1301
  return stringifyObject("", "", obj);
1323
1302
  }
1324
1303
  function typeError(type) {
@@ -1369,6 +1348,7 @@ var require_stringify = __commonJS({
1369
1348
  return value.length === 0 || tomlType2(value[0]) !== "table";
1370
1349
  case "table":
1371
1350
  return Object.keys(value).length === 0;
1351
+ /* istanbul ignore next */
1372
1352
  default:
1373
1353
  return !1;
1374
1354
  }
@@ -1387,8 +1367,7 @@ var require_stringify = __commonJS({
1387
1367
  return "'" + str + "'";
1388
1368
  }
1389
1369
  function numpad(num, str) {
1390
- for (; str.length < num; )
1391
- str = "0" + str;
1370
+ for (; str.length < num; ) str = "0" + str;
1392
1371
  return str;
1393
1372
  }
1394
1373
  function escapeString(str) {
@@ -1425,6 +1404,7 @@ var require_stringify = __commonJS({
1425
1404
  return stringifyInlineArray(value.filter((_) => tomlType2(_) !== "null" && tomlType2(_) !== "undefined" && tomlType2(_) !== "nan"));
1426
1405
  case "table":
1427
1406
  return stringifyInlineTable(value);
1407
+ /* istanbul ignore next */
1428
1408
  default:
1429
1409
  throw typeError(type);
1430
1410
  }
@@ -1490,8 +1470,7 @@ var require_stringify = __commonJS({
1490
1470
  function stringifyArrayOfTables(prefix, indent, key, values) {
1491
1471
  values = toJSON(values), validateArray(values);
1492
1472
  var firstValueType = tomlType2(values[0]);
1493
- if (firstValueType !== "table")
1494
- throw typeError(firstValueType);
1473
+ if (firstValueType !== "table") throw typeError(firstValueType);
1495
1474
  var fullKey = prefix + stringifyKey(key), result = "";
1496
1475
  return values.forEach((table) => {
1497
1476
  result.length > 0 && (result += `
@@ -1674,8 +1653,7 @@ function argsFromEnvironment(environment, options, noDefaultsResult) {
1674
1653
  args.push(`--${label}`);
1675
1654
  else
1676
1655
  throw new AbortError(outputContent`Environments can only specify true for boolean flags. Attempted to set ${outputToken.yellow(label)} to false.`);
1677
- else
1678
- Array.isArray(value) ? value.forEach((element) => args.push(`--${label}`, `${element}`)) : args.push(`--${label}`, `${value}`);
1656
+ else Array.isArray(value) ? value.forEach((element) => args.push(`--${label}`, `${element}`)) : args.push(`--${label}`, `${value}`);
1679
1657
  }
1680
1658
  return args;
1681
1659
  }
@@ -1686,4 +1664,4 @@ export {
1686
1664
  encodeToml,
1687
1665
  base_command_default
1688
1666
  };
1689
- //# sourceMappingURL=chunk-GVNIHXMX.js.map
1667
+ //# sourceMappingURL=chunk-4SP4IRCQ.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-GVNIHXMX.js";
3
+ } from "./chunk-4SP4IRCQ.js";
4
4
  import {
5
5
  renderTable,
6
6
  renderText
7
- } from "./chunk-4HTVLK2H.js";
7
+ } from "./chunk-OXS42VB7.js";
8
8
  import {
9
9
  require_lib
10
- } from "./chunk-OJOHMVV7.js";
10
+ } from "./chunk-SBPFWO4S.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims
14
- } from "./chunk-POZ5MGPT.js";
14
+ } from "./chunk-PKR7KJ6P.js";
15
15
 
16
16
  // src/cli/commands/debug/command-flags.ts
17
17
  init_cjs_shims();
@@ -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-QDPQB6WU.js.map
86
+ //# sourceMappingURL=chunk-4UAFBJXJ.js.map