@shopify/cli 4.9.3 → 4.9.4
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-APDNTBDE.js +1 -0
- package/dist/analytics-LX52KYSE.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-ISU7Q2EB.js → chunk-2PDVBGQH.js} +1 -1
- package/dist/{chunk-3YAD263J.js → chunk-2YVSZFXJ.js} +1 -1
- package/dist/{chunk-KWKRJYTY.js → chunk-35WQTGN3.js} +1 -1
- package/dist/chunk-37BGAWAW.js +2 -0
- package/dist/{chunk-3FCN4NS6.js → chunk-3C4WVKSO.js} +1 -1
- package/dist/{chunk-4LTQEQ4O.js → chunk-3G2ZQ2EF.js} +1 -1
- package/dist/{chunk-XBCFYD3T.js → chunk-3LHE4GIX.js} +1 -1
- package/dist/{chunk-OSGXBBUJ.js → chunk-3V4VL3SD.js} +2 -2
- package/dist/{chunk-MBE23GGW.js → chunk-43URS56H.js} +1 -1
- package/dist/{chunk-H4PXFC7T.js → chunk-45SZ5PSE.js} +1 -1
- package/dist/{chunk-IN634BRF.js → chunk-47IQIIFX.js} +91 -91
- package/dist/{chunk-ADGPOQ5M.js → chunk-4ES7BJEK.js} +1 -1
- package/dist/{chunk-H3N5LKJD.js → chunk-4IFY7V7W.js} +1 -1
- package/dist/{chunk-6BVQSX7D.js → chunk-4JGWKUJN.js} +1 -1
- package/dist/{chunk-SZLNUMWO.js → chunk-4O5GQ3DS.js} +1 -1
- package/dist/{chunk-OUO2T3CC.js → chunk-4O7LK5RG.js} +1 -1
- package/dist/{chunk-6JOZHD34.js → chunk-4OCVXE5Y.js} +1 -1
- package/dist/{chunk-MAQ3SRQF.js → chunk-4TFJ5RW7.js} +1 -1
- package/dist/{chunk-ACGPDJ6Q.js → chunk-4TZCRMBJ.js} +1 -1
- package/dist/{chunk-4Q5TSWQL.js → chunk-4ZNBEMRT.js} +3 -3
- package/dist/{chunk-C4G7OKJD.js → chunk-5BTLE67Z.js} +1 -1
- package/dist/{chunk-JTXQPPKQ.js → chunk-5JIJDUXX.js} +1 -1
- package/dist/{chunk-6ZSI3C4G.js → chunk-66YRAUWX.js} +1 -1
- package/dist/{chunk-GIGA7EU3.js → chunk-67EBF76X.js} +1 -1
- package/dist/{chunk-4J7HQGWI.js → chunk-6A4H3HPY.js} +1 -1
- package/dist/{chunk-DHWY73OS.js → chunk-6HPUOCFF.js} +1 -1
- package/dist/chunk-6IDEDOXW.js +2 -0
- package/dist/{chunk-YWS2OTSC.js → chunk-6IMHGT7F.js} +1 -1
- package/dist/{chunk-ZIL2P7FL.js → chunk-6MC2BEW4.js} +1 -1
- package/dist/chunk-6YDLNP4G.js +15 -0
- package/dist/{chunk-KI3VRWBP.js → chunk-73D5O7A3.js} +1 -1
- package/dist/{chunk-J6BK6SNB.js → chunk-7556AIVG.js} +1 -1
- package/dist/{chunk-4Q7NZI5A.js → chunk-7A3RW2VM.js} +1 -1
- package/dist/{chunk-TFB4JJFQ.js → chunk-7HNRK2CR.js} +1 -1
- package/dist/{chunk-6HWDGTSX.js → chunk-7HWMURCW.js} +1 -1
- package/dist/{chunk-5LONOHNN.js → chunk-7SJHVJ3W.js} +1 -1
- package/dist/{chunk-UGJN5Q6Y.js → chunk-7VAKNVFD.js} +1 -1
- package/dist/{chunk-BWCPDFEY.js → chunk-A2VCTDKH.js} +1 -1
- package/dist/{chunk-3JN6OWIO.js → chunk-ALK66U3O.js} +1 -1
- package/dist/{chunk-CTVOXVXG.js → chunk-AMLCWRHU.js} +1 -1
- package/dist/{chunk-5RJ6KQHZ.js → chunk-AVMNIZAJ.js} +1 -1
- package/dist/{chunk-O7YHDFOO.js → chunk-AYIU6Z4C.js} +1 -1
- package/dist/{chunk-KZ54OSBH.js → chunk-B3M3KIOU.js} +1 -1
- package/dist/{chunk-RJGFFGEN.js → chunk-BIWG3FQQ.js} +1 -1
- package/dist/{chunk-7NHCYOKI.js → chunk-BOE2ST6J.js} +1 -1
- package/dist/chunk-BQ3U3CQV.js +1 -0
- package/dist/{chunk-MWVT5HYW.js → chunk-BVB3DTNE.js} +1 -1
- package/dist/{chunk-FMBC7LZB.js → chunk-C6IBY7NW.js} +1 -1
- package/dist/{chunk-NO3QDX7R.js → chunk-CLD3NZYD.js} +1 -1
- package/dist/{chunk-XMPLZWXP.js → chunk-CQF5NDTJ.js} +1 -1
- package/dist/{chunk-52ZHZWF7.js → chunk-CVFPY2SH.js} +1 -1
- package/dist/{chunk-7IYSJGFF.js → chunk-D3KFKT4D.js} +2 -2
- package/dist/{chunk-IKN6ICJR.js → chunk-DEF2G7S4.js} +1 -1
- package/dist/{chunk-46I3BQZH.js → chunk-DMDLJRLW.js} +1 -1
- package/dist/{chunk-A75SA57D.js → chunk-DMNWSUKV.js} +1 -1
- package/dist/{chunk-HJPAHR2V.js → chunk-DSS4ECIH.js} +1 -1
- package/dist/{chunk-GOBTF2ZH.js → chunk-DYPZX7MW.js} +1 -1
- package/dist/{chunk-MNHZWEXI.js → chunk-EMH7OHCW.js} +1 -1
- package/dist/{chunk-A6KNDSNT.js → chunk-ENQXB532.js} +1 -1
- package/dist/{chunk-PFBESNYV.js → chunk-EO4YJFMY.js} +22 -22
- package/dist/{chunk-7AP5E5CF.js → chunk-F3PZGSOY.js} +1 -1
- package/dist/chunk-FEQHCE2E.js +3 -0
- package/dist/{chunk-UZL4B7LA.js → chunk-FK7GA4QQ.js} +1 -1
- package/dist/{chunk-KZWYFH7M.js → chunk-FO2R6KHG.js} +1 -1
- package/dist/{chunk-WNO2V53C.js → chunk-FOAV642V.js} +1 -1
- package/dist/{chunk-P4MNJULR.js → chunk-FQL2WEKX.js} +1 -1
- package/dist/{chunk-7KCHSZ6H.js → chunk-G7JW4UIM.js} +1 -1
- package/dist/{chunk-A36J5FWZ.js → chunk-GE4MLO3C.js} +1 -1
- package/dist/{chunk-GPJAWTR7.js → chunk-GM4EFJJF.js} +1 -1
- package/dist/chunk-GN66BRYF.js +1 -0
- package/dist/{chunk-HQ4JWC5M.js → chunk-GPRZYFDE.js} +1 -1
- package/dist/{chunk-YKK4PGCQ.js → chunk-GSE6FXZU.js} +1 -1
- package/dist/{chunk-43DSLBSX.js → chunk-GZ7VGCVW.js} +1 -1
- package/dist/{chunk-2WQGEYBB.js → chunk-HASIOUH2.js} +1 -1
- package/dist/chunk-HILYTMVA.js +1 -0
- package/dist/{chunk-MVFBLQ4J.js → chunk-HJHS23Q3.js} +1 -1
- package/dist/{chunk-MYP6QEJW.js → chunk-HLPAVELJ.js} +1 -1
- package/dist/{chunk-MROQ2FRU.js → chunk-HPM3HF7A.js} +1 -1
- package/dist/{chunk-P7YDAQ53.js → chunk-HQJ62PII.js} +1 -1
- package/dist/{chunk-A6NAQ2Y3.js → chunk-HQY6JM6G.js} +1 -1
- package/dist/{chunk-GQZ3KCWJ.js → chunk-HSYMUYEZ.js} +1 -1
- package/dist/{chunk-IJM576XA.js → chunk-I5PQZRYM.js} +1 -1
- package/dist/{chunk-YN3NT2RC.js → chunk-IDKRJ2F4.js} +1 -1
- package/dist/{chunk-QKJ542VO.js → chunk-IGDVKRB4.js} +1 -1
- package/dist/chunk-IPZ6LUJV.js +4 -0
- package/dist/{chunk-JQ3DMPI6.js → chunk-J4J2YXH3.js} +1 -1
- package/dist/{chunk-3U2OMG7L.js → chunk-J4NBPC57.js} +1 -1
- package/dist/chunk-J6LQR2F6.js +7 -0
- package/dist/{chunk-CNHO3T4F.js → chunk-JYGZD4HM.js} +1 -1
- package/dist/{chunk-3FPVTPQO.js → chunk-K3HUQLIC.js} +1 -1
- package/dist/{chunk-CQKZSB7Z.js → chunk-K7D53KSJ.js} +1 -1
- package/dist/{chunk-IH2CB73H.js → chunk-KQFA5YTT.js} +1 -1
- package/dist/{chunk-VWDVWHV7.js → chunk-KTD7VLHL.js} +1 -1
- package/dist/{chunk-JYWFR6VL.js → chunk-LJIJEGND.js} +1 -1
- package/dist/{chunk-AF36J7R7.js → chunk-LJZTSQRD.js} +1 -1
- package/dist/{chunk-CGCM5DB7.js → chunk-LKXFHYLI.js} +1 -1
- package/dist/{chunk-CB6QT5K5.js → chunk-LLPB6JN5.js} +1 -1
- package/dist/{chunk-NC64STMQ.js → chunk-LOWSU4BB.js} +1 -1
- package/dist/{chunk-MMCDBR23.js → chunk-LWU5TKNA.js} +1 -1
- package/dist/{chunk-XZHUUA6U.js → chunk-LYIXRMQJ.js} +1 -1
- package/dist/{chunk-KRL7FE6M.js → chunk-MCNK5SJ6.js} +1 -1
- package/dist/{chunk-ZBMEU2CE.js → chunk-MJZSSCGD.js} +1 -1
- package/dist/{chunk-A76YYGZT.js → chunk-MMQZO2W2.js} +1 -1
- package/dist/{chunk-ME4EYPKZ.js → chunk-MUM34KUM.js} +1 -1
- package/dist/{chunk-KZE6JT42.js → chunk-MW3IMZJ5.js} +1 -1
- package/dist/{chunk-EJ46P6A3.js → chunk-MW3JKGJH.js} +1 -1
- package/dist/{chunk-66JMKA7C.js → chunk-N55MSO3X.js} +5 -5
- package/dist/{chunk-ADL6JSX7.js → chunk-N5AZZYQA.js} +1 -1
- package/dist/{chunk-Z5M2VWQZ.js → chunk-NCRWOW6F.js} +1 -1
- package/dist/{chunk-YZXNXWDR.js → chunk-NCVGCVQ5.js} +1 -1
- package/dist/{chunk-H5ZPH2EC.js → chunk-NGSEF3UX.js} +1 -1
- package/dist/{chunk-Y45QFHVA.js → chunk-NT4A37HG.js} +1 -1
- package/dist/{chunk-EA5LKCRF.js → chunk-NU5WLZ6Y.js} +1 -1
- package/dist/{chunk-73LX4DOM.js → chunk-NYYXH2SX.js} +1 -1
- package/dist/{chunk-HHNMV6GX.js → chunk-O5FFMTJE.js} +1 -1
- package/dist/{chunk-NYVG34OW.js → chunk-OE3HSNSE.js} +1 -1
- package/dist/{chunk-E7PW5SVD.js → chunk-ONF7XXEL.js} +1 -1
- package/dist/{chunk-BHOZAIHS.js → chunk-PB5ZZET5.js} +1 -1
- package/dist/{chunk-KXZQKOKF.js → chunk-PFXNBHQQ.js} +1 -1
- package/dist/{chunk-ZRW47MJT.js → chunk-PG4S5HJJ.js} +1 -1
- package/dist/{chunk-7SIY6GZD.js → chunk-PHG4DASY.js} +1 -1
- package/dist/{chunk-LOTMFUSV.js → chunk-PO5T44H3.js} +1 -1
- package/dist/{chunk-B32O5KET.js → chunk-PP4VCR4Y.js} +1 -1
- package/dist/{chunk-YUM5XGSV.js → chunk-PVAZCZSY.js} +1 -1
- package/dist/chunk-PWS4VFSD.js +1 -0
- package/dist/{chunk-ZZWGNETX.js → chunk-Q2XLIWG4.js} +1 -1
- package/dist/{chunk-VDE7IIYQ.js → chunk-Q37WAD6F.js} +1 -1
- package/dist/{chunk-IR6OW5R2.js → chunk-Q43LBSPT.js} +1 -1
- package/dist/{chunk-XZOSPVMV.js → chunk-QAJZUJR5.js} +1 -1
- package/dist/{chunk-DE5BUQL5.js → chunk-QO5RNGWA.js} +1 -1
- package/dist/chunk-QPQS2YU3.js +1 -0
- package/dist/{chunk-XVOUKPGD.js → chunk-QTLGMJDW.js} +1 -1
- package/dist/{chunk-2E2NYRQH.js → chunk-QUXQM3S3.js} +1 -1
- package/dist/{chunk-PFPVFPHV.js → chunk-R3KSOCMB.js} +1 -1
- package/dist/{chunk-MYIN4HYW.js → chunk-R74WHKHH.js} +1 -1
- package/dist/chunk-R7YJNDXW.js +1 -0
- package/dist/chunk-RJSQMKKS.js +1 -0
- package/dist/{chunk-WS54VCDC.js → chunk-RK2V6OIJ.js} +1 -1
- package/dist/{chunk-O36EB75H.js → chunk-RSC5NQAT.js} +1 -1
- package/dist/{chunk-2S7WRX2J.js → chunk-RUHQNF2W.js} +1 -1
- package/dist/{chunk-CTDETNGR.js → chunk-RXTLNUPF.js} +1 -1
- package/dist/{chunk-YPGZANN3.js → chunk-S36VGP37.js} +1 -1
- package/dist/{chunk-FLPWT4AK.js → chunk-SNE4RHM4.js} +1 -1
- package/dist/{chunk-4RFKEFWW.js → chunk-SQAS5RVZ.js} +1 -1
- package/dist/{chunk-LIE6QSQ2.js → chunk-SZI6G247.js} +1 -1
- package/dist/{chunk-KY4WH4ZK.js → chunk-TFXUDHCP.js} +1 -1
- package/dist/{chunk-TWT5LVEM.js → chunk-TPHHQAUD.js} +1 -1
- package/dist/{chunk-T3LZJIZN.js → chunk-TVCWDEVS.js} +1 -1
- package/dist/{chunk-FKGN6F3F.js → chunk-UEBUGSBT.js} +1 -1
- package/dist/{chunk-UKINO57E.js → chunk-UIC7K2HX.js} +1 -1
- package/dist/{chunk-KEI3OJVP.js → chunk-UNHT4ZFP.js} +1 -1
- package/dist/{chunk-2GYIQINP.js → chunk-UQ6ALA3Y.js} +1 -1
- package/dist/{chunk-KFOU4WLJ.js → chunk-UU6BRRYS.js} +1 -1
- package/dist/{chunk-UYWRJHAJ.js → chunk-UWI76E2L.js} +2 -2
- package/dist/{chunk-GBG6SUK4.js → chunk-VGBUN3CZ.js} +1 -1
- package/dist/{chunk-ADVNRGOU.js → chunk-VMNOSVPT.js} +1 -1
- package/dist/{chunk-OVTWO3W7.js → chunk-VNFUCH6T.js} +1 -1
- package/dist/{chunk-7KVTQDRW.js → chunk-VS7QVU3Z.js} +1 -1
- package/dist/{chunk-CNA5YGXA.js → chunk-W4KE7AO6.js} +1 -1
- package/dist/{chunk-WEB63XPH.js → chunk-WEPO4J2F.js} +1 -1
- package/dist/{chunk-EM6KPZCM.js → chunk-WEXOA4C4.js} +1 -1
- package/dist/{chunk-QKSN6ZYW.js → chunk-WLWHCUPZ.js} +1 -1
- package/dist/{chunk-NL6DJQJG.js → chunk-XGKCPD6W.js} +1 -1
- package/dist/{chunk-YVX2OJ7N.js → chunk-XNPUZRWP.js} +1 -1
- package/dist/{chunk-DWDR7XMI.js → chunk-XNVOKAF2.js} +1 -1
- package/dist/{chunk-V4F4LQBQ.js → chunk-XSMCQLJW.js} +1 -1
- package/dist/chunk-XUUIBSLW.js +1 -0
- package/dist/{chunk-PQEFZTEJ.js → chunk-XWQM2NZ2.js} +1 -1
- package/dist/{chunk-4MUH4E2U.js → chunk-Y3PY5LP7.js} +1 -1
- package/dist/{chunk-WUGFTI5M.js → chunk-Y62EMOQA.js} +1 -1
- package/dist/{chunk-X5VBX2QA.js → chunk-Y743UVBS.js} +1 -1
- package/dist/{chunk-GB4WR6DY.js → chunk-YBSX53QP.js} +1 -1
- package/dist/{chunk-PE6H7U6N.js → chunk-YHCP326A.js} +1 -1
- package/dist/{chunk-VOOYVTYA.js → chunk-YHESTFMZ.js} +1 -1
- package/dist/{chunk-5LZ5L2FF.js → chunk-YPCXVZ2N.js} +1 -1
- package/dist/{chunk-VCAYMY7D.js → chunk-YT27FIQN.js} +2 -2
- package/dist/{chunk-32HWTEOM.js → chunk-YTR5JHNJ.js} +1 -1
- package/dist/{chunk-543SYIY6.js → chunk-YYA5VGDW.js} +1 -1
- package/dist/{chunk-XSGYQXWO.js → chunk-Z6X2GT6Q.js} +1 -1
- package/dist/{chunk-2NRFFAV4.js → chunk-ZEBMW5KS.js} +1 -1
- package/dist/{chunk-MDGF3K45.js → chunk-ZEE32UH6.js} +1 -1
- package/dist/{chunk-CPT2VBMR.js → chunk-ZTICX3AO.js} +1 -1
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- 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.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.js +1 -1
- 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.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- 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.js +1 -1
- 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.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.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.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/{command-json-schema-AWZEAYEU.js → command-json-schema-SS4GDJTQ.js} +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-TBERV4YJ.js → conf-store-54YJCIDK.js} +1 -1
- package/dist/{custom-oclif-loader-RHFO4GO3.js → custom-oclif-loader-3UBH7Q7R.js} +1 -1
- package/dist/{deprecations-FNYLBULK.js → deprecations-ZX7ZKF6L.js} +1 -1
- package/dist/dist-JMNE7MP6.js +1 -0
- package/dist/dist-M2AXGBOL.js +1 -0
- package/dist/{environment-ZUTBXY7U.js → environment-RSUK27TA.js} +1 -1
- package/dist/environments-KD2IDYPG.js +1 -0
- package/dist/{error-SI2QH7DT.js → error-AA6LW3PN.js} +1 -1
- package/dist/error-handler-4VW3AV2G.js +1 -0
- package/dist/{fs-J67RRM6W.js → fs-4QZCAEP7.js} +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- 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/index.js +1 -1
- package/dist/{is-global-BSY2VR5F.js → is-global-FKG327CG.js} +1 -1
- package/dist/{json-error-BVX244JK.js → json-error-32ETFU3V.js} +1 -1
- package/dist/{local-VCJXKA4Z.js → local-R3UAQN7T.js} +1 -1
- package/dist/{metadata-G7M7BSIE.js → metadata-JWJG4JV4.js} +1 -1
- package/dist/{node-package-manager-PMTBCYAX.js → node-package-manager-M4XHUTQR.js} +1 -1
- package/dist/notifications-system-QVM2JWKB.js +1 -0
- package/dist/{os-MMNGCSNT.js → os-FEHBQQKP.js} +1 -1
- package/dist/{output-2Q6CSC33.js → output-2LS5AOAH.js} +1 -1
- package/dist/{path-6YMSTSWG.js → path-CPAYTWQW.js} +1 -1
- package/dist/system-TMD2LYZM.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-QOSX5V7Z.js → ui-FNPICAAH.js} +1 -1
- package/dist/upgrade-YYPP5VZY.js +1 -0
- package/dist/version-OX3MORI6.js +1 -0
- package/dist/version-P7D5ME4Z.js +1 -0
- package/dist/{workerd-2RFRLQVH.js → workerd-TKVRZK2F.js} +1 -1
- package/oclif.manifest.json +34 -10
- package/package.json +7 -7
- package/dist/analytics-CLYTLX2B.js +0 -1
- package/dist/analytics-K6IFFIPX.js +0 -1
- package/dist/chunk-3B3CJS5I.js +0 -1
- package/dist/chunk-3VYOLEQE.js +0 -2
- package/dist/chunk-BZSCRXYR.js +0 -4
- package/dist/chunk-DPGUL2TW.js +0 -1
- package/dist/chunk-FHOBQUQT.js +0 -7
- package/dist/chunk-KD5AYVA2.js +0 -1
- package/dist/chunk-LGRZQTQL.js +0 -15
- package/dist/chunk-Q54LU5W4.js +0 -1
- package/dist/chunk-QZGVZMB5.js +0 -3
- package/dist/chunk-S34ZYEZS.js +0 -1
- package/dist/chunk-XGFY6FV4.js +0 -1
- package/dist/chunk-YMAVVMN5.js +0 -2
- package/dist/chunk-YS447QGN.js +0 -1
- package/dist/chunk-YTJ3EPD3.js +0 -1
- package/dist/dist-HV5W7PYL.js +0 -1
- package/dist/dist-VKKGDJQ2.js +0 -1
- package/dist/environments-XC6OMZY2.js +0 -1
- package/dist/error-handler-XOEXJ4TY.js +0 -1
- package/dist/notifications-system-O2R4VN7A.js +0 -1
- package/dist/system-DQ2SKK6C.js +0 -1
- package/dist/upgrade-7HYLPUVK.js +0 -1
- package/dist/version-BPEZT4N3.js +0 -1
- package/dist/version-VNCEYJRH.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as E}from"./chunk-
|
|
1
|
+
import{i as E}from"./chunk-Q37WAD6F.js";import{Cb as $,Eb as T,Nb as O,Xa as V,qa as N}from"./chunk-UWI76E2L.js";import{a as g,c as w,e as Y,g as m}from"./chunk-VKWPEFWQ.js";var I=w((z,R)=>{R.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var K=w((X,d)=>{m();var b=g("fs"),y=g("path"),q=g("os"),F=g("crypto"),P=I(),D=P.version,C=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function S(e){let n={},r=e.toString();r=r.replace(/\r\n?/mg,`
|
|
2
2
|
`);let s;for(;(s=C.exec(r))!=null;){let a=s[1],t=s[2]||"";t=t.trim();let o=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(t=t.replace(/\\n/g,`
|
|
3
3
|
`),t=t.replace(/\\r/g,"\r")),n[a]=t}return n}function U(e){e=e||{};let n=x(e);e.path=n;let r=l.configDotenv(e);if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${n} for an unknown reason`);throw o.code="MISSING_DATA",o}let s=A(e).split(","),a=s.length,t;for(let o=0;o<a;o++)try{let i=s[o].trim(),f=M(r,i);t=l.decrypt(f.ciphertext,f.key);break}catch(i){if(o+1>=a)throw i}return l.parse(t)}function B(e){console.log(`[dotenv@${D}][WARN] ${e}`)}function v(e){console.log(`[dotenv@${D}][DEBUG] ${e}`)}function j(e){console.log(`[dotenv@${D}] ${e}`)}function A(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function M(e,n){let r;try{r=new URL(n)}catch(i){if(i.code==="ERR_INVALID_URL"){let f=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw f.code="INVALID_DOTENV_KEY",f}throw i}let s=r.password;if(!s){let i=new Error("INVALID_DOTENV_KEY: Missing key part");throw i.code="INVALID_DOTENV_KEY",i}let a=r.searchParams.get("environment");if(!a){let i=new Error("INVALID_DOTENV_KEY: Missing environment part");throw i.code="INVALID_DOTENV_KEY",i}let t=`DOTENV_VAULT_${a.toUpperCase()}`,o=e.parsed[t];if(!o){let i=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${t} in your .env.vault file.`);throw i.code="NOT_FOUND_DOTENV_ENVIRONMENT",i}return{ciphertext:o,key:s}}function x(e){let n=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)b.existsSync(r)&&(n=r.endsWith(".vault")?r:`${r}.vault`);else n=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else n=y.resolve(process.cwd(),".env.vault");return b.existsSync(n)?n:null}function k(e){return e[0]==="~"?y.join(q.homedir(),e.slice(1)):e}function W(e){let n=!!(e&&e.debug),r=e&&"quiet"in e?e.quiet:!0;(n||!r)&&j("Loading env from encrypted .env.vault");let s=l._parseVault(e),a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),l.populate(a,s,e),{parsed:s}}function G(e){let n=y.resolve(process.cwd(),".env"),r="utf8",s=!!(e&&e.debug),a=e&&"quiet"in e?e.quiet:!0;e&&e.encoding?r=e.encoding:s&&v("No encoding is specified. UTF-8 is used by default");let t=[n];if(e&&e.path)if(!Array.isArray(e.path))t=[k(e.path)];else{t=[];for(let u of e.path)t.push(k(u))}let o,i={};for(let u of t)try{let c=l.parse(b.readFileSync(u,{encoding:r}));l.populate(i,c,e)}catch(c){s&&v(`Failed to load ${u} ${c.message}`),o=c}let f=process.env;if(e&&e.processEnv!=null&&(f=e.processEnv),l.populate(f,i,e),s||!a){let u=Object.keys(i).length,c=[];for(let p of t)try{let h=y.relative(process.cwd(),p);c.push(h)}catch(h){s&&v(`Failed to load ${p} ${h.message}`),o=h}j(`injecting env (${u}) from ${c.join(",")}`)}return o?{parsed:i,error:o}:{parsed:i}}function J(e){if(A(e).length===0)return l.configDotenv(e);let n=x(e);return n?l._configVault(e):(B(`You set DOTENV_KEY but you are missing a .env.vault file at ${n}. Did you forget to build it?`),l.configDotenv(e))}function Q(e,n){let r=Buffer.from(n.slice(-64),"hex"),s=Buffer.from(e,"base64"),a=s.subarray(0,12),t=s.subarray(-16);s=s.subarray(12,-16);try{let o=F.createDecipheriv("aes-256-gcm",r,a);return o.setAuthTag(t),`${o.update(s)}${o.final()}`}catch(o){let i=o instanceof RangeError,f=o.message==="Invalid key length",u=o.message==="Unsupported state or unable to authenticate data";if(i||f){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(u){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw o}}function H(e,n,r={}){let s=!!(r&&r.debug),a=!!(r&&r.override);if(typeof n!="object"){let t=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw t.code="OBJECT_REQUIRED",t}for(let t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)?(a===!0&&(e[t]=n[t]),s&&v(a===!0?`"${t}" is already defined and WAS overwritten`:`"${t}" is already defined and was NOT overwritten`)):e[t]=n[t]}var l={configDotenv:G,_configVault:W,_parseVault:U,config:J,decrypt:Q,parse:S,populate:H};d.exports.configDotenv=l.configDotenv;d.exports._configVault=l._configVault;d.exports._parseVault=l._parseVault;d.exports.config=l.config;d.exports.decrypt=l.decrypt;d.exports.parse=l.parse;d.exports.populate=l.populate;d.exports=l});m();var L=Y(K());async function oe(e){if(O(T`Reading the .env file at ${$.path(e)}`),!await V(e))throw new E(`The environment file at ${e} does not exist.`);let n=await N(e);return{path:e,variables:(0,L.parse)(n)}}function se(e,n){let r=[],s=e===null?[]:e.split(`
|
|
4
4
|
`),a=[],t;for(let o of s){if(t){if(o.endsWith(t.quote)){let u=_(t.key,t.value+o.slice(0,-1),t.quote),c=n[t.key];c&&(a.push(t.key),u=_(t.key,c)),r.push(u),t=void 0}else t.value+=`${o}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as E}from"./chunk-FKIVKNOV.js";import{a as P}from"./chunk-
|
|
1
|
+
import{a as E}from"./chunk-FKIVKNOV.js";import{a as P}from"./chunk-PWS4VFSD.js";import{a as w}from"./chunk-PO5T44H3.js";import{Ha as y,L as F,i as C,ja as x}from"./chunk-UNHT4ZFP.js";import{b as f}from"./chunk-LJIJEGND.js";import{b as v}from"./chunk-NU5WLZ6Y.js";import{Cb as o,Eb as p,Ib as h,Xa as g,qa as u,ya as l}from"./chunk-UWI76E2L.js";import{b as $}from"./chunk-I3J63RFV.js";import{e as c}from"./chunk-6IDEDOXW.js";import{e as _,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function S({app:d,remoteApp:t,organization:a,envFile:e}){await x(t,a.source);let n={SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:C(d.configuration)};if(await g(e)){let i=await u(e),r=f(i,n);if(r===i)return p`No changes to ${o.path(e)}`;{await l(e,r);let I=E(i??"",r);return p`Updated ${o.path(e)} to be:
|
|
2
2
|
|
|
3
3
|
${r}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-ENQXB532.js";import{b as i}from"./chunk-4ZNBEMRT.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends i{static description="Generate a notifications.json file for the the CLI, appending a new notification to the current file.";static hidden=!0;async run(){await n()}};export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as u,c as m}from"./chunk-
|
|
1
|
+
import{b as u,c as m}from"./chunk-NU5WLZ6Y.js";import{b as h}from"./chunk-4ZNBEMRT.js";import{N as i}from"./chunk-47IQIIFX.js";import{a as n}from"./chunk-7VAKNVFD.js";import{Ib as p,b as s}from"./chunk-UWI76E2L.js";import{b as g}from"./chunk-I3J63RFV.js";import{e as S,g as e}from"./chunk-VKWPEFWQ.js";e();e();async function f(t){let r=new URLSearchParams;return r.append("search",t??""),{url:`https://shopify.dev/docs?${r.toString()}`}}e();e();var o=n({name:"SearchResult",schema:s.object({url:s.string().url()})});async function l(t,r){r==="json"?p(o.encode(t)):await i(t.url)}var d=S(g(),1),a=class t extends h{static descriptionWithMarkdown="Search shopify.dev for the most relevant content matching a query. Best for discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static description=this.descriptionForHelp();static usage="search [query]";static examples=[`# open the search modal on Shopify.dev
|
|
2
2
|
shopify search
|
|
3
3
|
|
|
4
4
|
# search for a term on Shopify.dev
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as s,c as i,d as p}from"./chunk-
|
|
1
|
+
import{b as s,c as i,d as p}from"./chunk-AYIU6Z4C.js";import{b as e,c as r}from"./chunk-NU5WLZ6Y.js";import{b as o}from"./chunk-4ZNBEMRT.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
2
|
|
|
3
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
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-35WQTGN3.js";import{p as n,q as m,v as l}from"./chunk-Y3PY5LP7.js";import{b as s,c as h}from"./chunk-NU5WLZ6Y.js";import{oa as o}from"./chunk-3V4VL3SD.js";import{b as v}from"./chunk-I3J63RFV.js";import{e as u,g as r}from"./chunk-VKWPEFWQ.js";r();var e=u(v(),1);var i=class extends l{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
2
|
|
|
3
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
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as P,t as F}from"./chunk-
|
|
1
|
+
import{k as P,t as F}from"./chunk-3LHE4GIX.js";import{a as N}from"./chunk-Q7BOSHWX.js";import{a as T}from"./chunk-WLWHCUPZ.js";import{I as H,K as q,k as $,pa as d,ra as h}from"./chunk-3V4VL3SD.js";import{a as x}from"./chunk-XUUIBSLW.js";import{B as I,C as L,T as v}from"./chunk-47IQIIFX.js";import{i as l}from"./chunk-Q37WAD6F.js";import{Cb as C,Eb as U,Nb as c}from"./chunk-UWI76E2L.js";import{u as O}from"./chunk-UEBUGSBT.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function D(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function w(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function S(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),s=o[2]?.trim()??"";n&&(t[n]=s)}),t}function E(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var y=class extends l{};async function Re(e){return F(e)}async function be(e,t,r){let o=M(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await $(`${o}/password`,{headers:s,body:n.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw d(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return B(a,o)}async function j(e,t,r,o,n={}){let s={},a=await G(e,r,n),i=M(t);if(s._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return s;let u=await ee(a,e,i,o,n);return{...s,...u}}async function G(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...w()},i=await $(s,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],f=_(u,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
|
|
2
2
|
|
|
3
3
|
-Request ID: ${i.headers.get("x-request-id")??"unknown"}
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-7VAKNVFD.js";import{l as m}from"./chunk-Q37WAD6F.js";import{Ib as u,b as e}from"./chunk-UWI76E2L.js";import{b as H}from"./chunk-I3J63RFV.js";import{e as b,g as n}from"./chunk-VKWPEFWQ.js";n();var p=e.object({id:e.string(),summary:e.string().optional(),hidden:e.boolean().default(!1)}),l=e.object({name:e.string(),description:e.string().optional(),hidden:e.boolean().default(!1)}),g=e.object({name:e.string(),description:e.string().optional(),required:e.boolean().default(!1),hidden:e.boolean().default(!1),options:e.array(e.string()).optional(),default:e.unknown().optional()}),h=e.object({name:e.string(),type:e.enum(["boolean","option"]),char:e.string().optional(),summary:e.string().optional(),description:e.string().optional(),env:e.string().optional(),required:e.boolean().default(!1),hidden:e.boolean().default(!1),options:e.array(e.string()).optional(),default:e.unknown().optional(),multiple:e.boolean().optional(),allowNo:e.boolean().optional(),aliases:e.array(e.string()).optional(),dependsOn:e.array(e.string()).optional(),exclusive:e.array(e.string()).optional(),exactlyOne:e.array(e.string()).optional()}),f=p.extend({description:e.string().optional(),aliases:e.array(e.string()),usage:e.union([e.string(),e.array(e.string())]).optional(),examples:e.array(e.union([e.string(),e.object({description:e.string(),command:e.string()})])).optional(),strict:e.boolean().default(!0),args:e.record(g),flags:e.record(h)}),a={commands:e.array(p),topics:e.array(l)},s=c({name:"HelpResult",schema:e.discriminatedUnion("kind",[e.object({kind:e.literal("root"),...a}),e.object({kind:e.literal("topic"),topic:l,...a}),e.object({kind:e.literal("command"),command:f,...a})]),definitions:{HelpCommandSummary:p,HelpTopic:l,HelpArgument:g,HelpFlag:h,HelpCommand:f}});n();var y=b(H(),1);async function k(r,o,i=!1){let t=new d(r,{all:i});if(await t.showHelp(o),!t.result)throw new m("Oclif did not resolve a help subject.");return t.result}var d=class extends y.Help{result;async showCommandHelp(o){let i=t=>this.opts.all===!0||!t.hidden;this.result=s.validate({kind:"command",command:{...o,args:Object.fromEntries(Object.entries(o.args).filter(([,t])=>i(t))),flags:Object.fromEntries(Object.entries(o.flags).filter(([,t])=>i(t)))},...this.listings(o.id)})}async showRootHelp(){this.result=s.validate({kind:"root",...this.listings()})}async showTopicHelp(o){this.result=s.validate({kind:"topic",topic:o,...this.listings(o.name)})}listings(o){let i=t=>o===void 0?this.opts.all===!0||!t.includes(":"):t.startsWith(`${o}:`)&&t.split(":").length===o.split(":").length+1;return{commands:this.sortedCommands.filter(t=>t.id&&i(t.id)).map(t=>({id:t.id,summary:t.summary??t.description?.split(`
|
|
2
2
|
`)[0],hidden:t.hidden??!1})),topics:this.sortedTopics.filter(t=>i(t.name))}}};n();function T(r){u(s.encode(r))}export{s as a,k as b,T as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as C}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-YBSX53QP.js";import{b as ne,c as re}from"./chunk-YYA5VGDW.js";import{c as ee,d as te}from"./chunk-NCVGCVQ5.js";import{A as M}from"./chunk-GE4MLO3C.js";import{a as Z}from"./chunk-PWS4VFSD.js";import{a as Q}from"./chunk-PO5T44H3.js";import{Ha as X}from"./chunk-UNHT4ZFP.js";import{b as z,c as Y,f as V}from"./chunk-NU5WLZ6Y.js";import{F as K,a as b,d as v,e as l,f as s,g as j,h as H,i as G,l as J,m as q,n as x,t as R}from"./chunk-47IQIIFX.js";import{i as O}from"./chunk-Q37WAD6F.js";import{a as B}from"./chunk-4JGWKUJN.js";import{qa as N}from"./chunk-UWI76E2L.js";import{g as U}from"./chunk-UEBUGSBT.js";import{b as ye}from"./chunk-I3J63RFV.js";import{c as I}from"./chunk-6IDEDOXW.js";import{e as S,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var h=S(v(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,h.useState)([]),[p,m]=(0,h.useState)([a,a]),[y,d]=(0,h.useState)(void 0),{input:E,export:_}=e.payload,[fe,k]=(0,h.useState)(`Watching for changes to ${e.source}...`);return(0,h.useEffect)(()=>{let A=new b;t.signal.addEventListener("abort",()=>{A.abort()});let $=async()=>{let w=await Ee(r,JSON.stringify(E),_);m(g=>[w,g[0]]),k(`Watching for changes to ${e.source}...`),f(g=>[...g,w])},de=async()=>{k("Replaying log with local function..."),await $()},ge=async()=>{i.onEvent(async g=>{let F=g.extensionEvents.find(L=>L.extension.handle===r.handle);if(!(!F||F.type!==ee.Updated)){if(F.buildResult?.status==="error"){d(`Error while reloading and building extension: ${F.buildResult?.error}`);return}d(void 0),k("Re-running with latest changes..."),await $()}});let w=new oe({write(g,F,L){f(he=>[...he,{type:"systemMessage",message:g.toString()}]),L()}});await i.start({stdout:w,stderr:w,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[E,_,o,r]),R(t.signal,async()=>{setTimeout(()=>{U()||B(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:y}}async function Ee(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await C({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=S(v(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=R(t.signal),{isRawModeSupported:a}=H(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:y}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return G((d,E)=>{q(d,E,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,E)=>n.default.createElement(l,{key:`replayOutputScrollerLog${E}`,flexDirection:"column"},n.default.createElement(Re,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,x.pointerSmall," ",p)),n.default.createElement(be,{recentFunctionRuns:m}),n.default.createElement(s,null,x.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",x.lineVertical," quit")):null,y?n.default.createElement(s,{color:"red"},y):null))};function D({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
|
|
2
2
|
|
|
3
3
|
`,r,e,r,`
|
|
4
4
|
`)}function we({input:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,M(e)))}function Fe({logs:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function xe({output:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,M(e)))}function Se({functionRun:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function be({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(s,null,x.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Re({log:e}){switch(e.type){case"functionRun":return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(we,{input:e.input}),n.default.createElement(Fe,{logs:e.logs}),n.default.createElement(xe,{output:e.output}),n.default.createElement(Se,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var se=S(v(),1);async function ce({selectedRun:e,abortController:t,app:o,extension:r}){return J(se.default.createElement(ae,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function le(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await K({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as Ce,readdirSync as De}from"fs";var T=100;async function ue(e){let{watch:t,extension:o,app:r}=e,i=new b;try{let a=r.getLogsDir(),u=e.log?await ke(a,o.handle,e.log):await Le(a,o.handle),{input:f,export:p}=u.payload;t?await ce({selectedRun:u,abortController:i,app:r,extension:o}):await C({functionExtension:o,json:e.json,input:JSON.stringify(f),export:p})}catch(a){throw i.abort(),a}}async function ke(e,t,o){let r=await Ae(e,t,o);if(r===void 0)throw new O(`No log found for '${o}'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ia as r}from"./chunk-
|
|
1
|
+
import{Ia as r}from"./chunk-UNHT4ZFP.js";import{a}from"./chunk-45SZ5PSE.js";import{p as i}from"./chunk-6IDEDOXW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n}from"./chunk-
|
|
1
|
+
import{b as n}from"./chunk-5BTLE67Z.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();var o=class extends Error{type;constructor(e,p){super(p),this.type=e}},i=r=>async()=>r,s=r=>async e=>e.provider!==r.provider?n(new o("invalid-provider")):r.action(e.port);var d="cloudflare",v=i({name:d});export{o as a,s as b,d as c,v as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-ZEBMW5KS.js";import{a as e}from"./chunk-RUHQNF2W.js";import{a as o}from"./chunk-2PDVBGQH.js";import{b as i}from"./chunk-4ZNBEMRT.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class extends i{static description="View all the available UI kit components";static hiddenAliases=["kitchen-sink all"];static hidden=!0;async run(){await o(),await e(),await s()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n}from"./chunk-
|
|
1
|
+
import{c as n}from"./chunk-NU5WLZ6Y.js";import{a as r,b as c,c as l}from"./chunk-MCNK5SJ6.js";import{b as i}from"./chunk-4ZNBEMRT.js";import{b as h}from"./chunk-I3J63RFV.js";import{e as f,g as o}from"./chunk-VKWPEFWQ.js";o();var t=f(h(),1);var e=class p extends i{static args={command:t.Args.string({description:"Command to show help for.",required:!1})};static descriptionWithMarkdown="Display help for Shopify CLI";static description=this.descriptionForHelp();static usage="help [command] [flags]";static flags={...n,"nested-commands":t.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})};static strict=!1;static get jsonOutputSchema(){return r}async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{a as E}from"./chunk-5BGUKF7L.js";import{a as u,b as U,c as W}from"./chunk-HB3MJYBK.js";import{a as M}from"./chunk-
|
|
1
|
+
import{a as E}from"./chunk-5BGUKF7L.js";import{a as u,b as U,c as W}from"./chunk-HB3MJYBK.js";import{a as M}from"./chunk-GSE6FXZU.js";import{b as P}from"./chunk-HJHS23Q3.js";import{D as T,F as j,I as B,L as O,a as D,d as g,k as d,l as x,m as p,n as I,o as b,q as L,t as N}from"./chunk-EO4YJFMY.js";import{b as F}from"./chunk-NU5WLZ6Y.js";import{b as R}from"./chunk-4ZNBEMRT.js";import{A as C,B as A,y as S,z as $}from"./chunk-47IQIIFX.js";import{i as _}from"./chunk-Q37WAD6F.js";import{ka as w}from"./chunk-UWI76E2L.js";import{b as te}from"./chunk-I3J63RFV.js";import{e as ee,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();var Y={high:"High",medium:"Medium",low:"Low"},ne={executed:"passed",not_applicable:"not applicable",unresolved:"unresolved"},se={executed:"executed",not_applicable:"not applicable",unresolved:"unresolved"},f=["deterministic","agent"],ie={deterministic:"deterministic-findings.json",agent:"agent-findings.json"},H=3,oe="Agent findings were recorded for a different scope than the latest scan.",q="agent result stale",re="The agent result is older than the deterministic result, so both are shown.",ce={info:S,success:$,warning:C,error:A};function J(e){for(let t of ue(e))ce[t.type](t.options)}function ue(e){let{checks:t}=e.result,n=t.filter(i=>i.status==="unresolved"&&d(i).length===0),s=t.filter(i=>i.status!=="unresolved"&&d(i).length===0),o=t.filter(i=>d(i).length>0);return[...n.length>0?[Se(n,e.verbose)]:[],...s.length>0?[$e(s,e.verbose)]:[],...o.map(i=>Ae(i,e.verbose,e.now)),ve(de(e))]}function de(e){let{result:t}=e,n=t.sources.deterministic!==null||t.sources.agent!==null,s=b(t.checks),o=t.sources.deterministic?.document,i=t.blocking.blockedChecks>0,r=t.checks.filter(p).length;return{type:le(t.checks,s,n),headline:pe(t.checks,s,n),...t.filter&&n?{filterLine:`Showing ${t.checks.length} of ${t.allChecks.length} checks (--check-id).`}:{},checksWithFindings:t.checks.filter(c=>d(c).length>0).map(fe),otherChecks:ge(s),...r>0?{staleAgentResults:ae(r)}:{},...o?{coverage:be(o)}:{},scopeLines:me(t.sources),...t.scopeDiffers?{scopeNote:oe}:{},resultsFiles:{directory:t.resultsDirectory,rows:f.map(c=>ye(c,t.sources[c]?.document,e.now))},...i?{blocking:`${u(t.blocking.blockedChecks,"check")} at or above ${t.blocking.level} (--blocking ${t.blocking.level}).`}:{nextSteps:ke(t,s,n,r,e.commands)}}}function ae(e){let t=e===1?"shows":"show";return`${u(e,"check")} ${t} both sources because the agent results are older than the deterministic results.`}function le(e,t,n){return n?e.some(s=>s.severity==="high"&&d(s).length>0)?"error":t.withFindings>0||t.unresolved>0?"warning":"success":"info"}function pe(e,t,n){if(!n)return"No app security check results to review.";if(t.withFindings===0)return`No findings in ${u(e.length,"check")}.`;let s=t.unresolved>0?` ${u(t.unresolved,"check")} unresolved.`:"";return`${U(t)}.${s}`}function fe(e){return{severity:Y[e.severity],id:e.id,counts:he(e)}}function he(e){let t=d(e);return f.map(n=>[n,t.filter(s=>s.source===n).length]).filter(([,n])=>n>0).map(([n,s])=>`${s} ${n}`).join(", ")}function ge(e){return[h(W(e)),V(e)].filter(t=>t!=="")}function V(e){return h([e.suppressed>0?`${u(e.suppressed,"finding")} suppressed`:void 0,e.superseded>0?`${u(e.superseded,"finding")} superseded`:void 0])}function m(e){return V(b([e]))}function h(e){return e.filter(t=>t!==void 0).join(" \xB7 ")}function be(e){let t=e.coverage.files_skipped,{too_large:n,unreadable:s}=L(t),o=[n>0?`${n} too large`:void 0,s>0?`${s} unreadable`:void 0].filter(a=>a!==void 0),i=t.length===0?"none skipped":`${t.length} skipped (${o.join(", ")})`,r=e.detection.languages.filter(a=>a.support==="unsupported"),c=r.length===0?"":` Unsupported ${r.length===1?"language":"languages"}: ${r.map(a=>`${a.name} (${u(a.files.length,"file")})`).join(", ")}.`;return`Deterministic coverage: ${u(e.coverage.files_scanned,"file")} scanned, ${i}.${c}`}function K(e){let t=[...e.include_dirs.map(n=>`--include-dir ${n}`),...e.excludes.map(n=>`--exclude ${n}`),...e.no_git_ignore?["--no-git-ignore"]:[]];return t.length===0?"none":t.join(" ")}function me({deterministic:e,agent:t}){return[...e?[`Scan directories: ${e.document.coverage.scan_directories.map(({directory:n})=>n).join(", ")}`,`Scan scope: ${K(e.document.coverage.scope)}`]:[],...t?[`Scope reported by the agent: ${K(t.document.scope)}`]:[]]}function ye(e,t,n){let s=ie[e];return t?{name:s,updated:z(t.generated_at,n),engine:t.engine.version}:{name:s,updated:"not found"}}function z(e,t){let n=Date.parse(e);return Number.isNaN(n)?"unknown":w(new Date(n),t)}function ke(e,t,n,s,o){let i={command:O(o.scan)};if(!n)return[["Run",i,"or have your coding agent run it."]];let r=[];if(t.withFindings>0){let c=["Fix the issues, then run",i,"again."];e.sources.agent===null?r.push(c,"For a deeper review, have your agent run the same command and record its findings."):s>0?r.push(c):r.push([...c,"To refresh agent findings, have your agent run the command and record its findings."])}return s>0?r.push(["Agent results are older than the deterministic results. Have your coding agent run",i,"and record its findings again to refresh them."]):t.withFindings===0&&e.sources.agent===null&&r.push(["For a deeper review, have your coding agent run",i,{char:"."}]),r}function ve(e){let t=[];return e.filterLine&&t.push({body:{subdued:e.filterLine}}),e.checksWithFindings.length>0&&t.push({title:"Checks with findings",body:{tabularData:e.checksWithFindings.map(n=>[n.severity,n.id,n.counts]),firstColumnSubdued:!0}}),e.otherChecks.length>0&&t.push({title:"Other checks",body:e.otherChecks.join(`
|
|
2
2
|
`)}),e.staleAgentResults&&t.push({body:e.staleAgentResults}),e.coverage&&t.push({body:{subdued:e.coverage}}),e.scopeLines.length>0&&t.push({body:{subdued:e.scopeLines.join(`
|
|
3
|
-
`)}}),e.scopeNote&&t.push({body:e.scopeNote}),t.push({title:`Results files in ${e.resultsFiles.directory}`,body:{tabularData:[["",{subdued:"Updated"},{subdued:"Engine"}],...e.resultsFiles.rows.map(we)]}}),e.blocking===void 0?e.nextSteps.length>0&&t.push({title:"Next steps",body:{list:{items:e.nextSteps}}}):t.push({title:"Blocking",body:e.blocking}),{type:e.type,options:{headline:e.headline,customSections:t}}}function we(e){return e.engine===void 0?[e.name,{subdued:e.updated}]:[e.name,e.updated,e.engine]}function Se(e,t){return{type:"warning",options:{headline:`${u(e.length,"check")} unresolved.`,customSections:e.flatMap(n=>[{title:`${n.id} \xB7 ${n.title}`,body:{tabularData:X(n,{withDispositions:!0}),firstColumnSubdued:!0}},...t?n.findings.map(s=>
|
|
3
|
+
`)}}),e.scopeNote&&t.push({body:e.scopeNote}),t.push({title:`Results files in ${e.resultsFiles.directory}`,body:{tabularData:[["",{subdued:"Updated"},{subdued:"Engine"}],...e.resultsFiles.rows.map(we)]}}),e.blocking===void 0?e.nextSteps.length>0&&t.push({title:"Next steps",body:{list:{items:e.nextSteps}}}):t.push({title:"Blocking",body:e.blocking}),{type:e.type,options:{headline:e.headline,customSections:t}}}function we(e){return e.engine===void 0?[e.name,{subdued:e.updated}]:[e.name,e.updated,e.engine]}function Se(e,t){return{type:"warning",options:{headline:`${u(e.length,"check")} unresolved.`,customSections:e.flatMap(n=>[{title:`${n.id} \xB7 ${n.title}`,body:{tabularData:X(n,{withDispositions:!0}),firstColumnSubdued:!0}},...t?n.findings.map(s=>y(s,t,`${n.id} \xB7 `)):[]])}}}function $e(e,t){let n=e.filter(x).length,s=e.length-n;return{type:"info",options:{headline:[n>0?`${u(n,"check")} passed.`:void 0,s>0?`${u(s,"check")} not applicable.`:void 0].filter(i=>i!==void 0).join(" "),customSections:[{body:{tabularData:e.map(Ce)}},...t?e.flatMap(i=>i.findings.map(r=>y(r,t,`${i.id} \xB7 `))):[]]}}}function Ce(e){let t=m(e);return[e.id,h([ne[e.status],t===""?void 0:t,p(e)?q:void 0])]}function Ae(e,t,n){let s=m(e),o=t?e.findings:d(e);return{type:e.severity==="high"?"error":"warning",options:{headline:`${Y[e.severity]} \xB7 ${e.id} \xB7 ${e.title}`,...s===""?{}:{body:{subdued:s}},...e.docs_url?{link:{label:`${e.id} on shopify.dev`,url:e.docs_url}}:{},customSections:[..._e(e,n),...o.map(i=>y(i,t))]}}}function _e(e,t){if(p(e))return[{body:{tabularData:f.flatMap(r=>{let c=e.by_source[r];return c?[[r,Q(c),z(c.generated_at,t)]]:[]}),firstColumnSubdued:!0}},{body:{subdued:re}}];let{deterministic:n,agent:s}=e.by_source;return n!==null&&s!==null&&n.status!==s.status?[{body:{tabularData:X(e,{withDispositions:!1}),firstColumnSubdued:!0}}]:[]}function X(e,t){let n=p(e),s=f.flatMap(i=>{let r=e.by_source[i];if(!r)return[];let c=n&&i==="agent"?q:void 0;return[[i,h([Q(r),c])]]}),o=t.withDispositions?m(e):"";return o===""?s:[...s,["findings",o]]}function Q(e){let t=se[e.status];return e.reason?`${t} \u2014 ${e.reason.message}`:t}function y(e,t,n=""){let s=e.disposition==="active"?"":` (${e.disposition})`,o=[e.message];if(e.snippet&&o.push({subdued:`
|
|
4
4
|
Code: ${e.snippet}`}),e.source==="deterministic"){e.fix&&o.push({subdued:`
|
|
5
5
|
Fix: ${e.fix.description}`});let i=e.fix?.guide;i&&o.push({subdued:`
|
|
6
6
|
Guide: ${i}`})}else e.confidence&&o.push({subdued:`
|
|
7
7
|
Confidence: ${e.confidence}`}),e.reasoning&&o.push({subdued:`
|
|
8
|
-
Reasoning: ${t?e.reasoning:
|
|
8
|
+
Reasoning: ${t?e.reasoning:Re(e.reasoning)}`});return t&&(o.push(...e.evidence.map(i=>({subdued:`
|
|
9
9
|
Evidence: ${G(i.location)}${i.quote?` \u2014 ${i.quote}`:""}`}))),I(e,e.source)&&e.suppression&&o.push({subdued:`
|
|
10
|
-
Suppressed: ${e.suppression.justification}`})),{title:`${n}${e.source} \xB7 ${G(e.location)}${s}`,body:o}}function
|
|
10
|
+
Suppressed: ${e.suppression.justification}`})),{title:`${n}${e.source} \xB7 ${G(e.location)}${s}`,body:o}}function Re(e){let t=e.split(`
|
|
11
11
|
`);return t.length<=H?e:`${t.slice(0,H).join(`
|
|
12
|
-
`)}\u2026`}function G(e){return e.line===void 0?e.file:`${e.file}:${e.line}`}var
|
|
12
|
+
`)}\u2026`}function G(e){return e.line===void 0?e.file:`${e.file}:${e.line}`}var Fe={resolveSelection:j,loadResults:P,render:J,now:()=>new Date,setExitCode:e=>{process.exitCode=e},recordMetadata:M};function Ee(e){return e.blocking.blockedChecks>0}function De(e,t){let n=t.checkIds.length>0?{checkIds:t.checkIds}:null,s=e.sources.deterministic!==null||e.sources.agent!==null;n&&s&&Le(n.checkIds,e.checks);let o=n?e.checks.filter(i=>n.checkIds.includes(i.id)):e.checks;return{resultsDirectory:t.resultsDirectory,sources:e.sources,allChecks:e.checks,checks:o,filter:n,scopeDiffers:xe(e.sources),blocking:{level:t.blocking,blockedChecks:Ie(o,t.blocking)}}}function xe({deterministic:e,agent:t}){return!e||!t?!1:JSON.stringify(e.document.coverage.scope)!==JSON.stringify(t.document.scope)}function Ie(e,t){return t==="none"?0:e.filter(n=>d(n).length>0&&g[n.severity]>=g[t]).length}function Le(e,t){let n=new Set(t.map(i=>i.id)),s=e.filter(i=>!n.has(i));if(s.length===0)return;let o=s.length===1?"check ID":"check IDs";throw new _(`Unknown ${o}: ${s.join(", ")}.`,"Pass --check-id with one of the checks in the results files.",[],[{title:"Available check IDs",body:{list:{items:t.map(i=>i.id)}}}])}async function k(e,t=Fe){let n=await t.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!1,validateClientIdFlag:!0}),s=await t.loadResults(n,e.directory),o=De(s,{resultsDirectory:N(n.appDirectory,T(n)).resultsDirectory,checkIds:e.checkIds,blocking:e.blocking});if(o.sources.deterministic!==null||o.sources.agent!==null){let i=o.allChecks.reduce((r,c)=>r+d(c).length,0);await t.recordMetadata({num_security_findings:i})}t.render({result:o,verbose:e.verbose,now:t.now(),commands:B(n,e.directory,s.sources.deterministic?.document.coverage.scope)}),Ee(o)&&t.setExitCode(1)}var Z=ee(te(),1);var v=class e extends R{static summary="Show the combined app security check results.";static descriptionWithMarkdown="Combines the deterministic results (`deterministic-findings.json`, written by `shopify app security check`) with the recorded agent results (`agent-findings.json`, written by `shopify app security record`) and shows one view of every check: its findings, status and source. Both files are in the results directory, `.shopify/app-security/<results key>/`. `--client-id` is checked against your Shopify account before any results are read, so it needs you to be logged in.\n\nThe summary shows the scan directories and the scope of the latest scan, and the scope the agent reported. It notes when the agent findings were recorded for a different scope than the latest scan; that doesn't change the exit code.\n\nThe agent results are optional. Use `--check-id` to narrow the review to specific checks, `--verbose` for full reasoning, evidence and suppressed findings, and `--blocking` to exit with code 1 when a check with findings is at or above a severity.\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 description=this.descriptionForHelp();static flags={...F,...D,"check-id":Z.Flags.string({description:"Show only this check. Repeat the flag to show several checks.",env:"SHOPIFY_FLAG_CHECK_ID",multiple:!0}),...E};async run(){let{flags:t}=await this.parse(e);await k({directory:t.path,configName:t.config,clientId:t["client-id"],withoutAppConfig:!!t["without-app-config"],verbose:!!t.verbose,checkIds:t["check-id"]??[],blocking:t.blocking})}};export{v as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-PWS4VFSD.js";import{a as f}from"./chunk-PO5T44H3.js";import{Da as c,Ha as s}from"./chunk-UNHT4ZFP.js";import{b as r,f as a}from"./chunk-NU5WLZ6Y.js";import{i as n}from"./chunk-Q37WAD6F.js";import{b as u}from"./chunk-I3J63RFV.js";import{e as h,g as t}from"./chunk-VKWPEFWQ.js";t();var i=h(u(),1);var o=class l extends d{static summary="Fetch your app configuration from the Developer Dashboard.";static descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
|
|
2
2
|
|
|
3
3
|
For more information on the format of the created TOML configuration file, refer to the [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration) page.
|
|
4
4
|
`;static description=this.descriptionForHelp();static flags={...r,...f,config:i.Flags.string({hidden:!1,char:"c",description:"The name of the local app configuration to read and overwrite. Use --file-name instead when specifying --client-id.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"organization-id":i.Flags.string({hidden:!0,env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]}),"client-id":a(i.Flags.string({hidden:!1,description:"The Client ID of the remote app to link. Use --file-name to specify the destination configuration file.",env:"SHOPIFY_FLAG_CLIENT_ID"})),"file-name":i.Flags.string({hidden:!1,description:"The name of the app configuration file to create or overwrite. Requires --force to overwrite an existing file.",env:"SHOPIFY_FLAG_APP_CONFIG_FILE_NAME",exclusive:["config"]}),force:i.Flags.boolean({hidden:!1,description:"Overwrite an existing configuration file without prompting.",env:"SHOPIFY_FLAG_FORCE",dependsOn:["file-name"]})};async run(){let{flags:e}=await this.parse(l);if(e.config!==void 0&&e["client-id"]!==void 0)throw new n("The --config and --client-id flags can't be used together.","Use --file-name instead of --config to choose the configuration file to create or overwrite.");let p={directory:e.path,apiKey:e["client-id"],organizationId:e["organization-id"],configName:e.config,fileName:e["file-name"],force:e.force??!1},g=await c(p),{app:m}=await s({directory:e.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:g.configFileName});return{app:m}}};export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as tx}from"./chunk-IWOTLFOY.js";import{a as b$}from"./chunk-FFSDGRAN.js";import{d as Zw,ta as v$,ua as ex}from"./chunk-
|
|
1
|
+
import{a as tx}from"./chunk-IWOTLFOY.js";import{a as b$}from"./chunk-FFSDGRAN.js";import{d as Zw,ta as v$,ua as ex}from"./chunk-3V4VL3SD.js";import{q as Xw}from"./chunk-TR4OWSEX.js";import{a as oe,b as we,c as x,d as Oy,e as Ia,f as Py,g as p}from"./chunk-VKWPEFWQ.js";var qy=x(Ny=>{"use strict";p();Object.defineProperty(Ny,"__esModule",{value:!0});Ny.deepGet=k$;function k$(e,t){return t.reduce((r,n)=>r?.[n],e)}});var rx=x(fs=>{"use strict";p();Object.defineProperty(fs,"__esModule",{value:!0});fs.first=S$;fs.last=T$;fs.findLast=w$;fs.findLastIndex=Ly;fs.findLastAndIndex=x$;function S$(e){return e[0]}function T$(e,t=0){return e[e.length-1+t]}function w$(e,t){return e[Ly(e,t)]}function Ly(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}function x$(e,t){let r=Ly(e,t);return[e[r],r]}});var Cy=x((Ope,nx)=>{p();var E$={}.toString;nx.exports=Array.isArray||function(e){return E$.call(e)=="[object Array]"}});var sx=x((Npe,ix)=>{"use strict";p();var A$=Cy();ix.exports=function(t){return t!=null&&typeof t=="object"&&A$(t)===!1}});var Iy=x((Cpe,ax)=>{"use strict";p();var O$=Cy(),P$=sx(),Lpe=Array.prototype.slice;ax.exports=Ma;function Ma(e,t){if(!(this instanceof Ma))return typeof t=="number"?new Ma(e).fromIndex(t):new Ma(e,t);this.str=e||"",this.lineToIndex=N$(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}Ma.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=q$(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};Ma.prototype.toIndex=function(e,t){if(typeof t>"u")return O$(e)&&e.length>=2?this.toIndex(e[0],e[1]):P$(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var r=this.lineToIndex[e],n=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<n-r)return r+t}return-1};function N$(e){for(var t=e.split(`
|
|
2
2
|
`),r=new Array(t.length),n=0,i=0,s=t.length;i<s;i++)r[i]=n,n+=t[i].length+1;return r}function q$(e,t){if(e>=t[t.length-1])return t.length-1;for(var r=0,n=t.length-2,i;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}return r}});var cx=x(Ra=>{"use strict";p();var L$=Ra&&Ra.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.getPosition=C$;Ra.getOffset=I$;var ox=L$(Iy());function C$(e,t){let r=(0,ox.default)(e,{origin:0}).fromIndex(Math.min(t,e.length-1));return{index:t,line:r?r.line:-1,character:r?r.col:-1}}function I$(e,t,r){return(0,ox.default)(e,{origin:1}).toIndex(t,r)}});var df=x(pf=>{"use strict";p();Object.defineProperty(pf,"__esModule",{value:!0});pf.isError=R$;pf.asError=D$;var M$={1:"Invalid symbol found in the input.",2:"Invalid number format detected.",3:"Property name expected but not found.",4:"A value was expected but not found.",5:"Colon `:` expected after the property name.",6:"Comma `,` expected between elements and properties.",7:"Closing brace `}` expected.",8:"Closing bracket `]` expected.",9:"End of file expected.",10:"Invalid comment token found.",11:"Unexpected end of comment.",12:"Unexpected end of string.",13:"Unexpected end of number.",14:"Invalid Unicode escape sequence.",15:"Invalid escape character found.",16:"Invalid character found in the input."};function R$(e){return e instanceof Error}function D$(e){return e instanceof Error?e:typeof e=="string"?new Error(e):e&&typeof e=="object"&&"error"in e?new Error(j$(e)):e&&typeof e.toString=="function"?new Error(e.toString()):new Error("An unknown error occurred")}function j$(e){return M$[e.error]||"Unknown parse error."}});var Ry=x(My=>{"use strict";p();Object.defineProperty(My,"__esModule",{value:!0});My.assertNever=F$;function F$(e){throw new Error(`We should never reach this code, you are missing a case for ${e}`)}});var jy=x(hf=>{"use strict";p();Object.defineProperty(hf,"__esModule",{value:!0});hf.memo=B$;hf.memoize=V$;var Dy=Symbol("Unset");function B$(e){let t=Dy,r=(...n)=>(t===Dy&&(t=e(...n)),t);return r.clearCache=()=>{t=Dy},r}function V$(e,t){let r={},n=(...i)=>{let s=t(...i);return r[s]||(r[s]=e(...i)),r[s]};return n.force=(...i)=>(n.invalidate(...i),n(...i)),n.invalidate=(...i)=>{let s=t(...i);delete r[s]},n.clearCache=()=>{r={}},n}});var By=x(Fy=>{"use strict";p();Object.defineProperty(Fy,"__esModule",{value:!0});Fy.indexBy=$$;function $$(e,t){let r={};for(let n of t)r[e(n)]=n;return r}});function ps(e,t=!1){let r=e.length,n=0,i="",s=0,a=16,o=0,c=0,l=0,f=0,m=0;function d(T,y){let A=0,O=0;for(;A<T||!y;){let P=e.charCodeAt(n);if(P>=48&&P<=57)O=O*16+P-48;else if(P>=65&&P<=70)O=O*16+P-65+10;else if(P>=97&&P<=102)O=O*16+P-97+10;else break;n++,A++}return A<T&&(O=-1),O}function g(T){n=T,i="",s=0,a=16,m=0}function v(){let T=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&Da(e.charCodeAt(n)))for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;else return m=3,e.substring(T,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&Da(e.charCodeAt(n))){for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;y=n}else m=3;return e.substring(T,y)}function b(){let T="",y=n;for(;;){if(n>=r){T+=e.substring(y,n),m=2;break}let A=e.charCodeAt(n);if(A===34){T+=e.substring(y,n),n++;break}if(A===92){if(T+=e.substring(y,n),n++,n>=r){m=2;break}switch(e.charCodeAt(n++)){case 34:T+='"';break;case 92:T+="\\";break;case 47:T+="/";break;case 98:T+="\b";break;case 102:T+="\f";break;case 110:T+=`
|
|
3
3
|
`;break;case 114:T+="\r";break;case 116:T+=" ";break;case 117:let P=d(4,!0);P>=0?T+=String.fromCharCode(P):m=4;break;default:m=5}y=n;continue}if(A>=0&&A<=31)if(xc(A)){T+=e.substring(y,n),m=2;break}else m=6;n++}return T}function _(){if(i="",m=0,s=n,c=o,f=l,n>=r)return s=r,a=17;let T=e.charCodeAt(n);if(Vy(T)){do n++,i+=String.fromCharCode(T),T=e.charCodeAt(n);while(Vy(T));return a=15}if(xc(T))return n++,i+=String.fromCharCode(T),T===13&&e.charCodeAt(n)===10&&(n++,i+=`
|
|
4
4
|
`),o++,l=n,a=14;switch(T){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=b(),a=10;case 47:let y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!xc(e.charCodeAt(n));)n++;return i=e.substring(y,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;let A=r-1,O=!1;for(;n<A;){let P=e.charCodeAt(n);if(P===42&&e.charCodeAt(n+1)===47){n+=2,O=!0;break}n++,xc(P)&&(P===13&&e.charCodeAt(n)===10&&n++,o++,l=n)}return O||(n++,m=1),i=e.substring(y,n),a=13}return i+=String.fromCharCode(T),n++,a=16;case 45:if(i+=String.fromCharCode(T),n++,n===r||!Da(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=v(),a=11;default:for(;n<r&&k(T);)n++,T=e.charCodeAt(n);if(s!==n){switch(i=e.substring(s,n),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(T),n++,a=16}}function k(T){if(Vy(T)||xc(T))return!1;switch(T){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function w(){let T;do T=_();while(T>=12&&T<=15);return T}return{setPosition:g,getPosition:()=>n,scan:t?w:_,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>n-s,getTokenStartLine:()=>c,getTokenStartCharacter:()=>s-f,getTokenError:()=>m}}function Vy(e){return e===32||e===9}function xc(e){return e===10||e===13}function Da(e){return e>=48&&e<=57}var ux,mf=we(()=>{"use strict";p();(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ux||(ux={}))});var ur,ja,$y,lx,fx=we(()=>{p();ur=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),ja=200,$y={" ":{"\n":new Array(ja).fill(0).map((e,t)=>`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-NYYXH2SX.js";import{K as H}from"./chunk-UNHT4ZFP.js";import{a as q}from"./chunk-VJEKDBGZ.js";import{q as I}from"./chunk-Y743UVBS.js";import{a as O,o as D,w as k}from"./chunk-47IQIIFX.js";import{i as N}from"./chunk-Q37WAD6F.js";import{Aa as g,Ga as F,Nb as h,Xa as A,Ya as P,fb as y,ra as R}from"./chunk-UWI76E2L.js";import{g as S}from"./chunk-UEBUGSBT.js";import{c as x,d as E,f as v,h as C}from"./chunk-6IDEDOXW.js";import{e as X,g as m}from"./chunk-VKWPEFWQ.js";m();function w(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=X(q(),1),G=200,K=6e4,L=200,Q=500,_=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=G){this.app=t,this.options=e,this.debouncedEmit=k(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(n=>x(this.app.directory,n));await Promise.all(e.map(async n=>{try{await g(n.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:o}=await import("./chokidar-5RWEYTNQ.js");this.watcher=o.watch(s,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),h(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>E(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let o of i){let n=E(o);e.add(n);let a=this.extensionWatchedFiles.get(n)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(n,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
|
|
2
2
|
`)}`;h(e,this.options.stdout),this.onChangeCallback?.(t)};pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(e=>e.path===t.path&&e.type===t.type&&e.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(E(t.path))?.has(t.extensionHandle))return!1;let s=(t.extensionHandle?this.app.realExtensions.find(o=>o.handle===t.extensionHandle):void 0)?.watchedFiles(),i=this.ignored[t.extensionPath];if(s)return!s.some(n=>y(t.path,n));if(i){let o=v(t.extensionPath,t.path);return i.ignores(o)}return!1}handleFileEvent=(t,e)=>{let s=w(),i=E(e),o=e===this.app.configPath,n=e.endsWith(".extension.toml");if(h(`\u{1F300}: ${t} ${e.replace(this.app.directory,"")}
|
|
3
3
|
`),o)this.handleEventForExtension(t,e,this.app.directory,s,!1);else{let a=this.extensionWatchedFiles.get(i),d=a===void 0||a.size===0;if(d&&t==="add"&&!n){let c=this.discoverFileOwners(i);c.size>0&&(this.extensionWatchedFiles.set(i,c),a=c,d=!1)}if(d&&!n&&!o){h(`\u{1F300}: File ${e} is not watched by any extension`,this.options.stdout);return}for(let c of a??[]){let l=this.app.realExtensions.find(f=>f.handle===c),u=l?E(l.directory):this.app.directory;this.handleEventForExtension(t,e,u,s,!1,c)}d&&this.handleEventForExtension(t,e,this.app.directory,s,!0)}this.debouncedEmit()};discoverFileOwners(t){let e=new Set;for(let s of this.app.realExtensions){let i=E(s.directory);i!==this.app.directory&&t.startsWith(`${i}/`)&&this.pathMatchesWatchPatterns(t,s)&&e.add(s.handle)}return e}pathMatchesWatchPatterns(t,e){let{paths:s,ignore:i}=e.watchPatterns(),o=v(E(e.directory),t);return i.some(n=>y(o,n))?!1:s.some(n=>y(o,n))}handleEventForExtension(t,e,s,i,o,n){let a=e.endsWith(".extension.toml"),d=e===this.app.configPath;switch(t){case"change":if(o)break;a||d?this.pushEvent({type:"extensions_config_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i}):this.pushEvent({type:"file_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i});break;case"add":if(!a){this.pushEvent({type:"file_created",path:e,extensionPath:s,extensionHandle:n,startTime:i});break}let c=0,l=C(e),u=setInterval(()=>{P(x(l,I.lockFile))?(h(`Waiting for extension to complete creation: ${e}
|
|
4
4
|
`),c+=L):(clearInterval(u),this.extensionPaths.push(l),this.pushEvent({type:"extension_folder_created",path:l,extensionPath:s,startTime:i}),this.debouncedEmit()),c>=K&&(clearInterval(u),this.options.stderr.write(`Error loading new extension at path: ${e}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-7VAKNVFD.js";import{b as r}from"./chunk-UWI76E2L.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=r.object({title:r.string().optional(),body:r.union([r.string(),r.array(r.array(r.string()))])}).strict(),o={message:r.string(),code:r.string().min(1).optional().describe("A stable error code, included only when known."),tryMessage:r.string().optional(),nextSteps:r.array(r.string()).optional(),customSections:r.array(e).optional(),details:r.unknown().optional().describe("Selected domain details, preserving native API payloads such as GraphQL errors, extensions, and data.")},s=r.object({type:r.literal("abort"),...o}).strict(),a=r.object({type:r.literal("bug"),...o,stack:r.string().optional()}).strict(),i=r.object({type:r.literal("external"),...o,command:r.string(),args:r.array(r.string())}).strict(),c=r.union([s,a,i]),m=r.object({error:c}).strict(),d=n({name:"JsonErrorDocument",schema:m,definitions:{JsonError:c,JsonErrorCustomSection:e,JsonAbortError:s,JsonBugError:a,JsonExternalError:i}});export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,g as c,i as p,j as f}from"./chunk-
|
|
1
|
+
import{b as a,g as c,i as p,j as f}from"./chunk-3LHE4GIX.js";import{l as h}from"./chunk-Q37WAD6F.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();i();function d(n){let e=/[^\p{Letter}\p{Number}\p{Mark}-]/gu;return n.replace(e,"-")}import{randomBytes as l}from"crypto";import{hostname as g}from"os";var T=50;function m(n){let e=g().split(".")[0],r=l(3).toString("hex"),t=`${n} ()`,s=T-t.length-r.length-1,o=d(`${r}-${e.substring(0,s)}`);return`${n} (${o})`}var u=class{adminSession;themeId;constructor(e){this.adminSession=e}async findOrCreate(e,r){let t=await this.fetch(e,r);return t?this.setTheme(t.id.toString()):t=await this.create(r,e),t}async fetch(e,r){if(!this.themeId&&!e)return;let t=e&&r===a?await p(e,this.adminSession):await c(parseInt(this.themeId,10),this.adminSession);return t||this.removeTheme(),t}generateThemeName(e){return m(e)}async create(e,r){let t=r??m(this.context),s=e??a,o=await f({name:t,role:s},this.adminSession);if(!o)throw new h(`Could not create theme with name "${t}" and role "${s}"`);return this.setTheme(o.id.toString()),o}};export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-L4DFMMOI.js";import{b as p}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-L4DFMMOI.js";import{b as p}from"./chunk-FOAV642V.js";import{b as C}from"./chunk-I3J63RFV.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-R3UAQN7T.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-3UBH7Q7R.js"),r=await import("./lib-55QUD4AJ.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-SS4GDJTQ.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-4VW3AV2G.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-FNPICAAH.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-M4XHUTQR.js"),{moduleDirectory:r}=await import("./path-CPAYTWQW.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-54YJCIDK.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as B}from"./chunk-
|
|
1
|
+
import{P as B}from"./chunk-3V4VL3SD.js";import{u as O}from"./chunk-47IQIIFX.js";import{J as w,j as m}from"./chunk-UWI76E2L.js";import{c as g,e as s,g as o}from"./chunk-VKWPEFWQ.js";var f=g((Q,c)=>{o();function j(r,e,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;){var u=r[a];e(n,u,t(u),r)}return n}c.exports=j});var A=g((S,h)=>{o();var l=O();function E(r,e,t,n){return l(r,function(a,i,u){e(n,a,t(a),u)}),n}h.exports=E});var p=g((U,q)=>{o();var G=f(),I=A(),V=w(),C=m();function D(r,e){return function(t,n){var a=C(t)?G:I,i=e?e():{};return a(t,r,V(n,2),i)}}q.exports=D});var x=g((X,v)=>{o();var F=B(),H=p(),J=Object.prototype,K=J.hasOwnProperty,L=H(function(r,e,t){K.call(r,t)?r[t].push(e):F(r,t,[e])});v.exports=L});var y=g((Z,b)=>{o();var M=p(),N=M(function(r,e,t){r[t?0:1].push(e)},function(){return[[],[]]});b.exports=N});o();var P=s(x()),d=s(y());function $(r,e){return(0,P.default)(r,e)}function k(r,e){return(0,d.default)(r,e)}export{$ as a,k as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as H,i as _}from"./chunk-
|
|
1
|
+
import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as H,i as _}from"./chunk-FQL2WEKX.js";import{a as I}from"./chunk-PWS4VFSD.js";import{a as b}from"./chunk-PO5T44H3.js";import{Ha as T,ia as P}from"./chunk-UNHT4ZFP.js";import{f as l}from"./chunk-NU5WLZ6Y.js";import{D as p,F as g,J as v}from"./chunk-47IQIIFX.js";import{Lb as h,Ob as m,Qb as w}from"./chunk-UWI76E2L.js";import{b as G}from"./chunk-I3J63RFV.js";import{i as y}from"./chunk-6IDEDOXW.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function M(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function V(e){let t=e.map(o=>({label:o,value:o}));return await g({message:"Webhook Topic",choices:t})}async function C(e){return p({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function R(){return p({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function D(e){return(await v({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!k(o,e))return`Invalid address.
|
|
2
2
|
${d(e)}`}})).trim()}function U(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function d(e){return U(e).map(t=>` \xB7 ${w(t)}`).join(`
|
|
3
3
|
`)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:c}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(P({appName:s.title,configFile:y(c.configPath)}),{clientSecret:s.apiSecretKeys.find(f=>f.secret).secret,apiKey:s.apiKey})}async function O(e,t,r){let o=await A(e,r);return t?L(t,o):C(o)}async function B(e,t,r,o){let s=await M(e,t,o);return r?H(r,t,s):V(s)}async function N(e,t){let r=e??_(t)??await R(),o=t??await D(r);return F(o,r)}async function Y(e){let t=await z(e);await W(t)}async function z(e){let t=await O(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await B(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await N(e.deliveryMethod,e.address),c=await x(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:c.apiKey,clientSecret:c.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function W(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await S(e.developerPlatformClient,t,e.organizationId);if(!r.success){m(`Request errors:
|
|
4
4
|
${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.address,r.samplePayload,r.headers)){h("Localhost delivery sucessful");return}m("Localhost delivery failed");return}r.samplePayload===JSON.stringify({})&&h("Webhook has been enqueued for delivery")}function K(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as s}from"./chunk-
|
|
1
|
+
import{b as s}from"./chunk-4ZNBEMRT.js";import{e as w}from"./chunk-QTLGMJDW.js";import{C,E as x,y as a}from"./chunk-47IQIIFX.js";import{i as S}from"./chunk-Q37WAD6F.js";import{Nb as I}from"./chunk-UWI76E2L.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();n();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};n();function p(o=v()){return!!o.get("autocorrectEnabled")}function y(o,e=v()){e.set("autocorrectEnabled",o)}function v(){return A??=new w({projectName:"did-you-mean"}),A}var A;var u=class extends s{static summary="Enable autocorrect. Off by default.";static descriptionWithMarkdown=`Enable autocorrect. Off by default.
|
|
2
2
|
|
|
3
3
|
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,b as f,c as g,d as x,g as C}from"./chunk-
|
|
1
|
+
import{a as d,b as f,c as g,d as x,g as C}from"./chunk-RK2V6OIJ.js";import{a as c}from"./chunk-PWS4VFSD.js";import{a as l}from"./chunk-PO5T44H3.js";import{Ha as m}from"./chunk-UNHT4ZFP.js";import{b as p}from"./chunk-NU5WLZ6Y.js";import{z as s}from"./chunk-47IQIIFX.js";import{b as I}from"./chunk-I3J63RFV.js";import{e as y,g as a}from"./chunk-VKWPEFWQ.js";a();var h=y(I(),1);var o=class u extends c{static description="Import dashboard-managed extensions into your app.";static flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};async run(){let{flags:i}=await this.parse(u),e=await m({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=d(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let r=await f(n);await x({...e,extensions:t,extensionTypes:r.extensionTypes,buildExtensionConfig:r.buildExtensionConfig})}return{app:e.app}}};export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as gI,e as nA,f as mI,h as oA,l as y7,n as Bu,s as $5,u as iA,v as lA,w as cA}from"./chunk-Q7BOSHWX.js";import{a as fI}from"./chunk-
|
|
1
|
+
import{c as gI,e as nA,f as mI,h as oA,l as y7,n as Bu,s as $5,u as iA,v as lA,w as cA}from"./chunk-Q7BOSHWX.js";import{a as fI}from"./chunk-7HWMURCW.js";import{a as aA}from"./chunk-UNHT4ZFP.js";import{c as tA,e as rA}from"./chunk-WLWHCUPZ.js";import{O as pCe,b as mCe,j as R4,u as tf,v as vI}from"./chunk-3V4VL3SD.js";import{a as jF}from"./chunk-XUUIBSLW.js";import{d as b}from"./chunk-47IQIIFX.js";import{d as $F}from"./chunk-DYPZX7MW.js";import{i as eA}from"./chunk-Q37WAD6F.js";import{Nb as b7}from"./chunk-UWI76E2L.js";import{a as j5,c as m,e as ps,g as o}from"./chunk-VKWPEFWQ.js";var uA=m(Vi=>{"use strict";o();var bCe=b();function sA(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e1(){}var Gi={d:{f:e1,r:function(){throw Error(sA(522))},D:e1,C:e1,L:e1,m:e1,X:e1,S:e1,M:e1},p:0,findDOMNode:null},yCe=Symbol.for("react.portal");function ICe(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yCe,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}var rf=bCe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k4(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Vi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gi;Vi.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(sA(299));return ICe(e,t,null,r)};Vi.flushSync=function(e){var t=rf.T,r=Gi.p;try{if(rf.T=null,Gi.p=2,e)return e()}finally{rf.T=t,Gi.p=r,Gi.d.f()}};Vi.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Gi.d.C(e,t))};Vi.prefetchDNS=function(e){typeof e=="string"&&Gi.d.D(e)};Vi.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Gi.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:i}):r==="script"&&Gi.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Vi.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=k4(t.as,t.crossOrigin);Gi.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Gi.d.M(e)};Vi.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin);Gi.d.L(e,r,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Vi.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=k4(t.as,t.crossOrigin);Gi.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Gi.d.m(e)};Vi.requestFormReset=function(e){Gi.d.r(e)};Vi.unstable_batchedUpdates=function(e,t){return e(t)};Vi.useFormState=function(e,t,r){return rf.H.useFormState(e,t,r)};Vi.useFormStatus=function(){return rf.H.useHostTransitionStatus()};Vi.version="19.2.4"});var dA=m(Yi=>{"use strict";o();process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(y){return""+y}function r(y,S,E){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(w);var M=!1}catch{M=!0}return M&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),t(w)),{$$typeof:f,key:w==null?null:""+w,children:y,containerInfo:S,implementation:E}}function a(y,S){if(y==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function n(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function i(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y=="string"?JSON.stringify(y):typeof y=="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function u(){var y=I.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2
2
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
3
3
|
2. You might be breaking the Rules of Hooks
|
|
4
4
|
3. You might have more than one copy of React in the same app
|
|
@@ -4,4 +4,4 @@ import{a as Oo,b as vo,c as Br,d as Yr}from"./chunk-T7KHS6RF.js";import{b as yo}
|
|
|
4
4
|
`,e.proxy.authorization&&(s+="Proxy-Authorization: Basic "+Buffer.from(e.proxy.authorization).toString("base64")+`\r
|
|
5
5
|
`),s+=`\r
|
|
6
6
|
`,n.write(s)}},Al=Cr;xe.default=Al});var Ks=f(te=>{"use strict";i();Object.defineProperty(te,"__esModule",{value:!0});Object.defineProperty(te,"Agent",{enumerable:!0,get:function(){return Nl.default}});Object.defineProperty(te,"HttpProxyAgent",{enumerable:!0,get:function(){return Tl.default}});Object.defineProperty(te,"HttpsProxyAgent",{enumerable:!0,get:function(){return Ll.default}});var Nl=jr(Ie()),Tl=jr(zs()),Ll=jr(Ws());function jr(r){return r&&r.__esModule?r:{default:r}}});var Qs=f((Ce,Zs)=>{"use strict";i();Object.defineProperty(Ce,"__esModule",{value:!0});function Sl(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Js(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Il(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}function ql(r){function e(){r.apply(this,arguments)}return e.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r,e}var xl=(function(r){Il(e,r);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";Sl(this,e);var n=Js(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),Js(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(t).stack,writable:!0}),n)}return e})(ql(Error));Ce.default=xl;Zs.exports=Ce.default});var je=f(De=>{"use strict";i();Object.defineProperty(De,"__esModule",{value:!0});De.UnexpectedStateError=void 0;var Cl=Dl(Qs());function Dl(r){return r&&r.__esModule?r:{default:r}}var Gr=class extends Cl.default{constructor(e,t="UNEXPECTED_STATE_ERROR"){super(e),this.code=t}};De.UnexpectedStateError=Gr});var ro=f(Ge=>{"use strict";i();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.default=void 0;var jl=eo(N("http")),Gl=eo(N("https"));function eo(r){return r&&r.__esModule?r:{default:r}}var Ml=(r,e,t)=>(...n)=>{let s,o,a;return typeof n[0]=="string"||n[0]instanceof URL?(s=n[0],typeof n[1]=="function"?(o={},a=n[1]):(o={...n[1]},a=n[2])):(o={...n[0]},a=n[1]),t?o.agent=e:(o.agent||(o.agent=e),(o.agent===jl.default.globalAgent||o.agent===Gl.default.globalAgent)&&(o.agent=e)),s?r(s,o,a):r(o,a)},Ul=Ml;Ge.default=Ul});var no=f((Ad,Ur)=>{"use strict";i();var kl=yo(),Mr=new Map;function to(r,e){e={caseSensitive:!1,...e};let t=r+JSON.stringify(e);if(Mr.has(t))return Mr.get(t);let n=r[0]==="!";n&&(r=r.slice(1)),r=kl(r).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${r}$`,e.caseSensitive?"":"i");return s.negated=n,Mr.set(t,s),s}Ur.exports=(r,e,t)=>{if(!(Array.isArray(r)&&Array.isArray(e)))throw new TypeError(`Expected two arrays, got ${typeof r} ${typeof e}`);if(e.length===0)return r;let n=e[0][0]==="!";e=e.map(o=>to(o,t));let s=[];for(let o of r){let a=n;for(let c of e)c.test(o)&&(a=!c.negated);a&&s.push(o)}return s};Ur.exports.isMatch=(r,e,t)=>{let n=Array.isArray(r)?r:[r],s=Array.isArray(e)?e:[e];return n.some(o=>s.every(a=>{let c=to(a,t),l=c.test(o);return c.negated?!l:l}))}});var oo=f(Me=>{"use strict";i();Object.defineProperty(Me,"__esModule",{value:!0});Me.default=void 0;var Xl=N("url"),Fl=Hl(no()),so=je();function Hl(r){return r&&r.__esModule?r:{default:r}}var Vl=(r,e)=>{let t=(0,Xl.parse)(r),n=e.split(/[\s,]+/);for(let s of n){let o=s.replace(/^(?<leadingDot>\.)/,"*").match(/^(?<hostname>.+?)(?::(?<port>\d+))?$/);if(!o||!o.groups)throw new so.UnexpectedStateError("Invalid NO_PROXY pattern.");if(!o.groups.hostname)throw new so.UnexpectedStateError("NO_PROXY entry pattern must include hostname. Use * to match any hostname.");if(Fl.default.isMatch(t.hostname,o.groups.hostname)&&(!o.groups||!o.groups.port||t.port&&t.port===o.groups.port))return!0}return!1},Bl=Vl;Me.default=Bl});var io=f(Ue=>{"use strict";i();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=void 0;var Yl=N("url"),kr=je(),zl=r=>{let e=(0,Yl.parse)(r);if(e.query!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have query.");if(e.hash!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have hash.");if(e.protocol!=="http:")throw new kr.UnexpectedStateError('Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".');let t=80;return e.port&&(t=Number.parseInt(e.port,10)),{authorization:e.auth||null,hostname:e.hostname,port:t}},Wl=zl;Ue.default=Wl});var ao=f(ne=>{"use strict";i();Object.defineProperty(ne,"__esModule",{value:!0});Object.defineProperty(ne,"bindHttpMethod",{enumerable:!0,get:function(){return Kl.default}});Object.defineProperty(ne,"isUrlMatchingNoProxy",{enumerable:!0,get:function(){return Jl.default}});Object.defineProperty(ne,"parseProxyUrl",{enumerable:!0,get:function(){return Zl.default}});var Kl=Xr(ro()),Jl=Xr(oo()),Zl=Xr(io());function Xr(r){return r&&r.__esModule?r:{default:r}}});var Fr=f(ke=>{"use strict";i();Object.defineProperty(ke,"__esModule",{value:!0});ke.default=void 0;var Ql=ec(z());function ec(r){return r&&r.__esModule?r:{default:r}}var rc=Ql.default.child({namespace:"createProxyController"}),tc=["HTTP_PROXY","HTTPS_PROXY","NO_PROXY"],nc=()=>new Proxy({HTTP_PROXY:null,HTTPS_PROXY:null,NO_PROXY:null},{set:(r,e,t)=>{if(!tc.includes(e))throw new Error('Cannot set an unmapped property "'+e+'".');return r[e]=t,rc.info({change:{name:e,value:t},newConfiguration:r},"configuration changed"),!0}}),sc=nc;ke.default=sc});var po=f(Xe=>{"use strict";i();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=void 0;var X=se(N("http")),F=se(N("https")),oc=ue(),uo=se(Fs()),ic=se(z()),lo=Ks(),ac=je(),k=ao(),uc=se(Fr());function se(r){return r&&r.__esModule?r:{default:r}}var lc=X.default.get,cc=X.default.request,fc=F.default.get,pc=F.default.request,co=ic.default.child({namespace:"createGlobalProxyAgent"}),fo={environmentVariableNamespace:void 0,forceGlobalAgent:void 0,socketConnectionTimeout:6e4},dc=r=>{let e=Object.keys(r),t={};for(let n of e){let s=r[n];s!==void 0&&(t[n]=s)}return t},hc=r=>{let e=process.env;return{...{environmentVariableNamespace:typeof e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE=="string"?e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE:"GLOBAL_AGENT_",forceGlobalAgent:typeof e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT=="string"?(0,oc.boolean)(e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT):!0,socketConnectionTimeout:typeof e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT=="string"?Number.parseInt(e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT,10):fo.socketConnectionTimeout},...dc(r)}},gc=(r=fo)=>{let e=hc(r),t=(0,uc.default)();t.HTTP_PROXY=process.env[e.environmentVariableNamespace+"HTTP_PROXY"]||null,t.HTTPS_PROXY=process.env[e.environmentVariableNamespace+"HTTPS_PROXY"]||null,t.NO_PROXY=process.env[e.environmentVariableNamespace+"NO_PROXY"]||null,co.info({configuration:e,state:t},"global agent has been initialized");let n=p=>m=>p()?t.NO_PROXY?!(0,k.isUrlMatchingNoProxy)(m,t.NO_PROXY):!0:!1,s=p=>()=>{let m=p();if(!m)throw new ac.UnexpectedStateError("HTTP(S) proxy must be configured.");return(0,k.parseProxyUrl)(m)},o=()=>t.HTTP_PROXY,a=class extends lo.HttpProxyAgent{constructor(){super(()=>o(),n(o),s(o),X.default.globalAgent,e.socketConnectionTimeout)}},c=new a,l=()=>t.HTTPS_PROXY||t.HTTP_PROXY,E=class extends lo.HttpsProxyAgent{constructor(){super(()=>l(),n(l),s(l),F.default.globalAgent,e.socketConnectionTimeout)}},u=new E;return uo.default.gte(process.version,"v11.7.0")&&(X.default.globalAgent=c,F.default.globalAgent=u),uo.default.gte(process.version,"v10.0.0")?(X.default.get=(0,k.bindHttpMethod)(lc,c,e.forceGlobalAgent),X.default.request=(0,k.bindHttpMethod)(cc,c,e.forceGlobalAgent),F.default.get=(0,k.bindHttpMethod)(fc,u,e.forceGlobalAgent),F.default.request=(0,k.bindHttpMethod)(pc,u,e.forceGlobalAgent)):co.warn("attempt to initialize global-agent in unsupported Node.js version was ignored"),t},Ec=gc;Xe.default=Ec});var Hr=f(Fe=>{"use strict";i();Object.defineProperty(Fe,"__esModule",{value:!0});Object.defineProperty(Fe,"createGlobalProxyAgent",{enumerable:!0,get:function(){return mc.default}});Object.defineProperty(Fe,"createProxyController",{enumerable:!0,get:function(){return yc.default}});var mc=ho(po()),yc=ho(Fr());function ho(r){return r&&r.__esModule?r:{default:r}}});var go=f(He=>{"use strict";i();Object.defineProperty(He,"__esModule",{value:!0});He.default=void 0;var Oc=bc(z()),vc=Hr();function bc(r){return r&&r.__esModule?r:{default:r}}var Rc=Oc.default.child({namespace:"bootstrap"}),_c=r=>global.GLOBAL_AGENT?(Rc.warn("found global.GLOBAL_AGENT; second attempt to bootstrap global-agent was ignored"),!1):(global.GLOBAL_AGENT=(0,vc.createGlobalProxyAgent)(r),!0),wc=_c;He.default=wc});var Eo=f(Vr=>{"use strict";i();Object.defineProperty(Vr,"__esModule",{value:!0});Object.defineProperty(Vr,"bootstrap",{enumerable:!0,get:function(){return Pc.default}});var Pc=$c(go());function $c(r){return r&&r.__esModule?r:{default:r}}});var Tc=f(Ve=>{"use strict";i();Object.defineProperty(Ve,"__esModule",{value:!0});Object.defineProperty(Ve,"bootstrap",{enumerable:!0,get:function(){return Ac.bootstrap}});Object.defineProperty(Ve,"createGlobalProxyAgent",{enumerable:!0,get:function(){return Nc.createGlobalProxyAgent}});var Ac=Eo(),Nc=Hr()});i();import bo from"fs";function zr(r){let e=r instanceof Error?r.stack??r.message:String(r);bo.writeSync(process.stderr.fd,`${e}
|
|
7
|
-
`)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-
|
|
7
|
+
`)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-RSUK27TA.js");if(e()){let{handler:n}=await import("./error-AA6LW3PN.js");await n(r);return}let{FatalError:t}=await import("./error-AA6LW3PN.js");if(r instanceof t){let{renderFatalError:n}=await import("./ui-FNPICAAH.js");n(r)}else zr(r)}catch{zr(r)}}export{Sc as a,Tc as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-EMH7OHCW.js";import{a as h}from"./chunk-PWS4VFSD.js";import{a as c}from"./chunk-PO5T44H3.js";import{Ha as m}from"./chunk-UNHT4ZFP.js";import{b as l}from"./chunk-NU5WLZ6Y.js";import{u as a}from"./chunk-3V4VL3SD.js";import{z as p}from"./chunk-47IQIIFX.js";import{i as d}from"./chunk-Q37WAD6F.js";import{b as C}from"./chunk-I3J63RFV.js";import{e as g,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function v(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,r=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id});if(r.devSessionDelete?.userErrors.length){let u=r.devSessionDelete.userErrors.map(w=>w.message).join(`
|
|
2
2
|
`);throw new d(`Failed to stop the dev preview: ${u}`)}p({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var i=g(C(),1);var n=class t extends h{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
3
|
|
|
4
4
|
It restores the app's active version to the selected development store.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ee,e as ne,f as te,g as ie}from"./chunk-
|
|
1
|
+
import{c as ee,e as ne,f as te,g as ie}from"./chunk-RK2V6OIJ.js";import{a as J,c as Z,d as Q,e as X}from"./chunk-XSMCQLJW.js";import{b as I}from"./chunk-NYYXH2SX.js";import{a as q}from"./chunk-PWS4VFSD.js";import{a as j}from"./chunk-PO5T44H3.js";import{Ha as W,K as z,N as H,ea as K,g as Y}from"./chunk-UNHT4ZFP.js";import{a as G}from"./chunk-45SZ5PSE.js";import{b as V}from"./chunk-NU5WLZ6Y.js";import{E as U,H as B,M as N,x as O,y as F,z as M}from"./chunk-47IQIIFX.js";import{d as L}from"./chunk-DSS4ECIH.js";import{i as h,k as $}from"./chunk-Q37WAD6F.js";import{Aa as E,Db as S,Ga as R,Kb as A,P as D,Pb as C}from"./chunk-UWI76E2L.js";import{b as ce}from"./chunk-I3J63RFV.js";import{c as x,h as P}from"./chunk-6IDEDOXW.js";import{e as pe,g}from"./chunk-VKWPEFWQ.js";g();g();g();async function oe(e){let n,t;e.bundlePath&&(n=await X(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await Q(n,e.bundlePath));let i={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};n&&(i.bundleUrl=n),e.appModules.length>0&&(i.appModules=e.appModules);let a=await e.developerPlatformClient.deploy(i);if(!a.appDeploy.appVersion){let o=ue(a.appDeploy.userErrors??[],e.appModuleRegistrationIds,e.appModules,{version:e.version});throw new h({bold:"Version couldn't be created."},null,[],o)}return a.appDeploy.userErrors?.length>0&&(t=a.appDeploy.userErrors.map(o=>o.message).join(", ")),{validationErrors:a.appDeploy.appVersion.appModuleVersions.filter(o=>o.validationErrors.length>0).map(o=>({uuid:o.registrationUuid,errors:o.validationErrors})),versionTag:a.appDeploy.appVersion.versionTag,location:a.appDeploy.appVersion.location,message:a.appDeploy.appVersion.message,deployError:t}}var w=`
|
|
2
2
|
Validation errors`,k=`
|
|
3
3
|
`;function ue(e,n,t,i={}){let a=l=>l.details?.some(y=>y.extension_id)??!1,s=(l,y)=>{let b=l.details?.find(_=>typeof _.extension_id<"u")?.extension_id??"";return Object.values(y).includes(b.toString())},o=l=>{let y=l.on?l.on[0]:void 0;return t.some(b=>b.uid===y?.user_identifier)},[d,u]=I(e,l=>o(l)),[p,c]=I(u,l=>a(l)),[m,r]=I(p,l=>s(l,n));return[...fe(c,{version:i.version}),...me(m,n),...he(r),...ge(d,t)]}function fe(e,n={}){return e.length>0?e.filter(t=>t.field&&t.field.includes("version_tag")&&t.message==="has already been taken").length>0&&n.version?[{body:["An app version with the name",{userInput:n.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(t=>t.message)}}}]:[]}function me(e,n){return e.reduce((t,i)=>{let a=(i.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),s=a==="base"?i.message:`${a}: ${i.message}`,o=i.details.find(r=>typeof r.extension_title<"u")?.extension_title,d=i.details.find(r=>typeof r.specification_identifier<"u")?.specification_identifier,u=i.details.find(r=>typeof r.extension_id<"u")?.extension_id?.toString(),c=Object.keys(n).find(r=>n[r]===u)??o;d==="webhook_subscription"&&(c="Webhook Subscription");let m=t.find(r=>r.title===c);if(m){let r=m.body,f=i.category==="invalid"?r.find(l=>l.list.title===w):r.find(l=>l.list.title===k);f?f.list.items.includes(s)||f.list.items.push(s):r.push({list:{title:i.category==="invalid"?w:k,items:[s]}})}else t.push({title:c,body:[{list:{title:i.category==="invalid"?w:k,items:[s]}}]});return t.forEach(r=>{r.body.sort((f,l)=>f.list.title===w?1:l.list.title===w?-1:0)}),t},[])}function ge(e,n){return e.reduce((t,i)=>{let s=(i.on?i.on[0]:void 0)?.user_identifier,o=n.find(r=>r.uid===s),d=s?`Extension with uid: ${s}`:"Unknown Extension",u=o?.handle??d,c=`${(i.field??["unknown"]).join(".")}: ${i.message}`,m=t.find(r=>r.title===u);if(m){let f=m.body.find(l=>l.list.title===w);f&&(f.list.items.includes(c)||f.list.items.push(c))}else t.push({title:u,body:[{list:{title:w,items:[c]}}]});return t},[])}function he(e){return e.reduce((n,t)=>{let i=t.details.find(s=>typeof s.extension_title<"u")?.extension_title,a=n.find(s=>s.title===i);return a?a.errorCount+=1:n.push({title:i,errorCount:1}),n},[]).map(n=>({title:n.title,body:`
|
|
4
4
|
${n.errorCount} error${n.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}g();async function ae(e){let n=x(e.app.directory,".shopify","deploy-bundle");await R(n,{force:!0}),await E(n),await J(e.appManifest,n),e.skipBuild||await Y(e.app);let t=e.app.allExtensions.map(a=>({prefix:a.localIdentifier,action:async(s,o,d)=>{await a.buildForBundle({stderr:o,stdout:s,signal:d,app:e.app,environment:"production",skipBuild:e.skipBuild},n)}}));if(await O({processes:t,showTimestamps:!1}),e.app.allExtensions.some(a=>a.hasDeploySteps))return await Z(n,e.bundlePath),e.bundlePath}async function ye(e){let{app:n,remoteApp:t,developerPlatformClient:i,noRelease:a,allowUpdates:s,allowDeletes:o,extensions:d}=e,u=[a,s,o].some(Boolean),p=[`App can't be deployed until Partner Dashboard managed extensions are added to your version or removed from your app:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as r}from"./chunk-
|
|
1
|
+
import{u as r}from"./chunk-3V4VL3SD.js";import{b as o}from"./chunk-I3J63RFV.js";import{e as t,p as n}from"./chunk-6IDEDOXW.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute 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 i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u}from"./chunk-
|
|
1
|
+
import{c as u}from"./chunk-Y62EMOQA.js";import{e as l,j as m}from"./chunk-KQFA5YTT.js";import{a as d}from"./chunk-PWS4VFSD.js";import{Ha as c}from"./chunk-UNHT4ZFP.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var a=class extends Error{operationId;constructor(t){super(`Migration cancellation for ${t} returned neither an operation nor user errors`),this.name="MigrationCancellationProtocolError",this.operationId=t}};async function f({clientId:i,operationIds:t,cancelOperation:n=m}){return{outcomes:await Promise.all(t.map(async o=>{let e=await n({clientId:i,operationId:o});if(e.userErrors.length>0)return{status:"failed",operationId:o,operation:e.operation,userErrors:e.userErrors};if(!e.operation)throw new a(o);return{status:"success",operationId:o,operation:e.operation}}))}}var s=class i extends d{static summary="Cancels app subscription migration operations.";static descriptionWithMarkdown="Cancels app subscription migration operations.\n\nCanceling stops additional unprocessed shops, but does not undo shops that have already been scheduled or migrated. Use `unschedule` for reversible schedules.\n\nRepeat `--id` to cancel every operation GID returned by a multi-batch submission. Use `--json` to output the resulting operation states and 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.descriptionWithoutMarkdown();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>","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...l};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:p}=await c({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o=await f({clientId:p.apiKey,operationIds:t.id}),e=u(o,{json:t.json});return e!==0&&(process.exitCode=e),{app:n}}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"./chunk-
|
|
1
|
+
import{b as a}from"./chunk-ENQXB532.js";import{b as s}from"./chunk-4ZNBEMRT.js";import{ya as i}from"./chunk-3V4VL3SD.js";import{b as m}from"./chunk-I3J63RFV.js";import{e as d,g as e}from"./chunk-VKWPEFWQ.js";e();var n=d(m(),1);var t=class c extends s{static description="List current notifications configured for the CLI.";static hidden=!0;static flags={"ignore-errors":n.Flags.boolean({hidden:!1,description:"Don't fail if an error occurs.",env:"SHOPIFY_FLAG_IGNORE_ERRORS"})};async run(){let{flags:f}=await this.parse(c);try{await a()}catch(r){let o="Error fetching notifications";if(r instanceof Error&&(o=o.concat(`: ${r.message}`)),await i(o,"expected_error"),!f["ignore-errors"])throw r}}};export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-IDKRJ2F4.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|