shopify 5.0.1 → 5.1.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.
Files changed (528) hide show
  1. package/dist/analytics-QFDTQYPM.js +1 -0
  2. package/dist/analytics-XADBBHOH.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/chunk-24Q6X53V.js +1 -0
  5. package/dist/{chunk-F3OM2YO6.js → chunk-25MYHE4W.js} +1 -1
  6. package/dist/{chunk-HP2ZAAY7.js → chunk-27JT4NA4.js} +1 -1
  7. package/dist/chunk-2BYW3BYX.js +1 -0
  8. package/dist/chunk-2KFYIYLI.js +1 -0
  9. package/dist/{chunk-V654BMS7.js → chunk-2KUM2RU4.js} +60 -60
  10. package/dist/chunk-2PD7TNFS.js +275 -0
  11. package/dist/{chunk-3JACWBUC.js → chunk-3C72S6LO.js} +1 -1
  12. package/dist/chunk-3FZ4LE6A.js +10 -0
  13. package/dist/{chunk-ZBVHPC6W.js → chunk-3GD5ESWN.js} +1 -1
  14. package/dist/chunk-3KGN6N7E.js +1 -0
  15. package/dist/{chunk-X4A5D3PZ.js → chunk-3MZ7ELHS.js} +2 -2
  16. package/dist/{chunk-VXL5FBE7.js → chunk-3PS52ZT4.js} +1 -1
  17. package/dist/chunk-3PYDIBTX.js +1 -0
  18. package/dist/chunk-3Z75BVGJ.js +1 -0
  19. package/dist/chunk-4FWPOGPQ.js +1 -0
  20. package/dist/chunk-4IP37MBX.js +1 -0
  21. package/dist/chunk-4NFX7YCT.js +1 -0
  22. package/dist/chunk-4TCXPHKN.js +1 -0
  23. package/dist/chunk-4WBWZIN5.js +6 -0
  24. package/dist/chunk-5534MHZW.js +97 -0
  25. package/dist/{chunk-C4EKNOLY.js → chunk-5C6CXU74.js} +1 -1
  26. package/dist/{chunk-56GKTWFF.js → chunk-5HOZDOJ7.js} +1 -1
  27. package/dist/{chunk-CX3ANDPI.js → chunk-5PSQFQL6.js} +1 -1
  28. package/dist/chunk-5T3ZT6CC.js +1 -0
  29. package/dist/chunk-62NW4EPI.js +17 -0
  30. package/dist/chunk-65NCQJYR.js +1 -0
  31. package/dist/{chunk-QGWC23HQ.js → chunk-6BYHL3DS.js} +1 -1
  32. package/dist/chunk-6I7DT7QR.js +3 -0
  33. package/dist/chunk-6IMTMS2S.js +3 -0
  34. package/dist/chunk-7A77JCED.js +11 -0
  35. package/dist/chunk-7ART2IKU.js +1 -0
  36. package/dist/{chunk-TTBNFGCW.js → chunk-7BPT5V24.js} +2 -2
  37. package/dist/{chunk-V7H7ITCF.js → chunk-7CT3NIXI.js} +1 -1
  38. package/dist/chunk-7DBKSSDK.js +1 -0
  39. package/dist/chunk-7HECBXSP.js +1 -0
  40. package/dist/chunk-7KID5BIR.js +4 -0
  41. package/dist/{chunk-63UKZLPC.js → chunk-7N7KRZOM.js} +1 -1
  42. package/dist/{chunk-NJVNGEOU.js → chunk-7NRHZG5Y.js} +102 -102
  43. package/dist/chunk-7PHDEILV.js +1 -0
  44. package/dist/chunk-A2NSORBM.js +2296 -0
  45. package/dist/chunk-A54TADAZ.js +1 -0
  46. package/dist/{chunk-YTUUU33R.js → chunk-AE3IQG7S.js} +1 -1
  47. package/dist/chunk-AGTUAQHX.js +4 -0
  48. package/dist/chunk-AHYI27QL.js +11 -0
  49. package/dist/chunk-ALINJ6J2.js +1 -0
  50. package/dist/chunk-AMVWKHNY.js +1 -0
  51. package/dist/{chunk-D4LFWIFE.js → chunk-ASKBYEO7.js} +1 -1
  52. package/dist/{chunk-LENSEW2F.js → chunk-AVJJGQOP.js} +1 -1
  53. package/dist/{chunk-QVVQUJQL.js → chunk-AY3AAV77.js} +1 -1
  54. package/dist/{chunk-DSKAIC7O.js → chunk-BFAOTQGH.js} +1 -1
  55. package/dist/{chunk-KGASGUDQ.js → chunk-BPKQA2EO.js} +1 -1
  56. package/dist/{chunk-KLYGMYXV.js → chunk-C2HJEGTS.js} +1 -1
  57. package/dist/chunk-C72QNK6O.js +4 -0
  58. package/dist/chunk-CDSDQTNB.js +16 -0
  59. package/dist/chunk-CEQGOCKX.js +1 -0
  60. package/dist/{chunk-QBE6XVU3.js → chunk-CIGWIKOW.js} +1 -1
  61. package/dist/chunk-CQAD5WML.js +1 -0
  62. package/dist/chunk-CRQQCT7F.js +1 -0
  63. package/dist/chunk-CZNUBAAG.js +3 -0
  64. package/dist/{chunk-WQOPLNDH.js → chunk-D7IMC2G4.js} +1 -1
  65. package/dist/{chunk-LGXNXAQA.js → chunk-DC7ITY6T.js} +1 -1
  66. package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
  67. package/dist/{chunk-4EDE3UH7.js → chunk-DDZYIC76.js} +2 -2
  68. package/dist/chunk-DGIIUQH3.js +1 -0
  69. package/dist/{chunk-5AWELO3D.js → chunk-DMOLPSXF.js} +1 -1
  70. package/dist/{chunk-GSGCSBRN.js → chunk-DOLVBTCB.js} +1 -1
  71. package/dist/{chunk-MXXMIPUN.js → chunk-DTKGI43P.js} +2 -2
  72. package/dist/{chunk-37P5YOP2.js → chunk-DVD7I2TX.js} +2 -2
  73. package/dist/chunk-DVFVO6ZE.js +2 -0
  74. package/dist/{chunk-7U2MTK6I.js → chunk-DXEMSLI6.js} +1 -1
  75. package/dist/chunk-EDWIWZWM.js +15 -0
  76. package/dist/chunk-ELR6AZT4.js +9 -0
  77. package/dist/chunk-EVQPYZ7F.js +5 -0
  78. package/dist/chunk-F5QKMDP3.js +1 -0
  79. package/dist/{chunk-J5DUFSR4.js → chunk-F6IQWX2F.js} +1 -1
  80. package/dist/{chunk-XZLM4HLO.js → chunk-FAVPTYIR.js} +1 -1
  81. package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
  82. package/dist/{chunk-DVW7NDVD.js → chunk-FHKK3QU7.js} +1 -1
  83. package/dist/chunk-FKKJQGYX.js +7 -0
  84. package/dist/chunk-FQLXQ7WN.js +16 -0
  85. package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
  86. package/dist/{chunk-AIEVQSI3.js → chunk-FU7PYW7H.js} +1 -1
  87. package/dist/{chunk-5YUDEPEY.js → chunk-FYQE5E6U.js} +1 -1
  88. package/dist/chunk-G3EWGBXR.js +1 -0
  89. package/dist/chunk-G3RNO2TC.js +1 -0
  90. package/dist/{chunk-7NYCJG2U.js → chunk-GGCP2TIK.js} +1 -1
  91. package/dist/chunk-GSFWBFFH.js +1 -0
  92. package/dist/{chunk-NUCDRKDW.js → chunk-H2KGP2FM.js} +2 -2
  93. package/dist/{chunk-PVASYKSJ.js → chunk-H4K3F7PP.js} +1 -1
  94. package/dist/chunk-HGZ2HRPO.js +13 -0
  95. package/dist/chunk-HMPRWNGG.js +203 -0
  96. package/dist/chunk-HP4QYSBQ.js +1 -0
  97. package/dist/{chunk-LR4J4KYJ.js → chunk-HSTZV6H7.js} +2 -2
  98. package/dist/{chunk-ZHHTQRWU.js → chunk-HVUMVDUG.js} +1 -1
  99. package/dist/{chunk-IY5EI5V2.js → chunk-HYCNYUHW.js} +1 -1
  100. package/dist/{chunk-FHNJLON5.js → chunk-I3WRA2LH.js} +1 -1
  101. package/dist/{chunk-MS7DTL4U.js → chunk-IRLYC626.js} +2 -2
  102. package/dist/chunk-IWNFPBH2.js +33 -0
  103. package/dist/{chunk-EA5XVQJT.js → chunk-JALDNBTU.js} +1 -1
  104. package/dist/{chunk-ZTZGDZCE.js → chunk-JC37YZ4I.js} +1 -1
  105. package/dist/{chunk-DM7BTMFP.js → chunk-JG4FAT2T.js} +1 -1
  106. package/dist/chunk-JGLLABZR.js +8 -0
  107. package/dist/chunk-JIY6XWSC.js +1 -0
  108. package/dist/{chunk-VG2AESTZ.js → chunk-JIYCZXK5.js} +1 -1
  109. package/dist/chunk-JMSAHCBU.js +35 -0
  110. package/dist/{chunk-CWR3IFXD.js → chunk-JNSVKDBY.js} +1 -1
  111. package/dist/chunk-JQU2BJDH.js +3 -0
  112. package/dist/chunk-JVY6CCLE.js +3 -0
  113. package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
  114. package/dist/chunk-KCAWHJGF.js +1 -0
  115. package/dist/{chunk-M73IECPW.js → chunk-KFO2JNF5.js} +1 -1
  116. package/dist/chunk-KFR7HWCG.js +9 -0
  117. package/dist/{chunk-QYFU363G.js → chunk-KHZF73BL.js} +1 -1
  118. package/dist/{chunk-HT66BOEC.js → chunk-KM4LE7K4.js} +2 -2
  119. package/dist/{chunk-IILLQOUC.js → chunk-L2PUDV7Y.js} +1 -1
  120. package/dist/chunk-LFBFPK22.js +1 -0
  121. package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
  122. package/dist/chunk-LGDWE3H3.js +1 -0
  123. package/dist/chunk-LPPEAMI6.js +1 -0
  124. package/dist/chunk-LXIWMYM4.js +1 -0
  125. package/dist/chunk-MGWCXTGD.js +1 -0
  126. package/dist/chunk-MGX7UG44.js +1 -0
  127. package/dist/chunk-MKFRKNHF.js +3 -0
  128. package/dist/chunk-MTT6EAQO.js +1 -0
  129. package/dist/{chunk-75LAVRRL.js → chunk-MU7IVBGI.js} +2 -2
  130. package/dist/{chunk-36TZ447N.js → chunk-MYMBHVC4.js} +1 -1
  131. package/dist/chunk-MZDBH4XV.js +4 -0
  132. package/dist/{chunk-3G2PEYPI.js → chunk-NUBJ2HK7.js} +1 -1
  133. package/dist/{chunk-K3YALQBQ.js → chunk-NY5N4ANL.js} +1 -1
  134. package/dist/{chunk-364BVGRY.js → chunk-NYMKGE3J.js} +1 -1
  135. package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
  136. package/dist/chunk-O7HZ3EIP.js +1 -0
  137. package/dist/chunk-OJOF6IYG.js +9 -0
  138. package/dist/{chunk-EXTVC33U.js → chunk-ONZULPQH.js} +68 -66
  139. package/dist/chunk-ORMXPSJM.js +1 -0
  140. package/dist/chunk-ORYEDUKM.js +5 -0
  141. package/dist/{chunk-MZCIRMZJ.js → chunk-OTMYJWIP.js} +1 -1
  142. package/dist/chunk-OVJVFB5E.js +20 -0
  143. package/dist/chunk-OWQEFORZ.js +1 -0
  144. package/dist/{chunk-43HKFLOU.js → chunk-OXPEBT4I.js} +2 -2
  145. package/dist/chunk-OXZR2MB4.js +6 -0
  146. package/dist/chunk-OY5M52EF.js +6 -0
  147. package/dist/{chunk-FK5OFLSJ.js → chunk-PJZZZNWR.js} +1 -1
  148. package/dist/chunk-Q2LQJYRK.js +16 -0
  149. package/dist/chunk-QBRRFFMZ.js +1 -0
  150. package/dist/{chunk-KNQXCU3Y.js → chunk-QCLE5REL.js} +2 -2
  151. package/dist/chunk-QGQWVA7N.js +1 -0
  152. package/dist/chunk-QKPAB245.js +1 -0
  153. package/dist/chunk-QUPZOBTB.js +1 -0
  154. package/dist/chunk-R4E2E4NN.js +1 -0
  155. package/dist/{chunk-2M4BKFYF.js → chunk-R6US7F33.js} +1 -1
  156. package/dist/chunk-RKNVTEO3.js +5 -0
  157. package/dist/{chunk-2QQ7EBJD.js → chunk-RLOEI6VE.js} +1 -1
  158. package/dist/chunk-RSZAAN37.js +1 -0
  159. package/dist/{chunk-WBJ6ZHYH.js → chunk-S3RROJGG.js} +37 -37
  160. package/dist/chunk-S4KNPCW3.js +81 -0
  161. package/dist/{chunk-YFRI75U4.js → chunk-SBN3ILXO.js} +1 -1
  162. package/dist/chunk-SCDGLREP.js +1 -0
  163. package/dist/chunk-SHOMIS6Q.js +2 -0
  164. package/dist/chunk-SN3PMWUF.js +6 -0
  165. package/dist/chunk-SODCXZ5U.js +1 -0
  166. package/dist/chunk-SPJM7RTD.js +1 -0
  167. package/dist/chunk-SQL67BKI.js +5 -0
  168. package/dist/{chunk-MMUGP3WP.js → chunk-SURFUFAZ.js} +1 -1
  169. package/dist/{chunk-KOTZSPZA.js → chunk-SVQDMZJO.js} +1 -1
  170. package/dist/chunk-T4ZOTYOY.js +1 -0
  171. package/dist/chunk-T6C4WC3Z.js +2 -0
  172. package/dist/chunk-TD6JBHUS.js +1 -0
  173. package/dist/chunk-TIM4CIXZ.js +22 -0
  174. package/dist/{chunk-V2FCZC7U.js → chunk-TP7CTMMT.js} +1 -1
  175. package/dist/chunk-TSPJAMYB.js +1 -0
  176. package/dist/chunk-TSVEV2UD.js +26 -0
  177. package/dist/chunk-TTAT62N3.js +25 -0
  178. package/dist/{chunk-ZVEBXHEY.js → chunk-TUSS6PXB.js} +1 -1
  179. package/dist/chunk-TXP6KFWO.js +5 -0
  180. package/dist/chunk-TZHVCMZN.js +6 -0
  181. package/dist/chunk-UC4TOM36.js +3 -0
  182. package/dist/{chunk-2YGPWG3I.js → chunk-UFY4L5KQ.js} +1 -1
  183. package/dist/chunk-UU6UQ2QY.js +1 -0
  184. package/dist/chunk-V4FC72R6.js +1 -0
  185. package/dist/chunk-VA2S7W7H.js +10 -0
  186. package/dist/chunk-VE3IIC7H.js +1 -0
  187. package/dist/{chunk-EH22T4FI.js → chunk-VJG7VXFU.js} +2 -2
  188. package/dist/chunk-VQSRU5XL.js +4 -0
  189. package/dist/chunk-VRIFLMA3.js +70 -0
  190. package/dist/chunk-WBJFTCEJ.js +1 -0
  191. package/dist/chunk-WBPP6PO7.js +31 -0
  192. package/dist/chunk-WE5KY6T6.js +1 -0
  193. package/dist/chunk-WFPVT2IY.js +1 -0
  194. package/dist/{chunk-ETXBF6Q7.js → chunk-WLYXBQ2M.js} +1 -1
  195. package/dist/chunk-WNVOEE6T.js +7 -0
  196. package/dist/chunk-WPDJVUTY.js +47 -0
  197. package/dist/chunk-WWCYEZUU.js +1 -0
  198. package/dist/chunk-WWVDZ3GC.js +3 -0
  199. package/dist/{chunk-CXPYOLGM.js → chunk-WZBZ7FWP.js} +2 -2
  200. package/dist/chunk-XEZPN5TR.js +22 -0
  201. package/dist/{chunk-AQ34X5B3.js → chunk-XLMKHTJ5.js} +1 -1
  202. package/dist/chunk-XRNBCV2B.js +1 -0
  203. package/dist/{chunk-B4ISKIXN.js → chunk-XWLNCBAG.js} +1 -1
  204. package/dist/chunk-YF4AXKM4.js +1 -0
  205. package/dist/chunk-YKDRUAY3.js +857 -0
  206. package/dist/{chunk-FPOZMNT2.js → chunk-YNFQBYSL.js} +1 -1
  207. package/dist/{chunk-2CJQQQW4.js → chunk-YNZLLZU2.js} +1 -1
  208. package/dist/chunk-YOYPYB4H.js +1 -0
  209. package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
  210. package/dist/chunk-YTL45RXR.js +103 -0
  211. package/dist/chunk-YVPB7OT6.js +6 -0
  212. package/dist/chunk-YYWSHRO2.js +89 -0
  213. package/dist/{chunk-5XOEMYEQ.js → chunk-Z5QEXS6F.js} +1 -1
  214. package/dist/chunk-Z5WFRYVQ.js +6 -0
  215. package/dist/{chunk-P5W5RVE6.js → chunk-Z6ZRS256.js} +1 -1
  216. package/dist/chunk-ZMOW2YZ4.js +18 -0
  217. package/dist/chunk-ZMU4EYXT.js +1 -0
  218. package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
  219. package/dist/chunk-ZXZWMXXK.js +7 -0
  220. package/dist/cli/commands/app/build.js +1 -1
  221. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  222. package/dist/cli/commands/app/bulk/execute.js +1 -1
  223. package/dist/cli/commands/app/bulk/status.js +1 -1
  224. package/dist/cli/commands/app/config/link.js +1 -1
  225. package/dist/cli/commands/app/config/pull.js +1 -1
  226. package/dist/cli/commands/app/config/use.js +1 -1
  227. package/dist/cli/commands/app/config/validate.js +1 -1
  228. package/dist/cli/commands/app/demo/watcher.js +1 -1
  229. package/dist/cli/commands/app/deploy.js +1 -1
  230. package/dist/cli/commands/app/dev/clean.js +1 -1
  231. package/dist/cli/commands/app/dev.js +1 -1
  232. package/dist/cli/commands/app/env/pull.js +1 -1
  233. package/dist/cli/commands/app/env/show.js +1 -1
  234. package/dist/cli/commands/app/execute.js +1 -1
  235. package/dist/cli/commands/app/function/build.js +1 -1
  236. package/dist/cli/commands/app/function/info.js +1 -1
  237. package/dist/cli/commands/app/function/replay.js +1 -1
  238. package/dist/cli/commands/app/function/run.js +1 -1
  239. package/dist/cli/commands/app/function/schema.js +1 -1
  240. package/dist/cli/commands/app/function/typegen.js +1 -1
  241. package/dist/cli/commands/app/generate/extension.js +1 -1
  242. package/dist/cli/commands/app/graphiql.js +1 -1
  243. package/dist/cli/commands/app/import/channel-config.js +1 -1
  244. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  245. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  246. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  247. package/dist/cli/commands/app/import-extensions.js +1 -1
  248. package/dist/cli/commands/app/info.js +1 -1
  249. package/dist/cli/commands/app/init.js +1 -1
  250. package/dist/cli/commands/app/logs-next.js +1 -0
  251. package/dist/cli/commands/app/logs.js +1 -1
  252. package/dist/cli/commands/app/release.js +1 -1
  253. package/dist/cli/commands/app/security/check.js +1 -1
  254. package/dist/cli/commands/app/security/clean.js +1 -1
  255. package/dist/cli/commands/app/security/instructions.js +1 -1
  256. package/dist/cli/commands/app/security/record.js +1 -1
  257. package/dist/cli/commands/app/security/review.js +1 -1
  258. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  259. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  260. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  261. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  262. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  263. package/dist/cli/commands/app/versions/list.js +1 -1
  264. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  265. package/dist/cli/commands/auth/login.d.ts +10 -10
  266. package/dist/cli/commands/auth/login.js +1 -1
  267. package/dist/cli/commands/auth/logout.d.ts +7 -7
  268. package/dist/cli/commands/auth/logout.js +1 -1
  269. package/dist/cli/commands/cache/clear.js +1 -1
  270. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
  271. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  272. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
  273. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  274. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
  275. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  276. package/dist/cli/commands/debug/command-flags.js +1 -1
  277. package/dist/cli/commands/doc/fetch.d.ts +21 -21
  278. package/dist/cli/commands/doc/fetch.js +1 -1
  279. package/dist/cli/commands/doc/search.d.ts +23 -23
  280. package/dist/cli/commands/doc/search.js +1 -1
  281. package/dist/cli/commands/docs/generate.js +1 -1
  282. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  283. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  284. package/dist/cli/commands/help.d.ts +90 -90
  285. package/dist/cli/commands/help.js +1 -1
  286. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  287. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  288. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  289. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  290. package/dist/cli/commands/notifications/generate.js +1 -1
  291. package/dist/cli/commands/notifications/list.js +1 -1
  292. package/dist/cli/commands/organization/list.js +1 -1
  293. package/dist/cli/commands/search.d.ts +7 -7
  294. package/dist/cli/commands/search.js +1 -1
  295. package/dist/cli/commands/send-analytics.js +1 -1
  296. package/dist/cli/commands/theme/check.js +1 -1
  297. package/dist/cli/commands/theme/console.js +1 -1
  298. package/dist/cli/commands/theme/delete.js +1 -1
  299. package/dist/cli/commands/theme/dev.js +1 -1
  300. package/dist/cli/commands/theme/duplicate.js +1 -1
  301. package/dist/cli/commands/theme/info.js +1 -1
  302. package/dist/cli/commands/theme/init.js +1 -1
  303. package/dist/cli/commands/theme/language-server.js +1 -1
  304. package/dist/cli/commands/theme/list.js +1 -1
  305. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  306. package/dist/cli/commands/theme/open.js +1 -1
  307. package/dist/cli/commands/theme/package.js +1 -1
  308. package/dist/cli/commands/theme/preview.js +1 -1
  309. package/dist/cli/commands/theme/profile.js +1 -1
  310. package/dist/cli/commands/theme/publish.js +1 -1
  311. package/dist/cli/commands/theme/pull.js +1 -1
  312. package/dist/cli/commands/theme/push.js +1 -1
  313. package/dist/cli/commands/theme/rename.js +1 -1
  314. package/dist/cli/commands/theme/share.js +1 -1
  315. package/dist/cli/commands/upgrade.d.ts +24 -24
  316. package/dist/cli/commands/upgrade.js +1 -1
  317. package/dist/cli/commands/version.d.ts +7 -7
  318. package/dist/cli/commands/version.js +1 -1
  319. package/dist/cli/help.js +1 -1
  320. package/dist/cli-version-check-V25AVSZ6.js +1 -0
  321. package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
  322. package/dist/command-json-schema-C5UZXP2W.js +1 -0
  323. package/dist/command-registry.js +1 -1
  324. package/dist/conf-store-OCGEEV4U.js +1 -0
  325. package/dist/custom-oclif-loader-ZVUKMRGH.js +1 -0
  326. package/dist/data/filters.json +41 -2
  327. package/dist/data/local_block_entry.json +1 -1
  328. package/dist/data/manifest_theme.json +1 -0
  329. package/dist/data/objects.json +78 -36
  330. package/dist/data/section.json +1 -1
  331. package/dist/data/shopify_system_translations.json +240 -23
  332. package/dist/data/strict_settings.json +24 -0
  333. package/dist/data/tags.json +57 -24
  334. package/dist/data/theme_block.json +1 -1
  335. package/dist/deprecations-A5AXXKIK.js +1 -0
  336. package/dist/dist-NORLLIHQ.js +1 -0
  337. package/dist/dist-XBM4XZS4.js +1 -0
  338. package/dist/environment-5P7JJ3GI.js +1 -0
  339. package/dist/environments-Y5JEI3U3.js +1 -0
  340. package/dist/error-GI4DXVDU.js +1 -0
  341. package/dist/error-handler-BS2ZENQV.js +1 -0
  342. package/dist/fs-UOOLPOHJ.js +1 -0
  343. package/dist/hooks/did-you-mean.js +1 -1
  344. package/dist/hooks/hydrogen-init.js +1 -1
  345. package/dist/hooks/plugin-plugins.js +1 -1
  346. package/dist/hooks/postrun.js +1 -1
  347. package/dist/hooks/prerun.js +2 -2
  348. package/dist/hooks/public-metadata.js +1 -1
  349. package/dist/hooks/sensitive-metadata.js +1 -1
  350. package/dist/hooks/tunnel-provider.js +1 -1
  351. package/dist/hooks/tunnel-start.js +1 -1
  352. package/dist/http-2OXOS2AW.js +1 -0
  353. package/dist/http-proxy-node16-NZZ674YW.js +38 -0
  354. package/dist/index.js +12 -12
  355. package/dist/is-global-CI77T7NE.js +1 -0
  356. package/dist/json-error-6PBUR4LQ.js +1 -0
  357. package/dist/latest-version-75YEFEMK.js +9 -0
  358. package/dist/lib-4JVADMNT.js +1 -0
  359. package/dist/lib-L4STV5B2.js +1 -0
  360. package/dist/lib-LEEN55OD.js +1 -0
  361. package/dist/{local-KA3IWOZ6.js → local-5NIWPWDS.js} +1 -1
  362. package/dist/metadata-IXPNNPNJ.js +1 -0
  363. package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
  364. package/dist/node-package-manager-ALFEGGD6.js +1 -0
  365. package/dist/notifications-system-FQW3GKH2.js +1 -0
  366. package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
  367. package/dist/os-6TNQTEUN.js +1 -0
  368. package/dist/output-LEOB5LAM.js +1 -0
  369. package/dist/{prettier-EGVCP5CY.js → prettier-VLTY4MIE.js} +1 -1
  370. package/dist/registry-auth-token-EDH77OOW.js +1 -0
  371. package/dist/registry-url-JMNV3LLX.js +1 -0
  372. package/dist/semver-HHZRKD6Y.js +1 -0
  373. package/dist/system-J4CTESP5.js +1 -0
  374. package/dist/tsconfig.tsbuildinfo +1 -1
  375. package/dist/ui-YDUI56E3.js +1 -0
  376. package/dist/upgrade-LBCZORG2.js +1 -0
  377. package/dist/version-2YL4YEQ2.js +1 -0
  378. package/dist/version-X2CPQVWQ.js +1 -0
  379. package/dist/workerd-5UPTEWNI.js +18 -0
  380. package/oclif.manifest.json +25622 -1132
  381. package/package.json +7 -7
  382. package/dist/analytics-RSUIYNLC.js +0 -1
  383. package/dist/analytics-V2SDYXQJ.js +0 -1
  384. package/dist/chunk-2AW3KBTP.js +0 -1
  385. package/dist/chunk-2M535QQJ.js +0 -6
  386. package/dist/chunk-2NZ7GDDR.js +0 -2
  387. package/dist/chunk-2RFCYZMG.js +0 -47
  388. package/dist/chunk-2S5NPJEJ.js +0 -5
  389. package/dist/chunk-2TPLPZA2.js +0 -3
  390. package/dist/chunk-32O27NE3.js +0 -1
  391. package/dist/chunk-335BUVBP.js +0 -1
  392. package/dist/chunk-46JYM3GH.js +0 -1
  393. package/dist/chunk-4GQEXVDT.js +0 -1
  394. package/dist/chunk-4IUXLUFD.js +0 -6
  395. package/dist/chunk-4QZ6OBXL.js +0 -4
  396. package/dist/chunk-4SDCXKYR.js +0 -31
  397. package/dist/chunk-5AQ5JT2V.js +0 -7
  398. package/dist/chunk-5D4FNAAD.js +0 -3
  399. package/dist/chunk-5TWYJQQO.js +0 -1
  400. package/dist/chunk-5YXYYQBX.js +0 -1
  401. package/dist/chunk-6JZC6UKY.js +0 -20
  402. package/dist/chunk-6Y6A2QGK.js +0 -3
  403. package/dist/chunk-7AWAOPLA.js +0 -1
  404. package/dist/chunk-7XAEI4XT.js +0 -3
  405. package/dist/chunk-A7LBGXWG.js +0 -1
  406. package/dist/chunk-ADVLRSSO.js +0 -1
  407. package/dist/chunk-AOBE6HN6.js +0 -31
  408. package/dist/chunk-B2VE7WOX.js +0 -1
  409. package/dist/chunk-BB7GAZP6.js +0 -1
  410. package/dist/chunk-BNTOGZLY.js +0 -1
  411. package/dist/chunk-BOAGJ6P5.js +0 -1
  412. package/dist/chunk-BU3JQM3W.js +0 -1
  413. package/dist/chunk-C3LL5CZA.js +0 -1
  414. package/dist/chunk-CFUZ6574.js +0 -15
  415. package/dist/chunk-CKVVJ4XO.js +0 -1
  416. package/dist/chunk-CNPBDSDL.js +0 -1
  417. package/dist/chunk-DTRENW4Q.js +0 -272
  418. package/dist/chunk-E3CTHNQS.js +0 -1
  419. package/dist/chunk-FFSDGRAN.js +0 -1
  420. package/dist/chunk-FNWXMCSD.js +0 -97
  421. package/dist/chunk-FS5PZCZ3.js +0 -1
  422. package/dist/chunk-FTHVOIK7.js +0 -4
  423. package/dist/chunk-FVRI7ZKE.js +0 -103
  424. package/dist/chunk-FZCGRIOM.js +0 -1
  425. package/dist/chunk-GCKGQFV7.js +0 -1
  426. package/dist/chunk-GGJUPL4W.js +0 -6
  427. package/dist/chunk-GHU6YEXH.js +0 -15
  428. package/dist/chunk-GNPIKPHB.js +0 -1
  429. package/dist/chunk-H57KYDEI.js +0 -16
  430. package/dist/chunk-HB3MJYBK.js +0 -1
  431. package/dist/chunk-HNU6R7RT.js +0 -7
  432. package/dist/chunk-HPT3UXZ5.js +0 -4
  433. package/dist/chunk-HXNGLDMU.js +0 -1
  434. package/dist/chunk-IAL6IQYW.js +0 -16
  435. package/dist/chunk-IULZYDCI.js +0 -9
  436. package/dist/chunk-IWTOC6DG.js +0 -1
  437. package/dist/chunk-J3JPJCWP.js +0 -1
  438. package/dist/chunk-J3UXIC23.js +0 -10
  439. package/dist/chunk-J7BTC45S.js +0 -1
  440. package/dist/chunk-JMVK2BIB.js +0 -3
  441. package/dist/chunk-JUTULEWW.js +0 -5
  442. package/dist/chunk-KT5QQOES.js +0 -3
  443. package/dist/chunk-KVF55INC.js +0 -5
  444. package/dist/chunk-L6VONMA2.js +0 -5
  445. package/dist/chunk-LWMKZJ4M.js +0 -1
  446. package/dist/chunk-M2KX3PXA.js +0 -1
  447. package/dist/chunk-M7NLCGCP.js +0 -6
  448. package/dist/chunk-MHWETFNT.js +0 -1
  449. package/dist/chunk-MNWT2SQO.js +0 -2265
  450. package/dist/chunk-MU2X7NGF.js +0 -11
  451. package/dist/chunk-MZWPIFAM.js +0 -70
  452. package/dist/chunk-NCPZVARH.js +0 -836
  453. package/dist/chunk-NMECLRGK.js +0 -11
  454. package/dist/chunk-NMLLRFZF.js +0 -1
  455. package/dist/chunk-NPB753M3.js +0 -1
  456. package/dist/chunk-OH7BQZQ7.js +0 -2
  457. package/dist/chunk-OLKLHVHA.js +0 -22
  458. package/dist/chunk-OPVXPDOQ.js +0 -1
  459. package/dist/chunk-OQUXGAF2.js +0 -1
  460. package/dist/chunk-OUMERKRE.js +0 -10
  461. package/dist/chunk-OYGIQDME.js +0 -1
  462. package/dist/chunk-PNZURX3S.js +0 -1
  463. package/dist/chunk-PRKJVU4Y.js +0 -1
  464. package/dist/chunk-PXFPVGWV.js +0 -1
  465. package/dist/chunk-Q2ORJEB2.js +0 -25
  466. package/dist/chunk-QFWWCZOI.js +0 -1
  467. package/dist/chunk-QFYLJVJW.js +0 -77
  468. package/dist/chunk-QX3T6G5X.js +0 -1
  469. package/dist/chunk-RDXLDCMI.js +0 -3
  470. package/dist/chunk-REDUS6EW.js +0 -1
  471. package/dist/chunk-RFZNFTVM.js +0 -1
  472. package/dist/chunk-RIG66DIQ.js +0 -18
  473. package/dist/chunk-RNUEPPVN.js +0 -1
  474. package/dist/chunk-RWTAPWLJ.js +0 -3
  475. package/dist/chunk-T5YVYVSW.js +0 -1
  476. package/dist/chunk-UDPYSL3M.js +0 -4
  477. package/dist/chunk-ULMNNGGX.js +0 -6
  478. package/dist/chunk-URCH4ITT.js +0 -1
  479. package/dist/chunk-UU2R56LN.js +0 -12
  480. package/dist/chunk-V75WUEFU.js +0 -1
  481. package/dist/chunk-VXD26GIG.js +0 -1
  482. package/dist/chunk-W7S6SYBM.js +0 -2
  483. package/dist/chunk-WAY723TL.js +0 -16
  484. package/dist/chunk-WFOU5M4H.js +0 -16
  485. package/dist/chunk-WGOSE3RL.js +0 -4
  486. package/dist/chunk-WQ6W725N.js +0 -1
  487. package/dist/chunk-X7DCL5LT.js +0 -1
  488. package/dist/chunk-XDXHSGDL.js +0 -1
  489. package/dist/chunk-XKKKMV46.js +0 -6
  490. package/dist/chunk-XRVJJG6W.js +0 -26
  491. package/dist/chunk-XV6XCOTG.js +0 -319
  492. package/dist/chunk-XYFYQWKW.js +0 -1
  493. package/dist/chunk-YCUEDZDA.js +0 -1
  494. package/dist/chunk-YQ63ZFYT.js +0 -1
  495. package/dist/chunk-YXIFSIRX.js +0 -1
  496. package/dist/chunk-ZDQO6CNY.js +0 -1
  497. package/dist/chunk-ZGASBRSQ.js +0 -5
  498. package/dist/command-json-schema-6EGXCM4B.js +0 -1
  499. package/dist/conf-store-E7ELDWBA.js +0 -1
  500. package/dist/custom-oclif-loader-FKFZJPHF.js +0 -1
  501. package/dist/deprecations-RNGBHZYB.js +0 -1
  502. package/dist/dist-VHIZZDYK.js +0 -1
  503. package/dist/dist-WXI5YQYP.js +0 -1
  504. package/dist/environment-O7ECODHU.js +0 -1
  505. package/dist/environments-WZJ6MRTH.js +0 -1
  506. package/dist/error-IFB626JA.js +0 -1
  507. package/dist/error-handler-OVJYVIOZ.js +0 -1
  508. package/dist/fs-7UOUHJDO.js +0 -1
  509. package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
  510. package/dist/is-global-XW3CVHLK.js +0 -1
  511. package/dist/json-error-C2U7ZLCG.js +0 -1
  512. package/dist/latest-version-LDWU5F7A.js +0 -49
  513. package/dist/lib-PJHT4MKY.js +0 -1
  514. package/dist/lib-VKSQ65BQ.js +0 -1
  515. package/dist/lib-YEZOHXF3.js +0 -1
  516. package/dist/metadata-6JI7HF5B.js +0 -1
  517. package/dist/node-package-manager-X3QIEMMX.js +0 -1
  518. package/dist/notifications-system-OXGLT2R4.js +0 -1
  519. package/dist/os-NORIEVMI.js +0 -1
  520. package/dist/output-K3JTLRJD.js +0 -1
  521. package/dist/system-LTHR2T7L.js +0 -1
  522. package/dist/ui-MYUBVKCK.js +0 -1
  523. package/dist/upgrade-MFTWBXL3.js +0 -1
  524. package/dist/version-BNGPPAUU.js +0 -1
  525. package/dist/version-RCGFWSB4.js +0 -1
  526. package/dist/workerd-ISSXMKIH.js +0 -18
  527. /package/dist/{chunk-YLQ3LNNY.js → chunk-2S3FHQFS.js} +0 -0
  528. /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
