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.
- package/dist/analytics-QFDTQYPM.js +1 -0
- package/dist/analytics-XADBBHOH.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/chunk-24Q6X53V.js +1 -0
- package/dist/{chunk-F3OM2YO6.js → chunk-25MYHE4W.js} +1 -1
- package/dist/{chunk-HP2ZAAY7.js → chunk-27JT4NA4.js} +1 -1
- package/dist/chunk-2BYW3BYX.js +1 -0
- package/dist/chunk-2KFYIYLI.js +1 -0
- package/dist/{chunk-V654BMS7.js → chunk-2KUM2RU4.js} +60 -60
- package/dist/chunk-2PD7TNFS.js +275 -0
- package/dist/{chunk-3JACWBUC.js → chunk-3C72S6LO.js} +1 -1
- package/dist/chunk-3FZ4LE6A.js +10 -0
- package/dist/{chunk-ZBVHPC6W.js → chunk-3GD5ESWN.js} +1 -1
- package/dist/chunk-3KGN6N7E.js +1 -0
- package/dist/{chunk-X4A5D3PZ.js → chunk-3MZ7ELHS.js} +2 -2
- package/dist/{chunk-VXL5FBE7.js → chunk-3PS52ZT4.js} +1 -1
- package/dist/chunk-3PYDIBTX.js +1 -0
- package/dist/chunk-3Z75BVGJ.js +1 -0
- package/dist/chunk-4FWPOGPQ.js +1 -0
- package/dist/chunk-4IP37MBX.js +1 -0
- package/dist/chunk-4NFX7YCT.js +1 -0
- package/dist/chunk-4TCXPHKN.js +1 -0
- package/dist/chunk-4WBWZIN5.js +6 -0
- package/dist/chunk-5534MHZW.js +97 -0
- package/dist/{chunk-C4EKNOLY.js → chunk-5C6CXU74.js} +1 -1
- package/dist/{chunk-56GKTWFF.js → chunk-5HOZDOJ7.js} +1 -1
- package/dist/{chunk-CX3ANDPI.js → chunk-5PSQFQL6.js} +1 -1
- package/dist/chunk-5T3ZT6CC.js +1 -0
- package/dist/chunk-62NW4EPI.js +17 -0
- package/dist/chunk-65NCQJYR.js +1 -0
- package/dist/{chunk-QGWC23HQ.js → chunk-6BYHL3DS.js} +1 -1
- package/dist/chunk-6I7DT7QR.js +3 -0
- package/dist/chunk-6IMTMS2S.js +3 -0
- package/dist/chunk-7A77JCED.js +11 -0
- package/dist/chunk-7ART2IKU.js +1 -0
- package/dist/{chunk-TTBNFGCW.js → chunk-7BPT5V24.js} +2 -2
- package/dist/{chunk-V7H7ITCF.js → chunk-7CT3NIXI.js} +1 -1
- package/dist/chunk-7DBKSSDK.js +1 -0
- package/dist/chunk-7HECBXSP.js +1 -0
- package/dist/chunk-7KID5BIR.js +4 -0
- package/dist/{chunk-63UKZLPC.js → chunk-7N7KRZOM.js} +1 -1
- package/dist/{chunk-NJVNGEOU.js → chunk-7NRHZG5Y.js} +102 -102
- package/dist/chunk-7PHDEILV.js +1 -0
- package/dist/chunk-A2NSORBM.js +2296 -0
- package/dist/chunk-A54TADAZ.js +1 -0
- package/dist/{chunk-YTUUU33R.js → chunk-AE3IQG7S.js} +1 -1
- package/dist/chunk-AGTUAQHX.js +4 -0
- package/dist/chunk-AHYI27QL.js +11 -0
- package/dist/chunk-ALINJ6J2.js +1 -0
- package/dist/chunk-AMVWKHNY.js +1 -0
- package/dist/{chunk-D4LFWIFE.js → chunk-ASKBYEO7.js} +1 -1
- package/dist/{chunk-LENSEW2F.js → chunk-AVJJGQOP.js} +1 -1
- package/dist/{chunk-QVVQUJQL.js → chunk-AY3AAV77.js} +1 -1
- package/dist/{chunk-DSKAIC7O.js → chunk-BFAOTQGH.js} +1 -1
- package/dist/{chunk-KGASGUDQ.js → chunk-BPKQA2EO.js} +1 -1
- package/dist/{chunk-KLYGMYXV.js → chunk-C2HJEGTS.js} +1 -1
- package/dist/chunk-C72QNK6O.js +4 -0
- package/dist/chunk-CDSDQTNB.js +16 -0
- package/dist/chunk-CEQGOCKX.js +1 -0
- package/dist/{chunk-QBE6XVU3.js → chunk-CIGWIKOW.js} +1 -1
- package/dist/chunk-CQAD5WML.js +1 -0
- package/dist/chunk-CRQQCT7F.js +1 -0
- package/dist/chunk-CZNUBAAG.js +3 -0
- package/dist/{chunk-WQOPLNDH.js → chunk-D7IMC2G4.js} +1 -1
- package/dist/{chunk-LGXNXAQA.js → chunk-DC7ITY6T.js} +1 -1
- package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
- package/dist/{chunk-4EDE3UH7.js → chunk-DDZYIC76.js} +2 -2
- package/dist/chunk-DGIIUQH3.js +1 -0
- package/dist/{chunk-5AWELO3D.js → chunk-DMOLPSXF.js} +1 -1
- package/dist/{chunk-GSGCSBRN.js → chunk-DOLVBTCB.js} +1 -1
- package/dist/{chunk-MXXMIPUN.js → chunk-DTKGI43P.js} +2 -2
- package/dist/{chunk-37P5YOP2.js → chunk-DVD7I2TX.js} +2 -2
- package/dist/chunk-DVFVO6ZE.js +2 -0
- package/dist/{chunk-7U2MTK6I.js → chunk-DXEMSLI6.js} +1 -1
- package/dist/chunk-EDWIWZWM.js +15 -0
- package/dist/chunk-ELR6AZT4.js +9 -0
- package/dist/chunk-EVQPYZ7F.js +5 -0
- package/dist/chunk-F5QKMDP3.js +1 -0
- package/dist/{chunk-J5DUFSR4.js → chunk-F6IQWX2F.js} +1 -1
- package/dist/{chunk-XZLM4HLO.js → chunk-FAVPTYIR.js} +1 -1
- package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
- package/dist/{chunk-DVW7NDVD.js → chunk-FHKK3QU7.js} +1 -1
- package/dist/chunk-FKKJQGYX.js +7 -0
- package/dist/chunk-FQLXQ7WN.js +16 -0
- package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
- package/dist/{chunk-AIEVQSI3.js → chunk-FU7PYW7H.js} +1 -1
- package/dist/{chunk-5YUDEPEY.js → chunk-FYQE5E6U.js} +1 -1
- package/dist/chunk-G3EWGBXR.js +1 -0
- package/dist/chunk-G3RNO2TC.js +1 -0
- package/dist/{chunk-7NYCJG2U.js → chunk-GGCP2TIK.js} +1 -1
- package/dist/chunk-GSFWBFFH.js +1 -0
- package/dist/{chunk-NUCDRKDW.js → chunk-H2KGP2FM.js} +2 -2
- package/dist/{chunk-PVASYKSJ.js → chunk-H4K3F7PP.js} +1 -1
- package/dist/chunk-HGZ2HRPO.js +13 -0
- package/dist/chunk-HMPRWNGG.js +203 -0
- package/dist/chunk-HP4QYSBQ.js +1 -0
- package/dist/{chunk-LR4J4KYJ.js → chunk-HSTZV6H7.js} +2 -2
- package/dist/{chunk-ZHHTQRWU.js → chunk-HVUMVDUG.js} +1 -1
- package/dist/{chunk-IY5EI5V2.js → chunk-HYCNYUHW.js} +1 -1
- package/dist/{chunk-FHNJLON5.js → chunk-I3WRA2LH.js} +1 -1
- package/dist/{chunk-MS7DTL4U.js → chunk-IRLYC626.js} +2 -2
- package/dist/chunk-IWNFPBH2.js +33 -0
- package/dist/{chunk-EA5XVQJT.js → chunk-JALDNBTU.js} +1 -1
- package/dist/{chunk-ZTZGDZCE.js → chunk-JC37YZ4I.js} +1 -1
- package/dist/{chunk-DM7BTMFP.js → chunk-JG4FAT2T.js} +1 -1
- package/dist/chunk-JGLLABZR.js +8 -0
- package/dist/chunk-JIY6XWSC.js +1 -0
- package/dist/{chunk-VG2AESTZ.js → chunk-JIYCZXK5.js} +1 -1
- package/dist/chunk-JMSAHCBU.js +35 -0
- package/dist/{chunk-CWR3IFXD.js → chunk-JNSVKDBY.js} +1 -1
- package/dist/chunk-JQU2BJDH.js +3 -0
- package/dist/chunk-JVY6CCLE.js +3 -0
- package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
- package/dist/chunk-KCAWHJGF.js +1 -0
- package/dist/{chunk-M73IECPW.js → chunk-KFO2JNF5.js} +1 -1
- package/dist/chunk-KFR7HWCG.js +9 -0
- package/dist/{chunk-QYFU363G.js → chunk-KHZF73BL.js} +1 -1
- package/dist/{chunk-HT66BOEC.js → chunk-KM4LE7K4.js} +2 -2
- package/dist/{chunk-IILLQOUC.js → chunk-L2PUDV7Y.js} +1 -1
- package/dist/chunk-LFBFPK22.js +1 -0
- package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
- package/dist/chunk-LGDWE3H3.js +1 -0
- package/dist/chunk-LPPEAMI6.js +1 -0
- package/dist/chunk-LXIWMYM4.js +1 -0
- package/dist/chunk-MGWCXTGD.js +1 -0
- package/dist/chunk-MGX7UG44.js +1 -0
- package/dist/chunk-MKFRKNHF.js +3 -0
- package/dist/chunk-MTT6EAQO.js +1 -0
- package/dist/{chunk-75LAVRRL.js → chunk-MU7IVBGI.js} +2 -2
- package/dist/{chunk-36TZ447N.js → chunk-MYMBHVC4.js} +1 -1
- package/dist/chunk-MZDBH4XV.js +4 -0
- package/dist/{chunk-3G2PEYPI.js → chunk-NUBJ2HK7.js} +1 -1
- package/dist/{chunk-K3YALQBQ.js → chunk-NY5N4ANL.js} +1 -1
- package/dist/{chunk-364BVGRY.js → chunk-NYMKGE3J.js} +1 -1
- package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
- package/dist/chunk-O7HZ3EIP.js +1 -0
- package/dist/chunk-OJOF6IYG.js +9 -0
- package/dist/{chunk-EXTVC33U.js → chunk-ONZULPQH.js} +68 -66
- package/dist/chunk-ORMXPSJM.js +1 -0
- package/dist/chunk-ORYEDUKM.js +5 -0
- package/dist/{chunk-MZCIRMZJ.js → chunk-OTMYJWIP.js} +1 -1
- package/dist/chunk-OVJVFB5E.js +20 -0
- package/dist/chunk-OWQEFORZ.js +1 -0
- package/dist/{chunk-43HKFLOU.js → chunk-OXPEBT4I.js} +2 -2
- package/dist/chunk-OXZR2MB4.js +6 -0
- package/dist/chunk-OY5M52EF.js +6 -0
- package/dist/{chunk-FK5OFLSJ.js → chunk-PJZZZNWR.js} +1 -1
- package/dist/chunk-Q2LQJYRK.js +16 -0
- package/dist/chunk-QBRRFFMZ.js +1 -0
- package/dist/{chunk-KNQXCU3Y.js → chunk-QCLE5REL.js} +2 -2
- package/dist/chunk-QGQWVA7N.js +1 -0
- package/dist/chunk-QKPAB245.js +1 -0
- package/dist/chunk-QUPZOBTB.js +1 -0
- package/dist/chunk-R4E2E4NN.js +1 -0
- package/dist/{chunk-2M4BKFYF.js → chunk-R6US7F33.js} +1 -1
- package/dist/chunk-RKNVTEO3.js +5 -0
- package/dist/{chunk-2QQ7EBJD.js → chunk-RLOEI6VE.js} +1 -1
- package/dist/chunk-RSZAAN37.js +1 -0
- package/dist/{chunk-WBJ6ZHYH.js → chunk-S3RROJGG.js} +37 -37
- package/dist/chunk-S4KNPCW3.js +81 -0
- package/dist/{chunk-YFRI75U4.js → chunk-SBN3ILXO.js} +1 -1
- package/dist/chunk-SCDGLREP.js +1 -0
- package/dist/chunk-SHOMIS6Q.js +2 -0
- package/dist/chunk-SN3PMWUF.js +6 -0
- package/dist/chunk-SODCXZ5U.js +1 -0
- package/dist/chunk-SPJM7RTD.js +1 -0
- package/dist/chunk-SQL67BKI.js +5 -0
- package/dist/{chunk-MMUGP3WP.js → chunk-SURFUFAZ.js} +1 -1
- package/dist/{chunk-KOTZSPZA.js → chunk-SVQDMZJO.js} +1 -1
- package/dist/chunk-T4ZOTYOY.js +1 -0
- package/dist/chunk-T6C4WC3Z.js +2 -0
- package/dist/chunk-TD6JBHUS.js +1 -0
- package/dist/chunk-TIM4CIXZ.js +22 -0
- package/dist/{chunk-V2FCZC7U.js → chunk-TP7CTMMT.js} +1 -1
- package/dist/chunk-TSPJAMYB.js +1 -0
- package/dist/chunk-TSVEV2UD.js +26 -0
- package/dist/chunk-TTAT62N3.js +25 -0
- package/dist/{chunk-ZVEBXHEY.js → chunk-TUSS6PXB.js} +1 -1
- package/dist/chunk-TXP6KFWO.js +5 -0
- package/dist/chunk-TZHVCMZN.js +6 -0
- package/dist/chunk-UC4TOM36.js +3 -0
- package/dist/{chunk-2YGPWG3I.js → chunk-UFY4L5KQ.js} +1 -1
- package/dist/chunk-UU6UQ2QY.js +1 -0
- package/dist/chunk-V4FC72R6.js +1 -0
- package/dist/chunk-VA2S7W7H.js +10 -0
- package/dist/chunk-VE3IIC7H.js +1 -0
- package/dist/{chunk-EH22T4FI.js → chunk-VJG7VXFU.js} +2 -2
- package/dist/chunk-VQSRU5XL.js +4 -0
- package/dist/chunk-VRIFLMA3.js +70 -0
- package/dist/chunk-WBJFTCEJ.js +1 -0
- package/dist/chunk-WBPP6PO7.js +31 -0
- package/dist/chunk-WE5KY6T6.js +1 -0
- package/dist/chunk-WFPVT2IY.js +1 -0
- package/dist/{chunk-ETXBF6Q7.js → chunk-WLYXBQ2M.js} +1 -1
- package/dist/chunk-WNVOEE6T.js +7 -0
- package/dist/chunk-WPDJVUTY.js +47 -0
- package/dist/chunk-WWCYEZUU.js +1 -0
- package/dist/chunk-WWVDZ3GC.js +3 -0
- package/dist/{chunk-CXPYOLGM.js → chunk-WZBZ7FWP.js} +2 -2
- package/dist/chunk-XEZPN5TR.js +22 -0
- package/dist/{chunk-AQ34X5B3.js → chunk-XLMKHTJ5.js} +1 -1
- package/dist/chunk-XRNBCV2B.js +1 -0
- package/dist/{chunk-B4ISKIXN.js → chunk-XWLNCBAG.js} +1 -1
- package/dist/chunk-YF4AXKM4.js +1 -0
- package/dist/chunk-YKDRUAY3.js +857 -0
- package/dist/{chunk-FPOZMNT2.js → chunk-YNFQBYSL.js} +1 -1
- package/dist/{chunk-2CJQQQW4.js → chunk-YNZLLZU2.js} +1 -1
- package/dist/chunk-YOYPYB4H.js +1 -0
- package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
- package/dist/chunk-YTL45RXR.js +103 -0
- package/dist/chunk-YVPB7OT6.js +6 -0
- package/dist/chunk-YYWSHRO2.js +89 -0
- package/dist/{chunk-5XOEMYEQ.js → chunk-Z5QEXS6F.js} +1 -1
- package/dist/chunk-Z5WFRYVQ.js +6 -0
- package/dist/{chunk-P5W5RVE6.js → chunk-Z6ZRS256.js} +1 -1
- package/dist/chunk-ZMOW2YZ4.js +18 -0
- package/dist/chunk-ZMU4EYXT.js +1 -0
- package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
- package/dist/chunk-ZXZWMXXK.js +7 -0
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs-next.js +1 -0
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +10 -10
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +7 -7
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +21 -21
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +23 -23
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +90 -90
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.d.ts +7 -7
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.d.ts +24 -24
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.d.ts +7 -7
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli-version-check-V25AVSZ6.js +1 -0
- package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
- package/dist/command-json-schema-C5UZXP2W.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OCGEEV4U.js +1 -0
- package/dist/custom-oclif-loader-ZVUKMRGH.js +1 -0
- package/dist/data/filters.json +41 -2
- package/dist/data/local_block_entry.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +78 -36
- package/dist/data/section.json +1 -1
- package/dist/data/shopify_system_translations.json +240 -23
- package/dist/data/strict_settings.json +24 -0
- package/dist/data/tags.json +57 -24
- package/dist/data/theme_block.json +1 -1
- package/dist/deprecations-A5AXXKIK.js +1 -0
- package/dist/dist-NORLLIHQ.js +1 -0
- package/dist/dist-XBM4XZS4.js +1 -0
- package/dist/environment-5P7JJ3GI.js +1 -0
- package/dist/environments-Y5JEI3U3.js +1 -0
- package/dist/error-GI4DXVDU.js +1 -0
- package/dist/error-handler-BS2ZENQV.js +1 -0
- package/dist/fs-UOOLPOHJ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -2
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/http-2OXOS2AW.js +1 -0
- package/dist/http-proxy-node16-NZZ674YW.js +38 -0
- package/dist/index.js +12 -12
- package/dist/is-global-CI77T7NE.js +1 -0
- package/dist/json-error-6PBUR4LQ.js +1 -0
- package/dist/latest-version-75YEFEMK.js +9 -0
- package/dist/lib-4JVADMNT.js +1 -0
- package/dist/lib-L4STV5B2.js +1 -0
- package/dist/lib-LEEN55OD.js +1 -0
- package/dist/{local-KA3IWOZ6.js → local-5NIWPWDS.js} +1 -1
- package/dist/metadata-IXPNNPNJ.js +1 -0
- package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
- package/dist/node-package-manager-ALFEGGD6.js +1 -0
- package/dist/notifications-system-FQW3GKH2.js +1 -0
- package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
- package/dist/os-6TNQTEUN.js +1 -0
- package/dist/output-LEOB5LAM.js +1 -0
- package/dist/{prettier-EGVCP5CY.js → prettier-VLTY4MIE.js} +1 -1
- package/dist/registry-auth-token-EDH77OOW.js +1 -0
- package/dist/registry-url-JMNV3LLX.js +1 -0
- package/dist/semver-HHZRKD6Y.js +1 -0
- package/dist/system-J4CTESP5.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-YDUI56E3.js +1 -0
- package/dist/upgrade-LBCZORG2.js +1 -0
- package/dist/version-2YL4YEQ2.js +1 -0
- package/dist/version-X2CPQVWQ.js +1 -0
- package/dist/workerd-5UPTEWNI.js +18 -0
- package/oclif.manifest.json +25622 -1132
- package/package.json +7 -7
- package/dist/analytics-RSUIYNLC.js +0 -1
- package/dist/analytics-V2SDYXQJ.js +0 -1
- package/dist/chunk-2AW3KBTP.js +0 -1
- package/dist/chunk-2M535QQJ.js +0 -6
- package/dist/chunk-2NZ7GDDR.js +0 -2
- package/dist/chunk-2RFCYZMG.js +0 -47
- package/dist/chunk-2S5NPJEJ.js +0 -5
- package/dist/chunk-2TPLPZA2.js +0 -3
- package/dist/chunk-32O27NE3.js +0 -1
- package/dist/chunk-335BUVBP.js +0 -1
- package/dist/chunk-46JYM3GH.js +0 -1
- package/dist/chunk-4GQEXVDT.js +0 -1
- package/dist/chunk-4IUXLUFD.js +0 -6
- package/dist/chunk-4QZ6OBXL.js +0 -4
- package/dist/chunk-4SDCXKYR.js +0 -31
- package/dist/chunk-5AQ5JT2V.js +0 -7
- package/dist/chunk-5D4FNAAD.js +0 -3
- package/dist/chunk-5TWYJQQO.js +0 -1
- package/dist/chunk-5YXYYQBX.js +0 -1
- package/dist/chunk-6JZC6UKY.js +0 -20
- package/dist/chunk-6Y6A2QGK.js +0 -3
- package/dist/chunk-7AWAOPLA.js +0 -1
- package/dist/chunk-7XAEI4XT.js +0 -3
- package/dist/chunk-A7LBGXWG.js +0 -1
- package/dist/chunk-ADVLRSSO.js +0 -1
- package/dist/chunk-AOBE6HN6.js +0 -31
- package/dist/chunk-B2VE7WOX.js +0 -1
- package/dist/chunk-BB7GAZP6.js +0 -1
- package/dist/chunk-BNTOGZLY.js +0 -1
- package/dist/chunk-BOAGJ6P5.js +0 -1
- package/dist/chunk-BU3JQM3W.js +0 -1
- package/dist/chunk-C3LL5CZA.js +0 -1
- package/dist/chunk-CFUZ6574.js +0 -15
- package/dist/chunk-CKVVJ4XO.js +0 -1
- package/dist/chunk-CNPBDSDL.js +0 -1
- package/dist/chunk-DTRENW4Q.js +0 -272
- package/dist/chunk-E3CTHNQS.js +0 -1
- package/dist/chunk-FFSDGRAN.js +0 -1
- package/dist/chunk-FNWXMCSD.js +0 -97
- package/dist/chunk-FS5PZCZ3.js +0 -1
- package/dist/chunk-FTHVOIK7.js +0 -4
- package/dist/chunk-FVRI7ZKE.js +0 -103
- package/dist/chunk-FZCGRIOM.js +0 -1
- package/dist/chunk-GCKGQFV7.js +0 -1
- package/dist/chunk-GGJUPL4W.js +0 -6
- package/dist/chunk-GHU6YEXH.js +0 -15
- package/dist/chunk-GNPIKPHB.js +0 -1
- package/dist/chunk-H57KYDEI.js +0 -16
- package/dist/chunk-HB3MJYBK.js +0 -1
- package/dist/chunk-HNU6R7RT.js +0 -7
- package/dist/chunk-HPT3UXZ5.js +0 -4
- package/dist/chunk-HXNGLDMU.js +0 -1
- package/dist/chunk-IAL6IQYW.js +0 -16
- package/dist/chunk-IULZYDCI.js +0 -9
- package/dist/chunk-IWTOC6DG.js +0 -1
- package/dist/chunk-J3JPJCWP.js +0 -1
- package/dist/chunk-J3UXIC23.js +0 -10
- package/dist/chunk-J7BTC45S.js +0 -1
- package/dist/chunk-JMVK2BIB.js +0 -3
- package/dist/chunk-JUTULEWW.js +0 -5
- package/dist/chunk-KT5QQOES.js +0 -3
- package/dist/chunk-KVF55INC.js +0 -5
- package/dist/chunk-L6VONMA2.js +0 -5
- package/dist/chunk-LWMKZJ4M.js +0 -1
- package/dist/chunk-M2KX3PXA.js +0 -1
- package/dist/chunk-M7NLCGCP.js +0 -6
- package/dist/chunk-MHWETFNT.js +0 -1
- package/dist/chunk-MNWT2SQO.js +0 -2265
- package/dist/chunk-MU2X7NGF.js +0 -11
- package/dist/chunk-MZWPIFAM.js +0 -70
- package/dist/chunk-NCPZVARH.js +0 -836
- package/dist/chunk-NMECLRGK.js +0 -11
- package/dist/chunk-NMLLRFZF.js +0 -1
- package/dist/chunk-NPB753M3.js +0 -1
- package/dist/chunk-OH7BQZQ7.js +0 -2
- package/dist/chunk-OLKLHVHA.js +0 -22
- package/dist/chunk-OPVXPDOQ.js +0 -1
- package/dist/chunk-OQUXGAF2.js +0 -1
- package/dist/chunk-OUMERKRE.js +0 -10
- package/dist/chunk-OYGIQDME.js +0 -1
- package/dist/chunk-PNZURX3S.js +0 -1
- package/dist/chunk-PRKJVU4Y.js +0 -1
- package/dist/chunk-PXFPVGWV.js +0 -1
- package/dist/chunk-Q2ORJEB2.js +0 -25
- package/dist/chunk-QFWWCZOI.js +0 -1
- package/dist/chunk-QFYLJVJW.js +0 -77
- package/dist/chunk-QX3T6G5X.js +0 -1
- package/dist/chunk-RDXLDCMI.js +0 -3
- package/dist/chunk-REDUS6EW.js +0 -1
- package/dist/chunk-RFZNFTVM.js +0 -1
- package/dist/chunk-RIG66DIQ.js +0 -18
- package/dist/chunk-RNUEPPVN.js +0 -1
- package/dist/chunk-RWTAPWLJ.js +0 -3
- package/dist/chunk-T5YVYVSW.js +0 -1
- package/dist/chunk-UDPYSL3M.js +0 -4
- package/dist/chunk-ULMNNGGX.js +0 -6
- package/dist/chunk-URCH4ITT.js +0 -1
- package/dist/chunk-UU2R56LN.js +0 -12
- package/dist/chunk-V75WUEFU.js +0 -1
- package/dist/chunk-VXD26GIG.js +0 -1
- package/dist/chunk-W7S6SYBM.js +0 -2
- package/dist/chunk-WAY723TL.js +0 -16
- package/dist/chunk-WFOU5M4H.js +0 -16
- package/dist/chunk-WGOSE3RL.js +0 -4
- package/dist/chunk-WQ6W725N.js +0 -1
- package/dist/chunk-X7DCL5LT.js +0 -1
- package/dist/chunk-XDXHSGDL.js +0 -1
- package/dist/chunk-XKKKMV46.js +0 -6
- package/dist/chunk-XRVJJG6W.js +0 -26
- package/dist/chunk-XV6XCOTG.js +0 -319
- package/dist/chunk-XYFYQWKW.js +0 -1
- package/dist/chunk-YCUEDZDA.js +0 -1
- package/dist/chunk-YQ63ZFYT.js +0 -1
- package/dist/chunk-YXIFSIRX.js +0 -1
- package/dist/chunk-ZDQO6CNY.js +0 -1
- package/dist/chunk-ZGASBRSQ.js +0 -5
- package/dist/command-json-schema-6EGXCM4B.js +0 -1
- package/dist/conf-store-E7ELDWBA.js +0 -1
- package/dist/custom-oclif-loader-FKFZJPHF.js +0 -1
- package/dist/deprecations-RNGBHZYB.js +0 -1
- package/dist/dist-VHIZZDYK.js +0 -1
- package/dist/dist-WXI5YQYP.js +0 -1
- package/dist/environment-O7ECODHU.js +0 -1
- package/dist/environments-WZJ6MRTH.js +0 -1
- package/dist/error-IFB626JA.js +0 -1
- package/dist/error-handler-OVJYVIOZ.js +0 -1
- package/dist/fs-7UOUHJDO.js +0 -1
- package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
- package/dist/is-global-XW3CVHLK.js +0 -1
- package/dist/json-error-C2U7ZLCG.js +0 -1
- package/dist/latest-version-LDWU5F7A.js +0 -49
- package/dist/lib-PJHT4MKY.js +0 -1
- package/dist/lib-VKSQ65BQ.js +0 -1
- package/dist/lib-YEZOHXF3.js +0 -1
- package/dist/metadata-6JI7HF5B.js +0 -1
- package/dist/node-package-manager-X3QIEMMX.js +0 -1
- package/dist/notifications-system-OXGLT2R4.js +0 -1
- package/dist/os-NORIEVMI.js +0 -1
- package/dist/output-K3JTLRJD.js +0 -1
- package/dist/system-LTHR2T7L.js +0 -1
- package/dist/ui-MYUBVKCK.js +0 -1
- package/dist/upgrade-MFTWBXL3.js +0 -1
- package/dist/version-BNGPPAUU.js +0 -1
- package/dist/version-RCGFWSB4.js +0 -1
- package/dist/workerd-ISSXMKIH.js +0 -18
- /package/dist/{chunk-YLQ3LNNY.js → chunk-2S3FHQFS.js} +0 -0
- /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shopify",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to build for the Shopify platform",
|
|
6
6
|
"keywords": [
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@oclif/core": "4.8.3",
|
|
51
51
|
"@oclif/plugin-commands": "4.1.60",
|
|
52
52
|
"@oclif/plugin-plugins": "5.4.84",
|
|
53
|
-
"@shopify/app": "5.0
|
|
54
|
-
"@shopify/store": "5.0
|
|
55
|
-
"@shopify/cli-kit": "5.0
|
|
56
|
-
"@shopify/plugin-cloudflare": "5.0
|
|
57
|
-
"@shopify/plugin-did-you-mean": "5.0
|
|
58
|
-
"@shopify/theme": "5.0
|
|
53
|
+
"@shopify/app": "5.1.0",
|
|
54
|
+
"@shopify/store": "5.1.0",
|
|
55
|
+
"@shopify/cli-kit": "5.1.0",
|
|
56
|
+
"@shopify/plugin-cloudflare": "5.1.0",
|
|
57
|
+
"@shopify/plugin-did-you-mean": "5.1.0",
|
|
58
|
+
"@shopify/theme": "5.1.0",
|
|
59
59
|
"@shopify/cli-hydrogen": "13.1.0",
|
|
60
60
|
"@types/global-agent": "3.0.0",
|
|
61
61
|
"@vitest/coverage-istanbul": "^3.2.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{pa as a,qa as b,ra as c}from"./chunk-NCPZVARH.js";import"./chunk-ZDF5N422.js";import"./chunk-2M535QQJ.js";import"./chunk-MPW2YJWU.js";import"./chunk-J3UXIC23.js";import"./chunk-MHWETFNT.js";import"./chunk-DSKAIC7O.js";import"./chunk-T7KHS6RF.js";import"./chunk-V654BMS7.js";import"./chunk-7Y7AZRL3.js";import"./chunk-F3OM2YO6.js";import"./chunk-PVASYKSJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-YRHFPXC3.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-FHNJLON5.js";import"./chunk-J7BTC45S.js";import"./chunk-636CTEW7.js";import"./chunk-QVVQUJQL.js";import"./chunk-RIG66DIQ.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-GSGCSBRN.js";import"./chunk-46JYM3GH.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{sa as a,ta as b,ua as c,va as d,wa as e,xa as f,ya as g}from"./chunk-NCPZVARH.js";import"./chunk-ZDF5N422.js";import"./chunk-2M535QQJ.js";import"./chunk-MPW2YJWU.js";import"./chunk-J3UXIC23.js";import"./chunk-MHWETFNT.js";import"./chunk-DSKAIC7O.js";import"./chunk-T7KHS6RF.js";import"./chunk-V654BMS7.js";import"./chunk-7Y7AZRL3.js";import"./chunk-F3OM2YO6.js";import"./chunk-PVASYKSJ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-335BUVBP.js";import"./chunk-YRHFPXC3.js";import"./chunk-BN7ZXAZJ.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-FHNJLON5.js";import"./chunk-J7BTC45S.js";import"./chunk-636CTEW7.js";import"./chunk-QVVQUJQL.js";import"./chunk-RIG66DIQ.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-FZCGRIOM.js";import"./chunk-GSGCSBRN.js";import"./chunk-46JYM3GH.js";import"./chunk-ZDQO6CNY.js";import"./chunk-YTUUU33R.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-QFYLJVJW.js";import"./chunk-ZGASBRSQ.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{g as compileData,d as recordError,f as recordEvent,e as recordRetry,c as recordTiming,b as reportAnalyticsEvent,a as sendAnalyticsEventFromStdin};
|
package/dist/chunk-2AW3KBTP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./chunk-NPB753M3.js";import{a as O}from"./chunk-D4LFWIFE.js";import{Da as R,Ea as l,Fa as x,Ka as j,La as v,Ma as F}from"./chunk-XV6XCOTG.js";import{b as A,c as S}from"./chunk-5AWELO3D.js";import{A as P}from"./chunk-V654BMS7.js";import{a as y}from"./chunk-BN7ZXAZJ.js";import{h as k}from"./chunk-J7BTC45S.js";import{wb as w}from"./chunk-RIG66DIQ.js";import{e as C,i as p}from"./chunk-IWTNUJGY.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function m(i){let{directory:t,configName:n,configPath:s,configuration:a,remoteApp:e}=i;if(!a.client_id)throw new k("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=e.developerPlatformClient,d=await R({developerPlatformClient:c,app:e}),g=e.flags,N={directory:t,configName:n,developerPlatformClient:c,apiKey:a.client_id},f=await j(N,d,g,e.apiKey),h=p(s),L=await v({remoteApp:e,developerPlatformClient:c,specifications:d,flags:g,configFileName:h,appDirectory:f.appDirectory??t,localAppOptions:f});return x({path:C(f.appDirectory??t,h),appName:L.name,app:e})}o();var r=y({name:"AppConfigPullResult",schema:l.schema,definitions:l.definitions});o();function J(i,t){if(t==="json"){w(r.encode(i));return}P({headline:`Pulled latest configuration for "${i.app.name}"`,body:`Updated ${p(i.path)} with the remote data.`})}var u=class i extends b{static summary="Refresh an already-linked app configuration without prompts.";static descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";static get jsonOutputSchema(){return r}static description=this.descriptionForHelp();static flags={...A,...S,...O};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:s}=await F({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),a=await m({directory:t.path,configName:t.config,configPath:n.configPath,configuration:n.configuration,remoteApp:s});return J(a,t.json?"json":"text"),{app:n}}};export{u as a};
|
package/dist/chunk-2M535QQJ.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{l as O,n as W}from"./chunk-J3UXIC23.js";import{T as v,a as S}from"./chunk-V654BMS7.js";import{f as y}from"./chunk-FHNJLON5.js";import{h as u,k as L}from"./chunk-J7BTC45S.js";import{Bb as d,Sa as w,Ta as i,Va as D,_a as F,la as x,lb as B,qb as c,sb as s,ta as _}from"./chunk-RIG66DIQ.js";import{c as r,h as k}from"./chunk-IWTNUJGY.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g as f}from"./chunk-VKWPEFWQ.js";f();f();function b(e,n){try{return JSON.parse(e)}catch(a){let t=a instanceof Error?a.message:String(a),o=n?` from ${n}`:"";throw new u(`Failed to parse JSON${o}.
|
|
2
|
-
${t}`)}}var l=R(I()),N="yarn.lock",j="package-lock.json",$="pnpm-lock.yaml",C="bun.lockb",J="bun.lock",T="pnpm-workspace.yaml",we=[N,$,j,C,J],ye={yarn:[N],npm:[j],pnpm:[$],bun:[C,J],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],M=class extends u{constructor(){super("Unknown package manager")}},h=class extends u{constructor(n){super(s`The directory ${c.path(n)} doesn't have a package.json.`)}},P=class extends L{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${c.path(n)}`)}};function V(e=process.env){let n=e.npm_config_user_agent;return["yarn","pnpm","bun","npm"].find(a=>n?.includes(a))??"unknown"}function U(e){return i(r(e,C))||i(r(e,J))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function A(e){let n=e;for(d(s`Looking for a lockfile in ${c.path(n)}...`);;){if(i(r(n,N)))return"yarn";if(i(r(n,$))||i(r(n,T)))return"pnpm";if(U(n))return"bun";if(i(r(n,j)))return"npm";let t=k(n);if(t===n)break;n=t}let a=V();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let t=G(await A(e));return K(t,n,...a)}async function xe(e){let n=await D(r(e.directory,"**/package.json"),{ignore:[r(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new S;try{await Promise.all(n.map(async t=>{let o=k(t);await z({directory:o,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(t){throw a.abort(),t}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await y("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function ve(e){return(await m(e)).name}async function be(e){return(await m(e)).version}async function H(e){let n=await m(e),a=n.dependencies??{},t=n.devDependencies??{};return{...a,...t}}async function Me(e){let n=r(e,"package.json"),a=await m(n),t=r(e,T);return!!a.workspaces||w(t)}async function Pe(e,n,{cacheExpiryInHours:a=0}={}){let t=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),o=`npm-package-${e}`,p;try{p=await O(o,t,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function Ne(e,n){let a=`npm-package-${e}`,t=W(a)?.value;if(t&&new l.SemVer(n).compare(t)<0)return t}function je(e,n){return(0,l.satisfies)(e,n)}async function m(e){if(!await w(e))throw new h(k(e));return b(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
|
|
3
|
-
${c.json(e)}
|
|
4
|
-
With options:
|
|
5
|
-
${c.json(n)}
|
|
6
|
-
`);let a=r(n.directory,"package.json");if(!await w(a))throw new h(n.directory);let t=Object.keys(await H(a)),o=e.filter(p=>!t.includes(p.name));o.length!==0&&await q(o,n)}async function q(e,n){let a=e.map(t=>t.version?`${t.name}@${t.version}`:t.name);switch(n.stdout?.write(`Installing ${a.join(" ")} with ${n.packageManager}`),n.packageManager){case"npm":for(let t of a)await g(n,Q(t,n.type));break;case"yarn":await g(n,X(a,n.type,!!n.addToRootDirectory));break;case"pnpm":await g(n,Z(a,n.type,!!n.addToRootDirectory));break;case"bun":await g(n,ee(a,n.type)),await g(n,["install"]);break;case"homebrew":throw new u("Homebrew can't be used to install project dependencies. Use npm, yarn, pnpm, or bun.");case"unknown":throw new M}}async function g(e,n){return y("cmd_all_timing_network_ms")(async()=>v(e.packageManager,n,{cwd:e.directory,stdout:e.stdout,stderr:e.stderr,signal:e.signal}))}async function $e(e,n){await Y(e.map(a=>({name:a,version:void 0})),n)}function Q(e,n){let t=["install",e,{dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"}[n]];return e.match(/@\d/g)&&t.push("--save-exact"),t}function X(e,n,a=!1){let t={dev:"--dev",peer:"--peer",prod:"--prod"};return["add",...a?["-W"]:[],...e,t[n]]}function Z(e,n,a=!1){let t={dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"};return["add",...a?["-w"]:[],...e,t[n]]}function ee(e,n){let t={dev:"--development",peer:"--optional"}[n];return["add",...e,...t?[t]:[]]}async function Ce(e){let n=await F("package.json",{cwd:e,type:"file"});if(n){let a=b(await x(n),n);return{path:n,content:a}}else throw new P(e)}async function Je(e,n){let a=await A(e),t=await m(r(e,"package.json")),o=a==="yarn"?"resolutions":"overrides";t[o]={...t[o],...n},await ae(e,t)}async function ne(e){return d(s`Getting the latest version of NPM package: ${c.raw(e)}`),y("cmd_all_timing_network_ms")(async()=>{let{default:n}=await import("./latest-version-LDWU5F7A.js");return n(e)})}async function ae(e,n){d(s`JSON-encoding and writing content to package.json at ${c.path(e)}...`);let a=r(e,"package.json");await _(a,JSON.stringify(n,null,2))}function _e(e,n=process.env){if(e&&E.includes(e))return e;let a=V(n);if(a!=="unknown")return a;let t=B();return t!=="unknown"?t:"npm"}export{N as a,j as b,$ as c,C as d,T as e,we as f,ye as g,E as h,M as i,h as j,P as k,V as l,A as m,he as n,xe as o,z as p,ve as q,be as r,H as s,Me as t,Pe as u,Ne as v,je as w,m as x,Y as y,q as z,$e as A,Ce as B,Je as C,ae as D,_e as E};
|
package/dist/chunk-2NZ7GDDR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as T}from"./chunk-7AWAOPLA.js";import{ga as D,p as C,ua as E,va as k,xa as o}from"./chunk-NCPZVARH.js";import{A as U,K as B,M as L,N as q,O as R,X as P,z as O}from"./chunk-V654BMS7.js";import{h as c}from"./chunk-J7BTC45S.js";import{Bb as _,S as I}from"./chunk-RIG66DIQ.js";import{j as A}from"./chunk-FZCGRIOM.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var de=/gid:\/\/shopify\/\w*\/(\d+)/,w="development",Fe="live",ge="unpublished";function be(e){return e.role===w}async function Te(e){let n=await I("creative");return B({message:e,defaultValue:n})}function S(e){return`gid://shopify/OnlineStoreTheme/${e}`}function N(e){let n=de.exec(e);if(n&&n[1]!==void 0)return parseInt(n[1],10);throw new Error(`Invalid GID: ${e}`)}l();l();var F;(function(e){e.Delete="DELETE",e.Upload="UPLOAD"})(F||(F={}));l();function y(e){if(!e)return;e.processing??=!1,e.createdAtRuntime??=!1;let{id:n,name:i,role:a,processing:t,createdAtRuntime:d}=e;return{id:n,name:i,processing:t,createdAtRuntime:d,role:a==="main"?"live":a}}function Ve(e){if(!e)return;let{key:n,checksum:i,attachment:a,value:t}=e,d={size:(t||a||"").length,mtime:Date.now()};return{key:n,checksum:i,attachment:a,value:t,stats:d}}l();var G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeId"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var $={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDuplicate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDuplicate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newTheme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var H={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themePublish"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themePublish"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"source"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"URL"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"role"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ThemeRole"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"source"},value:{kind:"Variable",name:{kind:"Name",value:"source"}}},{kind:"Argument",name:{kind:"Name",value:"role"},value:{kind:"Variable",name:{kind:"Name",value:"role"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileBodies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filenames"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filenames"},value:{kind:"Variable",name:{kind:"Name",value:"filenames"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"body"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyBase64"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentBase64"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyUrl"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileChecksums"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesUpsert"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFilesUpsertFileInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesUpsert"},arguments:[{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}},{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}},{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitionsByOwnerType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTheme"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"findDevelopmentThemeByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"2"}},{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"name"}}]}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"DEVELOPMENT"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnlineStorePasswordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStore"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"passwordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var le="CHALLENGE_REQUIRED",me=["\r",`
|
|
2
|
-
`," "],b=class extends c{},g,V=0;async function ie(e){g&&await g;let n=V,i=await ne(e);if(!i.challenged)return i.result;let a=V>n;(g||!a)&&await se(i.challengeUrl);let t=await ne(e);if(!t.challenged)return t.result;throw o("theme-api:trust-challenge:retry-challenged"),new b("Shopify still needs to verify your identity before it can continue.",void 0,[["Complete the verification at",{link:{url:t.challengeUrl}},"then run the command again."]])}async function ne(e){try{return{challenged:!1,result:await e()}}catch(n){let i=await oe(n);if(!i)throw n;return{challenged:!0,challengeUrl:i}}}async function oe(e){let i=D(e).find(a=>a.extensions?.code===le)?.extensions?.redirect_to;if(typeof i=="string"){if(!await re(i)){_(`Ignoring trust challenge with an unexpected URL host: ${i}`);return}return i}}async function re(e){try{let n=new URL(e);return n.protocol==="https:"&&n.hostname===await C()}catch{return!1}}async function se(e){return g??=ue(e).then(()=>{V+=1}).finally(()=>{g=void 0}),g}async function ue(e){if(o("theme-api:trust-challenge:required"),P()||!q()||A()==="json")throw o("theme-api:trust-challenge:non-interactive"),new b("Shopify needs to verify your identity before it can continue.",void 0,[["Open",{link:{url:e}},"in a browser where you're logged in to Shopify with the same account you use in Shopify CLI, complete the verification, then run the command again."]]);let n=await R(e);o(n?"theme-api:trust-challenge:browser-opened":"theme-api:trust-challenge:browser-not-opened"),O({headline:"Verify your identity to continue.",body:n?"A verification page opened in your browser.":"Shopify needs to verify your identity before it can continue.",link:n?void 0:{label:"Open the verification page",url:e},nextSteps:[["Complete the verification in your browser, logged in with the same account you use in Shopify CLI."],["Press",{userInput:"Enter"},"here once you have completed it."]],orderedNextSteps:!0}),await L(process.stdin,void 0,{keys:me}),o("theme-api:trust-challenge:acknowledged"),U({headline:"Continuing."})}var ke="https://cdn.shopify.com/static/online-store/theme-skeleton.zip",p={useNetworkLevelRetry:!0,useAbortSignal:!1,maxRetryTimeMs:90*1e3,recordCommandRetries:!0},ae="the required theme access scope";async function Pn(e,n){let i=S(e);o("theme-api:fetch-theme");try{let{theme:a}=await T({query:Z,session:n,variables:{id:i},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(a)return y({id:N(a.id),processing:a.processing,role:a.role.toLowerCase(),name:a.name})}catch(a){te(a),k(a),_(`Error fetching theme with ID: ${e}`)}}async function Gn(e){let n=[],i=null;for(o("theme-api:fetch-themes");;){let a=await h({query:W,session:e,variables:{after:i},responseOptions:{handleErrors:!1},preferredBehaviour:p});a.themes||s("Failed to fetch themes");let{nodes:t,pageInfo:d}=a.themes;if(t.forEach(m=>{let r=y({id:N(m.id),processing:m.processing,role:m.role.toLowerCase(),name:m.name});r&&n.push(r)}),!d.hasNextPage)return n;i=d.endCursor}}async function Mn(e,n){o("theme-api:find-development-theme-by-name");let{themes:i}=await h({query:J,session:n,variables:{name:e},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(i||s("Failed to fetch themes"),i.nodes.length>1)throw k(new c(`More than one development theme is named "${e}"`));if(i.nodes.length===1){let{id:a,processing:t,role:d,name:m}=i.nodes[0];return y({id:N(a),processing:t,role:d.toLowerCase(),name:m})}}async function $n(e,n){let i=e.src??ke;o("theme-api:create-theme");let{themeCreate:a}=await h({query:z,session:n,variables:{name:e.name??"",source:i,role:(e.role??w).toUpperCase()},responseOptions:{handleErrors:!1},preferredBehaviour:p});a||s("Failed to create theme");let{theme:t,userErrors:d}=a;if(d.length){let m=a.userErrors.map(r=>r.message).join(", ");throw k(new c(m))}return t||s("Failed to create theme"),y({id:N(t.id),name:t.name,role:t.role.toLowerCase()})}async function Hn(e,n,i){let a=[],t=null;for(o("theme-api:fetch-assets");;){let d=await h({query:j,session:i,variables:{id:x(e),filenames:n,after:t},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!d.theme?.files?.nodes||!d.theme?.files?.pageInfo){let u=d.theme?.files?.userErrors.map(f=>f.filename).join(", ");s(`Error fetching assets: ${u}`)}let{nodes:m,pageInfo:r}=d.theme.files;if(a.push(...await Promise.all(m.map(async u=>{let{attachment:f,value:v}=await Ne(u.body);return{attachment:f,key:u.filename,checksum:u.checksumMd5,value:v}}))),!r.hasNextPage)return a;t=r.endCursor}}async function zn(e,n,i){let t=[];o("theme-api:delete-assets");for(let d=0;d<n.length;d+=50){let m=n.slice(d,d+50),{themeFilesDelete:r}=await h({query:X,session:i,variables:{themeId:S(e),files:m},preferredBehaviour:p});r||s("Failed to delete theme assets");let{deletedThemeFiles:u,userErrors:f}=r;u&&u.forEach(v=>{t.push({key:v.filename,success:!0,operation:F.Delete})}),f.length>0&&f.forEach(v=>{v.filename?(k(`Asset deletion failed for ${v.filename}: ${v.message}`),t.push({key:v.filename,success:!1,operation:F.Delete,errors:{asset:[v.message]}})):s(`Failed to delete theme assets: ${v.message}`)})}return t}async function jn(e,n,i){let a=[];o("theme-api:bulk-upload-assets");for(let t=0;t<n.length;t+=50){let d=n.slice(t,t+50),m=ce(d);E("theme-api:upload-files");let r=await pe(e,m,i);E("theme-api:upload-files"),a.push(...he(r))}return a}function ce(e){return e.map(n=>n.attachment?{filename:n.key,body:{type:"BASE64",value:n.attachment}}:{filename:n.key,body:{type:"TEXT",value:n.value??""}})}async function pe(e,n,i){return h({query:K,session:i,variables:{themeId:x(e),files:n},preferredBehaviour:p})}function he(e){let{themeFilesUpsert:n}=e;n||s("Failed to upload theme files");let{upsertedThemeFiles:i,userErrors:a}=n,t=[];return i?.forEach(d=>{t.push({key:d.filename,success:!0,operation:F.Upload})}),a.forEach(d=>{d.filename||s(`Error uploading theme files: ${d.message}`),k(`Asset upload failed for ${d.filename}: ${d.message}`),t.push({key:d.filename,success:!1,operation:F.Upload,errors:{asset:[d.message]}})}),t}async function Qn(e,n){let i=[],a=null;for(o("theme-api:fetch-checksums");;){let t=await h({query:Q,session:n,variables:{id:x(e),after:a},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!t?.theme?.files?.nodes||!t?.theme?.files?.pageInfo){let r=t.theme?.files?.userErrors.map(u=>u.filename).join(", ");throw k(new c(`Failed to fetch checksums for: ${r}`))}let{nodes:d,pageInfo:m}=t.theme.files;if(i.push(...d.map(r=>({key:r.filename,checksum:r.checksumMd5}))),!m.hasNextPage)return i;a=m.endCursor}}async function Kn(e,n,i){let a=n.name,t={};a&&(t.name=a),o("theme-api:update-theme");let{themeUpdate:d}=await h({query:G,session:i,variables:{id:S(e),input:t},preferredBehaviour:p});d||s("Failed to update theme");let{theme:m,userErrors:r}=d;if(r.length){let u=d.userErrors.map(f=>f.message).join(", ");throw k(new c(u))}return m||s("Failed to update theme"),y({id:N(m.id),name:m.name,role:m.role.toLowerCase()})}async function Xn(e,n){o("theme-api:publish-theme");let{themePublish:i}=await h({query:H,session:n,variables:{id:S(e)},preferredBehaviour:p});i||s("Failed to update theme");let{theme:a,userErrors:t}=i;if(t.length){let d=i.userErrors.map(m=>m.message).join(", ");throw k(new c(d))}return a||s("Failed to update theme"),y({id:N(a.id),name:a.name,role:a.role.toLowerCase()})}async function Yn(e,n){o("theme-api:delete-theme");let{themeDelete:i}=await h({query:M,session:n,variables:{id:S(e)},preferredBehaviour:p});i||s("Failed to update theme");let{deletedThemeId:a,userErrors:t}=i;if(t.length){let d=i.userErrors.map(m=>m.message).join(", ");throw k(new c(d))}return a||s("Failed to update theme"),!0}async function Wn(e,n,i){let a;o("theme-api:duplicate-theme");let{themeDuplicate:t}=await h({query:$,session:i,variables:{id:S(e),name:n},preferredBehaviour:p,responseOptions:{onResponse:u=>{a=u.headers.get("x-request-id")??void 0}}});if(!t)return k("Failed to duplicate theme"),{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:a};let{newTheme:d,userErrors:m}=t;return m.length>0?{theme:void 0,userErrors:m,requestId:a}:d?{theme:y({id:N(d.id),name:d.name,role:d.role.toLowerCase()}),userErrors:[],requestId:a}:{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:a}}async function Zn(e,n){o("theme-api:fetch-metafield-definitions");let i=[],a=null;for(;;){let{metafieldDefinitions:t}=await T({query:Y,session:n,variables:{ownerType:e,after:a}});if(i.push(...t.nodes),!t.pageInfo.hasNextPage)break;let d=t.pageInfo.endCursor;(!d||d===a)&&s("Failed to paginate metafield definitions"),a=d}return i.map(t=>({key:t.key,namespace:t.namespace,name:t.name,description:t.description,type:{name:t.type.name,category:t.type.category}}))}async function Jn(e){o("theme-api:check-password-protection");let{onlineStore:n}=await T({query:ee,session:e});n||s("Unable to get details about the storefront's password protection");let{passwordProtection:i}=n;return i.enabled}function s(e){throw k(new c(e))}function ei(e){return e instanceof b}async function h(e){try{return await ie(()=>T(e))}catch(n){throw te(n),n}}function te(e){let n=ve(e);if(!n)return;let i=[["If you authenticated with an Admin API access token, update the app or integration that issued the token to include the required theme access scopes, then reauthorize it or generate a new token."],["For",{command:"theme pull"},{char:","},{command:"theme list"},{char:","},"and",{command:"theme info"},{char:","},"add the",{command:"read_themes"},"scope",{char:"."}],["For",{command:"theme push"},{char:","},{command:"theme dev"},{char:","},{command:"theme publish"},{char:","},{command:"theme delete"},{char:","},{command:"theme rename"},{char:","},"and",{command:"theme duplicate"},{char:","},"add both the",{command:"read_themes"},"and",{command:"write_themes"},"scopes",{char:"."}],["If you authenticated with your Shopify account, make sure your staff or collaborator account can access Online Store themes, then run",{command:"shopify auth logout"},"and try again",{char:"."}],["See",{link:{label:"Shopify access scopes",url:"https://shopify.dev/api/usage/access-scopes"}},{char:"."}]];throw k(new c(`The authenticated account or access token is missing ${n}.`,void 0,i))}function ve(e){let n=D(e).find(a=>a.extensions?.code==="ACCESS_DENIED");if(!n)return;let i=n.extensions?.requiredAccess;return typeof i!="string"?ae:fe(i)}function fe(e){return e.trim().replace(/\.$/,"").replace(/^The user needs\s+/i,"")||ae}function x(e){return`gid://shopify/OnlineStoreTheme/${e}`}async function Ne(e){switch(e.__typename){case"OnlineStoreThemeFileBodyText":return{value:e.content};case"OnlineStoreThemeFileBodyBase64":return{attachment:e.contentBase64};case"OnlineStoreThemeFileBodyUrl":try{let i=await(await fetch(e.url)).arrayBuffer();return{attachment:Buffer.from(i).toString("base64")}}catch{throw k(new c(`Error downloading content from URL: ${e.url}`))}}}export{Ve as a,w as b,Fe as c,ge as d,be as e,Te as f,Pn as g,Gn as h,Mn as i,$n as j,Hn as k,zn as l,jn as m,Qn as n,Kn as o,Xn as p,Yn as q,Wn as r,Zn as s,Jn as t,ei as u};
|
package/dist/chunk-2RFCYZMG.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{k as G,t as B}from"./chunk-2NZ7GDDR.js";import{a as j}from"./chunk-Q7BOSHWX.js";import{a as C}from"./chunk-7AWAOPLA.js";import{L as q,N as L,j as I,k as w,va as f,xa as h}from"./chunk-NCPZVARH.js";import{a as x}from"./chunk-MHWETFNT.js";import{C as O,D as P,U as N}from"./chunk-V654BMS7.js";import{h as l,j as U}from"./chunk-J7BTC45S.js";import{Bb as c,qb as _,sb as D}from"./chunk-RIG66DIQ.js";import{i as H,j as v}from"./chunk-FZCGRIOM.js";import{u as F}from"./chunk-GSGCSBRN.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function M(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 s=r.split("/")[0];t.append(`replace_extension_templates[${s}][${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(/(.*?)=(.*)$/)??[],s=o[1]?.trim(),n=o[2]?.trim()??"";s&&(t[s]=n)}),t}function y(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var $=class extends l{};async function Pe(e){return B(e)}async function Ue(e,t,r){let o=Y(t),s=new URLSearchParams;s.append("form_type","storefront_password"),s.append("utf8","\u2713"),s.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let n={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await w(`${o}/password`,{headers:n,body:s.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw f(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return V(a,o)}async function z(e,t,r,o,s={}){let n={},a=await W(e,r,s),i=Y(t);if(n._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return n;let u=await ae(a,e,i,o,s);return{...n,...u}}var se=1;async function W(e,t,r,o=1){let s=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),n=`${e}?${s}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...S()},i=await w(n,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],d=R(u,"_shopify_essential");if(!d){if(c(`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 c("Retrying to obtain the _shopify_essential cookie..."),await N(o),W(e,t,r,o+1)}return X(i,n,d,a)}async function X(e,t,r,o,s=0){let n=e.headers.get("location");if(!n||s>=se)return r;let a=new URL(n,t);if(a.origin!==new URL(t).origin||!a.searchParams.has("preview_theme_id"))return r;let i=await w(a.toString(),{method:"HEAD",redirect:"manual",headers:{...o,Cookie:y({_shopify_essential:r})}}),u=i.headers.raw()["set-cookie"]??[],d=R(u,"_shopify_essential");return d||c(`Preview redirect to ${a.pathname} did not set a new _shopify_essential cookie; keeping the previous one.`),X(i,a.toString(),d??r,o,s+1)}async function ae(e,t,r,o,s){let n=new URLSearchParams({password:o}),a={...s,...S(),Cookie:y({_shopify_essential:e})},i=await w(`${t}/password`,{method:"POST",redirect:"manual",body:n,headers:a});if(!V(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 u=i.headers.raw()["set-cookie"]??[],d=R(u,"storefront_digest"),m=R(u,"_shopify_essential"),g={};return d&&(g.storefront_digest=d),m&&(g._shopify_essential=m),g}function V(e,t){let r=e.headers.get("location")??"",o;try{o=new URL(r,t)}catch(n){if(n instanceof TypeError)return!1;throw n}let s=new URL(t).origin;return e.status===302&&o.origin===s}function R(e,t){let r=e.find(s=>E(s)[t]);return r?E(r)[t]:void 0}function Y(e){return`https://${e}`}p();p();function ie(e,t){if(!(t instanceof U)){if(f(t),v()==="json"){H({type:"diagnostic",level:"error",message:`${e}
|
|
9
|
-
${t.message}`});return}t instanceof l?(t.message=`${e}
|
|
10
|
-
${t.message}`,P(t)):(O({headline:e,body:t.message}),c(`${e}
|
|
11
|
-
${t.stack??t.message}`))}}function We(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=>{ie(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 Xe(e,t="Unexpected error during fetch"){let r=e,o=r.statusCode??502,s=r.statusMessage??"Bad Gateway",n=`${t.replace(/\.$/,"")} with status ${o} (${s}).`;r.data?.requestId&&(n+=`
|
|
12
|
-
Request ID: ${r.data.requestId}`),r.data?.url&&(n+=`
|
|
13
|
-
URL: ${r.data.url}`);let a=r.cause??e;return{headline:n,body:a.stack??r.stack??r.message??s,status:o,statusText:s,cause:a,requestId:r.data?.requestId,url:r.data?.url}}var ce={_fd:"0",pb:"0"},ue=/^(?:\/[a-z]{2,3}(?:-[a-zA-Z0-9]{2,})?)?\/url\/?$/;async function ot(e,t){let r=he(e,t),s={...await pe(e,t),...S()},n,a=Object.keys({...t.replaceTemplates,...t.replaceExtensionTemplates});if(de(t))c(`\u2192 Rendering ${r} (exit page)...`),n=await fe(r,s).catch(m=>{throw T(f(m),r)});else if(a.length>0){c(`\u2192 Rendering ${r} (with ${a})...`);let m=M(t);n=await fetch(r,{method:"POST",body:m,redirect:"manual",headers:s}).catch(g=>{throw T(f(g),r)})}else c(`\u2192 Rendering ${r}...`),n=await fetch(r,{method:t.method,redirect:"manual",headers:s}).catch(m=>{throw T(f(m),r)});let i=n.headers.get("x-request-id");c(`\u2190 ${n.status} (request_id: ${i})`);let d=n.headers.get("Content-Type")?.includes("application/json");return n=new Response(n.body,n),d||n.headers.delete("Content-Type"),n}function de({method:e,path:t}){return e.toUpperCase()==="GET"&&ue.test(t)}async function fe(e,t){let r=await I(e,{method:"GET",redirect:"manual",headers:t},"slow-request"),o=new Headers;for(let[n,a]of Object.entries(r.headers.raw()))for(let i of a)o.append(n,i);let s=[101,103,204,205,304].includes(r.status);return new Response(s?null:await r.arrayBuffer(),{status:r.status,statusText:r.statusText,headers:o})}async function pe(e,t){return Q(e)?me(e,t):le(e,t)}async function le(e,t){let r=await K(e,t),o=e.storefrontToken;return k({...t.headers,...e.crawlerSignatureHeaders,Authorization:`Bearer ${o}`,Cookie:r})}async function me(e,t){let r=await K(e,t),o=e.storefrontToken,s={},n=["ACCEPT","CONTENT-TYPE","CONTENT-LENGTH"];for(let[a,i]of Object.entries(t.headers))n.includes(a.toUpperCase())&&(s[a]=i);return k({...s,...ge(e),...e.crawlerSignatureHeaders,Authorization:`Bearer ${o}`,Cookie:r})}function K(e,t){let r=E(t.headers.cookie??t.headers.Cookie??""),o=e.sessionCookies??{};return y({...r,...o})}function he(e,{path:t,sectionId:r,appBlockId:o,query:s}){let a=`${A(e)}${t}`,i=new URLSearchParams(ce);for(let[u,d]of s)i.append(u,d);return r?i.append("section_id",r):o&&i.append("app_block_id",o),`${a}?${i}`}function A(e){return Q(e)?`https://${F()}/cli/sfr`:`https://${e.storeFqdn}`}function Q(e){return e.token.startsWith("shptka_")}function ge(e){return{"X-Shopify-Shop":e.storeFqdn,"X-Shopify-Access-Token":e.token}}p();var b="Shopify CLI",we=720*60*60,J=["Signature","Signature-Input","Signature-Agent"],Z="unstable",Se=`
|
|
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
|
-
`,Ee=`
|
|
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 re(e,t=e.storeFqdn){try{let o=(await C(Se,e,{first:1,expired:!1,cli:!0,domain:t},Z)).storefrontCrawlerSignatures;if(!o)throw f(new l("Could not fetch Shopify CLI crawler signatures."));let s=o.edges[0]?.node;if(s){h("theme-service:crawler-signature:reused");let u=te(s);return c(`Reusing crawler signature "${b}" for ${s.domainHost} (${ee(u)}).`),u}let a=(await C(Ee,e,{timeToLive:we,name:b,domainHost:t,cli:!0},Z)).storefrontCrawlerSignatureGenerate;if(!a)throw f(new l("Could not create a Shopify CLI crawler signature."));if(a.userErrors.length>0){let u=a.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.",u))}h("theme-service:crawler-signature:created");let i=te(a);return c(`Created crawler signature "${b}" for ${a.domainHost} expiring at ${a.expiresAt} (${ee(i)}).`),i}catch(r){let o=r instanceof Error?r.message:String(r);c(`Could not obtain crawler signature headers; continuing without them. ${o}`);return}}function ee(e){let t=Object.keys(e),r=J.filter(s=>t.some(n=>n.toLowerCase()===s.toLowerCase())),o=J.filter(s=>!r.includes(s));return`present: ${r.join(", ")||"none"}; missing: ${o.join(", ")||"none"}`}function te(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 ye=1800*1e3,oe=["layout/theme.liquid","config/settings_schema.json"];async function yt(e,t,r,o,s){let n=await ne(e,t,r,o,s);return n.refresh=async()=>{c("Refreshing theme session...");let a=await ne(e,t,r,o,n.crawlerSignatureHeaders);return h("theme-service:session:refreshed"),Object.assign(n,a),a},setInterval(()=>{n.refresh&&n.refresh().then(()=>c("Refreshed theme session via auto-refresher...")).catch(()=>c("Session could not be refreshed."))},ye),n}async function ne(e,t,r,o,s){let n=A(t),a=s??await re(t),i=await L(t.storeFqdn,r,[],{forceRefresh:!1,noPrompt:!0}),u=await q([],r,{forceRefresh:!1,noPrompt:!0}),d=await $e(n,e,t,u,o,a);return{...i,sessionCookies:d,storefrontToken:u,crawlerSignatureHeaders:a}}async function $e(e,t,r,o,s,n){try{return await z(e,r.storeFqdn,t,s,{"X-Shopify-Shop":r.storeFqdn,"X-Shopify-Access-Token":r.token,Authorization:`Bearer ${o}`,...n})}catch(a){throw a instanceof $&&await Re(t,r),a}}async function Re(e,t){if(c(`Verifying if theme with id ${e} has required files...`),(await G(Number(e),oe,t)).length!==oe.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));c(`Theme with id ${e} has required files.`)}export{S as a,k as b,Pe as c,Ue as d,ie as e,We as f,T as g,Xe as h,ce as i,ot as j,de as k,pe as l,K as m,A as n,re as o,yt as p,ne as q};
|
package/dist/chunk-2S5NPJEJ.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as F}from"./chunk-NMLLRFZF.js";import{a as D}from"./chunk-NPB753M3.js";import{a as y}from"./chunk-D4LFWIFE.js";import{Ma as S}from"./chunk-XV6XCOTG.js";import{D as f,u}from"./chunk-NCPZVARH.js";import{b as g,c as C}from"./chunk-5AWELO3D.js";import{A as v}from"./chunk-V654BMS7.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{h as c}from"./chunk-J7BTC45S.js";import{wb as w}from"./chunk-RIG66DIQ.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as j}from"./chunk-YTUUU33R.js";import{e as I,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function x(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,i=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id}),r=i?.devSessionDelete?.userErrors;if(!Array.isArray(r)||r.some(a=>typeof a?.message!="string")){let a=new c("Failed to stop the dev preview: the server returned an invalid response.");throw a.details={data:i},a}if(r.length){let a=r.map(b=>b.message).join(`
|
|
2
|
-
`),l=new c(`Failed to stop the dev preview: ${a}`);throw l.details={userErrors:r},l}return{status:"success",app:{name:o.title,clientId:o.apiKey},storeHostname:t.store.shopDomain}}s();var A=n.object({name:n.string(),clientId:n.string().min(1)}).strict(),p=h({name:"AppDevCleanResult",schema:n.object({status:n.literal("success"),app:A,storeDomain:n.string().nullable().describe("The canonical *.myshopify.com hostname, or null when unknown.")}).strict(),definitions:{AppDevCleanApp:A}});s();function R(t,e){if(e==="json"){let o={status:t.status,app:t.app,storeDomain:f(t.storeHostname)?t.storeHostname:null};w(p.encode(o));return}v({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.storeHostname} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var m=I(j(),1);var d=class t extends D{static summary="Cleans up the dev preview from the selected store.";static descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
|
|
3
|
-
|
|
4
|
-
It restores the app's active version to the selected development store.
|
|
5
|
-
`;static jsonOutputSchema=p;static description=this.descriptionForHelp();static flags={...g,...y,...C,"client-id":m.Flags.string({hidden:!1,description:"The Client ID of your app. Use with --config to clean up the dev preview for a different app than the one it is linked to.",env:"SHOPIFY_FLAG_CLIENT_ID"}),store:m.Flags.string({hidden:!1,char:"s",description:"Store URL. Must be an existing development store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>u(e)})};async run(){let{flags:e}=await this.parse(t),o=await S({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),i=await F({appContextResult:o,storeFqdn:e.store,forceReselectStore:e.reset}),r=await x({appContextResult:o,store:i});return R(r,e.json?"json":"text"),{app:o.app}}};export{d as a};
|
package/dist/chunk-2TPLPZA2.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{b as D}from"./chunk-6JZC6UKY.js";import{a as ee}from"./chunk-QYFU363G.js";import{k as K,l as Q,m as X,o as Z}from"./chunk-FVRI7ZKE.js";import{a as re}from"./chunk-P5W5RVE6.js";import{a as q,c as z}from"./chunk-AQ34X5B3.js";import{a as W}from"./chunk-2M4BKFYF.js";import{a as V,b as Y}from"./chunk-YY6TFARF.js";import{a as G}from"./chunk-63UKZLPC.js";import{d as R,e as $,g as M,h as J}from"./chunk-QFWWCZOI.js";import{b as F,c as N,d as A,f as U,j as I,n as H,p as B}from"./chunk-2NZ7GDDR.js";import{r as g}from"./chunk-KT5QQOES.js";import{da as me}from"./chunk-DTRENW4Q.js";import{N as E,ua as P,va as _}from"./chunk-NCPZVARH.js";import{A as k,B as O,F as L}from"./chunk-V654BMS7.js";import{h as v}from"./chunk-J7BTC45S.js";import{wb as y}from"./chunk-RIG66DIQ.js";import{b as t,i as j}from"./chunk-FZCGRIOM.js";import{e as x,g as C,p as f}from"./chunk-IWTNUJGY.js";import{e as ie,g as d}from"./chunk-VKWPEFWQ.js";d();import{resolve as ae}from"node:path";var he=t.object({id:t.number(),name:t.string(),role:t.string(),shop:t.string(),editor_url:t.string(),preview_url:t.string()}),T=t.object({environment:t.string().optional(),directory:t.string().optional(),sourcePaths:t.record(t.string()).optional(),changed:t.boolean().optional(),theme:he,published:t.boolean(),hasErrors:t.boolean(),errors:t.record(t.array(t.string()))}),te=t.object({status:t.enum(["success","partial"]),changed:t.boolean(),theme:R,issues:t.array(t.object({filePath:t.string().refine(C,"Expected an absolute filesystem path."),message:t.string()}).strict())}).strict(),oe=t.object({status:t.literal("skipped"),reason:t.literal("unsafe-directory")}).strict();function w(e){let{theme:o,hasErrors:r,errors:s}=e;return{status:r?"partial":"success",changed:e.changed??!0,theme:{...J(o),storeDomain:M(o.shop),editorUrl:o.editor_url||null,previewUrl:o.preview_url||null},issues:Object.entries(s).flatMap(([m,i])=>i.map(n=>({filePath:ae(e.directory??f(),e.sourcePaths?.[m]??m),message:n})))}}var S=$({name:"ThemePushJsonResult",schema:t.union([te,oe]),definitions:{ThemePushTheme:R},project:e=>oe.safeParse(e).success||te.safeParse(e).success?e:w(T.parse(e))});d();var b=ie(me(),1);function se(e,o){if(o==="json"){y(S.encode(w(e)));return}let{environment:r,theme:s,hasErrors:m,published:i}=e,n=r?[{subdued:`Environment: ${r}
|
|
2
|
-
|
|
3
|
-
`}]:[],a=m?O:k;if(i){a({body:[...n,m?`Your theme was published with errors and is now live at https://${s.shop}`:`Your theme is now live at https://${s.shop}`]});return}a({body:[...n,"The theme",...q(s),m?"was pushed with errors":"was pushed successfully."],nextSteps:[[{link:{label:"View your theme",url:s.preview_url}}],[{link:{label:"Customize your theme at the theme editor",url:s.editor_url}}]]})}async function ne(e,o=!1){if(!e.strict)return;let r=e.environment?.[0],s=o?"json":"silent",m=e.json?s:"text",{offenses:i}=await D(e.path??f(),m);if(e.json&&!o)for(let n of i)j({type:"diagnostic",level:{[b.Severity.ERROR]:"error",[b.Severity.WARNING]:"warning",[b.Severity.INFO]:"info"}[n.severity],code:n.check,message:`${r?`[${r}] `:""}${n.uri}: ${n.message}`});if(i.some(n=>n.severity===b.Severity.ERROR))throw _(new v(`${r?`[${r}] `:""}Theme check failed. Please fix the errors before pushing.`))}function _e(e){let o=e.map(r=>{if("error"in r)return r;let s=r.result??{status:"skipped",reason:"unsafe-directory"};return T.safeParse(s).data?.hasErrors&&(process.exitCode=1),{...r,result:s}});y(S.encode({environments:o}))}d();async function ue(e,o,r,s){let m=e.environment?.[0],i=o??await E(g({store:e.store}),e.password);P("theme-service:push:setup"),re({verbose:e.verbose,noColor:e.noColor});let n=e.force??!1,a=e.path?x(e.path):f();if(!await Z(a)&&!await z(n,void 0,m,r))return;e.listing&&await Q(a,e.listing);let l=await le(i,e,r);if(l)return P("theme-service:push:setup"),ce(l,i,{allowLive:e.allowLive??!1,environment:m,force:n,ignore:e.ignore??[],multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:a,publish:e.publish??!1,listing:e.listing},s)}async function ce(e,o,r,s){P("theme-service:push:file-system");let m=await H(e.id,o),i=X(r.path,{filters:r,listing:r.listing});P("theme-service:push:file-system");let n;if(r.listing){let c=r.listing;await i.ready(),n=Object.fromEntries(await Promise.all([...i.files.keys()].map(async p=>[p,await K(r.path,c,p)??p])))}let a=ee(e,o,m,i,r,s);await a.renderThemeSyncProgress();let{uploadResults:l}=a;r.publish&&await B(e.id,o);let h={};for(let[c,p]of l)p.success||(h[c]=p.errors?.asset?.length?p.errors.asset:["File upload failed"]);let u=T.parse({environment:r.environment,directory:r.path,...n&&{sourcePaths:n},changed:e.createdAtRuntime===!0||r.publish===!0||a.hasChanges,theme:{id:e.id,name:e.name,role:e.role,shop:o.storeFqdn,editor_url:Y(e,o),preview_url:V(e,o)},published:r.publish??!1,hasErrors:[...l.values()].some(c=>!c.success),errors:h});if(u.hasErrors&&!u.changed){let c=new v(`The theme '${e.name}' could not be pushed.`);throw c.details={themeId:String(e.id),issues:w(u).issues},c}return u}async function le(e,o,r){let{live:s,development:m,unpublished:i,theme:n,environment:a,developmentContext:l}=o;if(m)return new W(e).findOrCreate(l,F);if(i){let h=n??await U("Name of the new theme"),u=await I({name:h,role:A},e);return u?{...u,createdAtRuntime:!0}:void 0}else{let h=await G(e,{create:!0,header:"Select a theme to push to:",filter:{live:s,theme:n}});return await pe(h.role,o.allowLive,e.storeFqdn,a,r)?h:void 0}}async function pe(e,o,r,s,m){if(e===N){if(o)return!0;if(m)throw new v(`Can't push theme files to the live theme on ${r}. Use the --allow-live flag.`);let i={message:`Push theme files to the ${e} theme on ${r}?`,confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return L(i)}return!0}async function Qe(e,o,r,s){let m=o??await E(g({store:e.store}),e.password);await ne(e,!0);let i=await ue(e,m,r,s);i&&se(i,e.json?"json":"text")}export{T as a,w as b,S as c,se as d,ne as e,_e as f,ue as g,Qe as h};
|
package/dist/chunk-32O27NE3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f,b as h}from"./chunk-AIEVQSI3.js";import{f as d,k as u,r as l}from"./chunk-FNWXMCSD.js";import{a as m}from"./chunk-NPB753M3.js";import{Ma as c}from"./chunk-XV6XCOTG.js";import{c as p}from"./chunk-5AWELO3D.js";import{h as s}from"./chunk-J7BTC45S.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();e();async function g({clientId:a,operationIds:t,getOperation:n=l}){return Promise.all(t.map(async i=>{let o=await n({clientId:a,operationId:i});if(!o)throw new s(`Migration operation not found: ${i}`);return o}))}var r=class a extends m{static summary="Checks the status of app subscription migration operations.";static descriptionWithMarkdown="Checks app subscription migration operation status.\n\nRepeat `--id` for every operation GID returned by a multi-batch submission. With `--watch`, the command displays the current state while polling and outputs the final state after all requested operations reach a terminal status.\n\n`RUNNING` means an operation is still processing. `COMPLETED` means processing finished, but you must inspect the per-shop results to confirm each outcome. `FAILED` means the operation failed, and `CANCELED` means cancellation stopped further processing.\n\nUse `--json` to output every operation and its per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2> --watch","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...d,...p};static get jsonOutputSchema(){return u}async run(){let{flags:t}=await this.parse(a),{app:n,remoteApp:i}=await c({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o=t.watch?await h({clientId:i.apiKey,operationIds:t.id}):await g({clientId:i.apiKey,operationIds:t.id});return f(o,t.json),{app:n}}};export{r as a};
|
package/dist/chunk-335BUVBP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t,d as l}from"./chunk-ZDQO6CNY.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{r as m}from"./chunk-IWTNUJGY.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();import i from"crypto";function h(e){return i.createHash("sha256").update(e).digest()}function T(e){return i.createHash("sha1").update(e).digest("hex")}function y(e){return i.createHash("md5").update(e).digest("hex")}function N(){return i.randomUUID()}function g(e){return i.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g,""),"hex")).update(e).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/,"$1-$2-$3-$4-$5")}o();var a=t.serviceAccountToken,f=t.appAutomationToken,p=t.partnersToken;function s(e=process.env){return[a,f,p].find(n=>e[n]!==void 0)}function V(e=process.env){return s(e)===a?"service_account_token":"partners_token"}function R(e=process.env){if(d(e))return;let n=s(e);return n===f||n===p?n:void 0}function d(e=process.env){if(e[a]!==void 0){let u=[f,p].filter(b=>e[b]!==void 0);if(u.length>0)return{message:`${a} can't be set together with ${u.join(" or ")}.`,tryMessage:`Unset ${u.join(" and ")}, or unset ${a}.`}}let n=s(e);if(n&&e[n]==="")return{message:`${n} is set but empty.`,tryMessage:"Set it to an automation token, or unset it to log in with your Shopify account."}}function r(){return process.env}function H(){let e=r();if(d(e))return;let n=s(e);return n?e[n]:void 0}function O(){return r()[t.organization]}function x(e){if(e&&!isNaN(Number(e)))return Number(e)}function B(){return x(r()[l.backendPort])}function C(){let e=r()[t.identityToken],n=r()[t.refreshToken];if(!(!e||!n))return{accessToken:e,refreshToken:n,userId:g(e)}}function j(e=r(),n=process.argv){return m(n)||c(e[t.json])}function D(e=r()){return c(e[t.skipNetworkLevelRetry])}function M(e=r()){return x(e[t.maxRequestTimeForNetworkCalls])??30*1e3}export{h as a,T as b,y as c,N as d,g as e,s as f,V as g,R as h,d as i,r as j,H as k,O as l,B as m,C as n,j as o,D as p,M as q};
|
package/dist/chunk-46JYM3GH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as s}from"./chunk-YTUUU33R.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{e as i,g as n}from"./chunk-VKWPEFWQ.js";n();var t=i(s()),a={"no-input":t.Flags.boolean({description:"Disable interactive prompts and browser authentication.",env:"SHOPIFY_FLAG_NO_INPUT"})};function u(r=process.argv,e=process.env){return r.includes("--no-input")||o(e.SHOPIFY_FLAG_NO_INPUT)}export{a,u as b};
|
package/dist/chunk-4GQEXVDT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as f,c as r,d as h}from"./chunk-GGJUPL4W.js";import{a as l}from"./chunk-NPB753M3.js";import{a as c}from"./chunk-D4LFWIFE.js";import{Ma as m}from"./chunk-XV6XCOTG.js";import{b as d}from"./chunk-5AWELO3D.js";import{yb as e}from"./chunk-RIG66DIQ.js";import{i as n}from"./chunk-B4OMIONW.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var s=class g extends l{static summary="Watch and prints out changes to an app.";static hidden=!0;static flags={...d,...c};async run(){let{flags:t}=await this.parse(g),{app:o}=await m({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),i=new h(o);return await i.start(),e(`Watching for changes in ${o.name}...`),i.onEvent(async({app:y,extensionEvents:u,startTime:w,path:x})=>{e(`\u{1F195} Event [${f(w)}ms]`),e(` \u{1F4C2} ${x}`),u.forEach(a=>{switch(a.type){case r.Created:e(` \u2705 Extension created - ${n.green(a.extension.handle)}`);break;case r.Deleted:e(` \u274C Extension deleted: ${n.red(a.extension.handle)}`);break;case r.Updated:e(` \u{1F504} Updated: ${n.yellow(a.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:o}}};export{s as a};
|
package/dist/chunk-4IUXLUFD.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{b as s,c as i,d as p}from"./chunk-IY5EI5V2.js";import{b as o}from"./chunk-OLKLHVHA.js";import{b as e,c as r}from"./chunk-5AWELO3D.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class n extends o{static summary="Enable automatic upgrades for Shopify CLI.";static descriptionWithMarkdown=`Enable automatic upgrades for Shopify CLI.
|
|
2
|
-
|
|
3
|
-
When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version once per day. Major version upgrades are skipped and must be done manually.
|
|
4
|
-
|
|
5
|
-
To disable auto-upgrade, run \`shopify config autoupgrade off\`.
|
|
6
|
-
`;static description=this.descriptionForHelp();static flags={...e,...r};static get jsonOutputSchema(){return i}async run(){let{flags:u}=await this.parse(n),d=s(!0);p(d,u.json?"json":"text")}};export{t as a};
|
package/dist/chunk-4QZ6OBXL.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{a as D}from"./chunk-NPB753M3.js";import{a as T}from"./chunk-D4LFWIFE.js";import{$ as j,Ma as y,aa as k,ca as V}from"./chunk-XV6XCOTG.js";import{ca as F}from"./chunk-WFOU5M4H.js";import{b as I,c as S}from"./chunk-5AWELO3D.js";import{A as R,C as b,I as A}from"./chunk-V654BMS7.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{d as w}from"./chunk-FHNJLON5.js";import{h as v,j as E}from"./chunk-J7BTC45S.js";import{wb as x}from"./chunk-RIG66DIQ.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as U}from"./chunk-YTUUU33R.js";import{e as M,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function O(e){let{developerPlatformClient:s,app:a,remoteApp:r}=e,{extensionIdentifiersBreakdown:o,versionDetails:t}=await j(s,r,e.version),p=k({localApp:a,versionAppModules:t.appModuleVersions,activeAppVersion:await s.activeAppVersion(r)});if(!await V({configExtensionIdentifiersBreakdown:p,extensionIdentifiersBreakdown:o,appTitle:r.title,release:!0,allowUpdates:e.force||e.allowUpdates,allowDeletes:e.force||e.allowDeletes}))return{status:"cancelled"};let m=[{title:"Releasing version",task:async f=>{f.appRelease=await s.release({app:r,version:{versionId:t.uuid,appVersionId:t.id}})}}],{appRelease:{appRelease:l}}=await A(m);return l.userErrors&&l.userErrors.length>0?{status:"failed",version:t,userErrors:l.userErrors}:{status:"success",version:t}}i();var C=n.object({name:n.string(),clientId:n.string().min(1).describe("The client ID of the app receiving the release.")}).strict(),P=n.object({gid:n.string().regex(/^gid:\/\/shopify\/Version\/\d+$/).describe("The Shopify app version GID."),name:n.string().min(1).nullable().describe("The version tag, or null when no tag is available."),message:n.string().min(1).nullable().describe("The version message, or null when no message is available."),url:n.string().url().describe("The Developer Dashboard URL for this version.")}).strict(),L=n.object({version:P}).strict(),d=h({name:"AppReleaseResult",schema:n.discriminatedUnion("status",[n.object({status:n.literal("success"),app:C,release:L}).strict(),n.object({status:n.literal("cancelled")}).strict()]),definitions:{App:C,AppRelease:L,AppReleaseVersion:P}});i();function _(e,s){throw s==="text"&&e instanceof F?new v({bold:"Version couldn't be released."},["Version",{userInput:e.versionTag},"could not be found."]):e}function q(e,s,a){if(a==="json"){if(e.status==="failed"){let o=new v("Version couldn't be released.");throw o.details={userErrors:e.userErrors},o}x(d.encode(B(e,s)));return}if(e.status==="cancelled")throw new E;let r=[{link:{label:e.version.versionTag??void 0,url:e.version.location}},e.version.message?`
|
|
2
|
-
${e.version.message}`:""];if(e.status==="failed"){let o=e.userErrors.map(t=>t.message).join(", ");b({headline:"Version couldn't be released.",body:[...r,`${r.length>0?`
|
|
3
|
-
|
|
4
|
-
`:""}${o}`]})}else R({headline:"Version released to users.",body:r})}function B(e,s){return e.status==="cancelled"?{status:"cancelled"}:{status:"success",app:{name:s.title,clientId:s.apiKey},release:{version:{gid:e.version.uuid,name:e.version.versionTag===""?null:e.version.versionTag??null,message:e.version.message===""?null:e.version.message??null,url:e.version.location}}}}var c=M(U(),1);var g=class e extends D{static summary="Release an app version.";static usage="app release --version <version>";static descriptionWithMarkdown="Releases an existing app version. Pass the name of the version that you want to release using the `--version` flag.";static get jsonOutputSchema(){return d}static description=this.descriptionForHelp();static flags={...I,...T,...S,"allow-updates":c.Flags.boolean({hidden:!1,description:"Allows adding and updating extensions and configuration without requiring user confirmation. Recommended option for CI/CD environments. Required in non-interactive environments unless --allow-deletes is provided.",env:"SHOPIFY_FLAG_ALLOW_UPDATES"}),"allow-deletes":c.Flags.boolean({hidden:!1,description:"Allows removing extensions and configuration without requiring user confirmation. For CI/CD environments, the recommended flag is --allow-updates. Required in non-interactive environments unless --allow-updates is provided.",env:"SHOPIFY_FLAG_ALLOW_DELETES"}),version:c.Flags.string({hidden:!1,description:"The name of the app version to release.",env:"SHOPIFY_FLAG_VERSION",required:!0})};static nonTTYFlagRequirements(){return[{flags:["allow-updates","allow-deletes"]}]}async run(){let{flags:s}=await this.parse(e),a=s["client-id"];await w(()=>({cmd_app_reset_used:s.reset}));let r=s["allow-updates"],o=s["allow-deletes"],t=!!(r&&o),{app:p,remoteApp:u,developerPlatformClient:m}=await y({directory:s.path,clientId:a,forceRelink:s.reset,userProvidedConfigName:s.config}),l=await O({app:p,remoteApp:u,developerPlatformClient:m,force:t,allowUpdates:r,allowDeletes:o,version:s.version}).catch(f=>_(f,s.json?"json":"text"));return q(l,u,s.json?"json":"text"),{app:p}}};export{g as a};
|
package/dist/chunk-4SDCXKYR.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import{c as r,d as c,e as v,f,g as y}from"./chunk-2TPLPZA2.js";import{p as s,q as p,v as u}from"./chunk-KT5QQOES.js";import{ua as i}from"./chunk-NCPZVARH.js";import{b as a,c as d}from"./chunk-5AWELO3D.js";import{wb as l}from"./chunk-RIG66DIQ.js";import{b}from"./chunk-YTUUU33R.js";import{e as _,g as m}from"./chunk-VKWPEFWQ.js";m();var t=_(b(),1);var h=class extends u{static get jsonOutputSchema(){return 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={...a,...s,...p("upload"),...d,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:s.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}]}async command(e,w,n,P,g){i("theme-command:push"),await v(e);let o=await y({...e,allowLive:e["allow-live"],noColor:e["no-color"],developmentContext:e["development-context"]},w,n,g);return o?.hasErrors&&(process.exitCode=1),e.json&&n||(o?c(o,e.json?"json":"text"):e.json&&l(r.encode({status:"cancelled"}))),i("theme-command:push"),o??(e.json&&n?{status:"skipped",reason:"unsafe-directory"}:void 0)}renderEnvironmentResults(e){f(e)}storeAuthScopes(){return["read_themes","write_themes"]}};export{h as a};
|
package/dist/chunk-5AQ5JT2V.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{A as o,B as n,C as i,D as t,H as s,z as e}from"./chunk-V654BMS7.js";import{h as d,k as l}from"./chunk-J7BTC45S.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};
|
package/dist/chunk-5D4FNAAD.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{c as b,i as u,n as w,p as _}from"./chunk-FNWXMCSD.js";import{a as h}from"./chunk-NPB753M3.js";import{Ma as g}from"./chunk-XV6XCOTG.js";import{c as d}from"./chunk-5AWELO3D.js";import{h as m}from"./chunk-J7BTC45S.js";import{wb as s}from"./chunk-RIG66DIQ.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var j=250,c=class extends Error{constructor(){super("Migratable subscriptions were not found"),this.name="MigratableSubscriptionsNotFoundError"}},l=class extends Error{constructor(t){super(t),this.name="MigrationListProtocolError"}};async function*S({clientId:i,status:t,getPage:o=_}){let e=new Set,a;for(;;){let p=await o({clientId:i,first:j,after:a,status:t});if(p===null)throw new c;if(yield p.subscriptions,!p.pageInfo.hasNextPage)return;let{endCursor:n}=p.pageInfo;if(n===null||n.trim()==="")throw new l("Migratable subscription page has no cursor for its next page");if(e.has(n))throw new l(`Migratable subscription pagination repeated cursor: ${n}`);e.add(n),a=n}}r();var v="shop_id,status,manual_subscription_name,manual_subscription_price_amount,manual_subscription_price_currency_code,manual_subscription_interval,target_plan_handle,notification_kind,notification_opt_out_deadline,notification_sent_at,price_behavior,effective_date,last_failure_reason";function C(i){return u.encode({subscriptions:i.map(w)})}async function y({pages:i,json:t}){t?s(C(await x(i))):await E(i)}async function x(i){let t=[];for await(let o of i)t.push(...o);return t}async function E(i){let t=!1;for await(let o of i){let e=M(o);t?e.length>0&&s(e.join(`
|
|
2
|
-
`)):(s([v,...e].join(`
|
|
3
|
-
`)),t=!0)}t||s(v)}function M(i){return i.map(t=>[t.shopId,t.status,t.manualSubscriptionName,t.manualSubscriptionPrice?.amount,t.manualSubscriptionPrice?.currencyCode,t.manualSubscriptionInterval,t.targetPlanHandle,t.notification?.kind,t.notification?.optOutDeadline,t.notification?.sentAt,t.priceBehavior,t.effectiveDate,t.lastFailureReason].map(L).join(","))}function L(i){let t=i??"";return/[",\r\n]/.test(t)?`"${t.replaceAll('"','""')}"`:t}var f=class i extends h{static summary="Lists app subscriptions eligible for migration.";static descriptionWithMarkdown="Lists every app subscription eligible for migration.\n\nBy default, the command writes CSV to stdout, streaming each page of results as it arrives. If a later page fails, the rows already written remain valid CSV. Use `--json` to fetch all pages first and then write a single JSON envelope to stdout. Use shell redirection to save either format, for example `shopify app subscription-migrations list > subscriptions.csv` or `shopify app subscription-migrations list --json > subscriptions.json`.\n\nUse `--status` to filter subscriptions by migration status. Supported values are `UNSCHEDULED`, `SCHEDULED`, and `MIGRATED`.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --status SCHEDULED > scheduled-subscriptions.csv","<%= config.bin %> <%= command.id %> --json","<%= config.bin %> <%= command.id %> --json > subscriptions.json","<%= config.bin %> <%= command.id %> --client-id <client-id> > subscriptions.csv"];static flags={...b,...d};static get jsonOutputSchema(){return u}async run(){let{flags:t}=await this.parse(i),{app:o,remoteApp:e}=await g({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});try{let a=S({clientId:e.apiKey,status:t.status});await y({pages:a,json:t.json})}catch(a){throw a instanceof c?new m("App not found"):a}return{app:o}}};export{f as a};
|
package/dist/chunk-5TWYJQQO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i,b as e,e as p}from"./chunk-WGOSE3RL.js";import{b as a}from"./chunk-OLKLHVHA.js";import{b as o,c as r}from"./chunk-5AWELO3D.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class n extends a{static summary="Upgrades Shopify CLI.";static descriptionWithMarkdown="Upgrades Shopify CLI using your package manager.";static get jsonOutputSchema(){return i}static description=this.descriptionForHelp();static flags={...o,...r};async run(){let{flags:m}=await this.parse(n),c=await p();e(c,m.json?"json":"text")}};export{t as a};
|
package/dist/chunk-5YXYYQBX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y}from"./chunk-HB3MJYBK.js";import{a as B}from"./chunk-CKVVJ4XO.js";import{a as P}from"./chunk-LWMKZJ4M.js";import{A as O,D as p,F as N,J as u,M as m,O as h,P as l,U as g,W as J,a as D,e as F,f as x,r as I,t as E,v as M}from"./chunk-MNWT2SQO.js";import{b as C}from"./chunk-OLKLHVHA.js";import{b as j,c as _}from"./chunk-5AWELO3D.js";import{$ as v,A as k}from"./chunk-V654BMS7.js";import{a as R}from"./chunk-BN7ZXAZJ.js";import{h as d}from"./chunk-J7BTC45S.js";import{wb as T}from"./chunk-RIG66DIQ.js";import{b as c}from"./chunk-FZCGRIOM.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();s();var X=5e6,Y={readStdin:v,engineVersion:x,writeAgentFindings:M,recordMetadata:B};function z(t){return m(t.record)}function a(t,e){let i=new d("The findings document was rejected. Nothing was recorded.",null,[["Fix every error, then run",{command:z(e)},"again."]],[{title:"Errors",body:{list:{items:t}}}]);throw i.code="findings-document-rejected",i.details={errors:t},i}async function q(t,e){try{return await e.readStdin()}catch(i){throw i instanceof d&&a([i.message],t),i}}async function G(t,e){let i=await q(t,e);if(i===void 0){let n=new d("No findings document was piped on stdin.",null,[["Pipe the findings document on stdin:",{command:z(t)}]]);throw n.code="findings-document-missing",n}let r=Buffer.byteLength(i,"utf8");r>X&&a([`The findings document is ${r} bytes; the limit is 5 MB.`],t);try{return JSON.parse(i)}catch(n){let o=n instanceof Error?n.message:String(n);a([`The findings document is not valid JSON: ${o}`],t)}}async function S(t,e=Y){let{selection:i}=t,r=u(i,t.path),n=await G(r,e),o=F(n,{engineVersion:e.engineVersion()});o.ok||a(o.errors,r);let b=O(o.document);b>I&&a([`The recorded findings would be stored as ${b} bytes; the limit is 5 MB. Shorten or remove findings.`],r);let V=await e.writeAgentFindings(i.appDirectory,p(i),o.document),A=o.document.checks.reduce((L,K)=>L+K.findings.length,0);return await e.recordMetadata({num_security_findings:A}),{path:V,checks:o.document.checks.length,findings:A}}s();s();var f=R({name:"AppSecurityRecordResult",schema:c.object({status:c.literal("success"),app:l,resultsDirectory:h().describe("The absolute path of the results directory."),path:h().describe("The absolute path of the agent-findings.json file that was written."),checkCount:c.number().int().nonnegative().describe("The number of checks recorded."),findingCount:c.number().int().nonnegative().describe("The number of findings recorded, across every check.")}).strict(),definitions:{AppSecurityApp:l}});function $(t,e,i){if(i==="json"){T(f.encode(H(t,e)));return}let r=u(e.selection,e.path);k({headline:"Agent findings recorded.",body:[`Recorded ${y(t.checks,"check")} and ${y(t.findings,"finding")} in`,{filePath:t.path}],nextSteps:[["Run",{command:m(r.review)},"to see the results."]]})}function H(t,{selection:e}){let{resultsDirectory:i}=E(e.appDirectory,p(e));return{status:"success",app:J(e),resultsDirectory:g(i),path:g(t.path),checkCount:t.checks,findingCount:t.findings}}var w=class t extends C{static summary="Record agent findings from an app security check.";static descriptionWithMarkdown="Reads a coding agent's complete findings document from stdin, validates it, and replaces `agent-findings.json` in the results directory, `.shopify/app-security/<results key>/`. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. `--client-id` is checked against your Shopify account before anything is read, so it needs you to be logged in.\n\nThe document must include a `scope` with the `include_dirs`, `excludes` and `no_git_ignore` values of the `check` run it describes, exactly as typed. It's recorded as reported and never compared with the scan's files.\n\nThe document is recorded all or nothing: if anything is invalid, the command fails with every error, writes nothing, and exits with a non-zero code. It needs the results directory that `shopify app security check` creates.\n\nReports the number of findings to Shopify as usage telemetry, but not finding details. See [usage reporting](https://shopify.dev/docs/api/shopify-cli#usage-reporting) for details.";static get jsonOutputSchema(){return f}static description=this.descriptionForHelp();static flags={...j,...D,..._};async run(){let{flags:e}=await this.parse(t),i=await N({path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"],allowPrompts:!1,validateClientIdFlag:!0});await P(i,e.path);let r={selection:i,path:e.path},n=await S(r);$(n,r,e.json?"json":"text")}};export{w as a};
|
package/dist/chunk-6JZC6UKY.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{e as ce}from"./chunk-QFWWCZOI.js";import{p as P,v as ie}from"./chunk-KT5QQOES.js";import{ca as xe,da as se}from"./chunk-DTRENW4Q.js";import{r as Z}from"./chunk-2M535QQJ.js";import{b as re,c as L}from"./chunk-5AWELO3D.js";import{A as ee,z as T}from"./chunk-V654BMS7.js";import{c as X}from"./chunk-F3OM2YO6.js";import{h as E}from"./chunk-J7BTC45S.js";import{Bb as oe,Da as D,N as A,Sa as N,_a as V,na as q,ta as j,wb as g,yb as te,zb as ne}from"./chunk-RIG66DIQ.js";import{b as m,h as z,i as K,j as Q}from"./chunk-FZCGRIOM.js";import{b as Te}from"./chunk-YTUUU33R.js";import{c as O,e as I,g as B,o as M}from"./chunk-IWTNUJGY.js";import{e as b,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();import{AsyncLocalStorage as Se}from"node:async_hooks";import{format as Fe}from"node:util";var ae=new Se,x=0,$;async function ue(t){if(Q()!=="json")return t();x===0&&($=console.error,console.error=(...e)=>{ae.getStore()?K({type:"diagnostic",level:"warning",message:Fe(...e)}):$(...e)}),x++;try{return await ae.run(!0,t)}finally{_e()}}function _e(){x--,x===0&&(console.error=$)}var i=b(se(),1),k=b(xe(),1);function Re(t,e){return t instanceof Error&&"code"in t&&t.code==="ENOENT"&&"path"in t&&typeof t.path=="string"&&I(t.path)===I(e)}async function Ie(t){if(!(t===void 0||i.ModernIdentifiers.some(e=>e===t))&&await N(t)&&await D(await q(t)))throw new E(`Theme Check config must be a file, but ${t} is a directory.`,"Pass the path to a .theme-check.yml file to --config, or omit --config to use the .theme-check.yml in your theme root. To choose the theme directory, use --path.")}async function G(t,e){await Ie(t);try{return await e()}catch(r){throw t!==void 0&&Re(r,t)?new E(`Theme Check config file not found: ${t}`):r}}function Ae(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function me(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function je(t){return new Map(t.map(e=>[e.uri,e.source]))}function Ne(t,e,r){let o=t.split(`
|
|
2
|
-
`).slice(e,r+1),s=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=s?c.trim():c;return`${u} ${h}`}).join(`
|
|
3
|
-
`)}function Ee(t){switch(t){case i.Severity.ERROR:return{error:`
|
|
4
|
-
[error]:`};case i.Severity.WARNING:return{warn:`
|
|
5
|
-
[warning]:`};case i.Severity.INFO:return{info:`
|
|
6
|
-
[info]:`}}}function Le(t,e){return t.map((n,o)=>{let{message:s,uri:c,start:a,end:u,check:h,severity:y}=n,f=e.get(c),p=f===void 0?[]:[`
|
|
7
|
-
|
|
8
|
-
${Ne(f,a.line,u.line)}`],v=o===t.length-1?"":`
|
|
9
|
-
|
|
10
|
-
`;return[Ee(y),{bold:h},{subdued:`
|
|
11
|
-
${s}`},...p,v]}).flat()}var Pe=(t,e)=>t.severity-e.severity;function H(t){let e=t.reduce((r,n)=>{let{uri:o}=n,s=i.path.fsPath(o);return r[s]??=[],r[s].push(n),r},{});return Object.keys(e).reduce((r,n)=>(r[n]=e[n].sort(Pe),r),{})}function he(t){return t.reduce((e,r)=>(e[r.severity]=(e[r.severity]??0)+1,e),{})}function fe(t,e,r){let n=[`${r.length} files inspected`];if(t.length===0)n.push("with no offenses found.");else{n.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let o=he(t);o[i.Severity.ERROR]&&n.push(`
|
|
12
|
-
${o[i.Severity.ERROR]} errors.`),o[i.Severity.WARNING]&&n.push(`
|
|
13
|
-
${o[i.Severity.WARNING]} warnings.`),o[i.Severity.INFO]&&n.push(`
|
|
14
|
-
${o[i.Severity.INFO]} info issues.`)}return n}function le(t,e,r,n){let o=je(r);Object.keys(t).sort().forEach(c=>{let a=c.replace(e,"").slice(1);T({headline:n?`[${n}] ${a}`:a,body:Le(t[c],o)})})}function $e(t,e){return Object.entries(t).map(([r,n])=>{let o=n.map(c=>({check:c.check,severity:me(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),s=he(n);return{environment:e,path:r,offenses:o,errorCount:s[i.Severity.ERROR]??0,warningCount:s[i.Severity.WARNING]??0,infoCount:s[i.Severity.INFO]??0}})}function de(t,e){process.exit(W(t,e)?1:0)}function W(t,e){let r=e?Ae(e):void 0;return r!==void 0&&t.some(n=>n.severity<=r)}function Ge(t){return t.split(`
|
|
15
|
-
`).map(e=>`# ${e}`).join(`
|
|
16
|
-
`)}async function pe(t){let e=".theme-check.yml",r=O(t,e);if(await N(r)){te(`${e} already exists at ${t}`);return}let{settings:n}=await(0,i.loadConfig)(void 0,t),o=Ge(k.default.stringify(n)),s=k.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await j(r,`${s}${o}`),ne(`Created ${e} at ${t}`)}var He=async(t,e)=>{let r=(0,i.applyFixToString)(t.source,e),n=i.path.fsPath(t.uri);await j(n,r)};async function ge(t,e){await(0,i.autofix)(t,e,He)}async function ye(t,e,r){let{ignore:n,settings:o,rootUri:s}=await G(e,()=>(0,i.loadConfig)(e,t)),c={extends:[],ignore:A(n??[]),rootUri:s,...o},a=r?{[r]:c}:c;g(k.default.stringify(a))}async function ve(t,e,r){let{settings:n,ignore:o,checks:s}=await G(e,()=>(0,i.loadConfig)(e,t)),c=A(o??[]),u=Object.keys(n).reduce((y,f)=>{let{severity:p,enabled:v,...C}=n[f];if(!v)return y;let we=me(p??i.Severity.INFO),w=s.find(Oe=>Oe.meta.code===f),be=w&&w.meta?{description:w.meta.docs.description,doc:w.meta.docs.url}:{};return y[f]={severity:we,...be,ignored_patterns:`[${c.join(", ")}]`,...C},y},{}),h=r?{[r]:u}:u;g(k.default.stringify(h))}function ke(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}async function Y(t,e,r){let{offenses:n,theme:o}=await G(e,()=>ue(()=>(0,i.themeCheckRun)(t,e,c=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&oe(c)})));return{result:$e(H(n),r),offenses:n,theme:o}}l();l();import{resolve as We}from"node:path";var Ce=m.object({filePath:m.string().refine(B).describe("The absolute native path of the file."),check:m.string(),severity:m.enum(["error","warning","info"]),startRow:m.number().int().positive().describe("The one-based starting line."),startColumn:m.number().int().positive().describe("The one-based starting column."),endRow:m.number().int().positive().describe("The one-based ending line."),endColumn:m.number().int().positive().describe("The one-based ending column."),message:m.string()}).strict(),Ye=m.object({valid:m.boolean().describe("Whether the validation passes the selected blocking policy."),issues:m.array(Ce),errorCount:m.number().int().nonnegative(),warningCount:m.number().int().nonnegative(),infoCount:m.number().int().nonnegative()}).strict();function S(t){return Math.max(t+1,1)}var F=ce({name:"ThemeCheckResult",schema:Ye,definitions:{ThemeCheckIssue:Ce},project:t=>{let{files:e,valid:r}=Array.isArray(t)?{files:t,valid:void 0}:t;return{valid:r??e.every(n=>n.errorCount===0),issues:e.flatMap(n=>n.offenses.map(o=>({filePath:We(n.path),check:o.check,severity:o.severity,startRow:S(o.start_row),startColumn:S(o.start_column),endRow:S(o.end_row),endColumn:S(o.end_column),message:o.message}))),errorCount:e.reduce((n,o)=>n+o.errorCount,0),warningCount:e.reduce((n,o)=>n+o.warningCount,0),infoCount:e.reduce((n,o)=>n+o.infoCount,0)}}});function J(t){return JSON.stringify(JSON.parse(F.encode(t)))}function _({result:t,offenses:e,theme:r,valid:n},o,s,c){let a=H(e);if(o==="text"&&(le(a,s,r,c),(e.length?T:ee)({headline:c?`[${c}] Theme Check Summary.`:"Theme Check Summary.",body:fe(e,a,r)})),o==="json"){let u=process.stdout;ke(u)&&u._handle.setBlocking(!0),g(J(n===void 0?t:{files:t,valid:n}))}}var d=b(Te(),1);var U=b(se(),1);var R=class extends ie{static get jsonOutputSchema(){return F}static summary="Validate the theme.";static descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";static description=this.descriptionForHelp();static flags={...re,...L,json:d.Flags.boolean({...L.json,env:"SHOPIFY_FLAG_JSON",exclusive:["init","version","print","list"]}),path:P.path,"auto-correct":d.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:d.Flags.string({char:"C",required:!1,description:`Path to a config file to use, overriding .theme-check.yml if present
|
|
17
|
-
Use --path to set the theme directory
|
|
18
|
-
Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
|
|
19
|
-
theme-check:recommended, theme-check:all
|
|
20
|
-
For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":d.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:d.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:d.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:d.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:d.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:d.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:P.environment};static multiEnvironmentsFlags=["path"];async command(e,r,n){let o=e.path,s=e.environment?.[0],a=e.config?.startsWith(":")&&U.LegacyIdentifiers.has(e.config.slice(1))?U.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await pe(o);return}if(e.version){let v=await V(O("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:M(import.meta.url)}),C="unknown";v&&(C=await Z(v)??"unknown"),g(C);return}if(e.print){await ye(o,a,s);return}if(e.list){await ve(o,a,s);return}let u=await Y(o,a,s),{offenses:h,theme:y}=u,f=e.json||e.output==="json",p=!W(h,e["fail-level"]);if(f||_({...u,valid:p},e.output,o,s),e["auto-correct"]&&await ge(y,h),f&&!n&&_({...u,valid:p},"json",o,s),f)return p||(process.exitCode=1),{files:u.result,valid:p};if(!n)return de(h,e["fail-level"])}async _run(){let e=this.argv.indexOf("--"),r=e<0?this.argv:this.argv.slice(0,e),n=Je(r)==="json";return n&&!r.includes("--json")&&(this.argv=[...r,"--json",...e<0?[]:this.argv.slice(e)]),n?z({outputMode:"json",sink:X},()=>super._run()):super._run()}collectsEnvironmentResults(e){return!!e.json||e.output==="json"}validateCommandFlags(e){if(!this.collectsEnvironmentResults(e))return;let r=["init","version","print","list"].find(n=>e[n]);r&&this.error(`JSON output can't be used with --${r}.`,{exit:2})}renderEnvironmentResults(e){g(J({environments:e}))}};function Je(t){let e=process.env.SHOPIFY_FLAG_OUTPUT,r=Object.entries(R.flags);for(let n=0;n<t.length;n++){let o=t[n];if(o.startsWith("--")){let[s,...c]=o.slice(2).split("=");if(r.find(([h])=>h===s)?.[1]?.type!=="option")continue;let u=c.length?c.join("="):t[++n];s==="output"&&(e=u)}else if(o.startsWith("-"))for(let s=1;s<o.length;s++){let c=r.find(([,u])=>u.char===o[s]);if(!c)break;if(c[1].type!=="option")continue;let a=o.slice(s+1).replace(/^=/,"")||t[++n];c[0]==="output"&&(e=a);break}}return e}async function St(t,e,r,n){let o=await Y(t,r,n);return _(o,e,t,n),{offenses:o.offenses,theme:o.theme}}export{R as a,St as b};
|
package/dist/chunk-6Y6A2QGK.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{b as f}from"./chunk-XDXHSGDL.js";import{D as c}from"./chunk-NCPZVARH.js";import{z as m}from"./chunk-V654BMS7.js";import{a}from"./chunk-BN7ZXAZJ.js";import{k as d}from"./chunk-J7BTC45S.js";import{yb as h}from"./chunk-RIG66DIQ.js";import{b as t,c as l,d as s}from"./chunk-FZCGRIOM.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();var u=t.string().regex(/^gid:\/\/shopify\/BulkOperation\/[^/]+$/).describe("The Shopify global ID of a bulk operation."),n=t.object({gid:u,type:t.string(),status:t.string(),errorCode:t.string().nullable(),createdAt:l,completedAt:l.nullable(),objectCount:t.string().regex(/^\d+$/).describe("A nonnegative decimal count, without loss of integer precision."),url:t.string().url().nullable(),partialDataUrl:t.string().url().nullable()}).strict(),i=t.object({storeDomain:t.string().regex(/^[^.]+\.myshopify\.com$/).nullable(),apiVersion:t.string().nullable().describe("The API version selected for the request.")}).strict();var B=n.omit({type:!0}),O=i.extend({operationGid:u,operation:n.nullable()}),b=i.extend({operations:t.array(B),pageInfo:t.object({hasNextPage:t.boolean().nullable().describe("Unknown when the API result reaches the fetch limit.")}).strict()}),D=a({name:"BulkOperationStatusResult",schema:t.union([O,b]),definitions:{GetBulkOperationStatusResult:O,ListBulkOperationsResult:b,BulkOperation:n,ListedBulkOperation:B}}),J=a({name:"CancelBulkOperationResult",schema:i.extend({status:t.literal("success"),operation:n}),definitions:{BulkOperation:n}}),k=i.extend({status:t.enum(["success","partial","cancelled"]),reason:t.literal("watch-aborted").optional(),operation:n,resultsJsonl:t.string().optional().describe("Downloaded results in their native JSONL format.")}),g=t.object({path:t.string().describe("The absolute path of the downloaded results file."),format:t.literal("jsonl")}).strict(),R=a({name:"ExecuteBulkOperationResult",schema:t.union([k,g]),definitions:{BulkOperation:n,ExecuteBulkOperationResult:k,BulkOperationFile:g}});o();function U(e,r,S){let p=[...r.operationId?[`ID: ${r.operationId}`]:[],...f(r)];if(S==="json"){h(`${e}
|
|
2
|
-
${p.join(`
|
|
3
|
-
`)}`);return}m({headline:e,body:[{list:{items:p}}]})}o();function F(e){let r=c(e.store);return{storeDomain:r?`${r}.myshopify.com`:null,apiVersion:e.apiVersion??null}}function q(e){if(typeof e.objectCount=="number"&&!Number.isSafeInteger(e.objectCount))throw new d("Shopify returned a bulk operation count that can't be represented exactly.");return{gid:e.id,..."type"in e?{type:e.type}:{},status:e.status,errorCode:e.errorCode??null,createdAt:s(new Date(String(e.createdAt))),completedAt:e.completedAt?s(new Date(String(e.completedAt))):null,objectCount:String(e.objectCount),url:e.url??null,partialDataUrl:e.partialDataUrl??null}}export{D as a,J as b,R as c,F as d,q as e,U as f};
|
package/dist/chunk-7AWAOPLA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as u,c as a,f as q,g as A,ha as g,ia as v,n as l}from"./chunk-NCPZVARH.js";import{b as m}from"./chunk-J3UXIC23.js";import{h as n,k as F}from"./chunk-J7BTC45S.js";import{qb as b,sb as f}from"./chunk-RIG66DIQ.js";import{i as k}from"./chunk-ZDQO6CNY.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();var $={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"supported"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var S=new Map;async function Y(t,r,e,o){let d="Admin",h=o??await T(r),s=r.storeFqdn,i=V(r);m()==="local"&&(i["x-forwarded-host"]=s,s=new l().host("app"));let c=D(s,h,r);return g({query:t,api:d,addedHeaders:i,url:c,token:r.token,variables:e})}async function x(t){let{query:r,session:e,variables:o,version:d,responseOptions:h,preferredBehaviour:s}=t,i=d??S.get(e.storeFqdn);i??=await T(e,s);let c=e.storeFqdn,w=V(e);m()==="local"&&(w["x-forwarded-host"]=c,c=new l().host("app"));let E={url:D(c,i,e),api:"Admin",token:e.token,addedHeaders:w},y;return"refresh"in e&&(y={type:"token_refresh",handler:e.refresh}),v({...E,query:r,variables:o,responseOptions:h,unauthorizedHandler:y,preferredBehaviour:s})}function V(t){return u(t)?{"X-Shopify-Shop":t.storeFqdn,"X-Shopify-Access-Token":t.token}:{}}async function T(t,r){let o=(await N(t,r)).reverse()[0];return S.set(t.storeFqdn,o),o}async function N(t,r){return(await R(t,r)).filter(o=>o.supported).map(o=>o.handle).sort()}async function R(t,r){try{return(await x({query:$,session:t,variables:{},version:"unstable",responseOptions:{handleErrors:!1},preferredBehaviour:r})).publicApiVersions}catch(e){if(e instanceof a&&e.response.status===403){let o=t.storeFqdn.replace(".myshopify.com","");throw new n(f`Looks like you don't have access to this dev store: (${b.link(o,`https://${t.storeFqdn}`)})`,f`If you're not the owner, create a dev store staff account for yourself`)}throw e instanceof a&&e.response.status===401&&u(t)?new n(`The Theme Access password was rejected for the store ${t.storeFqdn}.`,"Theme Access passwords only work on the store they were generated for, and only with its permanent .myshopify.com domain.",["Check that the password was created in the Theme Access app on this store and has not been deleted.",["Pass the permanent domain to",{command:"--store"},{char:"."},"It is the .myshopify.com domain listed in the Shopify admin under",{subdued:"Settings > Domains"},{char:"."}]]):e instanceof a&&(e.response.status===401||e.response.status===404)?new n(`Error connecting to your store ${t.storeFqdn}: ${e.message} ${e.response.status} ${e.response.data}`):e instanceof a&&e.response.status===402?new n(`The store ${t.storeFqdn} is currently unavailable.`,"This usually means the store is frozen, paused, or closed. Check the store in the Shopify admin and try again once it is reactivated."):e instanceof a&&e.response.status>=500?new n(`The Admin API for ${t.storeFqdn} returned a server error (HTTP ${e.response.status}).`,"This is a problem on the Shopify side, not with your command. Wait a moment and try again."):A(e)?new n(`Request to ${t.storeFqdn} was aborted before it completed.`,"The request was cancelled or timed out before the store responded. Try running the command again."):q(e)?new n(`Network error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`,"Check your internet connection and try again."):new F(`Unknown error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`)}}function D(t,r,e){let o=r??"unstable";return e&&u(e)?`https://${k}/cli/admin/api/${o}/graphql.json`:`https://${t}/admin/api/${o}/graphql.json`}export{Y as a,x as b,N as c,R as d,D as e};
|
package/dist/chunk-7XAEI4XT.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as L,b as g,d as P,g as w}from"./chunk-NJVNGEOU.js";import{a as A}from"./chunk-KGASGUDQ.js";import{t as G}from"./chunk-5XOEMYEQ.js";import{a as F}from"./chunk-NPB753M3.js";import{a as S}from"./chunk-D4LFWIFE.js";import{p as l,u as d}from"./chunk-NCPZVARH.js";import{b as v,e as b}from"./chunk-5AWELO3D.js";import{O as u,a as c}from"./chunk-V654BMS7.js";import{Cb as y,qb as f,sb as h,yb as i}from"./chunk-RIG66DIQ.js";import{b as q}from"./chunk-YTUUU33R.js";import{e as Q,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();import{randomBytes as x}from"crypto";function K(){return x(32).toString("hex")}function C(e){let r=new URL(`http://localhost:${e.port}/graphiql`);return r.searchParams.set("key",e.key),e.query&&r.searchParams.set("query",e.query),e.variables&&r.searchParams.set("variables",e.variables),e.apiVersion&&r.searchParams.set("api_version",e.apiVersion),r.toString()}async function I(e){let r=await A(e.port),t=g({stdout:e.stdout??process.stdout,port:r,storeFqdn:e.storeFqdn,tokenProvider:e.tokenProvider,key:e.key,appContext:e.appContext,protectMutations:e.protectMutations}),a=C({port:r,key:e.key,query:e.query,variables:e.variables,apiVersion:e.apiVersion});try{i(h`GraphiQL is running at ${f.link(a)}`),e.additionalReadyMessages?.forEach(s=>i(s)),i("Press Ctrl+C to stop."),await u(a)||y("Browser did not open automatically. Open the URL above manually."),await T(e.abortSignal)}finally{t.close()}}async function T(e){let r=new c,t=()=>r.abort();process.once("SIGINT",t);try{await new Promise(a=>{if(r.signal.aborted||e?.aborted){a();return}r.signal.addEventListener("abort",()=>a(),{once:!0}),e?.addEventListener("abort",()=>r.abort(),{once:!0})})}finally{process.removeListener("SIGINT",t)}}async function k(e){let r=e.remoteApp.apiSecretKeys[0]?.secret??"",t=L(void 0,r,e.store),a=w({apiKey:e.remoteApp.apiKey,apiSecret:r,storeFqdn:e.store}),m=await l(),s=P(e.store,e.remoteApp.apiKey,m);await I({port:e.port,storeFqdn:e.store,tokenProvider:a,key:t,appContext:{appName:e.remoteApp.title,appUrl:s,apiSecret:r},variables:e.variables,apiVersion:e.apiVersion,abortSignal:e.abortSignal})}var n=Q(q(),1),p=class e extends F{static summary="Open a local GraphiQL UI for your app and store.";static descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
|
|
2
|
-
|
|
3
|
-
The app must be installed on the store.`;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];static flags={...v,...S,store:n.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async r=>d(r)}),port:b({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:n.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:n.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};async run(){let{flags:r}=await this.parse(e),{appContextResult:t,store:a}=await G(r);return await k({remoteApp:t.remoteApp,store:a.shopDomain,port:r.port,variables:r.variables,apiVersion:r.version}),{app:t.app}}};export{K as a,I as b,p as c};
|
package/dist/chunk-A7LBGXWG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-56GKTWFF.js";import{a as p,b as m}from"./chunk-LENSEW2F.js";import{d as r,j as c}from"./chunk-FNWXMCSD.js";import{a as s}from"./chunk-NPB753M3.js";import{Ma as a}from"./chunk-XV6XCOTG.js";import{c as n}from"./chunk-5AWELO3D.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class u extends s{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...r,...n};static get jsonOutputSchema(){return c}async run(){let{flags:t}=await this.parse(u),{app:h,remoteApp:l}=await a({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),f=await d({action:"unschedule",input:t.input??"-",clientId:l.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:p}:{}}),i=m(f,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:h}}};export{e as a};
|
package/dist/chunk-ADVLRSSO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as p,c as T,f as J}from"./chunk-XV6XCOTG.js";import{B as m,Q as C,T as S}from"./chunk-V654BMS7.js";import{a as g}from"./chunk-BN7ZXAZJ.js";import{i as F}from"./chunk-J7BTC45S.js";import{Cb as P,Sa as v,ma as x,wb as W}from"./chunk-RIG66DIQ.js";import{b as o}from"./chunk-FZCGRIOM.js";import{c as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var j=()=>o.unknown().refine(e=>e!==void 0,"The native value must be present."),E=g({name:"FunctionRunResult",schema:o.object({name:o.string(),size:o.number().int().nonnegative().describe("Module size in kilobytes, as reported by Function runner."),memory_usage:o.number().int().nonnegative().describe("Linear memory usage in kilobytes, as reported by Function runner."),instructions:o.number().int().nonnegative(),logs:o.string(),input:j().describe("Native Function input; query keys and values are preserved."),output:j().describe("Native Function output, including the runner-specific invalid-output representation."),success:o.boolean().describe("False for a completed Function execution that failed; the command exits nonzero.")}).passthrough().describe("The native JSON object produced by Function runner 7.x and 9.x. Extra upstream fields are preserved.")});s();import{Writable as _}from"stream";async function $(e){if(e.features.includes("function")&&e.isJavaScript){let t=await J(e);return p(t.functionRunner)}return p()}function q(e){return e.configuration.build?.path?w(e.directory,e.configuration.build.path):e.outputPath}var l="The profile won't contain names for your function.",R="JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile.",z="The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set wasm_opt = false under [extensions.build] in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function.";async function B(e,t){try{if(!await v(t))return;let r=x(t);if(!WebAssembly.validate(r))return;let i=new WebAssembly.Module(r);return WebAssembly.Module.customSections(i,"name").length>0?void 0:e.isJavaScript?"javascript":"wasm"}catch{return}}function O(e){e==="javascript"?m({headline:l,body:R}):m({headline:l,body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}async function te(e){let{command:t,args:r,processOptions:i,warningType:a}=await k(e);return a&&O(a),S(t,r,{...i,stdout:e.stdout??"inherit",stderr:e.stderr??"inherit"})}async function k(e){let t=await $(e.functionExtension);await T(t);let r=q(e.functionExtension);return{command:t.path,args:["-f",r,...M(e)],processOptions:{cwd:e.functionExtension.directory,stdin:e.stdin,input:e.input},warningType:e.profile?await B(e.functionExtension,r):void 0}}function M(e){let t=[];return e.inputPath&&t.push("--input",e.inputPath),e.export&&t.push("--export",e.export),e.json&&t.push("--json"),e.profile&&t.push("--profile"),e.schemaPath&&e.queryPath&&(t.push("--schema-path",e.schemaPath),t.push("--query-path",e.queryPath)),t}async function ne(e){let t=e.json??!0,{command:r,args:i,processOptions:a,warningType:u}=await k({...e,json:t});!t&&u&&O(u);let h=u?[`${l} ${u==="javascript"?R:z}`]:[],f=[],y=d=>new _({write(A,I,N){f.push({stream:d,data:A}),N()}}),n=await C(r,i,{...a,stripFinalNewline:t,...t?{}:{stdout:y("stdout"),stderr:y("stderr")}});if(!t)return n.exitCode!==0?{state:"failed",message:`Function runner failed with exit code ${n.exitCode}.`,command:r,args:i,exitCode:n.exitCode,stderr:n.stderr,outputChunks:f}:{state:"completed-text",outputChunks:f};let b;try{b=JSON.parse(n.stdout)}catch(d){if(!(d instanceof SyntaxError))throw d;return{state:"failed",message:n.exitCode===0?"Function runner returned invalid JSON.":`Function runner failed with exit code ${n.exitCode}.`,command:r,args:i,exitCode:n.exitCode,stderr:n.stderr}}let c=E.schema.safeParse(b);return!c.success||n.exitCode!==0&&c.data.success?{state:"failed",message:c.success?`Function runner failed with exit code ${n.exitCode}.`:"Function runner returned an invalid result.",command:r,args:i,exitCode:n.exitCode,stderr:n.stderr}:{state:"completed",resultJson:n.stdout.trim(),exitCode:n.exitCode||+!c.data.success,diagnostics:n.stderr.trim()?[...h,n.stderr.trim()]:h}}s();function ae(e){if(e.state==="completed-text"||e.state==="failed"){for(let{stream:r,data:i}of e.outputChunks??[])process[r].write(i);if(e.state==="completed-text")return;let t=new F(e.message,e.command,e.args);throw t.details={exitCode:e.exitCode,stderr:e.stderr},t}for(let t of e.diagnostics)P(t);W(e.resultJson),e.exitCode!==0&&(process.exitCode=e.exitCode)}export{E as a,te as b,ne as c,ae as d};
|