@shopify/cli 4.5.2 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-3ICKUTK2.js +1 -0
- package/dist/analytics-73NVZI4Z.js +1 -0
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
- package/dist/{chunk-SH6Q5CLM.js → chunk-25Z36VJG.js} +1 -1
- package/dist/{chunk-OC5PD4ID.js → chunk-2AVFG5KT.js} +1 -1
- package/dist/chunk-2DMTEIS3.js +2 -0
- package/dist/chunk-2GB3EAD3.js +153 -0
- package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
- package/dist/{chunk-4VJ5VBSR.js → chunk-2NB4P6BB.js} +1 -1
- package/dist/{chunk-75DBVSVI.js → chunk-2OYQHHKC.js} +1 -1
- package/dist/{chunk-OMXKQY2L.js → chunk-2VJKXWLG.js} +1 -1
- package/dist/{chunk-V6QZF5YS.js → chunk-3Q5ESVIY.js} +1 -1
- package/dist/{chunk-TPGREOWO.js → chunk-3XCIUG5P.js} +1 -1
- package/dist/chunk-445NFHXL.js +3 -0
- package/dist/{chunk-WN5VTUWJ.js → chunk-4BPFJDH3.js} +1 -1
- package/dist/chunk-4E5RGEJO.js +1 -0
- package/dist/{chunk-LGFOE4XL.js → chunk-4IHSAT76.js} +1 -1
- package/dist/chunk-4TANJ4JK.js +1 -0
- package/dist/{chunk-VCWESQBC.js → chunk-534U3DKZ.js} +2 -2
- package/dist/{chunk-KIAMA3L2.js → chunk-56T6YCU2.js} +1 -1
- package/dist/chunk-5HJTCBBV.js +317 -0
- package/dist/{chunk-523SJVNT.js → chunk-5INBKZRD.js} +1 -1
- package/dist/{chunk-DIPTSBQM.js → chunk-5Q4WAGQL.js} +1 -1
- package/dist/{chunk-35FS2NTM.js → chunk-5QDM4XIK.js} +1 -1
- package/dist/chunk-65CEF3SM.js +8 -0
- package/dist/{chunk-NSADN5S2.js → chunk-6HQMZ324.js} +141 -141
- package/dist/{chunk-QEVGRNUE.js → chunk-6KAWCN3I.js} +3 -3
- package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
- package/dist/{chunk-LVLDPYH5.js → chunk-6ZPHB5U2.js} +1 -1
- package/dist/{chunk-XS7WK4YK.js → chunk-7AWKXTNS.js} +1 -1
- package/dist/chunk-7EE7YOCR.js +16 -0
- package/dist/{chunk-L42FYXFW.js → chunk-7L5AIZOP.js} +4 -4
- package/dist/chunk-7MD5MIGN.js +103 -0
- package/dist/{chunk-N6IFIMC6.js → chunk-7TXWKLPY.js} +1 -1
- package/dist/{chunk-ZUWEGJA7.js → chunk-7US4TVO2.js} +1 -1
- package/dist/{chunk-7TQ6HVHN.js → chunk-A7IDVXF7.js} +1 -1
- package/dist/chunk-AFM3UZQO.js +684 -0
- package/dist/{chunk-5GVE4ILZ.js → chunk-AHLNB45E.js} +1 -1
- package/dist/{chunk-JOKLZMTP.js → chunk-ARCAYYRW.js} +1 -1
- package/dist/{chunk-JADXT2DY.js → chunk-B3U6GDHL.js} +1 -1
- package/dist/chunk-BCZMDFI2.js +370 -0
- package/dist/chunk-BDDROQGK.js +26 -0
- package/dist/{chunk-P6LVSNTT.js → chunk-BKJMVAI7.js} +1 -1
- package/dist/chunk-BOAGJ6P5.js +1 -0
- package/dist/{chunk-TSEPNC3O.js → chunk-BPDUBZMU.js} +1 -1
- package/dist/chunk-BQOKTPUU.js +1 -0
- package/dist/{chunk-6VR22Z5R.js → chunk-C7LFLIRT.js} +3 -3
- package/dist/chunk-CELVG4AL.js +6 -0
- package/dist/{chunk-BQARKSGG.js → chunk-CNI7ZUST.js} +1 -1
- package/dist/{chunk-YKNMNGV7.js → chunk-CONJQV7M.js} +1 -1
- package/dist/chunk-CTNBSUVU.js +83 -0
- package/dist/chunk-CV5ELBVU.js +1 -0
- package/dist/{chunk-DI5ZPWNA.js → chunk-DC7TXY4K.js} +1 -1
- package/dist/{chunk-ODSMT2ZC.js → chunk-DXUISRMZ.js} +1 -1
- package/dist/chunk-EHV7EKB3.js +2 -0
- package/dist/{chunk-SZM6ANMN.js → chunk-EQNJ2NQD.js} +2 -2
- package/dist/{chunk-NIVGP4LB.js → chunk-EVIO6OWW.js} +1 -1
- package/dist/chunk-EZBB2ULE.js +1 -0
- package/dist/{chunk-Z6VNPAY7.js → chunk-FBVNXRVB.js} +1 -1
- package/dist/chunk-FFSDGRAN.js +1 -0
- package/dist/{chunk-YXNKDX56.js → chunk-FG5QXIQH.js} +1 -1
- package/dist/{chunk-6ZWMXMNM.js → chunk-FGG6HXIZ.js} +1 -1
- package/dist/{chunk-3EJGRQTH.js → chunk-FJCZ4F6J.js} +1 -1
- package/dist/{chunk-2ACN7JIZ.js → chunk-FKH5ZF2C.js} +1 -1
- package/dist/{chunk-LSCDB36D.js → chunk-GD5IRJBE.js} +1 -1
- package/dist/{chunk-ZAN7AZTX.js → chunk-GJEG7VGX.js} +1 -1
- package/dist/{chunk-XUAAQI5N.js → chunk-GT6BJ2GK.js} +1 -1
- package/dist/chunk-GWNV44NZ.js +18 -0
- package/dist/{chunk-ZT4PUH7L.js → chunk-GXO2RRV2.js} +1 -1
- package/dist/{chunk-MC466GSO.js → chunk-H5I7BSNG.js} +1 -1
- package/dist/{chunk-6AWRW3GS.js → chunk-H5YC3EP6.js} +1 -1
- package/dist/chunk-HVMEBH24.js +6 -0
- package/dist/{chunk-5N7H4PJJ.js → chunk-HY3INWPI.js} +1 -1
- package/dist/{chunk-XXLGM6OZ.js → chunk-I6ST5X56.js} +1 -1
- package/dist/{chunk-RFOALCVH.js → chunk-ID6ASBGV.js} +1 -1
- package/dist/{chunk-R6A754UW.js → chunk-IDQT2UY7.js} +1 -1
- package/dist/chunk-IIOFR25P.js +3 -0
- package/dist/{chunk-FSVSM57K.js → chunk-IJEDTDSJ.js} +6 -6
- package/dist/{chunk-42RVM4EZ.js → chunk-ILICQWUF.js} +1 -1
- package/dist/chunk-IMWEC6NF.js +16 -0
- package/dist/{chunk-Q7DSLGTN.js → chunk-ITNFDLZ4.js} +1 -1
- package/dist/chunk-IU5U6KKO.js +4 -0
- package/dist/{chunk-YNX4DT2O.js → chunk-IXCDFXMB.js} +1 -1
- package/dist/chunk-J3D4KQOQ.js +1 -0
- package/dist/chunk-JJZNUFPD.js +44 -0
- package/dist/chunk-JRTJZAFJ.js +19 -0
- package/dist/chunk-JT7YTXJ7.js +1 -0
- package/dist/{chunk-EEEKSYWV.js → chunk-JX4HSDDG.js} +15 -15
- package/dist/chunk-K4M32VKU.js +5 -0
- package/dist/{chunk-XHTICMA7.js → chunk-K5GJNXDK.js} +1 -1
- package/dist/{chunk-5CV7GFWZ.js → chunk-KCNOFNS5.js} +1 -1
- package/dist/{chunk-3OCR7P3S.js → chunk-KM2R6O7V.js} +1 -1
- package/dist/{chunk-CX44CQFL.js → chunk-KNFDN3AP.js} +1 -1
- package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
- package/dist/{chunk-TM44Z7U7.js → chunk-LDWMX3KZ.js} +1 -1
- package/dist/{chunk-6K4DVV37.js → chunk-LEDVV6XK.js} +1 -1
- package/dist/chunk-LEEVJH4B.js +1 -0
- package/dist/{chunk-EOJNSPIH.js → chunk-LJZIIURR.js} +1 -1
- package/dist/{chunk-UHMRDG6J.js → chunk-LURVEPYP.js} +1 -1
- package/dist/{chunk-HQE5B2CF.js → chunk-LXOBW4AW.js} +1 -1
- package/dist/{chunk-AAK3WGD7.js → chunk-M5YGJYNI.js} +1 -1
- package/dist/{chunk-UMB4BWCK.js → chunk-MDQHEW7V.js} +1 -1
- package/dist/{chunk-ICRQZAXP.js → chunk-MMP3F6LO.js} +1 -1
- package/dist/{chunk-HOAVZLEG.js → chunk-MPYCIVRA.js} +1 -1
- package/dist/chunk-MY2H5XPY.js +7 -0
- package/dist/{chunk-SG5TRPJ7.js → chunk-N4RYVOXT.js} +1 -1
- package/dist/chunk-NB6HHZ36.js +1 -0
- package/dist/{chunk-UVIGXZMV.js → chunk-NEK2KNKR.js} +1 -1
- package/dist/{chunk-VJQJ5PTQ.js → chunk-NENUUNWB.js} +1 -1
- package/dist/{chunk-K4APB7O3.js → chunk-NJONAV7V.js} +1 -1
- package/dist/{chunk-7KWBVZPI.js → chunk-NKBSS7YL.js} +1 -1
- package/dist/{chunk-HSVZU7MP.js → chunk-NKT5U6IJ.js} +1 -1
- package/dist/{chunk-RLB5QHWG.js → chunk-NVQOAHID.js} +1 -1
- package/dist/{chunk-P7OSUECN.js → chunk-OHQTOHUX.js} +1 -1
- package/dist/chunk-P2P2MAZQ.js +1 -0
- package/dist/{chunk-KFUOVO3X.js → chunk-PCTVUTV3.js} +1 -1
- package/dist/{chunk-OJZT3NA2.js → chunk-PKR6HS4T.js} +1 -1
- package/dist/chunk-PKRDBS7O.js +5 -0
- package/dist/{chunk-BVWQZKNK.js → chunk-PMD6S7YG.js} +1 -1
- package/dist/{chunk-KPNNGJAW.js → chunk-PUOCHFFI.js} +1 -1
- package/dist/{chunk-ANH2V6DJ.js → chunk-Q2DPBMV4.js} +1 -1
- package/dist/{chunk-23LZNWB5.js → chunk-Q6XT3YKV.js} +1 -1
- package/dist/{chunk-TNUY66EE.js → chunk-QARALFHD.js} +1 -1
- package/dist/{chunk-XCGV3IJ5.js → chunk-QEL3F2NY.js} +1 -1
- package/dist/{chunk-P2SBE77Z.js → chunk-R2W5B7YI.js} +1 -1
- package/dist/chunk-REABQXMP.js +1 -0
- package/dist/{chunk-KQTVJMV6.js → chunk-RMF3YNWE.js} +1 -1
- package/dist/{chunk-TH6CLNGO.js → chunk-RTPVI7LE.js} +1 -1
- package/dist/{chunk-U3MSTPZP.js → chunk-SFZQFEZB.js} +1 -1
- package/dist/{chunk-7AY6HLQG.js → chunk-STCLJWHD.js} +1 -1
- package/dist/{chunk-7AYYQUJG.js → chunk-STJWHL36.js} +1 -1
- package/dist/{chunk-NYG2VQFQ.js → chunk-SZJHOXS6.js} +1 -1
- package/dist/{chunk-DZMXYETH.js → chunk-TEPMNVJN.js} +1 -1
- package/dist/{chunk-ML6SILEL.js → chunk-TNSMROUR.js} +1 -1
- package/dist/chunk-TR4OWSEX.js +77 -0
- package/dist/{chunk-AUAUAK6P.js → chunk-U3P5TIIR.js} +1 -1
- package/dist/{chunk-CEBDKIVH.js → chunk-UDDJQ34Y.js} +1 -1
- package/dist/chunk-UKQ7NE5V.js +1 -0
- package/dist/{chunk-KMQE7WFZ.js → chunk-UOQBCBKY.js} +1 -1
- package/dist/{chunk-RTINXD5Z.js → chunk-UQWT2PFO.js} +1 -1
- package/dist/{chunk-AATUQ2AY.js → chunk-UTK6V2NE.js} +80 -80
- package/dist/{chunk-XDV4PRFT.js → chunk-V26QBVCN.js} +1 -1
- package/dist/{chunk-T35C6NC7.js → chunk-VVEQ4IHW.js} +1 -1
- package/dist/chunk-VXBHTSMX.js +20 -0
- package/dist/chunk-W2357IN2.js +2 -0
- package/dist/chunk-W6ST525S.js +99 -0
- package/dist/chunk-WDCCITSG.js +1 -0
- package/dist/{chunk-5VRU3BT5.js → chunk-WE3VLC2S.js} +1 -1
- package/dist/chunk-WGMYSPR2.js +10 -0
- package/dist/chunk-WHT2RCAD.js +11 -0
- package/dist/{chunk-YWQPSMRZ.js → chunk-WOYI6SDK.js} +1 -1
- package/dist/{chunk-BUVP2UUA.js → chunk-WXJGZGQS.js} +1 -1
- package/dist/{chunk-DELISRUH.js → chunk-X4AZV5A2.js} +1 -1
- package/dist/{chunk-7PVNAILK.js → chunk-X5RH4ALT.js} +1 -1
- package/dist/{chunk-2TJ6LOCC.js → chunk-XBBP5BWC.js} +1 -1
- package/dist/{chunk-4UJNCOE6.js → chunk-XH32NPYG.js} +1 -1
- package/dist/{chunk-PEYYIWP6.js → chunk-XZ2KUBFJ.js} +1 -1
- package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
- package/dist/{chunk-I5X3IP6T.js → chunk-Y7A7Z2V3.js} +1 -1
- package/dist/{chunk-UW6YEKST.js → chunk-YE7XCF44.js} +1 -1
- package/dist/{chunk-LXOBFJZO.js → chunk-YHH3JA36.js} +1 -1
- package/dist/chunk-YIFT67BD.js +4 -0
- package/dist/{chunk-34SINZ7L.js → chunk-YR7K4NQT.js} +1 -1
- package/dist/{chunk-VGSH33QU.js → chunk-Z36JS7OX.js} +1 -1
- package/dist/{chunk-WDSBR7KX.js → chunk-ZHPPBTNE.js} +1 -1
- package/dist/chunk-ZMSE5SQB.js +1 -0
- 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-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/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/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-registry.js +1 -1
- package/dist/conf-store-YW3NWYCN.js +1 -0
- package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
- package/dist/deprecations-VW7UIMZX.js +1 -0
- package/dist/dist-I3VCRVOE.js +1 -0
- package/dist/dist-MP4AU5F4.js +1 -0
- package/dist/environments-5P57CTOG.js +1 -0
- package/dist/error-U7DOQOWG.js +1 -0
- package/dist/error-handler-AOEXPYI7.js +1 -0
- package/dist/{fs-B4UJTUCD.js → fs-K5NT4W2Q.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +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/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-CFYYUAIJ.js +1 -0
- package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
- package/dist/lib-2BR2WN7L.js +1 -0
- package/dist/lib-JKLF33A7.js +1 -0
- package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
- package/dist/local-BRRQOCGY.js +1 -0
- package/dist/local-storage-FVSI2IBZ.js +1 -0
- package/dist/{metadata-FREAI3KR.js → metadata-HVSGVFUQ.js} +1 -1
- package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
- package/dist/node-package-manager-6JURLQKU.js +1 -0
- package/dist/notifications-system-BTEFKXCS.js +1 -0
- package/dist/out-53ABAVL7.js +1 -0
- package/dist/{output-VUR2QZPW.js → output-EXMTVS2V.js} +1 -1
- package/dist/system-DUJDILSL.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-AX6ZMY6P.js +1 -0
- package/dist/upgrade-5TEVQNLY.js +1 -0
- package/dist/version-7LKOAVDW.js +1 -0
- package/dist/version-PRFBZAWQ.js +1 -0
- package/dist/{workerd-KPQTFQD4.js → workerd-MFV7EBVM.js} +1 -1
- package/oclif.manifest.json +612 -2
- package/package.json +11 -11
- package/dist/analytics-M7ZU437S.js +0 -1
- package/dist/analytics-ZRM4FEOE.js +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
- package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
- package/dist/assets/dev-console/index.html +0 -21
- package/dist/chunk-2O22LZKV.js +0 -44
- package/dist/chunk-3IFZECSI.js +0 -22
- package/dist/chunk-4MLEL3VK.js +0 -283
- package/dist/chunk-4P54DKG4.js +0 -3
- package/dist/chunk-4ROX2TCK.js +0 -1
- package/dist/chunk-5C7HDTHJ.js +0 -1
- package/dist/chunk-5VC4XXYH.js +0 -1
- package/dist/chunk-7RJPTSL6.js +0 -7
- package/dist/chunk-ADKFAPED.js +0 -21
- package/dist/chunk-B5MFFERE.js +0 -1
- package/dist/chunk-BLSWUNOK.js +0 -16
- package/dist/chunk-DN3BB4IO.js +0 -103
- package/dist/chunk-EAOT5CK5.js +0 -2
- package/dist/chunk-G6BFXMOV.js +0 -2
- package/dist/chunk-GMAZ2BQY.js +0 -26
- package/dist/chunk-HYF3VJYS.js +0 -3
- package/dist/chunk-IIFRDOYG.js +0 -1
- package/dist/chunk-KB6H5LQJ.js +0 -4
- package/dist/chunk-LKZ7ARYS.js +0 -18
- package/dist/chunk-MYQTAM77.js +0 -2
- package/dist/chunk-NGCPVRDM.js +0 -1
- package/dist/chunk-NJOO5XJV.js +0 -1
- package/dist/chunk-NNOSZ447.js +0 -1
- package/dist/chunk-NVA2354A.js +0 -5
- package/dist/chunk-NWH3TAHK.js +0 -1
- package/dist/chunk-OCBGHOH2.js +0 -19
- package/dist/chunk-P7U6BWKN.js +0 -1
- package/dist/chunk-QFXJNFMI.js +0 -1
- package/dist/chunk-R7QYSC6T.js +0 -567
- package/dist/chunk-RE652L3G.js +0 -1
- package/dist/chunk-SSDEWKDZ.js +0 -6
- package/dist/chunk-T6CC5WUU.js +0 -159
- package/dist/chunk-TB7HFPBB.js +0 -370
- package/dist/chunk-TIU7MMRT.js +0 -836
- package/dist/chunk-TTEY5PLR.js +0 -10
- package/dist/chunk-U4HLIXRH.js +0 -4
- package/dist/chunk-UAYIFFYJ.js +0 -11
- package/dist/chunk-UHIP5CFI.js +0 -1
- package/dist/chunk-UMFVRG33.js +0 -5
- package/dist/chunk-WTRKTFVE.js +0 -2
- package/dist/chunk-X3VG75LO.js +0 -1
- package/dist/chunk-XSUZPWYV.js +0 -5
- package/dist/chunk-Z33MWGCG.js +0 -1
- package/dist/chunk-ZIM2G3EP.js +0 -1
- package/dist/chunk-ZSYMRT3S.js +0 -4
- package/dist/conf-store-HOA62HKK.js +0 -1
- package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
- package/dist/deprecations-2FTB7JEW.js +0 -1
- package/dist/dist-63JMGNUL.js +0 -1
- package/dist/dist-6TY6L7OW.js +0 -1
- package/dist/environments-XVYTKHRZ.js +0 -1
- package/dist/error-SDU6RPQQ.js +0 -1
- package/dist/error-handler-4YEBBCUH.js +0 -1
- package/dist/is-global-5LFZDDNH.js +0 -1
- package/dist/lib-QJDPPAWN.js +0 -1
- package/dist/lib-UCG2DNMS.js +0 -1
- package/dist/local-VTYGIJVD.js +0 -1
- package/dist/local-storage-A6NBLBB2.js +0 -1
- package/dist/node-package-manager-N5SUT2WN.js +0 -1
- package/dist/notifications-system-P3SUTD25.js +0 -1
- package/dist/out-CDCY25QC.js +0 -1
- package/dist/system-OXF2P5CT.js +0 -1
- package/dist/ui-N2C5FC3G.js +0 -1
- package/dist/upgrade-AJ36IT7H.js +0 -1
- package/dist/version-DSFP332V.js +0 -1
- package/dist/version-HUOO3XOE.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as S,c as A,d as R}from"./chunk-
|
|
1
|
+
import{b as S,c as A,d as R}from"./chunk-BPDUBZMU.js";import{a as N}from"./chunk-LEEVJH4B.js";import{a as P}from"./chunk-NENUUNWB.js";import{b as y,c as x,ua as T}from"./chunk-5HJTCBBV.js";import{b,c as g}from"./chunk-4TANJ4JK.js";import{u as h}from"./chunk-JX4HSDDG.js";import{Fb as l,Hb as m,Lb as d}from"./chunk-BCZMDFI2.js";import{d as f}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function C(n,t){let o={};return n.targeting?.forEach(e=>{e.target&&(o[e.target]={...e.input_query&&{inputQueryPath:`${t}/${e.input_query}`},...e.export&&{export:e.export}})}),o}function I(n,t,o,e,i,r){return JSON.stringify({handle:t.handle,name:n.name,apiVersion:t.api_version,targeting:o,schemaPath:r,wasmPath:i,functionRunnerPath:e},null,2)}function j(n,t){return{title:`CONFIGURATION
|
|
2
2
|
`,body:{tabularData:[["Handle",n.handle??"N/A"],["Name",t??"N/A"],["API Version",n.api_version??"N/A"]],firstColumnSubdued:!0}}}function O(n){if(Object.keys(n).length===0)return null;let t=[];return Object.entries(n).forEach(([o,e])=>{t.push([m`${l.cyan(o)}`.value,""]),e.inputQueryPath&&t.push([{subdued:" Input Query Path"},{filePath:e.inputQueryPath}]),e.export&&t.push([{subdued:" Export"},e.export])}),{title:`
|
|
3
3
|
TARGETING
|
|
4
4
|
`,body:{tabularData:t}}}function v(n,t){return{title:`
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as b}from"./chunk-J3JPJCWP.js";import{a as fe}from"./chunk-LJZIIURR.js";import{b as re,c as oe,d as se,e as ne,f as ie,h as ae,i as le,k as ce,l as me,n as de}from"./chunk-7MD5MIGN.js";import{c as ee,e as te}from"./chunk-7TXWKLPY.js";import{a as X}from"./chunk-RMF3YNWE.js";import{c as Q,e as v,m as Z,n as x}from"./chunk-NKT5U6IJ.js";import{k as P,l as V,n as w}from"./chunk-Y7A7Z2V3.js";import{s as C,u as k}from"./chunk-445NFHXL.js";import{a as Y,b as B}from"./chunk-PCTVUTV3.js";import{o as J,s as K,t as j,u as z,w as N}from"./chunk-Q7BOSHWX.js";import{a as F,qa as $,ua as L}from"./chunk-AFM3UZQO.js";import{J as U,s as W,u as I,v as M,w as R,y as q,z as G}from"./chunk-JX4HSDDG.js";import{d as _,e as H}from"./chunk-STCLJWHD.js";import{m as y}from"./chunk-2GB3EAD3.js";import{Fb as g,Hb as T,Mb as E,Pb as u}from"./chunk-BCZMDFI2.js";import{u as p}from"./chunk-A4SBXDZB.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();f();f();f();var he={workPromise:Promise.resolve()};async function ue(e,t,o,r,s){if(o.length===0)return he;u("Initiating theme asset reconciliation process");let{filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:n,filesWithConflictingChecksums:l}=Ce(o,r),a=i.length===0&&n.length===0&&l.length===0;if(L(`theme-service:theme-reconciliation:manual:${a}`),a)return u("Local and remote checksums match - no need to reconcile theme assets"),he;let m=await Oe({filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:n,filesWithConflictingChecksums:l},s);return{workPromise:De(e,t,r,m)}}function Ce(e,t){let o=new Set,r=[],s=[];for(let n of e){o.add(n.key);let l=t.files.get(n.key);l?n.checksum!==l.checksum&&s.push(n):r.push(n)}let i=Array.from(t.files.values()).filter(n=>!o.has(n.key));return{filesOnlyPresentOnRemote:S(r,t),filesOnlyPresentLocally:S(i,t),filesWithConflictingChecksums:S(s,t)}}function S(e,t){return t.applyIgnoreFilters(e).filter(r=>r.key.endsWith(".json"))}async function A(e,t,o,r){if(e.length===0)return;if(r){Se(e,o,r);return}I({body:{list:{title:t,items:e.map(i=>i.key)}}}),await G({message:"Reconciliation Strategy",choices:[{label:o.remote.label,value:D},{label:o.local.label,value:pe}]})===D?o.remote.callback(e):o.local.callback(e)}function Se(e,t,o){switch(o){case"keep-remote":t.remote.callback(e);break;case"keep-local":t.local.callback(e);break;case"abort":break}}function Ae(e){let t=[{title:"The files listed below are only present locally.",files:e.filesOnlyPresentLocally},{title:"The files listed below are only present on the remote theme.",files:e.filesOnlyPresentOnRemote},{title:"The files listed below differ between the local and remote versions.",files:e.filesWithConflictingChecksums}];throw new y("Theme JSON files need reconciliation.",t.filter(o=>o.files.length>0).map(o=>`${o.title}
|
|
2
|
+
${o.files.map(r=>`- ${r.key}`).join(`
|
|
3
|
+
`)}`).join(`
|
|
4
|
+
|
|
5
|
+
`))}async function De(e,t,o,r){let{localFilesToDelete:s,filesToDownload:i,remoteFilesToDelete:n}=r,l=s.map(d=>o.delete(d.key)),a=b(i,k,async d=>{let c=await P(e.id,d.map(h=>h.key),t);return Promise.all(c.map(h=>{if(h)return o.write(h)}))}),m=V(e.id,n.map(d=>d.key),t);await Promise.all([...l,...a,m])}async function Oe(e,t){let{filesOnlyPresentLocally:o,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:s}=e,{reconciliationStrategy:i}=t,n=[],l=[],a=[],m={filesOnlyPresentLocally:t.noDelete?[]:o,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:s},d=Object.values(m).some(c=>c.length>0);return i==="abort"&&d&&Ae(m),t.noDelete||await A(o,"The files listed below are only present locally. What would you like to do?",{remote:{label:"Delete files from the local directory",callback:c=>{n.push(...c)}},local:{label:"Upload local files to the remote theme",callback:()=>{}}},i),await A(r,"The files listed below are only present on the remote theme. What would you like to do?",{remote:{label:"Download remote files to the local directory",callback:c=>{l.push(...c)}},local:{label:"Delete files from the remote theme",callback:c=>{a.push(...c)}}},i),await A(s,"The files listed below differ between the local and remote versions. What would you like to do?",{remote:{label:"Keep the remote version",callback:c=>{l.push(...c)}},local:{label:"Keep the local version",callback:c=>{a.push(...c)}}},i),{localFilesToDelete:n,filesToDownload:l,remoteFilesToDelete:a}}f();var Fe=3e3,O=class extends Error{};function we(e,t,o,r,s,i){u("Listening for changes in the theme editor");let n=5,l=0,a="",m=o,d=async()=>{await new Promise(c=>setTimeout(c,Fe)),m=await $e(e,t,m,r,s).then(c=>(l=0,a="",c)).catch(c=>{if(l++,c.message!==a&&(a=c.message,v("Error while polling for changes.",c)),l>=n){let h=new y("Too many polling errors...","Please check the errors above and ensure you have a stable internet connection.");q(h),i(h)}return m})};setTimeout(async()=>{for(;;)await d()})}async function $e(e,t,o,r,s){let i=new Set(r.unsyncedFileKeys),n=ye(o,r,i),l=await w(e.id,t).then(d=>ye(d,r,i)),a=_e(n,l),m=Le(l,n);return await Ie(r,a),await He(e,t,r,a),await We(r,m,s),l}function Le(e,t){let o=new Map(e.map(s=>[s.key,s]));return t.filter(s=>o.get(s.key)===void 0)}function _e(e,t){let o=new Map(e.map(s=>[s.key,s]));return t.filter(s=>{let i=o.get(s.key);if(!i||i.checksum!==s.checksum)return!0})}async function He(e,t,o,r){let s=r.filter(n=>o.files.get(n.key)?.checksum!==n.checksum),i=b(s,k,async n=>P(e.id,n.map(l=>l.key),t).then(l=>Promise.all(l.map(async a=>{a&&(await o.write(a),E(T`• ${C.format(new Date)} Synced ${g.raw("\xBB")} ${g.gray(`download ${a.key} from remote theme`)}`))}))));await Promise.all(i)}async function We(e,t,o){if(!o.noDelete)return Promise.all(t.map(r=>{if(e.files.get(r.key))return e.delete(r.key).then(()=>{E(T`• ${C.format(new Date)} Synced ${g.raw("\xBB")} ${g.gray(`remove ${r.key} from local theme`)}`)})}))}async function Ie(e,t){let o=new Map(e.files);await Promise.all(t.map(r=>e.read(r.key)));for(let r of t){let s=o.get(r.key)?.checksum,i=e.files.get(r.key)?.checksum;if(s!==i)throw new O(`Detected changes to the file '${r.key}' on both local and remote sources. Aborting...`)}}function ye(e,t,o){return t.applyIgnoreFilters(e).filter(s=>s.key.endsWith(".json")).filter(s=>!o.has(s.key))}var pe="local",D="remote";async function ge(e,t,o,r,s,i){u("Initiating theme asset reconciliation process"),await r.ready();let{workPromise:n}=await ue(e,t,o,r,s);return{updatedRemoteChecksumsPromise:n.then(async()=>{let a=await w(e.id,t);return we(e,t,a,r,s,i),a}),workPromise:n}}f();function ke(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise((r,s)=>{e=r,t=s}),resolve:e,reject:t}}import{createServer as Me}from"node:http";function Pe(e,t){let{promise:o,resolve:r,reject:s}=ke(),i=ae(e,t),n=qe(e,t,s),l=Promise.all([i,n.workPromise]).then(()=>t.localThemeFileSystem.startWatcher(e.id.toString(),t.session)),a=Ue(e,t,l);return{workPromise:l,serverStart:a.start,dispatchEvent:a.dispatch,renderDevSetupProgress:n.renderProgress,backgroundJobPromise:o,resolveBackgroundJob:r}}function qe(e,t,o){let r=a=>(v("Failed to perform the initial theme synchronization.",a),o(a),new Promise(()=>{})),i=w(e.id,t.session).then(a=>Ge(e,t,a,o)),n=i.then(async({updatedRemoteChecksumsPromise:a})=>{let m=await a;return fe(e,t.session,m,t.localThemeFileSystem,{nodelete:t.options.noDelete,deferPartialWork:!0,backgroundWorkCatch:r})});return{workPromise:n.then(a=>a.workPromise).catch(r),renderProgress:async()=>{if(t.options.themeEditorSync){let{workPromise:m}=await i;await te([{title:"Performing file synchronization. This may take a while...",task:async()=>{await m}}])}let{renderThemeSyncProgress:a}=await n;await a()}}}function Ge(e,t,o,r){return t.options.themeEditorSync?ge(e,t.session,o,t.localThemeFileSystem,{noDelete:t.options.noDelete,ignore:t.options.ignore,only:t.options.only,reconciliationStrategy:t.options.reconciliationStrategy},r):Promise.resolve({updatedRemoteChecksumsPromise:Promise.resolve(o),workPromise:Promise.resolve()})}function Ue(e,t,o){let r=z(),s=[`http://${t.options.host}:${t.options.port}`,`https://${t.session.storeFqdn}`,"https://online-store-web.shopifyapps.com"];r.use(ne(t.options.host,t.options.port)),r.use(j(async()=>(await o,K(n=>{n.node.req.headers.origin&&J(n,{origin:a=>s.includes(a),credentials:!0,methods:["GET","POST","HEAD","OPTIONS"],preflight:{statusCode:204}})})))),t.options.liveReload!=="off"&&r.use(le(e,t)),r.use(se(e,t)),r.use(re(e,t)),r.use(oe(e,t));let i=Me(N(r));return{dispatch:r.handler.bind(r),start:async()=>new Promise(n=>i.listen({port:t.options.port,host:t.options.host},()=>n({close:async()=>{await Promise.all([new Promise(l=>{i.closeAllConnections(),i.close(l)})])}})))}}import Je from"readline";var Ke="127.0.0.1",je=9292,ve=!1;async function rr(e){if(!await de(e.directory)&&!await ee(e.force))return;e.password?.startsWith("shpat_")&&R({headline:"Admin API token missing features:",body:["Directly using an Admin API token will result in some missing features.","We recommend generating a password from the Theme Access app.","Alternatively, you can authenticate normally by not passing the --password flag.",`
|
|
6
|
+
`,{list:{title:"Known limitations:",items:["Hot module reloading","Password protected storefronts"]}}],link:{label:"Theme Access app",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-access"}}),e.listing&&await ce(e.directory,e.listing);let[t,o]=await Promise.all([Z(e.adminSession),Q(e.adminSession)]),r=o?await X(e.storePassword,e.adminSession.storeFqdn,t):void 0,s=ie(),i=me(e.directory,{filters:e,listing:e.listing,noDelete:e.noDelete,notify:e.notify}),n=e.host??Ke,l;if(e.port){if(!await B(e.port))throw new y(`Port ${e.port} is not available. Try a different port or remove the --port flag to use an available port.`);l=e.port}else l=await Y(je);let a={local:`http://${n}:${l}`,giftCard:`http://${n}:${l}/gift_cards/[store_id]/preview`,themeEditor:`https://${e.store}/admin/themes/${e.theme.id}/editor?hr=${l}`,preview:`https://${e.store}/?preview_theme_id=${e.theme.id}`},d={session:await x(e.theme.id.toString(),e.adminSession,e.password,r,t),localThemeFileSystem:i,localThemeExtensionFileSystem:s,directory:e.directory,type:"theme",lastRequestedPath:"",options:{themeEditorSync:e["theme-editor-sync"],reconciliationStrategy:e.reconciliationStrategy,host:n,port:l,open:e.open,liveReload:e["live-reload"],standardEventsDevBundle:!0,standardEventsInspector:e["standard-events-inspector"],noDelete:e.noDelete,ignore:e.ignore,only:e.only,errorOverlay:e["error-overlay"]}},{serverStart:c,renderDevSetupProgress:h,backgroundJobPromise:Re,resolveBackgroundJob:Te}=Pe(e.theme,d);Je.emitKeypressEvents(process.stdin);let Ee=Ne(a,d,Te);process.stdin.on("keypress",Ee),await Promise.all([Re,h().then(c).then(()=>{process.stdin.isTTY&&process.stdin.setRawMode(!0),Be(a),e.open&&be(a.local,"development server")})]),await ze(e.commandConfig,e.adminSession),process.exit(0)}async function ze(e,t){if(!ve){ve=!0;try{await _(()=>({store_fqdn_hash:F(t.storeFqdn)})),await H(()=>({store_fqdn:t.storeFqdn})),await $({config:e,exitMode:"ok"})}catch{}}}function Ne(e,t,o){let r=W(be,100,{leading:!0,trailing:!1});return(s,i)=>{if(i.ctrl&&i.name==="c"){o();return}switch(i.name){case void 0:break;case"t":r(e.local,"localhost");break;case"p":r(e.preview,"theme preview");break;case"e":r(t.lastRequestedPath==="/"?e.themeEditor:`${e.themeEditor}&previewPath=${encodeURIComponent(t.lastRequestedPath)}`,"theme editor");break;case"g":r(e.giftCard,"gift card preview");break;default:break}}}function be(e,t){U(e).catch(Ye(t))}function Ye(e){return t=>{R({headline:`Failed to open ${e}.`,body:t.stack??t.message})}}function Be(e){M({body:[{list:{title:p.bold("Preview your theme ")+p.cyan("(t)"),items:[{link:{url:e.local}}]}}],nextSteps:[[{link:{label:`Share your theme preview ${p.cyan("(p)")}`,url:e.preview}},{subdued:e.preview}],[{link:{label:`Customize your theme at the theme editor ${p.cyan("(e)")}`,url:e.themeEditor}}],[{link:{label:`Preview your gift cards ${p.cyan("(g)")}`,url:e.giftCard}}]]})}export{rr as a,be as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as e}from"./chunk-WHT2RCAD.js";import{a as i}from"./chunk-REABQXMP.js";import{Lb as t}from"./chunk-BCZMDFI2.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function s(){t(i)}var r=class extends e{static{this.description="Shopify CLI version currently installed."}async run(){await s()}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{l as u,m as t,u as h}from"./chunk-2GB3EAD3.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var o=e=>new a(e),s=e=>new n(e),a=class{constructor(r){this.value=r}isErr(){return!1}doOnOk(r){return r(this.value),o(this.value)}valueOrBug(){return this.value}valueOrAbort(){return this.value}map(r){return o(r(this.value))}mapError(r){return o(this.value)}},n=class{constructor(r){this.error=r}isErr(){return!0}doOnOk(r){return s(this.error)}valueOrBug(){throw this.error}valueOrAbort(){if(this.error instanceof u)throw this.error;if(this.error instanceof h.ExtendableError||this.error instanceof Error){let r=new t(this.error.message);throw r.stack=this.error.stack,r}else throw new t(`${this.error}`)}map(r){return s(this.error)}mapError(r){return s(r(this.error))}};export{o as a,s as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-WHT2RCAD.js";import{Ca as g,ua as u,wa as c}from"./chunk-BCZMDFI2.js";import{d as f,q as p}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
|
|
2
2
|
* ${$}
|
|
3
3
|
*${D}
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-LEEVJH4B.js";import{a as g}from"./chunk-M5YGJYNI.js";import{a as y}from"./chunk-NENUUNWB.js";import{g as b,ua as w}from"./chunk-5HJTCBBV.js";import{b as h}from"./chunk-4TANJ4JK.js";import{O as u,t as m,v as f}from"./chunk-JX4HSDDG.js";import{d}from"./chunk-STCLJWHD.js";import{a as S}from"./chunk-CTNBSUVU.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();async function r(e,{web:i,stdout:t,stderr:a,signal:s,env:p={}}){let l=i.configuration.commands[e];if(!l)return;let[_,...v]=l.split(" ");await u(_,v,{cwd:i.directory,stdout:t,stderr:a,signal:s,env:p}),t.write("Web successfully built.")}async function P(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await g(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await b(e.app),await m({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(a,s,p)=>{await r("build",{web:t,stdout:a,stderr:s,signal:p,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(a,s,p)=>{await t.build({stdout:a,stderr:s,signal:p,app:e.app,environment:"production"})}}))],showTimestamps:!1}),f({headline:[{userInput:e.app.name},"built!"]})}var x=P;var I=A(S(),1);var c,n=class extends k{async run(){let{flags:i}=await this.parse(c),t=i["client-id"];await d(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:a,project:s}=await w({directory:i.path,userProvidedConfigName:i.config});return await x({app:a,project:s,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:a}}};c=n;n.summary="Build the app, including extensions.";n.descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid.";n.description=c.descriptionWithoutMarkdown();n.flags={...h,...y,"skip-dependencies-installation":I.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})};var J=n;export{J as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as N}from"./chunk-WDCCITSG.js";import{a as S}from"./chunk-NENUUNWB.js";import{A as x,B as V,ta as M,x as A,y as C}from"./chunk-5HJTCBBV.js";import{a as m}from"./chunk-X5RH4ALT.js";import{b as E,c as b}from"./chunk-4TANJ4JK.js";import{v as j,x as g}from"./chunk-JX4HSDDG.js";import{m as w,o as n}from"./chunk-2GB3EAD3.js";import{Lb as s,Sb as h,Vb as _}from"./chunk-BCZMDFI2.js";import{j as u}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();async function P(d,t){let r=new Set(t.map(e=>e.file)).size;await m.addPublicMetadata(()=>({cmd_app_validate_valid:d,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:r}))}async function k(d,t={json:!1}){let r=d.errors;if(!r||r.isEmpty()){if(await P(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}j({headline:`App configuration '${u(d.configPath)}' is valid.`});return}let e=r.getErrors();if(await P(!1,e),t.json){let f=e.map(({file:c,message:a,path:i,code:o})=>({file:c,message:a,path:i,code:o}));throw s(JSON.stringify({valid:!1,issues:f},null,2)),new n}throw g({headline:"Validation errors found.",body:e.map(f=>`\u2022 ${V(f)}`).join(`
|
|
2
|
+
`)}),new n}var y;async function v(d,t){await m.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:d,cmd_app_validate_file_count:t}))}var l=class extends N{async run(){let{flags:t}=await this.parse(y);await m.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let r;try{r=await A.load(t.path)}catch(a){if(a instanceof w&&t.json){await v(1,1);let i=_(h(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n}throw a}let e;try{e=await x(r,t.config,{clientId:t["client-id"],skipPrompts:!!t["client-id"]})}catch(a){if(a instanceof w&&t.json){await v(1,1);let i=_(h(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n}throw a}let f=C(r,e.file);if(f.length>0){let a=f.map(o=>({file:o.path,message:o.message})),i=new Set(f.map(o=>o.path)).size;throw await v(a.length,i),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new n):(g({headline:"Validation errors found.",body:a.map(o=>`\u2022 ${o.message}`).join(`
|
|
3
|
+
`)}),new n)}let c;try{c=(await M({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config??(t["client-id"]?u(e.file.path):void 0),unsafeTolerateErrors:!0})).app}catch(a){let i=a instanceof w?_(h(a.message)).trim():"";throw i.startsWith("Validation errors in ")&&t.json?(await v(1,1),s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n):a}return await k(c,{json:t.json}),{app:c}}};y=l;l.summary="Validate your app configuration and extensions.";l.descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";l.description=y.descriptionWithoutMarkdown();l.flags={...E,...S,...b};var tt=l;export{tt as a};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as S,b as I,c as E,d as i,e as k,f as F,g as _,h as L,i as M}from"./chunk-J3D4KQOQ.js";import{a as A}from"./chunk-WDCCITSG.js";import{a as b}from"./chunk-NENUUNWB.js";import{Z as P,ta as T}from"./chunk-5HJTCBBV.js";import{B as g,F as v,z as p}from"./chunk-JX4HSDDG.js";import{Nb as h,Qb as u,Sb as w}from"./chunk-BCZMDFI2.js";import{j as y}from"./chunk-773TIA5M.js";import{a as G}from"./chunk-CTNBSUVU.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function H(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
|
${c(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 c(e){return U(e).map(t=>` \xB7 ${w(t)}`).join(`
|
|
3
|
-
`)}async function
|
|
4
|
-
${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await
|
|
3
|
+
`)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:l}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(P({appName:s.title,configFile:y(l.configPath)}),{clientSecret:s.apiSecretKeys.find(f=>f.secret).secret,apiKey:s.apiKey})}async function O(e,t,r){let o=await S(e,r);return t?_(t,o):C(o)}async function B(e,t,r,o){let s=await H(e,t,o);return r?L(r,t,s):V(s)}async function Y(e,t){let r=e??M(t)??await R(),o=t??await D(r);return F(o,r)}async function N(e){let t=await W(e);await z(t)}async function W(e){let t=await O(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await B(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await Y(e.deliveryMethod,e.address),l=await x(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:l.apiKey,clientSecret:l.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function z(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 I(e.developerPlatformClient,t,e.organizationId);if(!r.success){u(`Request errors:
|
|
4
|
+
${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.address,r.samplePayload,r.headers)){h("Localhost delivery sucessful");return}u("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(`
|
|
5
5
|
`)).join(`
|
|
6
|
-
`)}catch{return JSON.stringify(e)}}var d=G(
|
|
6
|
+
`)}catch{return JSON.stringify(e)}}var d=q(G(),1),m,n=class extends A{async run(){let{flags:t}=await this.parse(m),r=await T({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o={...r,topic:t.topic,apiVersion:t["api-version"],deliveryMethod:t["delivery-method"],address:t.address,clientId:t["client-id"],clientSecret:t["client-secret"],path:t.path,config:t.config,organizationId:r.organization.id};return await N(o),{app:r.app}}};m=n;n.summary="Trigger delivery of a sample webhook topic payload to a designated address.";n.descriptionWithMarkdown=`
|
|
7
7
|
Triggers the delivery of a sample Admin API event topic payload to a designated address.
|
|
8
8
|
|
|
9
9
|
You should use this command to experiment with webhooks, to initially test your webhook configuration, or for unit testing. However, to test your webhook configuration from end to end, you should always trigger webhooks by performing the related action in Shopify.
|
|
@@ -18,8 +18,8 @@ ${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await k(e.addr
|
|
|
18
18
|
- Webhooks triggered using this method aren't retried when they fail.
|
|
19
19
|
- Trigger requests are rate-limited using the [Partner API rate limit](https://shopify.dev/docs/api/partner#rate_limits).
|
|
20
20
|
- You can't use this method to validate your API webhook subscriptions.
|
|
21
|
-
`;n.description=
|
|
21
|
+
`;n.description=m.descriptionWithoutMarkdown();n.flags={...b,help:d.Flags.help({required:!1,hidden:!1,env:"SHOPIFY_FLAG_HELP",description:"This help. When you run the trigger command the CLI will prompt you for any information that isn't passed using flags."}),topic:d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_TOPIC",description:"The requested webhook topic."}),"api-version":d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_API_VERSION",description:"The API Version of the webhook topic."}),"delivery-method":d.Flags.string({required:!1,hidden:!1,options:[i.HTTP,i.PUBSUB,i.EVENTBRIDGE],env:"SHOPIFY_FLAG_DELIVERY_METHOD",description:"Method chosen to deliver the topic payload. If not passed, it's inferred from the address."}),"client-secret":d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_CLIENT_SECRET",description:"Your app's client secret. This secret allows us to return the X-Shopify-Hmac-SHA256 header that lets you validate the origin of the response that you receive."}),address:d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_ADDRESS",description:`The URL where the webhook payload should be sent.
|
|
22
22
|
You will need a different address type for each delivery-method:
|
|
23
23
|
${c(i.HTTP)}
|
|
24
24
|
${c(i.PUBSUB)}
|
|
25
|
-
${c(i.EVENTBRIDGE)}`})};var
|
|
25
|
+
${c(i.EVENTBRIDGE)}`})};var Ae=n;export{Ae as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-U3P5TIIR.js";import{b as a}from"./chunk-WHT2RCAD.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class extends a{static{this.description="View the UI kit components that process async tasks"}static{this.hidden=!0}async run(){await o()}};export{t as a};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{b as f}from"./chunk-WHT2RCAD.js";import{b as C}from"./chunk-6KAWCN3I.js";import{A as S,u as i,y as x}from"./chunk-JX4HSDDG.js";import{m as v}from"./chunk-2GB3EAD3.js";import{Pb as I}from"./chunk-BCZMDFI2.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=W()){return!!o.get("autocorrectEnabled")}function y(o,e=W()){e.set("autocorrectEnabled",o)}function W(){return b??(b=new C({projectName:"did-you-mean"})),b}var b;var A,s=class extends f{async run(){y(!0),i({body:m.on})}};A=s;s.summary="Enable autocorrect. Off by default.";s.descriptionWithMarkdown=`Enable autocorrect. Off by default.
|
|
2
|
+
|
|
3
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
4
|
+
|
|
5
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
6
|
+
`;s.description=A.descriptionWithoutMarkdown();var E=s;n();var k,u=class extends f{async run(){y(!1),i({body:m.off})}};k=u;u.summary="Disable autocorrect. Off by default.";u.descriptionWithMarkdown=`Disable autocorrect. Off by default.
|
|
7
|
+
|
|
8
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
9
|
+
|
|
10
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
11
|
+
`;u.description=k.descriptionWithoutMarkdown();var M=u;n();var D,d=class extends f{async run(){p()?i({body:m.on}):i({body:m.off})}};D=d;d.summary="Check whether autocorrect is enabled or disabled. On by default.";d.descriptionWithMarkdown=`Check whether autocorrect is enabled or disabled. On by default.
|
|
12
|
+
|
|
13
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
14
|
+
|
|
15
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
16
|
+
`;d.description=D.descriptionWithoutMarkdown();var N=d;n();var g=O(2),ao=O(3);function O(o){if(typeof o!="number"||Number.isNaN(o)||o<1||o===Number.POSITIVE_INFINITY)throw new Error("`"+o+"` is not a valid argument for `n-gram`");return e;function e(t){let c=[];if(t==null)return c;let a=typeof t.slice=="function"?t:String(t),r=a.length-o+1;if(r<1)return c;for(;r--;)c[r]=a.slice(r,r+o);return c}}function h(o){return o.replace(/:/g," ")}function F(o,e){let t=new Map;for(let a of o)t.set(a,(t.get(a)??0)+1);let c=0;for(let a of e){let r=t.get(a)??0;r>0&&(c+=1,t.set(a,r-1))}return c}function L(o){if(o.id.length<2)return;let e=new Set(o.config.commands.filter(r=>r.hidden).map(r=>r.id)),t=Array.from(new Set([...o.config.commandIDs,...o.config.commands.flatMap(r=>r.aliases)].filter(r=>!e.has(r)))),c=g(o.id),a=t.map(r=>{let l=g(r);return{score:F(l,c),cmd:r}}).filter(({score:r})=>r>=2).sort((r,l)=>{let w=l.score-r.score;return w!==0?w:r.cmd.length-l.cmd.length});if(I(`'Did you mean' options: ${JSON.stringify(a)}`),a.length>0){let{cmd:r}=a[0];return r}}async function Y(o,e){return p()?(i({body:["Autocorrecting",{command:h(e)},"to",{command:h(o)},{char:"."}]}),!0):S({message:["Command",{command:e},"not found. Did you mean",{command:h(o)},{char:"?"}]})}var bo={"config:autocorrect:off":M,"config:autocorrect:status":N,"config:autocorrect:on":E},go=async function(o){let e=L(o),t=h(o.id);if(o.argv&&(o.argv.includes("-f")||o.argv.includes("--force"))||!e){x(new v(`Command '${t}' not found.`));return}await Y(e,t)&&await this.config.runCommand(e,o.argv)};export{L as a,Y as b,bo as c,go as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as l}from"./chunk-
|
|
1
|
+
import{h as l}from"./chunk-Y7A7Z2V3.js";import{O as c}from"./chunk-AFM3UZQO.js";import{m as u}from"./chunk-2GB3EAD3.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as C}from"./chunk-WDCCITSG.js";import{a as E}from"./chunk-NENUUNWB.js";import{P as F,Q as _,R as x,ta as R}from"./chunk-5HJTCBBV.js";import{b as I}from"./chunk-4TANJ4JK.js";import{D as A,v,x as h}from"./chunk-JX4HSDDG.js";import{d as w}from"./chunk-STCLJWHD.js";import{o as k}from"./chunk-2GB3EAD3.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as b,g as l}from"./chunk-VKWPEFWQ.js";l();l();async function P(n){let{developerPlatformClient:e,app:p,remoteApp:s}=n,{extensionIdentifiersBreakdown:a,versionDetails:o}=await F(e,s,n.version),t=_({localApp:p,versionAppModules:o.appModuleVersions,activeAppVersion:await e.activeAppVersion(s)});if(!await x({configExtensionIdentifiersBreakdown:t,extensionIdentifiersBreakdown:a,appTitle:s.title,release:!0,allowUpdates:n.force||n.allowUpdates,allowDeletes:n.force||n.allowDeletes}))throw new k;let m=[{title:"Releasing version",task:async u=>{u.appRelease=await e.release({app:s,version:{versionId:o.uuid,appVersionId:o.id}})}}],{appRelease:{appRelease:i}}=await A(m),f=[{link:{label:o.versionTag??void 0,url:o.location}},o.message?`
|
|
2
|
+
${o.message}`:""];if(i.userErrors&&i.userErrors.length>0){let u=i.userErrors?.map(T=>T.message).join(", ");h({headline:"Version couldn't be released.",body:[...f,`${f.length>0?`
|
|
3
|
+
|
|
4
|
+
`:""}${u}`]})}else v({headline:"Version released to users.",body:f})}var d=b(y(),1);var g,r=class extends C{async run(){let{flags:e}=await this.parse(g),p=e["client-id"];await w(()=>({cmd_app_reset_used:e.reset}));let s=e["allow-updates"],a=e["allow-deletes"],o=!!(s&&a),t=[];!s&&!a&&t.push("allow-updates"),this.failMissingNonTTYFlags(e,t);let{app:c,remoteApp:m,developerPlatformClient:i}=await R({directory:e.path,clientId:p,forceRelink:e.reset,userProvidedConfigName:e.config});return await P({app:c,remoteApp:m,developerPlatformClient:i,force:o,allowUpdates:s,allowDeletes:a,version:e.version}),{app:c}}};g=r;r.summary="Release an app version.";r.usage="app release --version <version>";r.descriptionWithMarkdown="Releases an existing app version. Pass the name of the version that you want to release using the `--version` flag.";r.description=g.descriptionWithoutMarkdown();r.flags={...I,...E,"allow-updates":d.Flags.boolean({hidden:!1,description:"Allows adding and updating extensions and configuration without requiring user confirmation. Recommended option for CI/CD environments.",env:"SHOPIFY_FLAG_ALLOW_UPDATES"}),"allow-deletes":d.Flags.boolean({hidden:!1,description:"Allows removing extensions and configuration without requiring user confirmation. For CI/CD environments, the recommended flag is --allow-updates.",env:"SHOPIFY_FLAG_ALLOW_DELETES"}),version:d.Flags.string({hidden:!1,description:"The name of the app version to release.",env:"SHOPIFY_FLAG_VERSION",required:!0})};var G=r;export{G as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as B,b as E}from"./chunk-
|
|
1
|
+
import{a as B,b as E}from"./chunk-5QDM4XIK.js";import{b as y,c as A,l as C,n as F,o as S,t as x}from"./chunk-5INBKZRD.js";import{a as D}from"./chunk-WDCCITSG.js";import{a as w}from"./chunk-NENUUNWB.js";import{b as O}from"./chunk-4TANJ4JK.js";import{y as f}from"./chunk-AFM3UZQO.js";import{u as l,v as k,w as b,x as g}from"./chunk-JX4HSDDG.js";import{Fb as h,Hb as I}from"./chunk-BCZMDFI2.js";import{a as _}from"./chunk-CTNBSUVU.js";import{e as z,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function T(n){let{organization:a,storeFqdn:o,operationId:r,remoteApp:u}=n;l({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${r}`,...E({organization:a,remoteApp:u,storeFqdn:o})]}}]});let v=await B(u,o),p=await C({adminSession:v,operationId:r});if(p?.userErrors?.length){F(p.userErrors,"Failed to cancel bulk operation.");return}let i=p?.bulkOperation;if(i){let t=S(i),d=i.status==="CANCELING"?[`This may take a few moments. Check the status with:
|
|
2
2
|
`,{command:`shopify app bulk status --id=${A(i.id)}`}]:t.body,c={headline:t.headline,...d&&{body:d},...t.customSections&&{customSections:t.customSections}};switch(t.renderType){case"success":k(c);break;case"warning":b(c);break;case"info":l(c);break}}else g({headline:"Bulk operation not found or could not be canceled.",body:I`ID: ${h.yellow(r)}`.value})}var m=z(_(),1);var q,e=class extends D{async run(){let{flags:a}=await this.parse(q),{appContextResult:o,store:r}=await x(a);return await T({organization:o.organization,storeFqdn:r.shopDomain,operationId:y(a.id),remoteApp:o.remoteApp}),{app:o.app}}};q=e;e.summary="Cancel a bulk operation.";e.description="Cancels a running bulk operation by ID.";e.flags={...O,...w,id:m.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:m.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async n=>f(n)})};var K=e;export{K as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as a}from"./chunk-AFM3UZQO.js";import{m as s}from"./chunk-2GB3EAD3.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var n={LOCALHOST:"localhost",HTTP:"http",PUBSUB:"google-pub-sub",EVENTBRIDGE:"event-bridge"},p={LOCALHOST:new RegExp("^http:","i"),HTTP:new RegExp("^https:","i"),PUBSUB:new RegExp("^pubsub:"),EVENTBRIDGE:new RegExp("^arn:aws:events:")};function c(t,e){let r=T(t);return r===n.LOCALHOST&&e===n.HTTP?!0:r===e}function l(t){return p.LOCALHOST.test(t)?new URL(t.toLowerCase()).hostname==="localhost":!1}function d(t,e){if(!c(t,e))throw new s(`Can't deliver your webhook payload to this address using '${e}'`,"Use a valid URL for address",f(e));let r=e;return l(t)&&(r=n.LOCALHOST),[t.trim(),r]}function f(t){return t===n.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:t===n.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:t===n.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function g(t,e){if(e.includes(t))return t;throw new s(`Api Version '${t}' does not exist`,`Allowed values: ${e.join(", ")}`,["Try again with a valid api-version value"])}function A(t,e,r){if(r.length===0)throw new s(`No topics found for '${e}'`);let o=h(t.trim(),r);if(o===void 0)throw new s(`Topic '${t}' does not exist for ApiVersion '${e}'`,`Allowed values: ${r.join(", ")}`,["Try again with a valid api-version - topic pair"]);return o}function h(t,e){return e.includes(t)?t:e.find(r=>r.toUpperCase().replace("/","_")===t)}function T(t){if(t){if(t.startsWith("pubsub:"))return n.PUBSUB;if(t.startsWith("arn:aws:events:"))return n.EVENTBRIDGE;if(l(t))return n.LOCALHOST;if(p.HTTP.test(t))return n.HTTP}}i();async function O(t,e,r){let{sendSampleWebhook:o}=await t.sendSampleWebhook(e,r);return o}i();async function H(t,e,r){let o={method:"POST",body:e,headers:{"Content-Type":"application/json",...JSON.parse(r)}},u=await a(t,o);return u.status>=200&&u.status<300}i();async function m(t,e){let{publicApiVersions:r}=await t.apiVersions(e),o=r.indexOf("unstable");return o===-1?r.sort().reverse():(r.splice(o,1),r.sort().reverse(),r.push("unstable")),r}export{m as a,O as b,H as c,n as d,c as e,d as f,g,A as h,T as i};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{a as ie,c as M,g as d}from"./chunk-VKWPEFWQ.js";var Ue=M((Ln,De)=>{d();De.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Fe=M((Nn,Ke)=>{d();var zt=Ue(),qe={"{":"}","(":")","[":"]"},Yt=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,s=-2,i=-2,u=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(u===-1||u>n||(u=e.indexOf("\\",t),u===-1||u>n)))||s!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(s=e.indexOf("}",t),s>t&&(u=e.indexOf("\\",t),u===-1||u>s))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(u=e.indexOf("\\",t),u===-1||u>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(u=e.indexOf("\\",r),u===-1||u>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var A=qe[a];if(A){var _=e.indexOf(A,t);_!==-1&&(t=_+1)}if(e[t]==="!")return!0}else t++}return!1},Vt=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=qe[r];if(n){var s=e.indexOf(n,t);s!==-1&&(t=s+1)}if(e[t]==="!")return!0}else t++}return!1};Ke.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(zt(t))return!0;var n=Yt;return r&&r.strict===!1&&(n=Vt),n(t)}});var ir=M((In,Xe)=>{"use strict";d();var Jt=Fe(),er=ie("path").posix.dirname,tr=ie("os").platform()==="win32",be="/",rr=/\\/g,nr=/[\{\[].*[\}\]]$/,sr=/(^|[^\\])([\{\[]|\([^\)]+$)/,ur=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Xe.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&tr&&t.indexOf(be)<0&&(t=t.replace(rr,be)),nr.test(t)&&(t+=be),t+="a";do t=er(t);while(Jt(t)||sr.test(t));return t.replace(ur,"$1")}});var Re=M(W=>{"use strict";d();W.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;W.find=(e,t)=>e.nodes.find(r=>r.type===t);W.exceedsLimit=(e,t,r=1,n)=>n===!1||!W.isInteger(e)||!W.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;W.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};W.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;W.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;W.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;W.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);W.flatten=(...e)=>{let t=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var _e=M((Pn,We)=>{"use strict";d();var Qe=Re();We.exports=(e,t={})=>{let r=(n,s={})=>{let i=t.escapeInvalid&&Qe.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||u)&&Qe.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let A of n.nodes)a+=r(A);return a};return r(e)}});var je=M((Dn,Ze)=>{"use strict";d();Ze.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var st=M((qn,nt)=>{"use strict";d();var ze=je(),se=(e,t,r)=>{if(ze(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ze(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),i=String(n.shorthand),u=String(n.capture),a=String(n.wrap),A=e+":"+t+"="+s+i+u+a;if(se.cache.hasOwnProperty(A))return se.cache[A].result;let _=Math.min(e,t),g=Math.max(e,t);if(Math.abs(_-g)===1){let R=e+"|"+t;return n.capture?`(${R})`:n.wrap===!1?R:`(?:${R})`}let x=rt(e)||rt(t),f={min:e,max:t,a:_,b:g},H=[],E=[];if(x&&(f.isPadded=x,f.maxLen=String(f.max).length),_<0){let R=g<0?Math.abs(g):1;E=Ye(R,Math.abs(_),f,n),_=f.a=0}return g>=0&&(H=Ye(_,g,f,n)),f.negatives=E,f.positives=H,f.result=ar(E,H,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&H.length+E.length>1&&(f.result=`(?:${f.result})`),se.cache[A]=f,f.result};function ar(e,t,r){let n=Se(e,t,"-",!1,r)||[],s=Se(t,e,"",!1,r)||[],i=Se(e,t,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function or(e,t){let r=1,n=1,s=Je(e,r),i=new Set([t]);for(;e<=s&&s<=t;)i.add(s),r+=1,s=Je(e,r);for(s=et(t+1,n)-1;e<s&&s<=t;)i.add(s),n+=1,s=et(t+1,n)-1;return i=[...i],i.sort(fr),i}function lr(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=cr(e,t),s=n.length,i="",u=0;for(let a=0;a<s;a++){let[A,_]=n[a];A===_?i+=A:A!=="0"||_!=="9"?i+=pr(A,_,r):u++}return u&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[u],digits:s}}function Ye(e,t,r,n){let s=or(e,t),i=[],u=e,a;for(let A=0;A<s.length;A++){let _=s[A],g=lr(String(u),String(_),n),x="";if(!r.isPadded&&a&&a.pattern===g.pattern){a.count.length>1&&a.count.pop(),a.count.push(g.count[0]),a.string=a.pattern+tt(a.count),u=_+1;continue}r.isPadded&&(x=hr(_,r,n)),g.string=x+g.pattern+tt(g.count),i.push(g),u=_+1,a=g}return i}function Se(e,t,r,n,s){let i=[];for(let u of e){let{string:a}=u;!n&&!Ve(t,"string",a)&&i.push(r+a),n&&Ve(t,"string",a)&&i.push(r+a)}return i}function cr(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function fr(e,t){return e>t?1:t>e?-1:0}function Ve(e,t,r){return e.some(n=>n[t]===r)}function Je(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function et(e,t){return e-e%Math.pow(10,t)}function tt(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function pr(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function rt(e){return/^-?(0+)\d/.test(e)}function hr(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}se.cache={};se.clearCache=()=>se.cache={};nt.exports=se});var $e=M((Fn,ft)=>{"use strict";d();var Ar=ie("util"),it=st(),ut=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),gr=e=>t=>e===!0?Number(t):String(t),He=e=>typeof e=="number"||typeof e=="string"&&e!=="",le=e=>Number.isInteger(+e),ve=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Rr=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,_r=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},xe=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Er=(e,t,r)=>{e.negatives.sort((a,A)=>a<A?-1:a>A?1:0),e.positives.sort((a,A)=>a<A?-1:a>A?1:0);let n=t.capture?"":"?:",s="",i="",u;return e.positives.length&&(s=e.positives.map(a=>xe(String(a),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(a=>xe(String(a),r)).join("|")})`),s&&i?u=`${s}|${i}`:u=s||i,t.wrap?`(${n}${u})`:u},at=(e,t,r,n)=>{if(r)return it(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},ot=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return it(e,t,r)},lt=(...e)=>new RangeError("Invalid range arguments: "+Ar.inspect(...e)),ct=(e,t,r)=>{if(r.strictRanges===!0)throw lt([e,t]);return[]},xr=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Cr=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw lt([e,t]);return[]}s===0&&(s=0),i===0&&(i=0);let u=s>i,a=String(e),A=String(t),_=String(r);r=Math.max(Math.abs(r),1);let g=ve(a)||ve(A)||ve(_),x=g?Math.max(a.length,A.length,_.length):0,f=g===!1&&Rr(e,t,n)===!1,H=n.transform||gr(f);if(n.toRegex&&r===1)return at(xe(e,x),xe(t,x),!0,n);let E={negatives:[],positives:[]},R=K=>E[K<0?"negatives":"positives"].push(Math.abs(K)),$=[],w=0;for(;u?s>=i:s<=i;)n.toRegex===!0&&r>1?R(s):$.push(_r(H(s,w),x,f)),s=u?s-r:s+r,w++;return n.toRegex===!0?r>1?Er(E,n,x):ot($,null,{wrap:!1,...n}):$},yr=(e,t,r=1,n={})=>{if(!le(e)&&e.length>1||!le(t)&&t.length>1)return ct(e,t,n);let s=n.transform||(f=>String.fromCharCode(f)),i=`${e}`.charCodeAt(0),u=`${t}`.charCodeAt(0),a=i>u,A=Math.min(i,u),_=Math.max(i,u);if(n.toRegex&&r===1)return at(A,_,!1,n);let g=[],x=0;for(;a?i>=u:i<=u;)g.push(s(i,x)),i=a?i-r:i+r,x++;return n.toRegex===!0?ot(g,null,{wrap:!1,options:n}):g},Ee=(e,t,r,n={})=>{if(t==null&&He(e))return[e];if(!He(e)||!He(t))return ct(e,t,n);if(typeof r=="function")return Ee(e,t,1,{transform:r});if(ut(r))return Ee(e,t,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,le(r)?le(e)&&le(t)?Cr(e,t,r,s):yr(e,t,Math.max(Math.abs(r),1),s):r!=null&&!ut(r)?xr(r,s):Ee(e,t,1,r)};ft.exports=Ee});var At=M((Qn,ht)=>{"use strict";d();var dr=$e(),pt=Re(),br=(e,t={})=>{let r=(n,s={})=>{let i=pt.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||u===!0,A=t.escapeInvalid===!0?"\\":"",_="";if(n.isOpen===!0)return A+n.value;if(n.isClose===!0)return console.log("node.isClose",A,n.value),A+n.value;if(n.type==="open")return a?A+n.value:"(";if(n.type==="close")return a?A+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let g=pt.reduce(n.nodes),x=dr(...g,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(x.length!==0)return g.length>1&&x.length>1?`(${x})`:x}if(n.nodes)for(let g of n.nodes)_+=r(g,n);return _};return r(e)};ht.exports=br});var _t=M((Zn,Rt)=>{"use strict";d();var Sr=$e(),gt=_e(),ae=Re(),ue=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ae.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let i of s)n.push(ue(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ue(s,i,r):s+i);return ae.flatten(n)},Hr=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,i={})=>{s.queue=[];let u=i,a=i.queue;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,a=u.queue;if(s.invalid||s.dollar){a.push(ue(a.pop(),gt(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(ue(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let x=ae.reduce(s.nodes);if(ae.exceedsLimit(...x,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Sr(...x,t);f.length===0&&(f=gt(s,t)),a.push(ue(a.pop(),f)),s.nodes=[];return}let A=ae.encloseBrace(s),_=s.queue,g=s;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,_=g.queue;for(let x=0;x<s.nodes.length;x++){let f=s.nodes[x];if(f.type==="comma"&&s.type==="brace"){x===1&&_.push(""),_.push("");continue}if(f.type==="close"){a.push(ue(a.pop(),_,A));continue}if(f.value&&f.type!=="open"){_.push(ue(_.pop(),f.value));continue}f.nodes&&n(f,s)}return _};return ae.flatten(n(e))};Rt.exports=Hr});var xt=M((zn,Et)=>{"use strict";d();Et.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
2
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var St=M((Vn,bt)=>{"use strict";d();var vr=_e(),{MAX_LENGTH:Ct,CHAR_BACKSLASH:Te,CHAR_BACKTICK:$r,CHAR_COMMA:Tr,CHAR_DOT:Or,CHAR_LEFT_PARENTHESES:Lr,CHAR_RIGHT_PARENTHESES:mr,CHAR_LEFT_CURLY_BRACE:Nr,CHAR_RIGHT_CURLY_BRACE:wr,CHAR_LEFT_SQUARE_BRACKET:yt,CHAR_RIGHT_SQUARE_BRACKET:dt,CHAR_DOUBLE_QUOTE:Ir,CHAR_SINGLE_QUOTE:Br,CHAR_NO_BREAK_SPACE:kr,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Mr}=xt(),Pr=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ct,r.maxLength):Ct;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},i=[s],u=s,a=s,A=0,_=e.length,g=0,x=0,f,H=()=>e[g++],E=R=>{if(R.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&R.type==="text"){a.value+=R.value;return}return u.nodes.push(R),R.parent=u,R.prev=a,a=R,R};for(E({type:"bos"});g<_;)if(u=i[i.length-1],f=H(),!(f===Mr||f===kr)){if(f===Te){E({type:"text",value:(t.keepEscaping?f:"")+H()});continue}if(f===dt){E({type:"text",value:"\\"+f});continue}if(f===yt){A++;let R;for(;g<_&&(R=H());){if(f+=R,R===yt){A++;continue}if(R===Te){f+=H();continue}if(R===dt&&(A--,A===0))break}E({type:"text",value:f});continue}if(f===Lr){u=E({type:"paren",nodes:[]}),i.push(u),E({type:"text",value:f});continue}if(f===mr){if(u.type!=="paren"){E({type:"text",value:f});continue}u=i.pop(),E({type:"text",value:f}),u=i[i.length-1];continue}if(f===Ir||f===Br||f===$r){let R=f,$;for(t.keepQuotes!==!0&&(f="");g<_&&($=H());){if($===Te){f+=$+H();continue}if($===R){t.keepQuotes===!0&&(f+=$);break}f+=$}E({type:"text",value:f});continue}if(f===Nr){x++;let $={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||u.dollar===!0,depth:x,commas:0,ranges:0,nodes:[]};u=E($),i.push(u),E({type:"open",value:f});continue}if(f===wr){if(u.type!=="brace"){E({type:"text",value:f});continue}let R="close";u=i.pop(),u.close=!0,E({type:R,value:f}),x--,u=i[i.length-1];continue}if(f===Tr&&x>0){if(u.ranges>0){u.ranges=0;let R=u.nodes.shift();u.nodes=[R,{type:"text",value:vr(u)}]}E({type:"comma",value:f}),u.commas++;continue}if(f===Or&&x>0&&u.commas===0){let R=u.nodes;if(x===0||R.length===0){E({type:"text",value:f});continue}if(a.type==="dot"){if(u.range=[],a.value+=f,a.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,a.type="text";continue}u.ranges++,u.args=[];continue}if(a.type==="range"){R.pop();let $=R[R.length-1];$.value+=a.value+f,a=$,u.ranges--;continue}E({type:"dot",value:f});continue}E({type:"text",value:f})}do if(u=i.pop(),u.type!=="root"){u.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let R=i[i.length-1],$=R.nodes.indexOf(u);R.nodes.splice($,1,...u.nodes)}while(i.length>0);return E({type:"eos"}),s};bt.exports=Pr});var qr=M((es,vt)=>{"use strict";d();var Ht=_e(),Gr=At(),Dr=_t(),Ur=St(),Q=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=Q.create(n,t);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(Q.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Q.parse=(e,t={})=>Ur(e,t);Q.stringify=(e,t={})=>Ht(typeof e=="string"?Q.parse(e,t):e,t);Q.compile=(e,t={})=>(typeof e=="string"&&(e=Q.parse(e,t)),Gr(e,t));Q.expand=(e,t={})=>{typeof e=="string"&&(e=Q.parse(e,t));let r=Dr(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Q.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Q.compile(e,t):Q.expand(e,t);vt.exports=Q});var ce=M((rs,mt)=>{"use strict";d();var Kr=ie("path"),J="\\\\/",$t=`[^${J}]`,Fr=0,ee="\\.",Xr="\\+",Qr="\\?",Ce="\\/",Wr="(?=.)",Tt="[^/]",Oe=`(?:${Ce}|$)`,Ot=`(?:^|${Ce})`,Le=`${ee}{1,2}${Oe}`,Zr=`(?!${ee})`,jr=`(?!${Ot}${Le})`,zr=`(?!${ee}{0,1}${Oe})`,Yr=`(?!${Le})`,Vr=`[^.${Ce}]`,Jr=`${Tt}*?`,Lt={DOT_LITERAL:ee,PLUS_LITERAL:Xr,QMARK_LITERAL:Qr,SLASH_LITERAL:Ce,ONE_CHAR:Wr,QMARK:Tt,END_ANCHOR:Oe,DOTS_SLASH:Le,NO_DOT:Zr,NO_DOTS:jr,NO_DOT_SLASH:zr,NO_DOTS_SLASH:Yr,QMARK_NO_DOT:Vr,STAR:Jr,START_ANCHOR:Ot},en={...Lt,SLASH_LITERAL:`[${J}]`,QMARK:$t,STAR:`${$t}*?`,DOTS_SLASH:`${ee}{1,2}(?:[${J}]|$)`,NO_DOT:`(?!${ee})`,NO_DOTS:`(?!(?:^|[${J}])${ee}{1,2}(?:[${J}]|$))`,NO_DOT_SLASH:`(?!${ee}{0,1}(?:[${J}]|$))`,NO_DOTS_SLASH:`(?!${ee}{1,2}(?:[${J}]|$))`,QMARK_NO_DOT:`[^.${J}]`,START_ANCHOR:`(?:^|[${J}])`,END_ANCHOR:`(?:[${J}]|$)`},tn={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};mt.exports={DEFAULT_MAX_EXTGLOB_RECURSION:Fr,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:tn,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Kr.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?en:Lt}}});var ye=M(F=>{"use strict";d();var rn=ie("path"),nn=process.platform==="win32",{REGEX_BACKSLASH:sn,REGEX_REMOVE_BACKSLASH:un,REGEX_SPECIAL_CHARS:an,REGEX_SPECIAL_CHARS_GLOBAL:on}=ce();F.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);F.hasRegexChars=e=>an.test(e);F.isRegexChar=e=>e.length===1&&F.hasRegexChars(e);F.escapeRegex=e=>e.replace(on,"\\$1");F.toPosixSlashes=e=>e.replace(sn,"/");F.removeBackslashes=e=>e.replace(un,t=>t==="\\"?"":t);F.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};F.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:nn===!0||rn.sep==="\\";F.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?F.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};F.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};F.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Gt=M((is,Pt)=>{"use strict";d();var Nt=ye(),{CHAR_ASTERISK:me,CHAR_AT:ln,CHAR_BACKWARD_SLASH:fe,CHAR_COMMA:cn,CHAR_DOT:Ne,CHAR_EXCLAMATION_MARK:we,CHAR_FORWARD_SLASH:Mt,CHAR_LEFT_CURLY_BRACE:Ie,CHAR_LEFT_PARENTHESES:Be,CHAR_LEFT_SQUARE_BRACKET:fn,CHAR_PLUS:pn,CHAR_QUESTION_MARK:wt,CHAR_RIGHT_CURLY_BRACE:hn,CHAR_RIGHT_PARENTHESES:It,CHAR_RIGHT_SQUARE_BRACKET:An}=ce(),Bt=e=>e===Mt||e===fe,kt=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},gn=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],u=[],a=[],A=e,_=-1,g=0,x=0,f=!1,H=!1,E=!1,R=!1,$=!1,w=!1,K=!1,I=!1,Z=!1,G=!1,te=0,U,C,v={value:"",depth:0,isGlob:!1},P=()=>_>=n,c=()=>A.charCodeAt(_+1),m=()=>(U=C,A.charCodeAt(++_));for(;_<n;){C=m();let q;if(C===fe){K=v.backslashes=!0,C=m(),C===Ie&&(w=!0);continue}if(w===!0||C===Ie){for(te++;P()!==!0&&(C=m());){if(C===fe){K=v.backslashes=!0,m();continue}if(C===Ie){te++;continue}if(w!==!0&&C===Ne&&(C=m())===Ne){if(f=v.isBrace=!0,E=v.isGlob=!0,G=!0,s===!0)continue;break}if(w!==!0&&C===cn){if(f=v.isBrace=!0,E=v.isGlob=!0,G=!0,s===!0)continue;break}if(C===hn&&(te--,te===0)){w=!1,f=v.isBrace=!0,G=!0;break}}if(s===!0)continue;break}if(C===Mt){if(i.push(_),u.push(v),v={value:"",depth:0,isGlob:!1},G===!0)continue;if(U===Ne&&_===g+1){g+=2;continue}x=_+1;continue}if(r.noext!==!0&&(C===pn||C===ln||C===me||C===wt||C===we)===!0&&c()===Be){if(E=v.isGlob=!0,R=v.isExtglob=!0,G=!0,C===we&&_===g&&(Z=!0),s===!0){for(;P()!==!0&&(C=m());){if(C===fe){K=v.backslashes=!0,C=m();continue}if(C===It){E=v.isGlob=!0,G=!0;break}}continue}break}if(C===me){if(U===me&&($=v.isGlobstar=!0),E=v.isGlob=!0,G=!0,s===!0)continue;break}if(C===wt){if(E=v.isGlob=!0,G=!0,s===!0)continue;break}if(C===fn){for(;P()!==!0&&(q=m());){if(q===fe){K=v.backslashes=!0,m();continue}if(q===An){H=v.isBracket=!0,E=v.isGlob=!0,G=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&C===we&&_===g){I=v.negated=!0,g++;continue}if(r.noparen!==!0&&C===Be){if(E=v.isGlob=!0,s===!0){for(;P()!==!0&&(C=m());){if(C===Be){K=v.backslashes=!0,C=m();continue}if(C===It){G=!0;break}}continue}break}if(E===!0){if(G=!0,s===!0)continue;break}}r.noext===!0&&(R=!1,E=!1);let O=A,re="",o="";g>0&&(re=A.slice(0,g),A=A.slice(g),x-=g),O&&E===!0&&x>0?(O=A.slice(0,x),o=A.slice(x)):E===!0?(O="",o=A):O=A,O&&O!==""&&O!=="/"&&O!==A&&Bt(O.charCodeAt(O.length-1))&&(O=O.slice(0,-1)),r.unescape===!0&&(o&&(o=Nt.removeBackslashes(o)),O&&K===!0&&(O=Nt.removeBackslashes(O)));let l={prefix:re,input:e,start:g,base:O,glob:o,isBrace:f,isBracket:H,isGlob:E,isExtglob:R,isGlobstar:$,negated:I,negatedExtglob:Z};if(r.tokens===!0&&(l.maxDepth=0,Bt(C)||u.push(v),l.tokens=u),r.parts===!0||r.tokens===!0){let q;for(let S=0;S<i.length;S++){let j=q?q+1:g,z=i[S],X=e.slice(j,z);r.tokens&&(S===0&&g!==0?(u[S].isPrefix=!0,u[S].value=re):u[S].value=X,kt(u[S]),l.maxDepth+=u[S].depth),(S!==0||X!=="")&&a.push(X),q=z}if(q&&q+1<e.length){let S=e.slice(q+1);a.push(S),r.tokens&&(u[u.length-1].value=S,kt(u[u.length-1]),l.maxDepth+=u[u.length-1].depth)}l.slashes=i,l.parts=a}return l};Pt.exports=gn});var Ft=M((os,Kt)=>{"use strict";d();var pe=ce(),D=ye(),{MAX_LENGTH:de,POSIX_REGEX_SOURCE:Rn,REGEX_NON_SPECIAL_CHARS:_n,REGEX_SPECIAL_CHARS_BACKREF:En,REPLACEMENTS:Dt}=pe,xn=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(s=>D.escapeRegex(s)).join("..")}return r},oe=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Ut=e=>{let t=[],r=0,n=0,s=0,i="",u=!1;for(let a of e){if(u===!0){i+=a,u=!1;continue}if(a==="\\"){i+=a,u=!0;continue}if(a==='"'){s=s===1?0:1,i+=a;continue}if(s===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},Cn=e=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},qt=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(Cn(t))return t.replace(/\\(.)/g,"$1")},yn=e=>{let t=e.map(qt).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let s=t[r],i=t[n],u=s[0];if(!(!u||s!==u.repeat(s.length)||i!==u.repeat(i.length))&&(s===i||s.startsWith(i)||i.startsWith(s)))return!0}return!1},ke=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,s=0,i=!1;for(let u=1;u<e.length;u++){let a=e[u];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){s=s===1?0:1;continue}if(s!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return t===!0&&u!==e.length-1?void 0:{type:e[0],body:e.slice(2,u),end:u}}}}},dn=e=>{let t=0,r=[];for(;t<e.length;){let s=ke(e.slice(t),!1);if(!s||s.type!=="*")return;let i=Ut(s.body).map(a=>a.trim());if(i.length!==1)return;let u=qt(i[0]);if(!u||u.length!==1)return;r.push(u),t+=s.end+1}return r.length<1?void 0:`${r.length===1?D.escapeRegex(r[0]):`[${r.map(s=>D.escapeRegex(s)).join("")}]`}*`},bn=e=>{let t=0,r=e.trim(),n=ke(r);for(;n;)t++,r=n.body.trim(),n=ke(r);return t},Sn=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:pe.DEFAULT_MAX_EXTGLOB_RECURSION,n=Ut(e).map(s=>s.trim());if(n.length>1&&(n.some(s=>s==="")||n.some(s=>/^[*?]+$/.test(s))||yn(n)))return{risky:!0};for(let s of n){let i=dn(s);if(i)return{risky:!0,safeOutput:i};if(bn(s)>r)return{risky:!0}}return{risky:!1}},Me=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Dt[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(de,r.maxLength):de,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},u=[i],a=r.capture?"":"?:",A=D.isWindows(t),_=pe.globChars(A),g=pe.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:f,SLASH_LITERAL:H,ONE_CHAR:E,DOTS_SLASH:R,NO_DOT:$,NO_DOT_SLASH:w,NO_DOTS_SLASH:K,QMARK:I,QMARK_NO_DOT:Z,STAR:G,START_ANCHOR:te}=_,U=h=>`(${a}(?:(?!${te}${h.dot?R:x}).)*?)`,C=r.dot?"":$,v=r.dot?I:Z,P=r.bash===!0?U(r):G;r.capture&&(P=`(${P})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let c={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:u};e=D.removePrefix(e,c),s=e.length;let m=[],O=[],re=[],o=i,l,q=()=>c.index===s-1,S=c.peek=(h=1)=>e[c.index+h],j=c.advance=()=>e[++c.index]||"",z=()=>e.slice(c.index+1),X=(h="",N=0)=>{c.consumed+=h,c.index+=N},he=h=>{c.output+=h.output!=null?h.output:h.value,X(h.value)},Zt=()=>{let h=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)j(),c.start++,h++;return h%2===0?!1:(c.negated=!0,c.start++,!0)},Ae=h=>{c[h]++,re.push(h)},ne=h=>{c[h]--,re.pop()},b=h=>{if(o.type==="globstar"){let N=c.braces>0&&(h.type==="comma"||h.type==="brace"),p=h.extglob===!0||m.length&&(h.type==="pipe"||h.type==="paren");h.type!=="slash"&&h.type!=="paren"&&!N&&!p&&(c.output=c.output.slice(0,-o.output.length),o.type="star",o.value="*",o.output=P,c.output+=o.output)}if(m.length&&h.type!=="paren"&&(m[m.length-1].inner+=h.value),(h.value||h.output)&&he(h),o&&o.type==="text"&&h.type==="text"){o.value+=h.value,o.output=(o.output||"")+h.value;return}h.prev=o,u.push(h),o=h},ge=(h,N)=>{let p={...g[N],conditions:1,inner:""};p.prev=o,p.parens=c.parens,p.output=c.output,p.startIndex=c.index,p.tokensIndex=u.length;let y=(r.capture?"(":"")+p.open;Ae("parens"),b({type:h,value:N,output:c.output?"":E}),b({type:"paren",extglob:!0,value:j(),output:y}),m.push(p)},jt=h=>{let N=e.slice(h.startIndex,c.index+1),p=e.slice(h.startIndex+2,c.index),y=Sn(p,r);if((h.type==="plus"||h.type==="star")&&y.risky){let T=y.safeOutput?(h.output?"":E)+(r.capture?`(${y.safeOutput})`:y.safeOutput):void 0,Y=u[h.tokensIndex];Y.type="text",Y.value=N,Y.output=T||D.escapeRegex(N);for(let V=h.tokensIndex+1;V<u.length;V++)u[V].value="",u[V].output="",delete u[V].suffix;c.output=h.output+Y.output,c.backtrack=!0,b({type:"paren",extglob:!0,value:l,output:""}),ne("parens");return}let L=h.close+(r.capture?")":""),k;if(h.type==="negate"){let T=P;if(h.inner&&h.inner.length>1&&h.inner.includes("/")&&(T=U(r)),(T!==P||q()||/^\)+$/.test(z()))&&(L=h.close=`)$))${T}`),h.inner.includes("*")&&(k=z())&&/^\.[^\\/.]+$/.test(k)){let Y=Me(k,{...t,fastpaths:!1}).output;L=h.close=`)${Y})${T})`}h.prev.type==="bos"&&(c.negatedExtglob=!0)}b({type:"paren",extglob:!0,value:l,output:L}),ne("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let h=!1,N=e.replace(En,(p,y,L,k,T,Y)=>k==="\\"?(h=!0,p):k==="?"?y?y+k+(T?I.repeat(T.length):""):Y===0?v+(T?I.repeat(T.length):""):I.repeat(L.length):k==="."?x.repeat(L.length):k==="*"?y?y+k+(T?P:""):P:y?p:`\\${p}`);return h===!0&&(r.unescape===!0?N=N.replace(/\\/g,""):N=N.replace(/\\+/g,p=>p.length%2===0?"\\\\":p?"\\":"")),N===e&&r.contains===!0?(c.output=e,c):(c.output=D.wrapOutput(N,c,t),c)}for(;!q();){if(l=j(),l==="\0")continue;if(l==="\\"){let p=S();if(p==="/"&&r.bash!==!0||p==="."||p===";")continue;if(!p){l+="\\",b({type:"text",value:l});continue}let y=/^\\+/.exec(z()),L=0;if(y&&y[0].length>2&&(L=y[0].length,c.index+=L,L%2!==0&&(l+="\\")),r.unescape===!0?l=j():l+=j(),c.brackets===0){b({type:"text",value:l});continue}}if(c.brackets>0&&(l!=="]"||o.value==="["||o.value==="[^")){if(r.posix!==!1&&l===":"){let p=o.value.slice(1);if(p.includes("[")&&(o.posix=!0,p.includes(":"))){let y=o.value.lastIndexOf("["),L=o.value.slice(0,y),k=o.value.slice(y+2),T=Rn[k];if(T){o.value=L+T,c.backtrack=!0,j(),!i.output&&u.indexOf(o)===1&&(i.output=E);continue}}}(l==="["&&S()!==":"||l==="-"&&S()==="]")&&(l=`\\${l}`),l==="]"&&(o.value==="["||o.value==="[^")&&(l=`\\${l}`),r.posix===!0&&l==="!"&&o.value==="["&&(l="^"),o.value+=l,he({value:l});continue}if(c.quotes===1&&l!=='"'){l=D.escapeRegex(l),o.value+=l,he({value:l});continue}if(l==='"'){c.quotes=c.quotes===1?0:1,r.keepQuotes===!0&&b({type:"text",value:l});continue}if(l==="("){Ae("parens"),b({type:"paren",value:l});continue}if(l===")"){if(c.parens===0&&r.strictBrackets===!0)throw new SyntaxError(oe("opening","("));let p=m[m.length-1];if(p&&c.parens===p.parens+1){jt(m.pop());continue}b({type:"paren",value:l,output:c.parens?")":"\\)"}),ne("parens");continue}if(l==="["){if(r.nobracket===!0||!z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(oe("closing","]"));l=`\\${l}`}else Ae("brackets");b({type:"bracket",value:l});continue}if(l==="]"){if(r.nobracket===!0||o&&o.type==="bracket"&&o.value.length===1){b({type:"text",value:l,output:`\\${l}`});continue}if(c.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(oe("opening","["));b({type:"text",value:l,output:`\\${l}`});continue}ne("brackets");let p=o.value.slice(1);if(o.posix!==!0&&p[0]==="^"&&!p.includes("/")&&(l=`/${l}`),o.value+=l,he({value:l}),r.literalBrackets===!1||D.hasRegexChars(p))continue;let y=D.escapeRegex(o.value);if(c.output=c.output.slice(0,-o.value.length),r.literalBrackets===!0){c.output+=y,o.value=y;continue}o.value=`(${a}${y}|${o.value})`,c.output+=o.value;continue}if(l==="{"&&r.nobrace!==!0){Ae("braces");let p={type:"brace",value:l,output:"(",outputIndex:c.output.length,tokensIndex:c.tokens.length};O.push(p),b(p);continue}if(l==="}"){let p=O[O.length-1];if(r.nobrace===!0||!p){b({type:"text",value:l,output:l});continue}let y=")";if(p.dots===!0){let L=u.slice(),k=[];for(let T=L.length-1;T>=0&&(u.pop(),L[T].type!=="brace");T--)L[T].type!=="dots"&&k.unshift(L[T].value);y=xn(k,r),c.backtrack=!0}if(p.comma!==!0&&p.dots!==!0){let L=c.output.slice(0,p.outputIndex),k=c.tokens.slice(p.tokensIndex);p.value=p.output="\\{",l=y="\\}",c.output=L;for(let T of k)c.output+=T.output||T.value}b({type:"brace",value:l,output:y}),ne("braces"),O.pop();continue}if(l==="|"){m.length>0&&m[m.length-1].conditions++,b({type:"text",value:l});continue}if(l===","){let p=l,y=O[O.length-1];y&&re[re.length-1]==="braces"&&(y.comma=!0,p="|"),b({type:"comma",value:l,output:p});continue}if(l==="/"){if(o.type==="dot"&&c.index===c.start+1){c.start=c.index+1,c.consumed="",c.output="",u.pop(),o=i;continue}b({type:"slash",value:l,output:H});continue}if(l==="."){if(c.braces>0&&o.type==="dot"){o.value==="."&&(o.output=x);let p=O[O.length-1];o.type="dots",o.output+=l,o.value+=l,p.dots=!0;continue}if(c.braces+c.parens===0&&o.type!=="bos"&&o.type!=="slash"){b({type:"text",value:l,output:x});continue}b({type:"dot",value:l,output:x});continue}if(l==="?"){if(!(o&&o.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){ge("qmark",l);continue}if(o&&o.type==="paren"){let y=S(),L=l;if(y==="<"&&!D.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(o.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(z()))&&(L=`\\${l}`),b({type:"text",value:l,output:L});continue}if(r.dot!==!0&&(o.type==="slash"||o.type==="bos")){b({type:"qmark",value:l,output:Z});continue}b({type:"qmark",value:l,output:I});continue}if(l==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){ge("negate",l);continue}if(r.nonegate!==!0&&c.index===0){Zt();continue}}if(l==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){ge("plus",l);continue}if(o&&o.value==="("||r.regex===!1){b({type:"plus",value:l,output:f});continue}if(o&&(o.type==="bracket"||o.type==="paren"||o.type==="brace")||c.parens>0){b({type:"plus",value:l});continue}b({type:"plus",value:f});continue}if(l==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){b({type:"at",extglob:!0,value:l,output:""});continue}b({type:"text",value:l});continue}if(l!=="*"){(l==="$"||l==="^")&&(l=`\\${l}`);let p=_n.exec(z());p&&(l+=p[0],c.index+=p[0].length),b({type:"text",value:l});continue}if(o&&(o.type==="globstar"||o.star===!0)){o.type="star",o.star=!0,o.value+=l,o.output=P,c.backtrack=!0,c.globstar=!0,X(l);continue}let h=z();if(r.noextglob!==!0&&/^\([^?]/.test(h)){ge("star",l);continue}if(o.type==="star"){if(r.noglobstar===!0){X(l);continue}let p=o.prev,y=p.prev,L=p.type==="slash"||p.type==="bos",k=y&&(y.type==="star"||y.type==="globstar");if(r.bash===!0&&(!L||h[0]&&h[0]!=="/")){b({type:"star",value:l,output:""});continue}let T=c.braces>0&&(p.type==="comma"||p.type==="brace"),Y=m.length&&(p.type==="pipe"||p.type==="paren");if(!L&&p.type!=="paren"&&!T&&!Y){b({type:"star",value:l,output:""});continue}for(;h.slice(0,3)==="/**";){let V=e[c.index+4];if(V&&V!=="/")break;h=h.slice(3),X("/**",3)}if(p.type==="bos"&&q()){o.type="globstar",o.value+=l,o.output=U(r),c.output=o.output,c.globstar=!0,X(l);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&!k&&q()){c.output=c.output.slice(0,-(p.output+o.output).length),p.output=`(?:${p.output}`,o.type="globstar",o.output=U(r)+(r.strictSlashes?")":"|$)"),o.value+=l,c.globstar=!0,c.output+=p.output+o.output,X(l);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&h[0]==="/"){let V=h[1]!==void 0?"|$":"";c.output=c.output.slice(0,-(p.output+o.output).length),p.output=`(?:${p.output}`,o.type="globstar",o.output=`${U(r)}${H}|${H}${V})`,o.value+=l,c.output+=p.output+o.output,c.globstar=!0,X(l+j()),b({type:"slash",value:"/",output:""});continue}if(p.type==="bos"&&h[0]==="/"){o.type="globstar",o.value+=l,o.output=`(?:^|${H}|${U(r)}${H})`,c.output=o.output,c.globstar=!0,X(l+j()),b({type:"slash",value:"/",output:""});continue}c.output=c.output.slice(0,-o.output.length),o.type="globstar",o.output=U(r),o.value+=l,c.output+=o.output,c.globstar=!0,X(l);continue}let N={type:"star",value:l,output:P};if(r.bash===!0){N.output=".*?",(o.type==="bos"||o.type==="slash")&&(N.output=C+N.output),b(N);continue}if(o&&(o.type==="bracket"||o.type==="paren")&&r.regex===!0){N.output=l,b(N);continue}(c.index===c.start||o.type==="slash"||o.type==="dot")&&(o.type==="dot"?(c.output+=w,o.output+=w):r.dot===!0?(c.output+=K,o.output+=K):(c.output+=C,o.output+=C),S()!=="*"&&(c.output+=E,o.output+=E)),b(N)}for(;c.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(oe("closing","]"));c.output=D.escapeLast(c.output,"["),ne("brackets")}for(;c.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(oe("closing",")"));c.output=D.escapeLast(c.output,"("),ne("parens")}for(;c.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(oe("closing","}"));c.output=D.escapeLast(c.output,"{"),ne("braces")}if(r.strictSlashes!==!0&&(o.type==="star"||o.type==="bracket")&&b({type:"maybe_slash",value:"",output:`${H}?`}),c.backtrack===!0){c.output="";for(let h of c.tokens)c.output+=h.output!=null?h.output:h.value,h.suffix&&(c.output+=h.suffix)}return c};Me.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(de,r.maxLength):de,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=Dt[e]||e;let i=D.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:a,ONE_CHAR:A,DOTS_SLASH:_,NO_DOT:g,NO_DOTS:x,NO_DOTS_SLASH:f,STAR:H,START_ANCHOR:E}=pe.globChars(i),R=r.dot?x:g,$=r.dot?f:g,w=r.capture?"":"?:",K={negated:!1,prefix:""},I=r.bash===!0?".*?":H;r.capture&&(I=`(${I})`);let Z=C=>C.noglobstar===!0?I:`(${w}(?:(?!${E}${C.dot?_:u}).)*?)`,G=C=>{switch(C){case"*":return`${R}${A}${I}`;case".*":return`${u}${A}${I}`;case"*.*":return`${R}${I}${u}${A}${I}`;case"*/*":return`${R}${I}${a}${A}${$}${I}`;case"**":return R+Z(r);case"**/*":return`(?:${R}${Z(r)}${a})?${$}${A}${I}`;case"**/*.*":return`(?:${R}${Z(r)}${a})?${$}${I}${u}${A}${I}`;case"**/.*":return`(?:${R}${Z(r)}${a})?${u}${A}${I}`;default:{let v=/^(.*?)\.(\w+)$/.exec(C);if(!v)return;let P=G(v[1]);return P?P+u+v[2]:void 0}}},te=D.removePrefix(e,K),U=G(te);return U&&r.strictSlashes!==!0&&(U+=`${a}?`),U};Kt.exports=Me});var Qt=M((cs,Xt)=>{"use strict";d();var Hn=ie("path"),vn=Gt(),Pe=Ft(),Ge=ye(),$n=ce(),Tn=e=>e&&typeof e=="object"&&!Array.isArray(e),B=(e,t,r=!1)=>{if(Array.isArray(e)){let g=e.map(f=>B(f,t,r));return f=>{for(let H of g){let E=H(f);if(E)return E}return!1}}let n=Tn(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=t||{},i=Ge.isWindows(t),u=n?B.compileRe(e,t):B.makeRe(e,t,!1,!0),a=u.state;delete u.state;let A=()=>!1;if(s.ignore){let g={...t,ignore:null,onMatch:null,onResult:null};A=B(s.ignore,g,r)}let _=(g,x=!1)=>{let{isMatch:f,match:H,output:E}=B.test(g,u,t,{glob:e,posix:i}),R={glob:e,state:a,regex:u,posix:i,input:g,output:E,match:H,isMatch:f};return typeof s.onResult=="function"&&s.onResult(R),f===!1?(R.isMatch=!1,x?R:!1):A(g)?(typeof s.onIgnore=="function"&&s.onIgnore(R),R.isMatch=!1,x?R:!1):(typeof s.onMatch=="function"&&s.onMatch(R),x?R:!0)};return r&&(_.state=a),_};B.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},u=i.format||(s?Ge.toPosixSlashes:null),a=e===n,A=a&&u?u(e):e;return a===!1&&(A=u?u(e):e,a=A===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=B.matchBase(e,t,r,s):a=t.exec(A)),{isMatch:!!a,match:a,output:A}};B.matchBase=(e,t,r,n=Ge.isWindows(r))=>(t instanceof RegExp?t:B.makeRe(t,r)).test(Hn.basename(e));B.isMatch=(e,t,r)=>B(t,r)(e);B.parse=(e,t)=>Array.isArray(e)?e.map(r=>B.parse(r,t)):Pe(e,{...t,fastpaths:!1});B.scan=(e,t)=>vn(e,t);B.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",u=s.contains?"":"$",a=`${i}(?:${e.output})${u}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let A=B.toRegex(a,t);return n===!0&&(A.state=e),A};B.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(s.output=Pe.fastpaths(e,t)),s.output||(s=Pe(e,t)),B.compileRe(s,t,r,n)};B.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};B.constants=$n;Xt.exports=B});var On=M((ps,Wt)=>{"use strict";d();Wt.exports=Qt()});export{Fe as a,ir as b,qr as c,ye as d,On as e};
|
|
3
|
+
/*! Bundled license information:
|
|
4
|
+
|
|
5
|
+
is-extglob/index.js:
|
|
6
|
+
(*!
|
|
7
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*)
|
|
12
|
+
|
|
13
|
+
is-glob/index.js:
|
|
14
|
+
(*!
|
|
15
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
18
|
+
* Released under the MIT License.
|
|
19
|
+
*)
|
|
20
|
+
|
|
21
|
+
is-number/index.js:
|
|
22
|
+
(*!
|
|
23
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
26
|
+
* Released under the MIT License.
|
|
27
|
+
*)
|
|
28
|
+
|
|
29
|
+
to-regex-range/index.js:
|
|
30
|
+
(*!
|
|
31
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*)
|
|
36
|
+
|
|
37
|
+
fill-range/index.js:
|
|
38
|
+
(*!
|
|
39
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
42
|
+
* Licensed under the MIT License.
|
|
43
|
+
*)
|
|
44
|
+
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{p as R,v as G}from"./chunk-445NFHXL.js";import{$ as re,aa as j}from"./chunk-7L5AIZOP.js";import{b as E}from"./chunk-4TANJ4JK.js";import{r as T}from"./chunk-CELVG4AL.js";import{u as F,v as L}from"./chunk-JX4HSDDG.js";import{$a as N,Lb as l,Mb as P,N as S,Nb as C,Pb as $,Ta as A,ua as I}from"./chunk-BCZMDFI2.js";import{d as w,p as b}from"./chunk-773TIA5M.js";import{a as ne}from"./chunk-CTNBSUVU.js";import{e as O,g as k}from"./chunk-VKWPEFWQ.js";k();k();var i=O(j(),1),y=O(re(),1);function oe(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function U(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function ie(t){return new Map(t.map(e=>[e.uri,e.source]))}function se(t,e,r){let o=t.split(`
|
|
2
|
+
`).slice(e,r+1),s=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=s?c.trim():c;return`${u} ${h}`}).join(`
|
|
3
|
+
`)}function ce(t){switch(t){case i.Severity.ERROR:return{error:`
|
|
4
|
+
[error]:`};case i.Severity.WARNING:return{warn:`
|
|
5
|
+
[warning]:`};case i.Severity.INFO:return{info:`
|
|
6
|
+
[info]:`}}}function ae(t,e){return t.map((n,o)=>{let{message:s,uri:c,start:a,end:u,check:h,severity:p}=n,f=e.get(c),x=f===void 0?[]:[`
|
|
7
|
+
|
|
8
|
+
${se(f,a.line,u.line)}`],_=o===t.length-1?"":`
|
|
9
|
+
|
|
10
|
+
`;return[ce(p),{bold:h},{subdued:`
|
|
11
|
+
${s}`},...x,_]}).flat()}var ue=(t,e)=>t.severity-e.severity;function Y(t){let e=t.reduce((r,n)=>{let{uri:o}=n,s=i.path.fsPath(o);return r[s]??(r[s]=[]),r[s].push(n),r},{});return Object.keys(e).reduce((r,n)=>(r[n]=e[n].sort(ue),r),{})}function W(t){return t.reduce((e,r)=>(!Object.prototype.hasOwnProperty.call(e,r.severity)&&(e[r.severity]=0),e[r.severity]++,e),{})}function q(t,e,r){let n=[`${r.length} files inspected`];if(t.length===0)n.push("with no offenses found.");else{n.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let o=W(t);o[i.Severity.ERROR]&&n.push(`
|
|
12
|
+
${o[i.Severity.ERROR]} errors.`),o[i.Severity.WARNING]&&n.push(`
|
|
13
|
+
${o[i.Severity.WARNING]} warnings.`),o[i.Severity.INFO]&&n.push(`
|
|
14
|
+
${o[i.Severity.INFO]} info issues.`)}return n}function H(t,e,r,n){let o=ie(r);Object.keys(t).sort().forEach(c=>{let a=c.replace(e,"").slice(1);F({headline:n?`[${n}] ${a}`:a,body:ae(t[c],o)})})}function B(t,e){return Object.entries(t).map(([r,n])=>{let o=n.map(c=>({check:c.check,severity:U(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),s=W(n);return{environment:e,path:r,offenses:o,errorCount:s[i.Severity.ERROR]??0,warningCount:s[i.Severity.WARNING]??0,infoCount:s[i.Severity.INFO]??0}})}function M(t,e){e||process.exit(0);let r=oe(e),n=r!==void 0&&t.some(o=>o.severity<=r);process.exit(n?1:0)}function fe(t){return t.split(`
|
|
15
|
+
`).map(e=>`# ${e}`).join(`
|
|
16
|
+
`)}async function D(t){let e=".theme-check.yml",r=w(t,e);if(await A(r)){P(`${e} already exists at ${t}`);return}let{settings:n}=await(0,i.loadConfig)(void 0,t),o=fe(y.default.stringify(n)),s=y.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await I(r,`${s}${o}`),C(`Created ${e} at ${t}`)}var me=async(t,e)=>{let r=(0,i.applyFixToString)(t.source,e),n=i.path.fsPath(t.uri);await I(n,r)};async function J(t,e){await(0,i.autofix)(t,e,me)}async function V(t,e,r){let{ignore:n,settings:o,rootUri:s}=await(0,i.loadConfig)(e,t),c={extends:[],ignore:S(n??[]),rootUri:s,...o},a=r?{[r]:c}:c;l(y.default.stringify(a))}async function z(t,e,r){let{settings:n,ignore:o,checks:s}=await(0,i.loadConfig)(e,t),c=S(o??[]),u=Object.keys(n).reduce((p,f)=>{let{severity:x,enabled:_,...X}=n[f];if(!_)return p;let Z=U(x??i.Severity.INFO),v=s.find(te=>te.meta.code===f),ee=v&&v.meta?{description:v.meta.docs.description,doc:v.meta.docs.url}:{};return p[f]={severity:Z,...ee,ignored_patterns:`[${c.join(", ")}]`,...X},p},{}),h=r?{[r]:u}:u;l(y.default.stringify(h))}function K(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}var m=O(ne(),1);var g=O(j(),1);var Q,d=class extends G{async command(e,r,n){let o=e.path,s=e.environment?.[0],a=e.config?.startsWith(":")&&g.LegacyIdentifiers.has(e.config.slice(1))?g.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await D(o);return}if(e.version){let p=await N(w("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:b(import.meta.url)}),f="unknown";p&&(f=await T(p)??"unknown"),l(f);return}if(e.print){await V(o,a,s);return}if(e.list){await z(o,a,s);return}let{offenses:u,theme:h}=await de(o,e.output,a,s);if(e["auto-correct"]&&await J(h,u),!n)return M(u,e["fail-level"])}};Q=d;d.summary="Validate the theme.";d.descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";d.description=Q.descriptionWithoutMarkdown();d.flags={...E,path:R.path,"auto-correct":m.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:m.Flags.string({char:"C",required:!1,description:`Use the config provided, overriding .theme-check.yml if present
|
|
17
|
+
Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
|
|
18
|
+
theme-check:recommended, theme-check:all
|
|
19
|
+
For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":m.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:m.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:m.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:m.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:m.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:m.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:R.environment};d.multiEnvironmentsFlags=["path"];var Ae=d;async function de(t,e,r,n){let{offenses:o,theme:s}=await(0,g.themeCheckRun)(t,r,a=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&$(a)}),c=Y(o);if(e==="text"&&(H(c,t,s,n),(o.length?F:L)({headline:n?`[${n}] Theme Check Summary.`:"Theme Check Summary.",body:q(o,c,s)})),e==="json"){let a=process.stdout;K(a)&&a._handle.setBlocking(!0),l(JSON.stringify(B(c,n)))}return{offenses:o,theme:s}}export{Ae as a,de as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-WDCCITSG.js";import{a as k}from"./chunk-NENUUNWB.js";import{Z as x,ta as N}from"./chunk-5HJTCBBV.js";import{b as C,c as R}from"./chunk-4TANJ4JK.js";import{C as y}from"./chunk-JX4HSDDG.js";import{m as v}from"./chunk-2GB3EAD3.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ba as h}from"./chunk-BCZMDFI2.js";import{u as A}from"./chunk-A4SBXDZB.js";import{j as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
|