@@ -0,0 +1,31 @@
1
+ import{c as r,d as f,e as w,f as g,g as _}from"./chunk-MKFRKNHF.js";import{a as v}from"./chunk-KCAWHJGF.js";import{p as o,q as p,v as d}from"./chunk-CZNUBAAG.js";import{Da as s}from"./chunk-YKDRUAY3.js";import{b as c,c as u}from"./chunk-DMOLPSXF.js";import{i as l}from"./chunk-TD6JBHUS.js";import{zb as a}from"./chunk-ZMOW2YZ4.js";import{b as P}from"./chunk-AE3IQG7S.js";import{e as b,g as m}from"./chunk-VKWPEFWQ.js";m();var t=b(P(),1);var h=class extends d{static jsonOutputSchema=r;static summary="Uploads your local theme files to the connected store, overwriting the remote version if specified.";static usage=["theme push","theme push --unpublished --json"];static descriptionWithMarkdown=`Uploads your local theme files to Shopify, overwriting the remote version if specified.
2
+
3
+ If no theme is specified, then you're prompted to select the theme to overwrite from the list of the themes in your store.
4
+
5
+ You can run this command only in a directory that matches the [default Shopify theme folder structure](https://shopify.dev/docs/themes/tools/cli#directory-structure).
6
+
7
+ This command returns the following information:
8
+
9
+ - A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
10
+ - A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.
11
+
12
+ If you use the \`--json\` flag, then theme information is returned in JSON format, which can be used as a machine-readable input for scripts or continuous integration.
13
+
14
+ Sample output:
15
+
16
+ \`\`\`json
17
+ {
18
+ "status": "success",
19
+ "changed": true,
20
+ "issues": [],
21
+ "theme": {
22
+ "id": "108267175958",
23
+ "name": "MyTheme",
24
+ "role": "unpublished",
25
+ "storeDomain": "mystore.myshopify.com",
26
+ "editorUrl": "https://mystore.myshopify.com/admin/themes/108267175958/editor",
27
+ "previewUrl": "https://mystore.myshopify.com/?preview_theme_id=108267175958"
28
+ }
29
+ }
30
+ \`\`\`
31
+ `;static description=this.descriptionForHelp();static flags={...c,...o,...p("upload"),...u,"allow-custom-checks":t.Flags.boolean({...o["allow-custom-checks"],env:"SHOPIFY_FLAG_ALLOW_CUSTOM_CHECKS",description:`${o["allow-custom-checks"].description} Requires --strict.`}),theme:t.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --development, --live, --theme, or --unpublished in non-interactive environments. When using --unpublished without --development, use --theme to provide the new theme name.",env:"SHOPIFY_FLAG_THEME_ID"}),development:t.Flags.boolean({char:"d",description:"Push theme files from your remote development theme. Use --development, --live, --theme, or --unpublished in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),"development-context":t.Flags.string({char:"c",description:"Unique identifier for a development theme context (e.g., PR number, branch name). Reuses an existing development theme with this context name, or creates one if none exists.",env:"SHOPIFY_FLAG_DEVELOPMENT_CONTEXT",dependsOn:["development"],exclusive:["theme"]}),live:t.Flags.boolean({char:"l",description:"Push theme files from your remote live theme. Use --development, --live, --theme, or --unpublished in non-interactive environments.",env:"SHOPIFY_FLAG_LIVE"}),unpublished:t.Flags.boolean({char:"u",description:"Create a new unpublished theme and push to it. Use --development, --live, --theme, or --unpublished in non-interactive environments. When using --unpublished without --development, use --theme to provide the new theme name.",env:"SHOPIFY_FLAG_UNPUBLISHED"}),nodelete:t.Flags.boolean({char:"n",description:"Prevent deleting remote files that don't exist locally.",env:"SHOPIFY_FLAG_NODELETE"}),"allow-live":t.Flags.boolean({char:"a",description:"Allow push to a live theme. Required in non-interactive environments when targeting the live theme.",env:"SHOPIFY_FLAG_ALLOW_LIVE"}),publish:t.Flags.boolean({char:"p",description:"Publish as the live theme after uploading.",env:"SHOPIFY_FLAG_PUBLISH"}),force:t.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),strict:t.Flags.boolean({description:"Require theme check to pass without errors before pushing. Warnings are allowed.",env:"SHOPIFY_FLAG_STRICT_PUSH"}),listing:t.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"}),environment:o.environment};static multiEnvironmentsFlags=["store","password","path",["live","development","theme"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","live","unpublished"]},{flags:["theme"],when:e=>!!(e.unpublished&&!e.development)},{flags:["allow-live"],when:e=>!!e.live}]}inputArgv=[...this.argv];async command(e,y,i,L,F){s("theme-command:push"),await w(e,!1,await v(this.inputArgv));let n=await _({...e,allowLive:e["allow-live"],noColor:e["no-color"],developmentContext:e["development-context"]},y,i,F);return n?.hasErrors&&(process.exitCode=1),e.json&&i||(n?f(n,e.json?"json":"text"):e.json&&a(r.encode({status:"cancelled"}))),s("theme-command:push"),n??(e.json&&i?{status:"skipped",reason:"unsafe-directory"}:void 0)}validateCommandFlags(e){if(e["allow-custom-checks"]&&!e.strict)throw new l("The --allow-custom-checks flag requires --strict when using theme push.")}renderEnvironmentResults(e){g(e)}storeAuthScopes(){return["read_themes","write_themes"]}};export{h as a};
@@ -0,0 +1 @@
1
+ import{R as u}from"./chunk-2KUM2RU4.js";import{Bb as s}from"./chunk-ZMOW2YZ4.js";import{k as i}from"./chunk-3PYDIBTX.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();import{Writable as m}from"node:stream";import{StringDecoder as f}from"node:string_decoder";function p(){return i()!=="json"?{stdout:process.stdout,stderr:process.stderr}:{stdout:c(),stderr:c()}}function c(){let o=new f("utf8");return new m({write(r,e,t){let n=o.write(r);n&&s(n),t()},final(r){let e=o.end();e&&s(e),r()}})}async function y(o,r,e={}){let t=p();try{await u(o,r,{...e,...t.stdout===process.stdout?{stdio:"inherit"}:{stdin:"inherit",...t}})}finally{t.stdout!==process.stdout&&t.stdout.end(),t.stderr!==process.stderr&&t.stderr.end()}}export{p as a,y as b};
@@ -0,0 +1 @@
1
+ import{a as f}from"./chunk-AY3AAV77.js";import{g as w}from"./chunk-VKWPEFWQ.js";w();var _=!1;function h(){return _}function P(){let a=0,r=!1,o=setInterval(()=>{if(!r){if(h()||a>=12e4){r=!0,clearInterval(o),f(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}a+=100}},100)}var x=async({config:e,Command:t})=>{await A(t);let a=await import("./metadata-IXPNNPNJ.js"),{commandStartOptions:r}=a.getAllSensitiveMetadata();r&&await a.addSensitiveMetadata(()=>({commandStartOptions:{...r,endTime:new Date().getTime()}}));let{postrun:o}=await import("./deprecations-A5AXXKIK.js");o(t);let{outputDebug:p}=await import("./output-LEOB5LAM.js"),s=t.id.replace(/:/g," ");p(`Completed command ${s}`),!s.includes("notifications")&&!s.includes("upgrade")&&!s.includes("send-analytics")&&await k();let{reportAnalyticsEvent:u}=await import("./analytics-XADBBHOH.js");await u({config:e,exitMode:"ok"}),_=!0};async function k(){let{versionToAutoUpgrade:e,warnIfUpgradeAvailable:t}=await import("./upgrade-LBCZORG2.js");await t();let a=e();if(!a)return;if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await g(a);else{let{runAtMinimumInterval:o}=await import("./conf-store-OCGEEV4U.js");await o("auto-upgrade",{days:1},async()=>{await g(a)})}}async function g(e){let[{CLI_KIT_VERSION:t},{isMajorVersionChange:a,availableHomebrewCLIVersion:r},{outputWarn:o,outputDebug:p,outputContent:s,outputToken:u},{getOutputUpdateCLIReminder:c,runCLIUpgrade:v,hasBlockingAutoUpgradeNotification:b},i,{inferPackageManagerForGlobalCLI:m,getHomebrewCLIFormula:I},{lt:M,SemVer:S}]=await Promise.all([import("./version-X2CPQVWQ.js"),import("./version-2YL4YEQ2.js"),import("./output-LEOB5LAM.js"),import("./upgrade-LBCZORG2.js"),import("./metadata-IXPNNPNJ.js"),import("./is-global-CI77T7NE.js"),import("./semver-HHZRKD6Y.js")]);if(a(t,e)){o(c(e,!0)),await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}let l=e;if(m()==="homebrew"){let n=await r();if(!n){p("Auto-upgrade: Could not read the available Homebrew version."),await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"homebrew_version_unavailable"}));return}if(a(t,n)){if(I()==="shopify-cli"){let d=new S(t).major;o(s`To keep receiving Shopify CLI ${String(d)}.x updates with Homebrew, run ${u.genericShellCommand(`brew install shopify-cli@${d}`)} and use ${u.genericShellCommand(`shopify${d}`)}.`)}else o(c(n,!0));await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(!M(t,n)){p("Auto-upgrade: No newer Homebrew version available."),await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"homebrew_already_up_to_date"}));return}l=n}if(await b()){await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await v({autoupgrade:!0,version:l}),await i.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(n){let d=`Auto-upgrade failed: ${n}`;p(d),o(c(l)),await i.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let{sendErrorToBugsnag:y}=await import("./error-handler-BS2ZENQV.js"),C=Object.assign(new Error(d),{packageManager:m(),platform:process.platform,cliVersion:t});await y(C,"expected_error")}}async function A(e){let t=new Date().getTime();if(e&&"analyticsStopCommand"in e&&typeof e.analyticsStopCommand=="function"){let a=e.analyticsStopCommand();if(a){let r=await import("./metadata-IXPNNPNJ.js"),{commandStartOptions:o}=r.getAllSensitiveMetadata();if(!o)return;await r.addSensitiveMetadata(()=>({commandStartOptions:{...o,startTime:t,startCommand:a}}))}}}export{P as a,x as b};
@@ -1 +1 @@
1
- import{B as n}from"./chunk-V654BMS7.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function d({from:o,to:r}){n({headline:[{command:`shopify ${o}`},"has moved."],body:["This command will be removed in a future release. Use",{command:`shopify ${r}`},"instead."]})}export{d as a};
1
+ import{z as n}from"./chunk-2KUM2RU4.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function d({from:o,to:r}){n({headline:[{command:`shopify ${o}`},"has moved."],body:["This command will be removed in a future release. Use",{command:`shopify ${r}`},"instead."]})}export{d as a};
@@ -0,0 +1,7 @@
1
+ import{A as i,B as t,F as s,x as e,y as o,z as n}from"./chunk-2KUM2RU4.js";import{i as d,l}from"./chunk-TD6JBHUS.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
2
+ Error: Unexpected error
3
+ at Module._compile (internal/modules/cjs/loader.js:1137:30)
4
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
5
+ at Module.load (internal/modules/cjs/loader.js:985:32)
6
+ at Function.Module._load (internal/modules/cjs/loader.js:878:14)
7
+ `,t(a);let c=[["Have you",{link:{label:"created a Shopify Partners organization",url:"https://partners.shopify.com/signup"}},{char:"?"}],"Have you confirmed your accounts from the emails you received?",["Need to connect to a different App or organization? Run the command again with",{command:"--reset"}]];t(new d("No Organization found",void 0,c)),i({headline:"Version couldn't be released.",body:"This version needs to be submitted for review and approved by Shopify before it can be released."}),s({rows:[{id:"1",name:"John Doe",email:"jon@doe.com"},{id:"2",name:"Jane Doe",email:"jane@doe.com"},{id:"3",name:"John Smith",email:"jon@smith.com"}],columns:{id:{header:"ID",color:"red"},name:{header:"Name",color:"dim"},email:{}}})}export{u as a};
@@ -0,0 +1,47 @@
1
+ import{k as G,t as B}from"./chunk-DVFVO6ZE.js";import{a as j}from"./chunk-FDSNRKGQ.js";import{a as C}from"./chunk-2BYW3BYX.js";import{Ea as f,Ga as h,S as L,U as q,p as I,q as w}from"./chunk-YKDRUAY3.js";import{a as x}from"./chunk-JIY6XWSC.js";import{A as P,B as O,S as N}from"./chunk-2KUM2RU4.js";import{i as l,k as U}from"./chunk-TD6JBHUS.js";import{Eb as u,tb as _,vb as D}from"./chunk-ZMOW2YZ4.js";import{j as v,k as H}from"./chunk-3PYDIBTX.js";import{u as F}from"./chunk-DOLVBTCB.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();var M=String.raw`(?:/(?:zh-hans|zh-hant|[a-z]{2,3})(?:-[a-zA-Z0-9]{2,})?)?`;function z(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function S(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function E(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),a=o[2]?.trim()??"";n&&(t[n]=a)}),t}function y(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var $=class extends l{};async function Ue(e){return B(e)}async function Ne(e,t,r){let o=K(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let a={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},s=await w(`${o}/password`,{headers:a,body:n.toString(),method:"POST",redirect:"manual"});if(s.status===429)throw f(new l(`Too many incorrect password attempts. Please try again after ${s.headers.get("retry-after")} seconds.`));return Y(s,o)}async function W(e,t,r,o,n={}){let a={},s=await X(e,r,n),i=K(t);if(a._shopify_essential=s,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return a;let c=await ie(s,e,i,o,n);return{...a,...c}}var ae=1;async function X(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),a=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let s={...r,...S()},i=await w(a,{method:"HEAD",redirect:"manual",headers:s}),c=i.headers.raw()["set-cookie"]??[],d=R(c,"_shopify_essential");if(!d){if(u(`Failed to obtain _shopify_essential cookie.
2
+
3
+ -Request ID: ${i.headers.get("x-request-id")??"unknown"}
4
+
5
+ -Body: ${await i.text()}
6
+
7
+ -Status: ${i.status}
8
+ `),o>3)throw f(new $('Your development session could not be created because the "_shopify_essential" could not be defined. Please, check your internet connection.'));return u("Retrying to obtain the _shopify_essential cookie..."),await N(o),X(e,t,r,o+1)}return V(i,a,d,s)}async function V(e,t,r,o,n=0){let a=e.headers.get("location");if(!a||n>=ae)return r;let s=new URL(a,t);if(s.origin!==new URL(t).origin||!s.searchParams.has("preview_theme_id"))return r;let i=await w(s.toString(),{method:"HEAD",redirect:"manual",headers:{...o,Cookie:y({_shopify_essential:r})}}),c=i.headers.raw()["set-cookie"]??[],d=R(c,"_shopify_essential");return d||u(`Preview redirect to ${s.pathname} did not set a new _shopify_essential cookie; keeping the previous one.`),V(i,s.toString(),d??r,o,n+1)}async function ie(e,t,r,o,n){let a=new URLSearchParams({password:o}),s={...n,...S(),Cookie:y({_shopify_essential:e})},i=await w(`${t}/password`,{method:"POST",redirect:"manual",body:a,headers:s});if(!Y(i,r))throw f(new l("Your development session could not be created because the store password is invalid. Please, retry with a different password."));let c=i.headers.raw()["set-cookie"]??[],d=R(c,"storefront_digest"),m=R(c,"_shopify_essential"),g={};return d&&(g.storefront_digest=d),m&&(g._shopify_essential=m),g}function Y(e,t){let r=e.headers.get("location")??"",o;try{o=new URL(r,t)}catch(a){if(a instanceof TypeError)return!1;throw a}let n=new URL(t).origin;return e.status===302&&o.origin===n}function R(e,t){let r=e.find(n=>E(n)[t]);return r?E(r)[t]:void 0}function K(e){return`https://${e}`}p();function ce(e,t){if(!(t instanceof U)){if(f(t),H()==="json"){v({type:"diagnostic",level:"error",message:`${e}
9
+ ${t.message}`});return}t instanceof l?(t.message=`${e}
10
+ ${t.message}`,O(t)):(P({headline:e,body:t.message}),u(`${e}
11
+ ${t.stack??t.message}`))}}function Xe(e,t){let r={delete:`Failed to delete file "${e}" from remote theme.`,upload:`Failed to upload file "${e}" to remote theme.`,default:e}[t??"default"]??e;return o=>{ce(r,o)}}function T(e,t){return j({status:e.status??502,statusText:e.statusText??"Bad Gateway",cause:e,data:{url:(t??e.url)?.toString(),requestId:e.headers?.get("x-request-id")??void 0}})}function Ve(e,t="Unexpected error during fetch"){let r=e,o=r.statusCode??502,n=r.statusMessage??"Bad Gateway",a=`${t.replace(/\.$/,"")} with status ${o} (${n}).`;r.data?.requestId&&(a+=`
12
+ Request ID: ${r.data.requestId}`),r.data?.url&&(a+=`
13
+ URL: ${r.data.url}`);let s=r.cause??e;return{headline:a,body:s.stack??r.stack??r.message??n,status:o,statusText:n,cause:s,requestId:r.data?.requestId,url:r.data?.url}}p();var ue={_fd:"0",pb:"0"},de=new RegExp(String.raw`^${M}/url/?$`);async function nt(e,t){let r=ge(e,t),n={...await le(e,t),...S()},a,s=Object.keys({...t.replaceTemplates,...t.replaceExtensionTemplates});if(fe(t))u(`\u2192 Rendering ${r} (exit page)...`),a=await pe(r,n).catch(m=>{throw T(f(m),r)});else if(s.length>0){u(`\u2192 Rendering ${r} (with ${s})...`);let m=z(t);a=await fetch(r,{method:"POST",body:m,redirect:"manual",headers:n}).catch(g=>{throw T(f(g),r)})}else u(`\u2192 Rendering ${r}...`),a=await fetch(r,{method:t.method,redirect:"manual",headers:n}).catch(m=>{throw T(f(m),r)});let i=a.headers.get("x-request-id");u(`\u2190 ${a.status} (request_id: ${i})`);let d=a.headers.get("Content-Type")?.includes("application/json");return a=new Response(a.body,a),d||a.headers.delete("Content-Type"),a}function fe({method:e,path:t}){return e.toUpperCase()==="GET"&&de.test(t)}async function pe(e,t){let r=await I(e,{method:"GET",redirect:"manual",headers:t},"slow-request"),o=new Headers;for(let[a,s]of Object.entries(r.headers.raw()))for(let i of s)o.append(a,i);let n=[101,103,204,205,304].includes(r.status);return new Response(n?null:await r.arrayBuffer(),{status:r.status,statusText:r.statusText,headers:o})}async function le(e,t){return J(e)?he(e,t):me(e,t)}async function me(e,t){let r=await Q(e,t),o=e.storefrontToken;return k({...t.headers,...e.crawlerSignatureHeaders,Authorization:`Bearer ${o}`,Cookie:r})}async function he(e,t){let r=await Q(e,t),o=e.storefrontToken,n={},a=["ACCEPT","CONTENT-TYPE","CONTENT-LENGTH"];for(let[s,i]of Object.entries(t.headers))a.includes(s.toUpperCase())&&(n[s]=i);return k({...n,...we(e),...e.crawlerSignatureHeaders,Authorization:`Bearer ${o}`,Cookie:r})}function Q(e,t){let r=E(t.headers.cookie??t.headers.Cookie??""),o=e.sessionCookies??{};return y({...r,...o})}function ge(e,{path:t,sectionId:r,appBlockId:o,query:n}){let s=`${A(e)}${t}`,i=new URLSearchParams(ue);for(let[c,d]of n)i.append(c,d);return r?i.append("section_id",r):o&&i.append("app_block_id",o),`${s}?${i}`}function A(e){return J(e)?`https://${F()}/cli/sfr`:`https://${e.storeFqdn}`}function J(e){return e.token.startsWith("shptka_")}function we(e){return{"X-Shopify-Shop":e.storeFqdn,"X-Shopify-Access-Token":e.token}}p();var b="Shopify CLI",Se=720*60*60,Z=["Signature","Signature-Input","Signature-Agent"],ee="unstable",Ee=`
14
+ query StorefrontCrawlerSignatures($first: Int!, $expired: Boolean, $cli: Boolean, $domain: String) {
15
+ storefrontCrawlerSignatures(first: $first, expired: $expired, cli: $cli, domain: $domain) {
16
+ edges {
17
+ node {
18
+ id
19
+ name
20
+ domainHost
21
+ signature
22
+ signatureInput
23
+ signatureAgent
24
+ expiresAt
25
+ }
26
+ }
27
+ }
28
+ }
29
+ `,ye=`
30
+ mutation StorefrontCrawlerSignatureGenerate($timeToLive: Int!, $name: String!, $domainHost: String!, $cli: Boolean) {
31
+ storefrontCrawlerSignatureGenerate(timeToLive: $timeToLive, name: $name, domainHost: $domainHost, cli: $cli) {
32
+ id
33
+ signature
34
+ signatureInput
35
+ signatureAgent
36
+ name
37
+ expiresAt
38
+ domainHost
39
+ userErrors {
40
+ field
41
+ message
42
+ code
43
+ }
44
+ }
45
+ }
46
+ `;async function oe(e,t=e.storeFqdn){try{let o=(await C(Ee,e,{first:1,expired:!1,cli:!0,domain:t},ee)).storefrontCrawlerSignatures;if(!o)throw f(new l("Could not fetch Shopify CLI crawler signatures."));let n=o.edges[0]?.node;if(n){h("theme-service:crawler-signature:reused");let c=re(n);return u(`Reusing crawler signature "${b}" for ${n.domainHost} (${te(c)}).`),c}let s=(await C(ye,e,{timeToLive:Se,name:b,domainHost:t,cli:!0},ee)).storefrontCrawlerSignatureGenerate;if(!s)throw f(new l("Could not create a Shopify CLI crawler signature."));if(s.userErrors.length>0){let c=s.userErrors.map(d=>{let m=d.field?.join(".");return m?`${m}: ${d.message}`:d.message}).join(`
47
+ `);throw f(new l("Could not create a Shopify CLI crawler signature.",c))}h("theme-service:crawler-signature:created");let i=re(s);return u(`Created crawler signature "${b}" for ${s.domainHost} expiring at ${s.expiresAt} (${te(i)}).`),i}catch(r){let o=r instanceof Error?r.message:String(r);u(`Could not obtain crawler signature headers; continuing without them. ${o}`);return}}function te(e){let t=Object.keys(e),r=Z.filter(n=>t.some(a=>a.toLowerCase()===n.toLowerCase())),o=Z.filter(n=>!r.includes(n));return`present: ${r.join(", ")||"none"}; missing: ${o.join(", ")||"none"}`}function re(e){if(!e.signature||!e.signatureInput||!e.signatureAgent)throw f(new l("The Shopify CLI crawler signature response did not include all required headers."));return{Signature:e.signature,"Signature-Input":e.signatureInput,"Signature-Agent":e.signatureAgent}}p();var $e=1800*1e3,ne=["layout/theme.liquid","config/settings_schema.json"];async function $t(e,t,r,o,n,a){let s=await se(e,t,r,o,n);if(s.refresh=async()=>{u("Refreshing theme session...");let c=await se(e,t,r,o,s.crawlerSignatureHeaders);return h("theme-service:session:refreshed"),Object.assign(s,c),c},a?.aborted)return s;let i=setInterval(()=>{s.refresh&&s.refresh().then(()=>u("Refreshed theme session via auto-refresher...")).catch(()=>u("Session could not be refreshed."))},$e);return a?.addEventListener("abort",()=>clearInterval(i),{once:!0}),s}async function se(e,t,r,o,n){let a=A(t),s=n??await oe(t),i=await q(t.storeFqdn,r,[],{forceRefresh:!1,noPrompt:!0}),c=await L([],r,{forceRefresh:!1,noPrompt:!0}),d=await Re(a,e,t,c,o,s);return{...i,sessionCookies:d,storefrontToken:c,crawlerSignatureHeaders:s}}async function Re(e,t,r,o,n,a){try{return await W(e,r.storeFqdn,t,n,{"X-Shopify-Shop":r.storeFqdn,"X-Shopify-Access-Token":r.token,Authorization:`Bearer ${o}`,...a})}catch(s){throw s instanceof $&&await Te(t,r),s}}async function Te(e,t){if(u(`Verifying if theme with id ${e} has required files...`),(await G(Number(e),ne,t)).length!==ne.length)throw f(new l(D`Theme ${_.cyan(e)} is missing required files. Run ${_.cyan(`shopify theme delete -t ${e}`)} to delete it, then try your command again.`.value));u(`Theme with id ${e} has required files.`)}export{M as a,S as b,k as c,Ue as d,Ne as e,ce as f,Xe as g,T as h,Ve as i,ue as j,nt as k,fe as l,le as m,Q as n,A as o,oe as p,$t as q,se as r};
@@ -0,0 +1 @@
1
+ import{Q as r}from"./chunk-HMPRWNGG.js";import{a}from"./chunk-HVUMVDUG.js";import{p as i}from"./chunk-IWTNUJGY.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
@@ -0,0 +1,3 @@
1
+ import{a as J}from"./chunk-RSZAAN37.js";import{a as x}from"./chunk-ASKBYEO7.js";import{P as k}from"./chunk-HMPRWNGG.js";import{E as A,I as S,N as E,O as F,P as R}from"./chunk-YYWSHRO2.js";import{a as f}from"./chunk-HVUMVDUG.js";import{b as j,c as V}from"./chunk-DMOLPSXF.js";import{A as u,y}from"./chunk-2KUM2RU4.js";import{a as C}from"./chunk-LG3KEHGD.js";import{k as h}from"./chunk-TD6JBHUS.js";import{Ab as v,zb as g}from"./chunk-ZMOW2YZ4.js";import{b as i}from"./chunk-3PYDIBTX.js";import{g as w,i as m}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var M=i.object({filePath:i.string().refine(w,"Expected an absolute filesystem path.").nullable(),message:i.string(),fieldPath:i.array(i.union([i.string(),i.number().int().nonnegative()])).nullable(),code:i.string().nullable().describe("The upstream validation code, or null when unavailable.")}).strict(),c=C({name:"AppConfigValidateResult",schema:i.object({path:i.string().refine(w,"Expected an absolute filesystem path."),valid:i.boolean(),issues:i.array(M)}).strict(),definitions:{ValidationIssue:M}});r();function O(a,t){t==="json"?g(c.encode(a)):a.valid?y({headline:`App configuration '${m(a.path)}' is valid.`}):u({headline:"Validation errors found.",body:a.issues.map(e=>`\u2022 ${R({file:e.filePath??a.path,path:e.fieldPath??void 0,code:e.code??void 0,message:e.message})}`).join(`
2
+ `)})}r();import{resolve as z}from"node:path";async function B(a,t){let e=new Set(t.map(o=>o.file)).size;await f.addPublicMetadata(()=>({cmd_app_validate_valid:a,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:e}))}async function I(a){let t=a.errors?.getErrors()??[];return await B(t.length===0,t),{path:z(a.configPath),valid:t.length===0,issues:t.map(({file:e,message:o,path:p,code:d})=>({filePath:z(e),message:o,fieldPath:p??null,code:d??null}))}}import{resolve as _}from"node:path";async function T(a,t){await f.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:a,cmd_app_validate_file_count:t}))}async function $(a,t){let e=new Set(t.map(o=>o.filePath)).size;throw await T(t.length,e),g(c.encode({path:_(a),valid:!1,issues:t})),await v(),new h}var b=class a extends J{static summary="Validate your app configuration and extensions.";static descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";static jsonOutputSchema=c;static description=this.descriptionForHelp();static flags={...j,...x,...V};async run(){let{flags:t}=await this.parse(a);await f.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let e=await A.load(t.path),o=await E(e,t.config,{clientId:t["client-id"],skipPrompts:!!t["client-id"]}),p=S(e,o.file);if(p.length>0){let n=p.map(s=>({filePath:_(s.path),message:s.message,fieldPath:null,code:null}));t.json&&await $(o.file.path,n);let l=new Set(p.map(s=>s.path)).size;throw await T(n.length,l),u({headline:"Validation errors found.",body:n.map(s=>`\u2022 ${s.message}`).join(`
3
+ `)}),new h}let d;try{d=(await k({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config??(t["client-id"]?m(o.file.path):void 0),unsafeTolerateErrors:!0})).app}catch(n){throw n instanceof F&&t.json&&await $(n.configurationPath,n.errors.map(l=>({filePath:_(l.file),message:l.message,fieldPath:l.path??null,code:l.code??null}))),n}let P=await I(d);if(O(P,t.json?"json":"text"),!P.valid)throw await v(),new h;return{app:d}}};export{b as a};
@@ -1,4 +1,4 @@
1
- import{c as y,d as N,e as x,f as oe}from"./chunk-6Y6A2QGK.js";import{a as te,c as re}from"./chunk-XDXHSGDL.js";import{a as q,c as V,e as O,f as U,h as W,i as G,m as _,p as Q,q as X,r as z,s as H,u as ee}from"./chunk-5XOEMYEQ.js";import{a as Z}from"./chunk-NPB753M3.js";import{a as K,b as Y}from"./chunk-D4LFWIFE.js";import{b as ue}from"./chunk-NCPZVARH.js";import{b as F,c as J}from"./chunk-5AWELO3D.js";import{A as w,B,C,J as j,a as $,z as T}from"./chunk-V654BMS7.js";import{h,k as I}from"./chunk-J7BTC45S.js";import{Cb as P,Sa as M,la as L,qb as p,sb as d,ta as S,wb as g}from"./chunk-RIG66DIQ.js";import{e as R}from"./chunk-IWTNUJGY.js";import{e as le,g as f}from"./chunk-VKWPEFWQ.js";f();f();async function pe(o,e){if(o)return o.join(`
1
+ import{c as y,d as N,e as x,f as oe}from"./chunk-6IMTMS2S.js";import{a as te,c as re}from"./chunk-4NFX7YCT.js";import{a as q,c as V,e as O,f as U,h as W,i as G,m as _,p as Q,q as X,r as z,s as H,u as ee}from"./chunk-Z5QEXS6F.js";import{a as Z}from"./chunk-RSZAAN37.js";import{a as K,b as Y}from"./chunk-ASKBYEO7.js";import{b as ue}from"./chunk-YKDRUAY3.js";import{b as F,c as J}from"./chunk-DMOLPSXF.js";import{A as C,H as j,a as $,x as T,y as w,z as B}from"./chunk-2KUM2RU4.js";import{i as h,l as I}from"./chunk-TD6JBHUS.js";import{Fb as P,Sa as M,la as L,ta as S,tb as p,vb as d,zb as g}from"./chunk-ZMOW2YZ4.js";import{e as R}from"./chunk-IWTNUJGY.js";import{e as le,g as f}from"./chunk-VKWPEFWQ.js";f();f();async function pe(o,e){if(o)return o.join(`
2
2
  `);if(e){if(!await M(e))throw new h(d`Variable file not found at ${p.path(e)}. Please check the path and try again.`);return L(e,{encoding:"utf8"})}else return}async function ne(o){let{remoteApp:e,store:a,query:n,variables:s,variableFile:t,watch:r=!1,version:i}=o,{adminSession:l,version:u}=await j({title:d`Authenticating`,task:async()=>{let E=await te(e,a.shopDomain),k=await U({adminSession:E,userSpecifiedVersion:i,minimumDefaultVersion:q});return{adminSession:E,version:k}},renderOptions:{stdout:process.stderr}}),c=await pe(s,t);return de(n,c),re(n,a),{adminSession:l,version:u,query:n,variablesJsonl:c,watch:r}}async function ae(o){let{adminSession:e,version:a,query:n,variablesJsonl:s,watch:t}=o,r=O(n)?await G({adminSession:e,query:n,variablesJsonl:s,version:a}):await W({adminSession:e,query:n,version:a});if(r?.userErrors?.length||!r?.bulkOperation)return{store:e.storeFqdn,apiVersion:a,query:n,operation:r?.bulkOperation??null,userErrors:r?.userErrors??[],watchAborted:!1};let i=new $,l=t?await X(e,r.bulkOperation.id,i.signal,()=>i.abort()):await Q(e,r.bulkOperation.id),u=t&&!i.signal.aborted&&l.status==="COMPLETED"&&l.url?await z(l.url):void 0;return{store:e.storeFqdn,apiVersion:a,query:n,operation:l,userErrors:[],watchAborted:i.signal.aborted,results:u}}function de(o,e){if(O(o)&&!e)throw new h(d`Bulk mutations require variables. Provide a JSONL file with ${p.yellow("--variable-file")} or individual JSON objects with ${p.yellow("--variables")}.`);if(!O(o)&&e)throw new h(d`The ${p.yellow("--variables")} and ${p.yellow("--variable-file")} flags can only be used with mutations, not queries.`)}f();f();var m=le(ue(),1);function ie(o,e){let a=(0,m.parse)(e),n=new Map(a.definitions.filter(r=>r.kind===m.Kind.FRAGMENT_DEFINITION).map(r=>[r.name.value,r])),s=(0,m.getOperationAST)(a),t=s?.operation==="mutation"?A(s.selectionSet,n).flatMap(r=>r.selectionSet?A(r.selectionSet,n).filter(i=>i.name.value==="userErrors").map(i=>[r.alias?.value??r.name.value,i.alias?.value??i.name.value]):[]):[];return o.trim().split(`
3
3
  `).filter(r=>r.trim().length>0).some(r=>{let i;try{i=JSON.parse(r)}catch(l){if(l instanceof SyntaxError)return!1;throw l}return Array.isArray(i.errors)&&i.errors.length>0?!0:t.some(([l,u])=>{let c=i.data?.[l]?.[u];return Array.isArray(c)&&c.length>0})})}function A(o,e,a=[]){return o.selections.flatMap(n=>{if(n.kind===m.Kind.FIELD)return[n];if(n.kind===m.Kind.INLINE_FRAGMENT)return A(n.selectionSet,e,a);let s=n.name.value,t=e.get(s);return t&&!a.includes(s)?A(t.selectionSet,e,[...a,s]):[]})}async function se(o,e){let{format:a,watch:n,outputFile:s}=e,{operation:t,userErrors:r,watchAborted:i,results:l}=o;if(!t&&r.length===0){let u={headline:"Bulk operation not created successfully.",body:"This is an unexpected error. Please try again later."};throw a==="json"?P(`${u.headline} ${u.body}`):B(u),new I("Bulk operation response returned null with no error message.")}if(a==="json"){if(r.length||t&&["FAILED","CANCELED","EXPIRED"].includes(t.status)){let b=new h("Bulk operation failed.");throw b.details={...N(o),operation:t?x(t):null,userErrors:r},b}if(!t)throw new I("Bulk operation response returned no operation.");let u=t.type==="MUTATION"&&l!==void 0&&ie(l,o.query),c=u?"partial":"success";i&&(c="cancelled"),u&&(process.exitCode=1);let E=n&&!i&&t.type==="QUERY"&&t.status==="COMPLETED"&&String(t.objectCount)==="0"&&!t.url,k=l??(E?"":void 0);if(s&&k===void 0&&!i)throw new h("No results are available to write to the output file.");if(s&&k!==void 0){let b=R(s);await S(b,k),g(y.encode({path:b,format:"jsonl"}))}else g(y.encode({...N(o),status:c,...i?{reason:"watch-aborted"}:{},operation:x(t),...l===void 0?{}:{resultsJsonl:l}}));return}if(r.length){C({headline:"Error creating bulk operation.",body:{list:{items:r.map(u=>u.field?`${u.field.join(".")}: ${u.message}`:u.message)}}});return}t&&(i?T({headline:`Bulk operation ${t.id} is still running in the background.`,body:v(t.id)}):n||["FAILED","CANCELED","EXPIRED"].includes(t.status)?await ce(t,l,s):w({headline:"Bulk operation is running.",body:v(t.id),customSections:[{body:[{list:{items:[d`ID: ${p.cyan(t.id)}`.value]}}]}]}))}async function ce(o,e,a){let n=_(o).value,t=[{body:[{list:{items:[d`ID: ${p.cyan(o.id)}`.value,d`Status: ${p.yellow(o.status)}`.value,d`Created at: ${p.gray(String(o.createdAt))}`.value,...o.completedAt?[d`Completed at: ${p.gray(String(o.completedAt))}`.value]:[]]}}]}];switch(o.status){case"CREATED":w({headline:"Bulk operation started.",body:v(o.id),customSections:t});break;case"RUNNING":w({headline:"Bulk operation is running.",body:v(o.id),customSections:t});break;case"COMPLETED":if(e===void 0)w({headline:n,customSections:t});else{let r=H(e);a?await S(a,e):g(e),r?B({headline:"Bulk operation completed with errors.",body:a?`Results written to ${a}. Check file for error details.`:"Check results for error details.",customSections:t}):w({headline:n,body:a?[`Results written to ${a}`]:void 0,customSections:t})}break;case"CANCELED":case"CANCELING":case"EXPIRED":case"FAILED":C({headline:n,customSections:t});break}}function v(o){return[`Monitor its progress with:
4
- `,{command:`shopify app bulk status --id=${V(o)}`}]}var D=class o extends Z{static summary="Execute bulk operations.";static descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store, as a bulk operation. Mutations are only allowed on dev stores.\n\n Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).\n\n Use [`bulk status`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-status) to check the status of your bulk operations.\n\n With `--watch`, completed results are written as JSONL to stdout or `--output-file`. With `--json`, stdout contains one result object with operation details and downloaded JSONL in `resultsJsonl`. With `--json --output-file`, stdout contains only an absolute file receipt with `path` and `format`.";static description=this.descriptionForHelp();static flags={...F,...J,...K,...Y};static get jsonOutputSchema(){return y}async run(){let{flags:e}=await this.parse(o),{query:a,appContextResult:n,store:s}=await ee(e),t=e.json?"json":"text",r=await ne({remoteApp:n.remoteApp,store:s,query:a,variables:e.variables,variableFile:e["variable-file"],watch:e.watch??!1,...e.version&&{version:e.version}});oe("Starting bulk operation.",{organization:n.organization,remoteApp:n.remoteApp,storeFqdn:s.shopDomain,version:r.version},t);let i=await ae(r);return await se(i,{format:t,watch:e.watch??!1,outputFile:e["output-file"]}),{app:n.app}}};export{D as a};
4
+ `,{command:`shopify app bulk status --id=${V(o)}`}]}var D=class o extends Z{static summary="Execute bulk operations.";static descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store, as a bulk operation. Mutations are only allowed on dev stores.\n\n Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).\n\n Use [`bulk status`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-status) to check the status of your bulk operations.\n\n With `--watch`, completed results are written as JSONL to stdout or `--output-file`. With `--json`, stdout contains one result object with operation details and downloaded JSONL in `resultsJsonl`. With `--json --output-file`, stdout contains only an absolute file receipt with `path` and `format`.";static jsonOutputSchema=y;static description=this.descriptionForHelp();static flags={...F,...J,...K,...Y};async run(){let{flags:e}=await this.parse(o),{query:a,appContextResult:n,store:s}=await ee(e),t=e.json?"json":"text",r=await ne({remoteApp:n.remoteApp,store:s,query:a,variables:e.variables,variableFile:e["variable-file"],watch:e.watch??!1,...e.version&&{version:e.version}});oe("Starting bulk operation.",{organization:n.organization,remoteApp:n.remoteApp,storeFqdn:s.shopDomain,version:r.version},t);let i=await ae(r);return await se(i,{format:t,watch:e.watch??!1,outputFile:e["output-file"]}),{app:n.app}}};export{D as a};
@@ -0,0 +1,22 @@
1
+ import{b as Y}from"./chunk-LFOBYEWG.js";import{M as W}from"./chunk-YKDRUAY3.js";import{q as M}from"./chunk-3FZ4LE6A.js";import{U as k}from"./chunk-2KUM2RU4.js";import{a as C,d as j}from"./chunk-25MYHE4W.js";import{c as A}from"./chunk-2KFYIYLI.js";import{b as S}from"./chunk-QBRRFFMZ.js";import{d as I}from"./chunk-I3WRA2LH.js";import{i as d}from"./chunk-TD6JBHUS.js";import{$ as P,tb as h,vb as g,zb as R}from"./chunk-ZMOW2YZ4.js";import{i as b,j as N,k as f}from"./chunk-3PYDIBTX.js";import{d as q}from"./chunk-DOLVBTCB.js";import{b as J}from"./chunk-AE3IQG7S.js";import{b as $}from"./chunk-R4E2E4NN.js";import{a as _}from"./chunk-JD5P5RAJ.js";import{e as H,g as O}from"./chunk-VKWPEFWQ.js";O();var u=H(J()),E=class extends u.Command{static baseFlags={"json-schema":u.Flags.boolean({description:"Print the command's JSON schemas.",env:"SHOPIFY_FLAG_JSON_SCHEMA"})};static descriptionWithMarkdown;static jsonOutputSchema;static get requiresSyncAnalytics(){return!1}static nonTTYFlagRequirements(n){return[]}static descriptionForHelp(){let n=(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)');return z(n,this.jsonOutputSchema)}static descriptionWithoutMarkdown(){return this.descriptionForHelp()}static analyticsNameOverride(){}static analyticsStopCommand(){}jsonOutputFromFlags=!1;async catch(n){let e=async()=>{n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-BS2ZENQV.js");return await r(n,this.config),u.Errors.handle(n)};return this.jsonOutputFromFlags&&f()!=="json"?b({outputMode:"json",sink:j},e):e()}async _run(){return C(this.argv,()=>super._run())}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),Y(this.id??""),!q()){let{registerCleanBugsnagErrorsFromWithinPlugins:e}=await import("./error-handler-BS2ZENQV.js");await e(this.config)}await G(this.config),this.showNpmFlagWarning(),await this.showDeprecatedAutomationTokenVariableWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-FQW3GKH2.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${P(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-YDUI56E3.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}async showDeprecatedAutomationTokenVariableWarning(){let n=A();n&&await M("warn-on-deprecated-automation-token-variable",{days:1},async()=>{let{renderWarning:e}=await import("./ui-YDUI56E3.js");e({headline:`${n} is deprecated.`,body:`Move the token to ${$.serviceAccountToken}. ${n} still works for now, but a future release will stop reading it.`})})}exitWithTimestampWhenEnvVariablePresent(){_(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(R(`
2
+ SHOPIFY_CLI_TIMESTAMP_START
3
+ { "timestamp": ${Date.now()} }
4
+ SHOPIFY_CLI_TIMESTAMP_END
5
+ `),process.exit(0))}async parse(n,e){let r=await super.parse(n,e),t=await this.resultWithEnvironment(r,n,e);return this.runWithParsedOutput(t.flags,async()=>(await W(t.flags["auth-alias"]),await U(t.flags),this.validateNonTTYFlags(t.flags),{...t,argv:t.argv}))}runWithParsedOutput(n,e){let r=this.constructor,t=c(r.flags,"json")&&(n.json===!0||T(r.flags)&&n.output==="json");return this.jsonOutputFromFlags||=t,t&&f()!=="json"?b({outputMode:"json",sink:j},e):e()}environmentsFilename(){}filterEnvironmentFlags(n){return n}async parseEnvironmentFlags(n,e,r){let t=this.argv;try{return(await super.parse(e,[...t,...D(this.filterEnvironmentFlags(n),e,r)])).flags}finally{this.argv=t}}validateNonTTYFlags(n){this.failMissingNonTTYFlagRequirements(n,this.applicableNonTTYFlagRequirements(n))}failMissingNonTTYFlags(n,e){this.failMissingNonTTYFlagRequirements(n,e.map(r=>({flags:[r]})))}failMissingNonTTYFlagRequirements(n,e){if(k())return;let r=e.filter(i=>i.flags.every(l=>n[l]===void 0||n[l]===!1));if(r.length===0)return;let t=r.length===1?"Flag not specified":"Flags not specified",s=r.map(i=>i.flags.map(l=>`--${l}`).join(" or ")).join(`
6
+ `),o=r.length===1?"This flag is required":"These flags are required";throw new d(g`${t}:
7
+
8
+ ${h.cyan(s)}
9
+
10
+ ${o} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(n){let e=this.constructor,r={...e.baseFlags,...e.flags},t=Object.entries(r).filter(([,o])=>!!o.requiredIfNonInteractive).map(([o])=>({flags:[o]})),s=(e.nonTTYFlagRequirements?.(n)??[]).filter(o=>o.when?.(n)??!0);return[...t,...s]}async resultWithEnvironment(n,e,r){let t=n.flags,s=this.environmentsFilename();if(!s)return n;let{environmentFilePath:o}=await import("./environments-Y5JEI3U3.js"),i=await o(s,{from:t.path}),l=[];t.environment&&(l=Array.isArray(t.environment)?t.environment:[t.environment]);let p=l.length>0;if(!i&&!p||p&&l.length>1)return n;let{environment:m,isDefaultEnvironment:v}=await this.loadEnvironmentForCommand(t.path,s,l[0]);if(!m||v&&!c(e?.flags,"environment"))return n;let y=await super.parse(B(e),r),F={...m,...y.flags};this.jsonOutputFromFlags=c(e?.flags,"json")&&F.json===!0||T(e?.flags)&&F.output==="json";let x=c(e?.flags,"json")&&T(e?.flags)&&F.output==="json"?{json:!0,...m}:m,w=await super.parse(e,[...r??this.argv,...D(x,e,y.flags),...v?["--environment","default"]:[]]),V=()=>L(y.flags,w.flags,v?"default":l[0],m);return this.runWithParsedOutput(w.flags,V),w}async loadEnvironmentForCommand(n,e,r){let{loadEnvironment:t}=await import("./environments-Y5JEI3U3.js");if(r){let o=await t(r,e,{from:n});return{environment:o&&this.filterEnvironmentFlags(o),isDefaultEnvironment:!1}}let s=await t("default",e,{from:n,silent:!0});return{environment:s&&this.filterEnvironmentFlags(s),isDefaultEnvironment:!0}}};async function U(a){await I(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:S(a.path)}))}function L(a,n,e,r){let t={};for(let[o,i]of Object.entries(n)){let l=Object.prototype.hasOwnProperty.call(a,o),p=Object.prototype.hasOwnProperty.call(r,o);if(!l&&p){let m=o==="password"||o==="store-password"?`********${i.substr(-4)}`:i;t[o]=m}}if(Object.keys(t).length===0)return;let s=Object.entries(t).map(([o,i])=>`${o}: ${i}`);if(f()==="json"){N({type:"diagnostic",level:"info",message:`Using applicable flags from ${e} environment:
11
+ ${s.join(`
12
+ `)}`});return}import("./ui-YDUI56E3.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:e},"environment:"],body:[{list:{items:s}}]})})}function B(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,e])=>{let r={...e};return delete r.default,[n,r]}))}:a}function D(a,n,e){let r=[];for(let[t,s]of Object.entries(a)){let o=c(n?.flags,t),i=Object.prototype.hasOwnProperty.call(e,t);if(o&&!i){if(n?.flags?.[t]?.type==="boolean"&&typeof s!="boolean")throw new d(g`Environment flag ${h.yellow(t)} must be a boolean.`);if(typeof s=="boolean")if(s)r.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(s)?s.forEach(l=>r.push(`--${t}`,`${l}`)):r.push(`--${t}`,`${s}`)}}return r}function c(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}function T(a){let n=a?.output;return n?.type==="option"&&n.options?.includes("json")===!0}function z(a,n){if(!n)return a;let e=`Use \`--json-schema\` to print the result, error, and event schemas.
13
+
14
+ Output from \`--json\` conforms to the \`${n.name}\` schema.
15
+
16
+ \`\`\`json
17
+ ${JSON.stringify(n.jsonSchema,null,2)}
18
+ \`\`\``;return[a,e].filter(Boolean).join(`
19
+
20
+ `)}async function G(a){let n=Array.from(a.plugins.values()),e=["@shopify/app","@shopify/plugin-cloudflare"],r=n.filter(s=>e.includes(s.name));if(r.length>0){let s=r.map(i=>` - shopify plugins remove ${i.name}`).join(`
21
+ `),{renderWarning:o}=await import("./ui-YDUI56E3.js");o({headline:`Unsupported plugins detected: ${r.map(i=>i.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
22
+ ${s}`]})}let t=n.filter(s=>!e.includes(s.name));a.plugins=new Map(t.map(s=>[s.name,s]))}var cn=E;export{B as a,cn as b};
@@ -1,2 +1,2 @@
1
- import{c as y}from"./chunk-2NZ7GDDR.js";import{xa as i}from"./chunk-NCPZVARH.js";import{B as l,C as p,F as m,I as h,W as a}from"./chunk-V654BMS7.js";import{h as s}from"./chunk-J7BTC45S.js";import{i as d,j as f}from"./chunk-FZCGRIOM.js";import{b as c}from"./chunk-46JYM3GH.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();function w(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function x(e){return{list:{items:e.map(w)}}}async function M(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return f()==="json"?d({type:"diagnostic",level:"error",message:`${o?`Environment: ${o}
1
+ import{c as y}from"./chunk-DVFVO6ZE.js";import{Ga as i}from"./chunk-YKDRUAY3.js";import{A as p,D as m,G as h,U as a,z as l}from"./chunk-2KUM2RU4.js";import{i as s}from"./chunk-TD6JBHUS.js";import{j as d,k as f}from"./chunk-3PYDIBTX.js";import{b as c}from"./chunk-QGQWVA7N.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();function w(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function x(e){return{list:{items:e.map(w)}}}async function M(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return f()==="json"?d({type:"diagnostic",level:"error",message:`${o?`Environment: ${o}
2
2
  `:""}${r}`}):p({headline:o?`Environment: ${o}`:"",body:r}),!1;if(l({body:r}),c())throw new s("This command must run from a theme directory when user input is unavailable.","Run the command from a theme directory, or use `--force` to continue.");if(!a())return!0;let t=await m({message:"Do you want to proceed?"});return i(`theme-service:confirm-directory:${t}`),t}async function k(e,r,o){if(e.role!==y||o)return!0;if(!a())throw new s(`Can't ${r} on the live theme when user input is unavailable.`,"Use `--allow-live` to confirm that you want to continue.");let n=`You're about to ${r} on your live theme "${e.name}". This will make changes visible to customers. Are you sure you want to proceed?`,t=await m({message:n,confirmationMessage:"Yes, proceed with live theme",cancellationMessage:"No, cancel"});return i(`theme-service:confirm-live-theme:${t}`),t}async function D(e,r,o=!1){e.length>0&&await h(e,{renderOptions:{stdout:r??process.stderr},noProgressBar:o})}export{w as a,x as b,M as c,k as d,D as e};
@@ -0,0 +1 @@
1
+ import{b as u}from"./chunk-XEZPN5TR.js";import{a as i}from"./chunk-JIY6XWSC.js";import{b as a,c}from"./chunk-DMOLPSXF.js";import{a as p}from"./chunk-LG3KEHGD.js";import{zb as m}from"./chunk-ZMOW2YZ4.js";import{b as r}from"./chunk-3PYDIBTX.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var e=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(o,s){m(s==="json"?e.encode(o):o.version)}var n=class o extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static jsonOutputSchema=e;static description=this.descriptionForHelp();static flags={...a,...c};async run(){let{flags:s}=await this.parse(o),v=await f();l(v,s.json?"json":"text")}};export{n as a};
@@ -1,4 +1,4 @@
1
- import{b as S}from"./chunk-7GHSE7SG.js";import{qb as o,sb as r,wb as p}from"./chunk-RIG66DIQ.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function P(e){let t=Object.fromEntries(e.variables.map(({name:u,value:E})=>[u,E]));return r`
1
+ import{b as S}from"./chunk-DDRP6QTC.js";import{tb as o,vb as r,zb as p}from"./chunk-ZMOW2YZ4.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function P(e){let t=Object.fromEntries(e.variables.map(({name:u,value:E})=>[u,E]));return r`
2
2
  ${o.green("SHOPIFY_API_KEY")}=${t.SHOPIFY_API_KEY??""}
3
3
  ${o.green("SHOPIFY_API_SECRET")}=${t.SHOPIFY_API_SECRET??""}
4
4
  ${o.green("SCOPES")}=${t.SCOPES??""}
@@ -0,0 +1 @@
1
+ import{g as c}from"./chunk-VKWPEFWQ.js";c();function l(s,n,o){let e=[];for(let t=0;t<s.length;t+=n){let r=s.slice(t,t+n);e.push(o(r))}return e}async function u(s){let o=(await Promise.allSettled(s)).find(e=>e.status==="rejected");if(o)throw o.reason}function a(s,n,o){let e=[];for(let t=0;t<s.length;t+=n){let r=s.slice(t,t+n);e.push(o(r,t))}return e}export{l as a,u as b,a as c};