@shopify/cli 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-6S5JVSRO.js +1 -0
- package/dist/analytics-E252SR3P.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-XU6CCL4P.js → chunk-2I62GKIH.js} +80 -80
- package/dist/{chunk-PGN5EZTI.js → chunk-2JFZ6GZC.js} +2 -2
- package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
- package/dist/chunk-2MCH43SL.js +11 -0
- package/dist/{chunk-BEXQB4RT.js → chunk-2SNT7U7B.js} +1 -1
- package/dist/{chunk-U2LQBJJL.js → chunk-2VIUGNYO.js} +1 -1
- package/dist/chunk-2Y6CYLKF.js +1 -0
- package/dist/{chunk-KHXDP3SF.js → chunk-3EHRA4LA.js} +1 -1
- package/dist/{chunk-GQG6WELZ.js → chunk-3EPQ6UOK.js} +6 -6
- package/dist/{chunk-ZHPXJRHR.js → chunk-3NO6PWNL.js} +1 -1
- package/dist/chunk-3TFUSDHY.js +370 -0
- package/dist/{chunk-SFMXFH33.js → chunk-46NA23I7.js} +1 -1
- package/dist/{chunk-C5U4NLNU.js → chunk-47URTBZF.js} +1 -1
- package/dist/chunk-4FEBSLSU.js +1 -0
- package/dist/{chunk-DCUAVLTM.js → chunk-4HB4VZJQ.js} +1 -1
- package/dist/{chunk-DU5LZYQX.js → chunk-4JARSKED.js} +1 -1
- package/dist/{chunk-IHUCBI6L.js → chunk-4KZRP2JP.js} +141 -141
- package/dist/{chunk-2GDACKZF.js → chunk-4P7PWLUN.js} +1 -1
- package/dist/{chunk-MYQQOOGA.js → chunk-4YCMEC5R.js} +1 -1
- package/dist/{chunk-Q2X7IXPQ.js → chunk-53ZA2HD3.js} +1 -1
- package/dist/{chunk-DE3WCNP6.js → chunk-57YF2UNT.js} +1 -1
- package/dist/{chunk-MOCD7GFI.js → chunk-5EFQILLF.js} +1 -1
- package/dist/chunk-5JPV3HPJ.js +1 -0
- package/dist/{chunk-OCYPWE2O.js → chunk-5LJ5H4TD.js} +1 -1
- package/dist/{chunk-JVMYTC3J.js → chunk-5Y2VD4I3.js} +1 -1
- package/dist/{chunk-YBFCDINU.js → chunk-6BX62FFE.js} +1 -1
- package/dist/{chunk-6ZMNEURG.js → chunk-6FJBCRVK.js} +1 -1
- package/dist/{chunk-2WDKXDFM.js → chunk-6Q5VRSRN.js} +1 -1
- package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
- package/dist/{chunk-BVFIJSD7.js → chunk-6SXB44CE.js} +1 -1
- package/dist/chunk-6UTUJKKC.js +16 -0
- package/dist/{chunk-E24W34C4.js → chunk-6YCGMS7X.js} +15 -15
- package/dist/chunk-72GN655L.js +1 -0
- package/dist/chunk-7CPECP5P.js +1 -0
- package/dist/{chunk-XH5FCMS5.js → chunk-7HAFBCL3.js} +1 -1
- package/dist/chunk-7XPFLQEM.js +1 -0
- package/dist/{chunk-DDVT2K7E.js → chunk-A3JE5LX3.js} +1 -1
- package/dist/{chunk-ASOT7VNB.js → chunk-AJ6VOBXU.js} +1 -1
- package/dist/{chunk-XWQ72WTQ.js → chunk-B2WK53GH.js} +1 -1
- package/dist/chunk-B34VYVGV.js +1 -0
- package/dist/chunk-B6SY4BIK.js +2 -0
- package/dist/{chunk-H7DDRARV.js → chunk-BBEHNPKK.js} +1 -1
- package/dist/{chunk-GKQ6CSJZ.js → chunk-BCTMBKAU.js} +1 -1
- package/dist/chunk-BGUHH7AW.js +10 -0
- package/dist/chunk-BOAGJ6P5.js +1 -0
- package/dist/chunk-C256W7D2.js +26 -0
- package/dist/chunk-CTNBSUVU.js +83 -0
- package/dist/{chunk-MQXSMZQZ.js → chunk-CXWLHQKA.js} +1 -1
- package/dist/chunk-DHU767C3.js +1 -0
- package/dist/{chunk-NGPJXONG.js → chunk-DKHMLETG.js} +1 -1
- package/dist/{chunk-QPJQ67GU.js → chunk-DODCPRXT.js} +144 -144
- package/dist/{chunk-QDYDB7DY.js → chunk-E3RDAVJT.js} +3 -3
- package/dist/chunk-E3RQCWSC.js +6 -0
- package/dist/{chunk-EDSKA6UB.js → chunk-EBZ6MDEM.js} +1 -1
- package/dist/chunk-ELJ7SKMH.js +1 -0
- package/dist/{chunk-FOPGI6GO.js → chunk-EQTULRM7.js} +1 -1
- package/dist/{chunk-SRAHMYWJ.js → chunk-ERCJPRN3.js} +1 -1
- package/dist/{chunk-M2AS5BWX.js → chunk-ESZS7L6O.js} +1 -1
- package/dist/{chunk-IBBFRL3Y.js → chunk-ET2O5DAS.js} +1 -1
- package/dist/chunk-EZ7EBYDT.js +684 -0
- package/dist/{chunk-AVMNXIXF.js → chunk-EZNJDFFK.js} +1 -1
- package/dist/chunk-F34LB7M4.js +20 -0
- package/dist/{chunk-QVYZZNAS.js → chunk-FE24P4UQ.js} +1 -1
- package/dist/chunk-FFSDGRAN.js +1 -0
- package/dist/{chunk-ALQKJAHP.js → chunk-FMTPUYSH.js} +1 -1
- package/dist/{chunk-IQYZAALJ.js → chunk-FPWLEGKZ.js} +1 -1
- package/dist/{chunk-APYASWBA.js → chunk-FT4HLDK7.js} +1 -1
- package/dist/{chunk-E7OLCSAL.js → chunk-G3YYMKWG.js} +1 -1
- package/dist/chunk-G7QW5OSQ.js +6 -0
- package/dist/{chunk-JO4ZHVOD.js → chunk-GCDEDRY7.js} +1 -1
- package/dist/{chunk-GAYQKMOM.js → chunk-GEE5MXHT.js} +1 -1
- package/dist/{chunk-IIHPONSQ.js → chunk-H4MYBJ6C.js} +1 -1
- package/dist/chunk-HDXBZLHH.js +8 -0
- package/dist/chunk-HSKB5OTM.js +1 -0
- package/dist/{chunk-5T3OVTF5.js → chunk-HT6MOPLW.js} +1 -1
- package/dist/chunk-HZXY7RWJ.js +19 -0
- package/dist/{chunk-WIXW233Y.js → chunk-IDAWPBJM.js} +1 -1
- package/dist/{chunk-UHJ65YFN.js → chunk-IDLDQ2JB.js} +1 -1
- package/dist/{chunk-KOB6T6NK.js → chunk-IKYZ5L3F.js} +1 -1
- package/dist/{chunk-O2PI2PYG.js → chunk-ILQXBASM.js} +1 -1
- package/dist/{chunk-O7MONSF7.js → chunk-IYU72M55.js} +1 -1
- package/dist/{chunk-JCNRQYRP.js → chunk-J3IHP46B.js} +2 -2
- package/dist/{chunk-UB5BVO76.js → chunk-J4KJQHNS.js} +1 -1
- package/dist/{chunk-3GMW7IEC.js → chunk-JHRZCUBE.js} +1 -1
- package/dist/chunk-JIBLEZ57.js +18 -0
- package/dist/{chunk-TXJEP4FB.js → chunk-JIKIYMCT.js} +1 -1
- package/dist/{chunk-MKCXLBQ4.js → chunk-JJTGHARS.js} +1 -1
- package/dist/chunk-JJZNUFPD.js +44 -0
- package/dist/{chunk-U7ZRDNZU.js → chunk-JQP3ZCAG.js} +1 -1
- package/dist/{chunk-5UXPTCSD.js → chunk-JS3X6BDT.js} +1 -1
- package/dist/{chunk-YZY4M6IH.js → chunk-K7IZMKBR.js} +1 -1
- package/dist/{chunk-5JCREGSD.js → chunk-KGZH4RFA.js} +1 -1
- package/dist/{chunk-JNEGEJH6.js → chunk-KO4FB4QU.js} +1 -1
- package/dist/chunk-KPRKIZ5M.js +3 -0
- package/dist/chunk-KUN74JD4.js +4 -0
- package/dist/chunk-KURWC4A5.js +16 -0
- package/dist/{chunk-XDEAZP2I.js → chunk-L3D2CASO.js} +1 -1
- package/dist/{chunk-P6S5YLOP.js → chunk-L7DZTIHJ.js} +1 -1
- package/dist/{chunk-QPY6WJTT.js → chunk-LBDAYBIF.js} +1 -1
- package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
- package/dist/{chunk-TDCY3BRI.js → chunk-LH3RIIOB.js} +1 -1
- package/dist/{chunk-BZAZMLII.js → chunk-LWRDNTAD.js} +1 -1
- package/dist/{chunk-MMKBIMMC.js → chunk-LWWBU7ET.js} +1 -1
- package/dist/chunk-M4BEPPA3.js +1 -0
- package/dist/chunk-M4YPMHIM.js +1 -0
- package/dist/{chunk-VSZS3FAJ.js → chunk-M5KKLAM6.js} +1 -1
- package/dist/{chunk-Q2UHGP2Z.js → chunk-MBLHXPGK.js} +1 -1
- package/dist/{chunk-3YCTWCHH.js → chunk-MDHJJVXA.js} +1 -1
- package/dist/{chunk-5U6MXSNY.js → chunk-MDXSLAIC.js} +1 -1
- package/dist/{chunk-NV5IDANV.js → chunk-NA2ERJIJ.js} +1 -1
- package/dist/chunk-NOKCVDYD.js +317 -0
- package/dist/chunk-O6XSWAP2.js +4 -0
- package/dist/{chunk-OVLTFTZW.js → chunk-OB62WVZ5.js} +1 -1
- package/dist/{chunk-UYNCJGMC.js → chunk-OT52JOML.js} +1 -1
- package/dist/chunk-OTT73YUA.js +5 -0
- package/dist/{chunk-ZVQBSXE4.js → chunk-OUUOML3D.js} +1 -1
- package/dist/{chunk-7ZLKT2TB.js → chunk-P7XC5HS2.js} +1 -1
- package/dist/{chunk-KC2TN7AR.js → chunk-PALG4SNB.js} +1 -1
- package/dist/{chunk-T5DF2GGD.js → chunk-PB37BTPE.js} +1 -1
- package/dist/{chunk-WO5YOBQ7.js → chunk-PWYRKTJ4.js} +1 -1
- package/dist/{chunk-H7PNMMDO.js → chunk-PXSX63RF.js} +1 -1
- package/dist/{chunk-QMSYJIAU.js → chunk-QDPDB5EP.js} +1 -1
- package/dist/{chunk-7XQDZF73.js → chunk-QG7TELFC.js} +1 -1
- package/dist/{chunk-OASPW2P2.js → chunk-QU5NL2QT.js} +1 -1
- package/dist/{chunk-DQE7XRCK.js → chunk-QV53BSQP.js} +1 -1
- package/dist/{chunk-CNOL26GA.js → chunk-QXXA2EQY.js} +1 -1
- package/dist/{chunk-T3AJL2M5.js → chunk-QZ5FMWZS.js} +1 -1
- package/dist/chunk-R26GJEH3.js +1 -0
- package/dist/{chunk-TDSR2X7X.js → chunk-RTW4RZWH.js} +2 -2
- package/dist/{chunk-FPCPFECH.js → chunk-SEV3S3WH.js} +1 -1
- package/dist/{chunk-YYHCPLBX.js → chunk-TAFOSPBW.js} +1 -1
- package/dist/{chunk-MCATVWHC.js → chunk-TAV2ENJY.js} +1 -1
- package/dist/{chunk-ZNWFTUFV.js → chunk-TQNALMQH.js} +1 -1
- package/dist/chunk-TR4OWSEX.js +77 -0
- package/dist/{chunk-RFDT525K.js → chunk-TUJNCWHZ.js} +1 -1
- package/dist/{chunk-2MNOWKMI.js → chunk-U564K7SX.js} +1 -1
- package/dist/chunk-UKQ7NE5V.js +1 -0
- package/dist/{chunk-ICFFBMFB.js → chunk-UM3OHLCX.js} +1 -1
- package/dist/{chunk-4TC4M4RC.js → chunk-V65P572N.js} +3 -3
- package/dist/chunk-VFIVXK53.js +2 -0
- package/dist/chunk-VVFPW4ZQ.js +2 -0
- package/dist/{chunk-TVU4YD2H.js → chunk-VYITPC34.js} +1 -1
- package/dist/{chunk-3QVXHF6I.js → chunk-VZKR2YFM.js} +1 -1
- package/dist/{chunk-WMDYHUPS.js → chunk-W2GMKXM7.js} +1 -1
- package/dist/{chunk-72K36DID.js → chunk-W4X3635B.js} +1 -1
- package/dist/chunk-W6ST525S.js +99 -0
- package/dist/{chunk-RIRSTGFU.js → chunk-WEEYQX3M.js} +1 -1
- package/dist/{chunk-KOUKBXOZ.js → chunk-WO7LKJCJ.js} +1 -1
- package/dist/{chunk-6XLVKD6Q.js → chunk-WPRAJ25Z.js} +1 -1
- package/dist/{chunk-LUG2BZJP.js → chunk-WR2ZQGUR.js} +1 -1
- package/dist/{chunk-5K4DONQJ.js → chunk-WWX265PC.js} +1 -1
- package/dist/chunk-XERJY4IG.js +103 -0
- package/dist/{chunk-GXUZ3V7S.js → chunk-XGCJWCC4.js} +1 -1
- package/dist/{chunk-PGKP7W5T.js → chunk-XGMPC7KK.js} +1 -1
- package/dist/chunk-XGRVAPLR.js +7 -0
- package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
- package/dist/{chunk-ODH2U44N.js → chunk-Y4QC2YVE.js} +1 -1
- package/dist/chunk-YNJZ2VXV.js +5 -0
- package/dist/chunk-Z5DDPQ26.js +3 -0
- package/dist/{chunk-EXQXGSGY.js → chunk-ZK7VJZ6V.js} +1 -1
- package/dist/{chunk-COTYR5RC.js → chunk-ZLT4DPHN.js} +1 -1
- package/dist/{chunk-CGULQAB5.js → chunk-ZOBQKNGK.js} +1 -1
- package/dist/chunk-ZTE46E4Z.js +153 -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-N5P2ZEAD.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
- package/dist/data/filters.json +1 -1
- package/dist/data/objects.json +30 -3
- package/dist/data/shopify_system_translations.json +48 -4
- package/dist/deprecations-4TY4DNME.js +1 -0
- package/dist/dist-6ZJS4I57.js +1 -0
- package/dist/dist-7W2KJOYN.js +1 -0
- package/dist/environments-TR5WW2MD.js +1 -0
- package/dist/error-VJQM4MFE.js +1 -0
- package/dist/error-handler-IYGE3Z72.js +1 -0
- package/dist/{fs-7LCRIUF3.js → fs-EOQL26C3.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-RQCPBQA3.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-TW3HCZ2S.js +1 -0
- package/dist/local-storage-T6FKS53K.js +1 -0
- package/dist/{metadata-D5GLZOLV.js → metadata-TYZDEER5.js} +1 -1
- package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
- package/dist/node-package-manager-6SWUZILX.js +1 -0
- package/dist/notifications-system-SMHMV2UW.js +1 -0
- package/dist/out-53ABAVL7.js +1 -0
- package/dist/{output-FYS764MJ.js → output-JG5I2TEL.js} +1 -1
- package/dist/system-D4Z32GDS.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-6M3XZ6MR.js +1 -0
- package/dist/upgrade-EKAG4IV7.js +1 -0
- package/dist/version-6UBWZCNS.js +1 -0
- package/dist/version-XRU7TEAI.js +1 -0
- package/dist/{workerd-N25GY5MX.js → workerd-LXBSJULF.js} +1 -1
- package/oclif.manifest.json +612 -2
- package/package.json +11 -11
- package/dist/analytics-CIKTYXZ6.js +0 -1
- package/dist/analytics-DM7CBV2M.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-2FIDORHT.js +0 -5
- package/dist/chunk-2HZMOK4U.js +0 -836
- package/dist/chunk-2O22LZKV.js +0 -44
- package/dist/chunk-3SJHCEQR.js +0 -7
- package/dist/chunk-4E354M4H.js +0 -1
- package/dist/chunk-5C7HDTHJ.js +0 -1
- package/dist/chunk-5NY4HKJF.js +0 -103
- package/dist/chunk-5PLLJPEW.js +0 -3
- package/dist/chunk-6Y3QXASG.js +0 -22
- package/dist/chunk-6ZRHK4ON.js +0 -1
- package/dist/chunk-7USHLXEN.js +0 -2
- package/dist/chunk-AH2ZJ73H.js +0 -16
- package/dist/chunk-AI756VJI.js +0 -1
- package/dist/chunk-DA4LHFJQ.js +0 -26
- package/dist/chunk-DKKBJ4H5.js +0 -2
- package/dist/chunk-EAXEV45I.js +0 -2
- package/dist/chunk-ELIH6GCC.js +0 -1
- package/dist/chunk-EYDNSYYE.js +0 -370
- package/dist/chunk-FO6FNY6P.js +0 -5
- package/dist/chunk-G7QLHXVA.js +0 -19
- package/dist/chunk-H3QZN45D.js +0 -4
- package/dist/chunk-HHSUBF73.js +0 -1
- package/dist/chunk-HXYWEKMS.js +0 -2
- package/dist/chunk-IDKUJQIG.js +0 -11
- package/dist/chunk-IOU6EKTT.js +0 -1
- package/dist/chunk-IRH6IGFT.js +0 -567
- package/dist/chunk-IRTCLR3F.js +0 -10
- package/dist/chunk-J3KRY2SD.js +0 -1
- package/dist/chunk-JOYM7AEQ.js +0 -1
- package/dist/chunk-LKZ7ARYS.js +0 -18
- package/dist/chunk-N5HGT3TE.js +0 -4
- package/dist/chunk-NJOO5XJV.js +0 -1
- package/dist/chunk-NNOSZ447.js +0 -1
- package/dist/chunk-OHASEW7T.js +0 -1
- package/dist/chunk-PGODIZ64.js +0 -1
- package/dist/chunk-PTIJDS6I.js +0 -3
- package/dist/chunk-Q6LCSRIW.js +0 -1
- package/dist/chunk-SKM44SK5.js +0 -4
- package/dist/chunk-T6CC5WUU.js +0 -159
- package/dist/chunk-UZ7U322K.js +0 -283
- package/dist/chunk-VHAZBDFE.js +0 -21
- package/dist/chunk-VRRDIXFQ.js +0 -6
- package/dist/chunk-YB3SGPFF.js +0 -1
- package/dist/chunk-YJCJDCVP.js +0 -1
- package/dist/chunk-ZDQNCYRH.js +0 -5
- package/dist/conf-store-OC4XCP45.js +0 -1
- package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
- package/dist/deprecations-M5JGGK47.js +0 -1
- package/dist/dist-3SP7TISC.js +0 -1
- package/dist/dist-Z4H2OM7V.js +0 -1
- package/dist/environments-ZLSO534C.js +0 -1
- package/dist/error-ZBG2MA5U.js +0 -1
- package/dist/error-handler-MCUV4RZV.js +0 -1
- package/dist/is-global-RURDJZDU.js +0 -1
- package/dist/lib-QJDPPAWN.js +0 -1
- package/dist/lib-UCG2DNMS.js +0 -1
- package/dist/local-5AKD7T5X.js +0 -1
- package/dist/local-storage-TJU77VRQ.js +0 -1
- package/dist/node-package-manager-FA3Y6DPG.js +0 -1
- package/dist/notifications-system-76GJJAJP.js +0 -1
- package/dist/out-CDCY25QC.js +0 -1
- package/dist/system-KDM2BB7R.js +0 -1
- package/dist/ui-QIHGXICT.js +0 -1
- package/dist/upgrade-DY4L43H4.js +0 -1
- package/dist/version-LULWCT5R.js +0 -1
- package/dist/version-WIERCO5R.js +0 -1
package/dist/chunk-2O22LZKV.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import{a as se,c as k,g as d}from"./chunk-VKWPEFWQ.js";var De=k((yn,Ge)=>{d();Ge.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 qe=k((Sn,Ke)=>{d();var Wt=De(),Ue={"{":"}","(":")","[":"]"},Zt=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 l=e[t+1];t+=2;var A=Ue[l];if(A){var _=e.indexOf(A,t);_!==-1&&(t=_+1)}if(e[t]==="!")return!0}else t++}return!1},jt=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=Ue[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(Wt(t))return!0;var n=Zt;return r&&r.strict===!1&&(n=jt),n(t)}});var nr=k((Hn,Fe)=>{"use strict";d();var zt=qe(),Yt=se("path").posix.dirname,Vt=se("os").platform()==="win32",Se="/",Jt=/\\/g,er=/[\{\[].*[\}\]]$/,tr=/(^|[^\\])([\{\[]|\([^\)]+$)/,rr=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Fe.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Vt&&t.indexOf(Se)<0&&(t=t.replace(Jt,Se)),er.test(t)&&(t+=Se),t+="a";do t=Yt(t);while(zt(t)||tr.test(t));return t.replace(rr,"$1")}});var Re=k(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 he=k((Ln,Xe)=>{"use strict";d();var Qe=Re();Xe.exports=(e,t={})=>{let r=(n,s={})=>{let i=t.escapeInvalid&&Qe.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,l="";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)l+=r(A);return l};return r(e)}});var Ze=k((mn,We)=>{"use strict";d();We.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var nt=k((wn,rt)=>{"use strict";d();var je=Ze(),re=(e,t,r)=>{if(je(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(je(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),l=String(n.wrap),A=e+":"+t+"="+s+i+u+l;if(re.cache.hasOwnProperty(A))return re.cache[A].result;let _=Math.min(e,t),h=Math.max(e,t);if(Math.abs(_-h)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let E=tt(e)||tt(t),f={min:e,max:t,a:_,b:h},H=[],C=[];if(E&&(f.isPadded=E,f.maxLen=String(f.max).length),_<0){let g=h<0?Math.abs(h):1;C=ze(g,Math.abs(_),f,n),_=f.a=0}return h>=0&&(H=ze(_,h,f,n)),f.negatives=C,f.positives=H,f.result=sr(C,H,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&H.length+C.length>1&&(f.result=`(?:${f.result})`),re.cache[A]=f,f.result};function sr(e,t,r){let n=be(e,t,"-",!1,r)||[],s=be(t,e,"",!1,r)||[],i=be(e,t,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function ur(e,t){let r=1,n=1,s=Ve(e,r),i=new Set([t]);for(;e<=s&&s<=t;)i.add(s),r+=1,s=Ve(e,r);for(s=Je(t+1,n)-1;e<s&&s<=t;)i.add(s),n+=1,s=Je(t+1,n)-1;return i=[...i],i.sort(or),i}function ir(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=ar(e,t),s=n.length,i="",u=0;for(let l=0;l<s;l++){let[A,_]=n[l];A===_?i+=A:A!=="0"||_!=="9"?i+=cr(A,_,r):u++}return u&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[u],digits:s}}function ze(e,t,r,n){let s=ur(e,t),i=[],u=e,l;for(let A=0;A<s.length;A++){let _=s[A],h=ir(String(u),String(_),n),E="";if(!r.isPadded&&l&&l.pattern===h.pattern){l.count.length>1&&l.count.pop(),l.count.push(h.count[0]),l.string=l.pattern+et(l.count),u=_+1;continue}r.isPadded&&(E=lr(_,r,n)),h.string=E+h.pattern+et(h.count),i.push(h),u=_+1,l=h}return i}function be(e,t,r,n,s){let i=[];for(let u of e){let{string:l}=u;!n&&!Ye(t,"string",l)&&i.push(r+l),n&&Ye(t,"string",l)&&i.push(r+l)}return i}function ar(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function or(e,t){return e>t?1:t>e?-1:0}function Ye(e,t,r){return e.some(n=>n[t]===r)}function Ve(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Je(e,t){return e-e%Math.pow(10,t)}function et(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function cr(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function tt(e){return/^-?(0+)\d/.test(e)}function lr(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}}`}}re.cache={};re.clearCache=()=>re.cache={};rt.exports=re});var $e=k((Bn,lt)=>{"use strict";d();var fr=se("util"),ut=nt(),st=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),pr=e=>t=>e===!0?Number(t):String(t),He=e=>typeof e=="number"||typeof e=="string"&&e!=="",ae=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},Ar=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Rr=(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},_e=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},hr=(e,t,r)=>{e.negatives.sort((l,A)=>l<A?-1:l>A?1:0),e.positives.sort((l,A)=>l<A?-1:l>A?1:0);let n=t.capture?"":"?:",s="",i="",u;return e.positives.length&&(s=e.positives.map(l=>_e(String(l),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(l=>_e(String(l),r)).join("|")})`),s&&i?u=`${s}|${i}`:u=s||i,t.wrap?`(${n}${u})`:u},it=(e,t,r,n)=>{if(r)return ut(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},at=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return ut(e,t,r)},ot=(...e)=>new RangeError("Invalid range arguments: "+fr.inspect(...e)),ct=(e,t,r)=>{if(r.strictRanges===!0)throw ot([e,t]);return[]},gr=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},_r=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw ot([e,t]);return[]}s===0&&(s=0),i===0&&(i=0);let u=s>i,l=String(e),A=String(t),_=String(r);r=Math.max(Math.abs(r),1);let h=ve(l)||ve(A)||ve(_),E=h?Math.max(l.length,A.length,_.length):0,f=h===!1&&Ar(e,t,n)===!1,H=n.transform||pr(f);if(n.toRegex&&r===1)return it(_e(e,E),_e(t,E),!0,n);let C={negatives:[],positives:[]},g=K=>C[K<0?"negatives":"positives"].push(Math.abs(K)),$=[],N=0;for(;u?s>=i:s<=i;)n.toRegex===!0&&r>1?g(s):$.push(Rr(H(s,N),E,f)),s=u?s-r:s+r,N++;return n.toRegex===!0?r>1?hr(C,n,E):at($,null,{wrap:!1,...n}):$},Er=(e,t,r=1,n={})=>{if(!ae(e)&&e.length>1||!ae(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),l=i>u,A=Math.min(i,u),_=Math.max(i,u);if(n.toRegex&&r===1)return it(A,_,!1,n);let h=[],E=0;for(;l?i>=u:i<=u;)h.push(s(i,E)),i=l?i-r:i+r,E++;return n.toRegex===!0?at(h,null,{wrap:!1,options:n}):h},ge=(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 ge(e,t,1,{transform:r});if(st(r))return ge(e,t,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,ae(r)?ae(e)&&ae(t)?_r(e,t,r,s):Er(e,t,Math.max(Math.abs(r),1),s):r!=null&&!st(r)?gr(r,s):ge(e,t,1,r)};lt.exports=ge});var At=k((Mn,pt)=>{"use strict";d();var Cr=$e(),ft=Re(),xr=(e,t={})=>{let r=(n,s={})=>{let i=ft.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,l=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 l?A+n.value:"(";if(n.type==="close")return l?A+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":l?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let h=ft.reduce(n.nodes),E=Cr(...h,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(E.length!==0)return h.length>1&&E.length>1?`(${E})`:E}if(n.nodes)for(let h of n.nodes)_+=r(h,n);return _};return r(e)};pt.exports=xr});var gt=k((Gn,ht)=>{"use strict";d();var yr=$e(),Rt=he(),ue=Re(),ne=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ue.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let i of s)n.push(ne(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ne(s,i,r):s+i);return ue.flatten(n)},dr=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,i={})=>{s.queue=[];let u=i,l=i.queue;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=u.queue;if(s.invalid||s.dollar){l.push(ne(l.pop(),Rt(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){l.push(ne(l.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let E=ue.reduce(s.nodes);if(ue.exceedsLimit(...E,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=yr(...E,t);f.length===0&&(f=Rt(s,t)),l.push(ne(l.pop(),f)),s.nodes=[];return}let A=ue.encloseBrace(s),_=s.queue,h=s;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,_=h.queue;for(let E=0;E<s.nodes.length;E++){let f=s.nodes[E];if(f.type==="comma"&&s.type==="brace"){E===1&&_.push(""),_.push("");continue}if(f.type==="close"){l.push(ne(l.pop(),_,A));continue}if(f.value&&f.type!=="open"){_.push(ne(_.pop(),f.value));continue}f.nodes&&n(f,s)}return _};return ue.flatten(n(e))};ht.exports=dr});var Et=k((Un,_t)=>{"use strict";d();_t.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=k((qn,dt)=>{"use strict";d();var Sr=he(),{MAX_LENGTH:Ct,CHAR_BACKSLASH:Te,CHAR_BACKTICK:br,CHAR_COMMA:Hr,CHAR_DOT:vr,CHAR_LEFT_PARENTHESES:$r,CHAR_RIGHT_PARENTHESES:Tr,CHAR_LEFT_CURLY_BRACE:Lr,CHAR_RIGHT_CURLY_BRACE:Or,CHAR_LEFT_SQUARE_BRACKET:xt,CHAR_RIGHT_SQUARE_BRACKET:yt,CHAR_DOUBLE_QUOTE:mr,CHAR_SINGLE_QUOTE:Nr,CHAR_NO_BREAK_SPACE:wr,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ir}=Et(),Br=(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,l=s,A=0,_=e.length,h=0,E=0,f,H=()=>e[h++],C=g=>{if(g.type==="text"&&l.type==="dot"&&(l.type="text"),l&&l.type==="text"&&g.type==="text"){l.value+=g.value;return}return u.nodes.push(g),g.parent=u,g.prev=l,l=g,g};for(C({type:"bos"});h<_;)if(u=i[i.length-1],f=H(),!(f===Ir||f===wr)){if(f===Te){C({type:"text",value:(t.keepEscaping?f:"")+H()});continue}if(f===yt){C({type:"text",value:"\\"+f});continue}if(f===xt){A++;let g;for(;h<_&&(g=H());){if(f+=g,g===xt){A++;continue}if(g===Te){f+=H();continue}if(g===yt&&(A--,A===0))break}C({type:"text",value:f});continue}if(f===$r){u=C({type:"paren",nodes:[]}),i.push(u),C({type:"text",value:f});continue}if(f===Tr){if(u.type!=="paren"){C({type:"text",value:f});continue}u=i.pop(),C({type:"text",value:f}),u=i[i.length-1];continue}if(f===mr||f===Nr||f===br){let g=f,$;for(t.keepQuotes!==!0&&(f="");h<_&&($=H());){if($===Te){f+=$+H();continue}if($===g){t.keepQuotes===!0&&(f+=$);break}f+=$}C({type:"text",value:f});continue}if(f===Lr){E++;let $={type:"brace",open:!0,close:!1,dollar:l.value&&l.value.slice(-1)==="$"||u.dollar===!0,depth:E,commas:0,ranges:0,nodes:[]};u=C($),i.push(u),C({type:"open",value:f});continue}if(f===Or){if(u.type!=="brace"){C({type:"text",value:f});continue}let g="close";u=i.pop(),u.close=!0,C({type:g,value:f}),E--,u=i[i.length-1];continue}if(f===Hr&&E>0){if(u.ranges>0){u.ranges=0;let g=u.nodes.shift();u.nodes=[g,{type:"text",value:Sr(u)}]}C({type:"comma",value:f}),u.commas++;continue}if(f===vr&&E>0&&u.commas===0){let g=u.nodes;if(E===0||g.length===0){C({type:"text",value:f});continue}if(l.type==="dot"){if(u.range=[],l.value+=f,l.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,l.type="text";continue}u.ranges++,u.args=[];continue}if(l.type==="range"){g.pop();let $=g[g.length-1];$.value+=l.value+f,l=$,u.ranges--;continue}C({type:"dot",value:f});continue}C({type:"text",value:f})}do if(u=i.pop(),u.type!=="root"){u.nodes.forEach(N=>{N.nodes||(N.type==="open"&&(N.isOpen=!0),N.type==="close"&&(N.isClose=!0),N.nodes||(N.type="text"),N.invalid=!0)});let g=i[i.length-1],$=g.nodes.indexOf(u);g.nodes.splice($,1,...u.nodes)}while(i.length>0);return C({type:"eos"}),s};dt.exports=Br});var Gr=k((Qn,Ht)=>{"use strict";d();var bt=he(),kr=At(),Mr=gt(),Pr=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={})=>Pr(e,t);Q.stringify=(e,t={})=>bt(typeof e=="string"?Q.parse(e,t):e,t);Q.compile=(e,t={})=>(typeof e=="string"&&(e=Q.parse(e,t)),kr(e,t));Q.expand=(e,t={})=>{typeof e=="string"&&(e=Q.parse(e,t));let r=Mr(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);Ht.exports=Q});var oe=k((Wn,Ot)=>{"use strict";d();var Dr=se("path"),Y="\\\\/",vt=`[^${Y}]`,V="\\.",Ur="\\+",Kr="\\?",Ee="\\/",qr="(?=.)",$t="[^/]",Le=`(?:${Ee}|$)`,Tt=`(?:^|${Ee})`,Oe=`${V}{1,2}${Le}`,Fr=`(?!${V})`,Qr=`(?!${Tt}${Oe})`,Xr=`(?!${V}{0,1}${Le})`,Wr=`(?!${Oe})`,Zr=`[^.${Ee}]`,jr=`${$t}*?`,Lt={DOT_LITERAL:V,PLUS_LITERAL:Ur,QMARK_LITERAL:Kr,SLASH_LITERAL:Ee,ONE_CHAR:qr,QMARK:$t,END_ANCHOR:Le,DOTS_SLASH:Oe,NO_DOT:Fr,NO_DOTS:Qr,NO_DOT_SLASH:Xr,NO_DOTS_SLASH:Wr,QMARK_NO_DOT:Zr,STAR:jr,START_ANCHOR:Tt},zr={...Lt,SLASH_LITERAL:`[${Y}]`,QMARK:vt,STAR:`${vt}*?`,DOTS_SLASH:`${V}{1,2}(?:[${Y}]|$)`,NO_DOT:`(?!${V})`,NO_DOTS:`(?!(?:^|[${Y}])${V}{1,2}(?:[${Y}]|$))`,NO_DOT_SLASH:`(?!${V}{0,1}(?:[${Y}]|$))`,NO_DOTS_SLASH:`(?!${V}{1,2}(?:[${Y}]|$))`,QMARK_NO_DOT:`[^.${Y}]`,START_ANCHOR:`(?:^|[${Y}])`,END_ANCHOR:`(?:[${Y}]|$)`},Yr={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"};Ot.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Yr,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:{"***":"*","**/**":"**","**/**/**":"**"},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:Dr.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?zr:Lt}}});var Ce=k(q=>{"use strict";d();var Vr=se("path"),Jr=process.platform==="win32",{REGEX_BACKSLASH:en,REGEX_REMOVE_BACKSLASH:tn,REGEX_SPECIAL_CHARS:rn,REGEX_SPECIAL_CHARS_GLOBAL:nn}=oe();q.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);q.hasRegexChars=e=>rn.test(e);q.isRegexChar=e=>e.length===1&&q.hasRegexChars(e);q.escapeRegex=e=>e.replace(nn,"\\$1");q.toPosixSlashes=e=>e.replace(en,"/");q.removeBackslashes=e=>e.replace(tn,t=>t==="\\"?"":t);q.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};q.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Jr===!0||Vr.sep==="\\";q.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?q.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};q.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};q.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Pt=k((Yn,Mt)=>{"use strict";d();var mt=Ce(),{CHAR_ASTERISK:me,CHAR_AT:sn,CHAR_BACKWARD_SLASH:ce,CHAR_COMMA:un,CHAR_DOT:Ne,CHAR_EXCLAMATION_MARK:we,CHAR_FORWARD_SLASH:kt,CHAR_LEFT_CURLY_BRACE:Ie,CHAR_LEFT_PARENTHESES:Be,CHAR_LEFT_SQUARE_BRACKET:an,CHAR_PLUS:on,CHAR_QUESTION_MARK:Nt,CHAR_RIGHT_CURLY_BRACE:cn,CHAR_RIGHT_PARENTHESES:wt,CHAR_RIGHT_SQUARE_BRACKET:ln}=oe(),It=e=>e===kt||e===ce,Bt=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},fn=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],u=[],l=[],A=e,_=-1,h=0,E=0,f=!1,H=!1,C=!1,g=!1,$=!1,N=!1,K=!1,w=!1,Z=!1,P=!1,J=0,G,x,v={value:"",depth:0,isGlob:!1},M=()=>_>=n,c=()=>A.charCodeAt(_+1),O=()=>(G=x,A.charCodeAt(++_));for(;_<n;){x=O();let D;if(x===ce){K=v.backslashes=!0,x=O(),x===Ie&&(N=!0);continue}if(N===!0||x===Ie){for(J++;M()!==!0&&(x=O());){if(x===ce){K=v.backslashes=!0,O();continue}if(x===Ie){J++;continue}if(N!==!0&&x===Ne&&(x=O())===Ne){if(f=v.isBrace=!0,C=v.isGlob=!0,P=!0,s===!0)continue;break}if(N!==!0&&x===un){if(f=v.isBrace=!0,C=v.isGlob=!0,P=!0,s===!0)continue;break}if(x===cn&&(J--,J===0)){N=!1,f=v.isBrace=!0,P=!0;break}}if(s===!0)continue;break}if(x===kt){if(i.push(_),u.push(v),v={value:"",depth:0,isGlob:!1},P===!0)continue;if(G===Ne&&_===h+1){h+=2;continue}E=_+1;continue}if(r.noext!==!0&&(x===on||x===sn||x===me||x===Nt||x===we)===!0&&c()===Be){if(C=v.isGlob=!0,g=v.isExtglob=!0,P=!0,x===we&&_===h&&(Z=!0),s===!0){for(;M()!==!0&&(x=O());){if(x===ce){K=v.backslashes=!0,x=O();continue}if(x===wt){C=v.isGlob=!0,P=!0;break}}continue}break}if(x===me){if(G===me&&($=v.isGlobstar=!0),C=v.isGlob=!0,P=!0,s===!0)continue;break}if(x===Nt){if(C=v.isGlob=!0,P=!0,s===!0)continue;break}if(x===an){for(;M()!==!0&&(D=O());){if(D===ce){K=v.backslashes=!0,O();continue}if(D===ln){H=v.isBracket=!0,C=v.isGlob=!0,P=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&x===we&&_===h){w=v.negated=!0,h++;continue}if(r.noparen!==!0&&x===Be){if(C=v.isGlob=!0,s===!0){for(;M()!==!0&&(x=O());){if(x===Be){K=v.backslashes=!0,x=O();continue}if(x===wt){P=!0;break}}continue}break}if(C===!0){if(P=!0,s===!0)continue;break}}r.noext===!0&&(g=!1,C=!1);let T=A,ee="",a="";h>0&&(ee=A.slice(0,h),A=A.slice(h),E-=h),T&&C===!0&&E>0?(T=A.slice(0,E),a=A.slice(E)):C===!0?(T="",a=A):T=A,T&&T!==""&&T!=="/"&&T!==A&&It(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),r.unescape===!0&&(a&&(a=mt.removeBackslashes(a)),T&&K===!0&&(T=mt.removeBackslashes(T)));let o={prefix:ee,input:e,start:h,base:T,glob:a,isBrace:f,isBracket:H,isGlob:C,isExtglob:g,isGlobstar:$,negated:w,negatedExtglob:Z};if(r.tokens===!0&&(o.maxDepth=0,It(x)||u.push(v),o.tokens=u),r.parts===!0||r.tokens===!0){let D;for(let b=0;b<i.length;b++){let j=D?D+1:h,z=i[b],F=e.slice(j,z);r.tokens&&(b===0&&h!==0?(u[b].isPrefix=!0,u[b].value=ee):u[b].value=F,Bt(u[b]),o.maxDepth+=u[b].depth),(b!==0||F!=="")&&l.push(F),D=z}if(D&&D+1<e.length){let b=e.slice(D+1);l.push(b),r.tokens&&(u[u.length-1].value=b,Bt(u[u.length-1]),o.maxDepth+=u[u.length-1].depth)}o.slashes=i,o.parts=l}return o};Mt.exports=fn});var Ut=k((Jn,Dt)=>{"use strict";d();var xe=oe(),X=Ce(),{MAX_LENGTH:ye,POSIX_REGEX_SOURCE:pn,REGEX_NON_SPECIAL_CHARS:An,REGEX_SPECIAL_CHARS_BACKREF:Rn,REPLACEMENTS:Gt}=xe,hn=(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=>X.escapeRegex(s)).join("..")}return r},ie=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ke=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Gt[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(ye,r.maxLength):ye,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],l=r.capture?"":"?:",A=X.isWindows(t),_=xe.globChars(A),h=xe.extglobChars(_),{DOT_LITERAL:E,PLUS_LITERAL:f,SLASH_LITERAL:H,ONE_CHAR:C,DOTS_SLASH:g,NO_DOT:$,NO_DOT_SLASH:N,NO_DOTS_SLASH:K,QMARK:w,QMARK_NO_DOT:Z,STAR:P,START_ANCHOR:J}=_,G=R=>`(${l}(?:(?!${J}${R.dot?g:E}).)*?)`,x=r.dot?"":$,v=r.dot?w:Z,M=r.bash===!0?G(r):P;r.capture&&(M=`(${M})`),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=X.removePrefix(e,c),s=e.length;let O=[],T=[],ee=[],a=i,o,D=()=>c.index===s-1,b=c.peek=(R=1)=>e[c.index+R],j=c.advance=()=>e[++c.index]||"",z=()=>e.slice(c.index+1),F=(R="",L=0)=>{c.consumed+=R,c.index+=L},le=R=>{c.output+=R.output!=null?R.output:R.value,F(R.value)},Qt=()=>{let R=1;for(;b()==="!"&&(b(2)!=="("||b(3)==="?");)j(),c.start++,R++;return R%2===0?!1:(c.negated=!0,c.start++,!0)},fe=R=>{c[R]++,ee.push(R)},te=R=>{c[R]--,ee.pop()},S=R=>{if(a.type==="globstar"){let L=c.braces>0&&(R.type==="comma"||R.type==="brace"),p=R.extglob===!0||O.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!L&&!p&&(c.output=c.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=M,c.output+=a.output)}if(O.length&&R.type!=="paren"&&(O[O.length-1].inner+=R.value),(R.value||R.output)&&le(R),a&&a.type==="text"&&R.type==="text"){a.value+=R.value,a.output=(a.output||"")+R.value;return}R.prev=a,u.push(R),a=R},pe=(R,L)=>{let p={...h[L],conditions:1,inner:""};p.prev=a,p.parens=c.parens,p.output=c.output;let y=(r.capture?"(":"")+p.open;fe("parens"),S({type:R,value:L,output:c.output?"":C}),S({type:"paren",extglob:!0,value:j(),output:y}),O.push(p)},Xt=R=>{let L=R.close+(r.capture?")":""),p;if(R.type==="negate"){let y=M;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(y=G(r)),(y!==M||D()||/^\)+$/.test(z()))&&(L=R.close=`)$))${y}`),R.inner.includes("*")&&(p=z())&&/^\.[^\\/.]+$/.test(p)){let m=ke(p,{...t,fastpaths:!1}).output;L=R.close=`)${m})${y})`}R.prev.type==="bos"&&(c.negatedExtglob=!0)}S({type:"paren",extglob:!0,value:o,output:L}),te("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let R=!1,L=e.replace(Rn,(p,y,m,U,B,de)=>U==="\\"?(R=!0,p):U==="?"?y?y+U+(B?w.repeat(B.length):""):de===0?v+(B?w.repeat(B.length):""):w.repeat(m.length):U==="."?E.repeat(m.length):U==="*"?y?y+U+(B?M:""):M:y?p:`\\${p}`);return R===!0&&(r.unescape===!0?L=L.replace(/\\/g,""):L=L.replace(/\\+/g,p=>p.length%2===0?"\\\\":p?"\\":"")),L===e&&r.contains===!0?(c.output=e,c):(c.output=X.wrapOutput(L,c,t),c)}for(;!D();){if(o=j(),o==="\0")continue;if(o==="\\"){let p=b();if(p==="/"&&r.bash!==!0||p==="."||p===";")continue;if(!p){o+="\\",S({type:"text",value:o});continue}let y=/^\\+/.exec(z()),m=0;if(y&&y[0].length>2&&(m=y[0].length,c.index+=m,m%2!==0&&(o+="\\")),r.unescape===!0?o=j():o+=j(),c.brackets===0){S({type:"text",value:o});continue}}if(c.brackets>0&&(o!=="]"||a.value==="["||a.value==="[^")){if(r.posix!==!1&&o===":"){let p=a.value.slice(1);if(p.includes("[")&&(a.posix=!0,p.includes(":"))){let y=a.value.lastIndexOf("["),m=a.value.slice(0,y),U=a.value.slice(y+2),B=pn[U];if(B){a.value=m+B,c.backtrack=!0,j(),!i.output&&u.indexOf(a)===1&&(i.output=C);continue}}}(o==="["&&b()!==":"||o==="-"&&b()==="]")&&(o=`\\${o}`),o==="]"&&(a.value==="["||a.value==="[^")&&(o=`\\${o}`),r.posix===!0&&o==="!"&&a.value==="["&&(o="^"),a.value+=o,le({value:o});continue}if(c.quotes===1&&o!=='"'){o=X.escapeRegex(o),a.value+=o,le({value:o});continue}if(o==='"'){c.quotes=c.quotes===1?0:1,r.keepQuotes===!0&&S({type:"text",value:o});continue}if(o==="("){fe("parens"),S({type:"paren",value:o});continue}if(o===")"){if(c.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ie("opening","("));let p=O[O.length-1];if(p&&c.parens===p.parens+1){Xt(O.pop());continue}S({type:"paren",value:o,output:c.parens?")":"\\)"}),te("parens");continue}if(o==="["){if(r.nobracket===!0||!z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ie("closing","]"));o=`\\${o}`}else fe("brackets");S({type:"bracket",value:o});continue}if(o==="]"){if(r.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){S({type:"text",value:o,output:`\\${o}`});continue}if(c.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ie("opening","["));S({type:"text",value:o,output:`\\${o}`});continue}te("brackets");let p=a.value.slice(1);if(a.posix!==!0&&p[0]==="^"&&!p.includes("/")&&(o=`/${o}`),a.value+=o,le({value:o}),r.literalBrackets===!1||X.hasRegexChars(p))continue;let y=X.escapeRegex(a.value);if(c.output=c.output.slice(0,-a.value.length),r.literalBrackets===!0){c.output+=y,a.value=y;continue}a.value=`(${l}${y}|${a.value})`,c.output+=a.value;continue}if(o==="{"&&r.nobrace!==!0){fe("braces");let p={type:"brace",value:o,output:"(",outputIndex:c.output.length,tokensIndex:c.tokens.length};T.push(p),S(p);continue}if(o==="}"){let p=T[T.length-1];if(r.nobrace===!0||!p){S({type:"text",value:o,output:o});continue}let y=")";if(p.dots===!0){let m=u.slice(),U=[];for(let B=m.length-1;B>=0&&(u.pop(),m[B].type!=="brace");B--)m[B].type!=="dots"&&U.unshift(m[B].value);y=hn(U,r),c.backtrack=!0}if(p.comma!==!0&&p.dots!==!0){let m=c.output.slice(0,p.outputIndex),U=c.tokens.slice(p.tokensIndex);p.value=p.output="\\{",o=y="\\}",c.output=m;for(let B of U)c.output+=B.output||B.value}S({type:"brace",value:o,output:y}),te("braces"),T.pop();continue}if(o==="|"){O.length>0&&O[O.length-1].conditions++,S({type:"text",value:o});continue}if(o===","){let p=o,y=T[T.length-1];y&&ee[ee.length-1]==="braces"&&(y.comma=!0,p="|"),S({type:"comma",value:o,output:p});continue}if(o==="/"){if(a.type==="dot"&&c.index===c.start+1){c.start=c.index+1,c.consumed="",c.output="",u.pop(),a=i;continue}S({type:"slash",value:o,output:H});continue}if(o==="."){if(c.braces>0&&a.type==="dot"){a.value==="."&&(a.output=E);let p=T[T.length-1];a.type="dots",a.output+=o,a.value+=o,p.dots=!0;continue}if(c.braces+c.parens===0&&a.type!=="bos"&&a.type!=="slash"){S({type:"text",value:o,output:E});continue}S({type:"dot",value:o,output:E});continue}if(o==="?"){if(!(a&&a.value==="(")&&r.noextglob!==!0&&b()==="("&&b(2)!=="?"){pe("qmark",o);continue}if(a&&a.type==="paren"){let y=b(),m=o;if(y==="<"&&!X.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(a.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(z()))&&(m=`\\${o}`),S({type:"text",value:o,output:m});continue}if(r.dot!==!0&&(a.type==="slash"||a.type==="bos")){S({type:"qmark",value:o,output:Z});continue}S({type:"qmark",value:o,output:w});continue}if(o==="!"){if(r.noextglob!==!0&&b()==="("&&(b(2)!=="?"||!/[!=<:]/.test(b(3)))){pe("negate",o);continue}if(r.nonegate!==!0&&c.index===0){Qt();continue}}if(o==="+"){if(r.noextglob!==!0&&b()==="("&&b(2)!=="?"){pe("plus",o);continue}if(a&&a.value==="("||r.regex===!1){S({type:"plus",value:o,output:f});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||c.parens>0){S({type:"plus",value:o});continue}S({type:"plus",value:f});continue}if(o==="@"){if(r.noextglob!==!0&&b()==="("&&b(2)!=="?"){S({type:"at",extglob:!0,value:o,output:""});continue}S({type:"text",value:o});continue}if(o!=="*"){(o==="$"||o==="^")&&(o=`\\${o}`);let p=An.exec(z());p&&(o+=p[0],c.index+=p[0].length),S({type:"text",value:o});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=o,a.output=M,c.backtrack=!0,c.globstar=!0,F(o);continue}let R=z();if(r.noextglob!==!0&&/^\([^?]/.test(R)){pe("star",o);continue}if(a.type==="star"){if(r.noglobstar===!0){F(o);continue}let p=a.prev,y=p.prev,m=p.type==="slash"||p.type==="bos",U=y&&(y.type==="star"||y.type==="globstar");if(r.bash===!0&&(!m||R[0]&&R[0]!=="/")){S({type:"star",value:o,output:""});continue}let B=c.braces>0&&(p.type==="comma"||p.type==="brace"),de=O.length&&(p.type==="pipe"||p.type==="paren");if(!m&&p.type!=="paren"&&!B&&!de){S({type:"star",value:o,output:""});continue}for(;R.slice(0,3)==="/**";){let Ae=e[c.index+4];if(Ae&&Ae!=="/")break;R=R.slice(3),F("/**",3)}if(p.type==="bos"&&D()){a.type="globstar",a.value+=o,a.output=G(r),c.output=a.output,c.globstar=!0,F(o);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&!U&&D()){c.output=c.output.slice(0,-(p.output+a.output).length),p.output=`(?:${p.output}`,a.type="globstar",a.output=G(r)+(r.strictSlashes?")":"|$)"),a.value+=o,c.globstar=!0,c.output+=p.output+a.output,F(o);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&R[0]==="/"){let Ae=R[1]!==void 0?"|$":"";c.output=c.output.slice(0,-(p.output+a.output).length),p.output=`(?:${p.output}`,a.type="globstar",a.output=`${G(r)}${H}|${H}${Ae})`,a.value+=o,c.output+=p.output+a.output,c.globstar=!0,F(o+j()),S({type:"slash",value:"/",output:""});continue}if(p.type==="bos"&&R[0]==="/"){a.type="globstar",a.value+=o,a.output=`(?:^|${H}|${G(r)}${H})`,c.output=a.output,c.globstar=!0,F(o+j()),S({type:"slash",value:"/",output:""});continue}c.output=c.output.slice(0,-a.output.length),a.type="globstar",a.output=G(r),a.value+=o,c.output+=a.output,c.globstar=!0,F(o);continue}let L={type:"star",value:o,output:M};if(r.bash===!0){L.output=".*?",(a.type==="bos"||a.type==="slash")&&(L.output=x+L.output),S(L);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&r.regex===!0){L.output=o,S(L);continue}(c.index===c.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(c.output+=N,a.output+=N):r.dot===!0?(c.output+=K,a.output+=K):(c.output+=x,a.output+=x),b()!=="*"&&(c.output+=C,a.output+=C)),S(L)}for(;c.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ie("closing","]"));c.output=X.escapeLast(c.output,"["),te("brackets")}for(;c.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ie("closing",")"));c.output=X.escapeLast(c.output,"("),te("parens")}for(;c.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ie("closing","}"));c.output=X.escapeLast(c.output,"{"),te("braces")}if(r.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&S({type:"maybe_slash",value:"",output:`${H}?`}),c.backtrack===!0){c.output="";for(let R of c.tokens)c.output+=R.output!=null?R.output:R.value,R.suffix&&(c.output+=R.suffix)}return c};ke.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(ye,r.maxLength):ye,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=Gt[e]||e;let i=X.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:l,ONE_CHAR:A,DOTS_SLASH:_,NO_DOT:h,NO_DOTS:E,NO_DOTS_SLASH:f,STAR:H,START_ANCHOR:C}=xe.globChars(i),g=r.dot?E:h,$=r.dot?f:h,N=r.capture?"":"?:",K={negated:!1,prefix:""},w=r.bash===!0?".*?":H;r.capture&&(w=`(${w})`);let Z=x=>x.noglobstar===!0?w:`(${N}(?:(?!${C}${x.dot?_:u}).)*?)`,P=x=>{switch(x){case"*":return`${g}${A}${w}`;case".*":return`${u}${A}${w}`;case"*.*":return`${g}${w}${u}${A}${w}`;case"*/*":return`${g}${w}${l}${A}${$}${w}`;case"**":return g+Z(r);case"**/*":return`(?:${g}${Z(r)}${l})?${$}${A}${w}`;case"**/*.*":return`(?:${g}${Z(r)}${l})?${$}${w}${u}${A}${w}`;case"**/.*":return`(?:${g}${Z(r)}${l})?${u}${A}${w}`;default:{let v=/^(.*?)\.(\w+)$/.exec(x);if(!v)return;let M=P(v[1]);return M?M+u+v[2]:void 0}}},J=X.removePrefix(e,K),G=P(J);return G&&r.strictSlashes!==!0&&(G+=`${l}?`),G};Dt.exports=ke});var qt=k((ts,Kt)=>{"use strict";d();var gn=se("path"),_n=Pt(),Me=Ut(),Pe=Ce(),En=oe(),Cn=e=>e&&typeof e=="object"&&!Array.isArray(e),I=(e,t,r=!1)=>{if(Array.isArray(e)){let h=e.map(f=>I(f,t,r));return f=>{for(let H of h){let C=H(f);if(C)return C}return!1}}let n=Cn(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=Pe.isWindows(t),u=n?I.compileRe(e,t):I.makeRe(e,t,!1,!0),l=u.state;delete u.state;let A=()=>!1;if(s.ignore){let h={...t,ignore:null,onMatch:null,onResult:null};A=I(s.ignore,h,r)}let _=(h,E=!1)=>{let{isMatch:f,match:H,output:C}=I.test(h,u,t,{glob:e,posix:i}),g={glob:e,state:l,regex:u,posix:i,input:h,output:C,match:H,isMatch:f};return typeof s.onResult=="function"&&s.onResult(g),f===!1?(g.isMatch=!1,E?g:!1):A(h)?(typeof s.onIgnore=="function"&&s.onIgnore(g),g.isMatch=!1,E?g:!1):(typeof s.onMatch=="function"&&s.onMatch(g),E?g:!0)};return r&&(_.state=l),_};I.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?Pe.toPosixSlashes:null),l=e===n,A=l&&u?u(e):e;return l===!1&&(A=u?u(e):e,l=A===n),(l===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?l=I.matchBase(e,t,r,s):l=t.exec(A)),{isMatch:!!l,match:l,output:A}};I.matchBase=(e,t,r,n=Pe.isWindows(r))=>(t instanceof RegExp?t:I.makeRe(t,r)).test(gn.basename(e));I.isMatch=(e,t,r)=>I(t,r)(e);I.parse=(e,t)=>Array.isArray(e)?e.map(r=>I.parse(r,t)):Me(e,{...t,fastpaths:!1});I.scan=(e,t)=>_n(e,t);I.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",u=s.contains?"":"$",l=`${i}(?:${e.output})${u}`;e&&e.negated===!0&&(l=`^(?!${l}).*$`);let A=I.toRegex(l,t);return n===!0&&(A.state=e),A};I.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=Me.fastpaths(e,t)),s.output||(s=Me(e,t)),I.compileRe(s,t,r,n)};I.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/$^/}};I.constants=En;Kt.exports=I});var xn=k((ns,Ft)=>{"use strict";d();Ft.exports=qt()});export{qe as a,nr as b,Gr as c,Ce as d,xn 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
|
-
*/
|
package/dist/chunk-3SJHCEQR.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-E24W34C4.js";import{d,g as l}from"./chunk-ELIH6GCC.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
|
|
2
|
-
Error: Unexpected error
|
|
3
|
-
at Module._compile (internal/modules/cjs/loader.js:1137:30)
|
|
4
|
-
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
|
|
5
|
-
at Module.load (internal/modules/cjs/loader.js:985:32)
|
|
6
|
-
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
|
|
7
|
-
`,t(a);let c=[["Have you",{link:{label:"created a Shopify Partners organization",url:"https://partners.shopify.com/signup"}},{char:"?"}],"Have you confirmed your accounts from the emails you received?",["Need to connect to a different App or organization? Run the command again with",{command:"--reset"}]];t(new d("No Organization found",void 0,c)),i({headline:"Version couldn't be released.",body:"This version needs to be submitted for review and approved by Shopify before it can be released."}),s({rows:[{id:"1",name:"John Doe",email:"jon@doe.com"},{id:"2",name:"Jane Doe",email:"jane@doe.com"},{id:"3",name:"John Smith",email:"jon@smith.com"}],columns:{id:{header:"ID",color:"red"},name:{header:"Name",color:"dim"},email:{}}})}export{u as a};
|
package/dist/chunk-4E354M4H.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C,c as F}from"./chunk-ALQKJAHP.js";import{d as k,f as A,u as q}from"./chunk-5UXPTCSD.js";import{a as N}from"./chunk-6ZRHK4ON.js";import{a as E,c as J}from"./chunk-7XQDZF73.js";import{b as x}from"./chunk-H7PNMMDO.js";import{g as z,h as y}from"./chunk-2HZMOK4U.js";import{b}from"./chunk-Q6LCSRIW.js";import{E as m,v as f,x as S}from"./chunk-E24W34C4.js";import{d as u}from"./chunk-ELIH6GCC.js";import{Fb as c,Hb as n,Lb as O,Ta as v,ma as w,ua as g}from"./chunk-EYDNSYYE.js";import{e as I,g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=I(z(),1);async function D(s,e){if(s)try{return JSON.parse(s)}catch(t){let r=t instanceof Error?t.message:"Unknown error";throw new u(n`Invalid JSON in ${c.yellow("--variables")} flag: ${r}`,"Please provide valid JSON format.")}else if(e){if(!await v(e))throw new u(n`Variable file not found at ${c.path(e)}. Please check the path and try again.`);let t=await w(e,{encoding:"utf8"});try{return JSON.parse(t)}catch(r){let p=r instanceof Error?r.message:"Unknown error";throw new u(n`Invalid JSON in variable file ${c.path(e)}: ${p}`,"Please provide valid JSON format.")}}}async function $(s){let{remoteApp:e,store:t,query:r,variables:p,variableFile:L,version:R,outputFile:d}=s,{adminSession:V,version:G}=await m({title:n`Authenticating`,task:async()=>{let o=await C(e,t.shopDomain),i=await A({adminSession:o,userSpecifiedVersion:R});return{adminSession:o,version:i}},renderOptions:{stdout:process.stderr}}),P=await D(p,L);k(r),F(r,t);try{let o=await m({title:n`Executing GraphQL operation`,task:async()=>x({query:(0,M.parse)(r),session:V,variables:P,version:G,responseOptions:{handleErrors:!1}}),renderOptions:{stdout:process.stderr}}),i=JSON.stringify(o,null,2);d?(await g(d,i),f({headline:"Operation succeeded.",body:`Results written to ${d}`})):(f({headline:"Operation succeeded."}),O(i))}catch(o){if(o instanceof y){let i={errors:o.response.errors},Q=JSON.stringify(i,null,2);S({headline:"GraphQL operation failed.",body:Q});return}throw o}}var h,a=class extends N{async run(){let{flags:e}=await this.parse(h),{query:t,appContextResult:r,store:p}=await q(e);return await $({organization:r.organization,remoteApp:r.remoteApp,store:p,query:t,variables:e.variables,variableFile:e["variable-file"],outputFile:e["output-file"],...e.version&&{version:e.version}}),{app:r.app}}};h=a;a.summary="Execute GraphQL queries and mutations.";a.descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";a.description=h.descriptionWithoutMarkdown();a.flags={...b,...E,...J};var oe=a;export{oe as a};
|
package/dist/chunk-5C7HDTHJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as r}from"./chunk-VKWPEFWQ.js";r();import t from"crypto";function o(e){return t.createHash("sha1").update(e).digest("hex")}function c(e){return t.createHash("md5").update(e).digest("hex")}function d(){return t.randomUUID()}function p(e){return t.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g,""),"hex")).update(e).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/,"$1-$2-$3-$4-$5")}export{o as a,c as b,d as c,p as d};
|
package/dist/chunk-5NY4HKJF.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import{a as U,b as xt}from"./chunk-KRZABRYT.js";import{a as mt,b as ht,f as _e,g as ae,h as A,i as ce,k as yt,n as Et}from"./chunk-KOB6T6NK.js";import{a as M,l as ft,m as gt}from"./chunk-5T3OVTF5.js";import{s as ie,t as W}from"./chunk-PTIJDS6I.js";import{a as O,b as N,e as st,g as nt,i as rt,j as ot,k as it,n as at,p as ct,q as lt,r as oe,s as $,u as dt,w as pt}from"./chunk-Q7BOSHWX.js";import{aa as ut}from"./chunk-QPJQ67GU.js";import{va as L,xa as H}from"./chunk-2HZMOK4U.js";import{b as Qe}from"./chunk-5C7HDTHJ.js";import{P as tt,u as Ke,w as _,x as te,y as et}from"./chunk-E24W34C4.js";import{d as se}from"./chunk-ELIH6GCC.js";import{Fb as q,Hb as ne,Mb as re,O as Ve,Pb as F,Qb as D,Ta as v,Wa as C,_ as $e,bb as ke,ma as k,ua as be,wa as Xe,ya as Ze}from"./chunk-EYDNSYYE.js";import{d as E,g as V,j as Ge,k as j}from"./chunk-773TIA5M.js";import{e as Ye,g as h}from"./chunk-VKWPEFWQ.js";h();h();h();var ns=".shopifyignore",wt=/templates\/\*(\.(json|liquid))?$/,Tt=new Set;function Le(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],i=[]]=Ie(s),[a=[],u=[]]=Ie(n),[m=[],c=[]]=Ie(r),l=e.filter(B(o,".shopifyignore"));return l=l.filter(B(a,"--ignore")),l=l.filter(B(m,"--only",!0)),i.length>0&&(l=l.concat(e.filter(B(i,".shopifyignore",!0)))),u.length>0&&(l=l.concat(e.filter(B(u,"--ignore",!0)))),c.length>0&&(l=l.filter(B(c,"--only"))),Ve(l,f=>f.key)}function B(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(i=>rs(n,i)||as(i)&&is(n,cs(i)));return(s?!r:r)?(F(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function Rt(e){let t=E(e,ns);return await v(t)?(await k(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function Ie(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function rs(e,t){let s={matchBase:!0,noglobstar:!0};return ke(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!Tt.has(t)&&(Tt.add(t),_({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),os(t)?ke(e,t.replace(wt,"templates/**/*$1"),s):!1)}function os(e){return wt.test(e)}function is(e,t){return t.test(e)}function as(e){return e.startsWith("/")&&e.endsWith("/")}function cs(e){return new RegExp(e.slice(1,-1))}h();import St from"fs/promises";var le=class{constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&D("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{F(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){L(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),D(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await St.writeFile(this.notifyPath,t),await St.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};h();h();h();import ls from"node:events";var Ft=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function vt(e){let t=new Map,s=new Set,n=new ls,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await pe(e,c),p=de(c,l),f=typeof l=="string"?l:"",x=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,M({key:c,checksum:p,value:f,attachment:x})),l},i=C(Ft,{cwd:e,deep:3,ignore:W}).then(c=>Promise.all(c.map(o))),a=(c,l)=>{let p=V(e,l),f=o(p).then(()=>{let x=t.get(p);return s.add(x.key),x.value??x.attachment??""});tt(5).then(()=>{s.delete(p)}).catch(()=>{}),r(c,{fileKey:p,onContent:x=>{f.then(P=>{P&&x(P)}).catch(()=>{})},onSync:x=>{}})},u=c=>{let l=V(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:p=>p()})},m=new Set(Ft.map(c=>E(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>i.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-VDIVGBZH.js");c.watch([...m],{ignored:W,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",a.bind(null,"add")).on("change",a.bind(null,"change")).on("unlink",u.bind(null))}}}h();h();var ds="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function Pt(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function $t(e){return(0,String.raw)`<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>${e.title}</title>
|
|
5
|
-
<link rel="stylesheet" href="${ds}" />
|
|
6
|
-
</head>
|
|
7
|
-
<body>
|
|
8
|
-
<div style="display: flex; justify-content: center; padding-top: 2rem;">
|
|
9
|
-
<div style="width: 80%;">
|
|
10
|
-
<div class="Polaris-Banner Polaris-Banner--withinPage" tabindex="0" role="alert" aria-live="polite">
|
|
11
|
-
<div class="Polaris-Box" style="--pc-box-width:100%">
|
|
12
|
-
<div
|
|
13
|
-
class="Polaris-BlockStack"
|
|
14
|
-
style="--pc-block-stack-align:space-between;--pc-block-stack-order:column"
|
|
15
|
-
>
|
|
16
|
-
<div
|
|
17
|
-
class="Polaris-Box"
|
|
18
|
-
style="--pc-box-color: var(--p-color-text-critical-on-bg-fill); --pc-box-background: var(--p-color-bg-fill-critical); --pc-box-padding-block-start-xs: var(--p-space-300); --pc-box-padding-block-end-xs: var(--p-space-300); --pc-box-padding-inline-start-xs: var(--p-space-300); --pc-box-padding-inline-end-xs: var(--p-space-300); --pc-box-border-start-start-radius: var(--p-border-radius-300); --pc-box-border-start-end-radius: var(--p-border-radius-300);"
|
|
19
|
-
>
|
|
20
|
-
<div
|
|
21
|
-
class="Polaris-InlineStack"
|
|
22
|
-
style="--pc-inline-stack-align:space-between;--pc-inline-stack-block-align:center;--pc-inline-stack-wrap:nowrap;--pc-inline-stack-gap-xs:var(--p-space-200);--pc-inline-stack-flex-direction-xs:row"
|
|
23
|
-
>
|
|
24
|
-
<div
|
|
25
|
-
class="Polaris-InlineStack"
|
|
26
|
-
style="--pc-inline-stack-wrap:nowrap;--pc-inline-stack-gap-xs:var(--p-space-100);--pc-inline-stack-flex-direction-xs:row"
|
|
27
|
-
>
|
|
28
|
-
<span class="Polaris-Banner--textCriticalOnBgFill">
|
|
29
|
-
<span class="Polaris-Icon">
|
|
30
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
|
|
31
|
-
<path d="M10 6a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.75.75 0 0 1 .75-.75Z" />
|
|
32
|
-
<path d="M11 13a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" />
|
|
33
|
-
<path
|
|
34
|
-
fill-rule="evenodd"
|
|
35
|
-
d="M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z"
|
|
36
|
-
/>
|
|
37
|
-
</svg>
|
|
38
|
-
</span>
|
|
39
|
-
</span>
|
|
40
|
-
<h2 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--break">
|
|
41
|
-
${e.header}
|
|
42
|
-
</h2>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div
|
|
47
|
-
class="Polaris-Box"
|
|
48
|
-
style="--pc-box-padding-block-start-xs:var(--p-space-300);--pc-box-padding-block-end-xs:var(--p-space-300);--pc-box-padding-block-end-md:var(--p-space-400);--pc-box-padding-inline-start-xs:var(--p-space-300);--pc-box-padding-inline-start-md:var(--p-space-400);--pc-box-padding-inline-end-xs:var(--p-space-300);--pc-box-padding-inline-end-md:var(--p-space-400)"
|
|
49
|
-
>
|
|
50
|
-
<div
|
|
51
|
-
class="Polaris-BlockStack"
|
|
52
|
-
style="--pc-block-stack-order:column;--pc-block-stack-gap-xs:var(--p-space-300)"
|
|
53
|
-
>
|
|
54
|
-
${e.errors.map(s=>`
|
|
55
|
-
<div>
|
|
56
|
-
<span class="Polaris-Text--root Polaris-Text--headingSm">${Pt(s.message)}</span>
|
|
57
|
-
<ul class="Polaris-List">
|
|
58
|
-
<li class="Polaris-List__Item">${Pt(s.code)}</li>
|
|
59
|
-
</ul>
|
|
60
|
-
</div>`).join("")}
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
</body>
|
|
69
|
-
</html>`}h();h();var ps=/<head(\s[^>]*)?>/i,je="https://cdn.shopify.com/storefront",us=`${je}/standard-events.js`,ms=`${je}/standard-events.dev.js`,bt=`${je}/standard-events-inspector.js`,kt="shopify-cli-standard-events-inspector",hs=new RegExp(`<script\\b[^>]*(?:\\bid=["']${qe(kt)}["']|\\bsrc=["']${qe(bt)}["'])[^>]*>`,"i"),fs=new RegExp(qe(us),"g");function ue(e){return hs.test(e)?e:e.replace(ps,t=>`${t}<script id="${kt}" src="${bt}" defer></script>`)}function _t(e){return e.replace(fs,ms)}function qe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}h();var It=80;function X(e,t,s){if(!gs(e)||s.type==="theme-extension")return;let n=e.path.length>It?`${e.path.substring(0,It)}...`:e.path,o=t.headers.get("server-timing")?.match(/cfRequestDuration;dur=([\d.]+)/)?.[1],i=o?`${Math.round(Number(o))}ms`:"",a=ys(t.status),u=e.method.padStart(6);re(ne`• ${ie.format(new Date)} Request ${q.raw("\xBB")} ${u} ${a(String(t.status))} ${n} ${q.gray(i)}`)}function gs(e){let t=[z,J,"/checkouts","/payments"],s=[".js",".css",".json",".map"];if(t.some(o=>e.path.startsWith(o)))return!1;let[n]=e.path.split("?"),r=j(n);return!s.includes(r)}function ys(e){return e<300?q.green:e<400?q.yellow:q.errorText}var J="/cdn/",z="/ext/cdn/",Ce="/api/collect",Es=/^\/cart\//,Lt=/^\/checkouts\/(?!internal\/)/,xs=/^\/account(\/login\/multipass(\/[^/]+)?|\/logout)?\/?$/,Ts=new RegExp(`^${J}`),ws=new RegExp(`^${z}`),Rs=/^\/api\/(unstable|\d{4}-\d{2})\/graphql\.json/,Ss=["/.well-known","/shopify/monorail","/mini-profiler-resources","/web-pixels-manager","/web-pixels@","/wpm","/services/",Ce,"/cdn-cgi/challenge-platform"],qt="_shopify_essential",Fs=new RegExp(`${qt}=([^;]*)(;|$)`);function jt(e,t){return $(async s=>{if(Ss.some(n=>s.path.startsWith(n)))return null;if(vs(s)){let n=s.path.split("?")[0]??"";return He(s,t).then(async r=>{if(X(s,r,t),r.ok){let o=n.split("/").at(-1)??"";if(t.localThemeFileSystem.files.has(`assets/${o}.liquid`)){let i=Z(await r.text(),t);return new Response(i,r)}}return r}).catch(async r=>{let{status:o,statusText:i,...a}=A(r,`Failed to proxy request to ${n}`);return o>=500&&!n.endsWith(".js.map")&&_(a),new Response(r.message,{status:o,statusText:i})})}})}function vs(e){if(e.method!=="GET"||e.path.match(Es)||e.path.match(Lt)||e.path.match(xs)||e.path.match(Ts)||e.path.match(ws))return!0;let[t]=e.path.split("?"),s=j(t),n=e.headers.get("accept")??"*/*";return s===".html"||n.includes("text/html")?!1:!!s||n!=="*/*"}function me(e){return e.session.storeFqdn.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function Ps(e){return Rs.test(e.path)}function Z(e,t){let s=e,n=`(data-shs-beacon-endpoint=["'])https://${me(t)}${Ce}`,r=new RegExp(n,"g");s=s.replace(r,`$1${Ce}`);let o=new RegExp(`(https?:)?//${me(t)}${J}`,"g");s=s.replace(o,J);let i=/(?:https?:)?\/\/cdn\.shopify\.com\/(.*?\/(assets\/[^?#"'`>\s]+))/g,a=c=>c.startsWith("assets/"),u=new Set([...t.localThemeFileSystem.files.keys()].filter(a)),m=new Set([...t.localThemeExtensionFileSystem.files.keys()].filter(a));return s=s.replace(i,(c,l,p)=>{let f=p&&u.has(p),x=p&&m.has(p)&&l.startsWith("extensions/");return U(p).startsWith("image/")?c:x?`${z}${l}`:f?`${J}${l}`:c}),t.options.standardEventsDevBundle&&(s=_t(s)),s}function $s(e,t){let s=`http://${t.options.host}:${t.options.port}`,n=new RegExp(`data-base-url=["']((?:https?:)?//${me(t)})[^"']*?["']`,"g");return e.replace(n,(r,o)=>r.replace(o,s))}function bs(e,t){let s=new RegExp(`Domain=${me(t)};\\s*`,"gi");return e.map(n=>n.replace(s,""))}async function Q(e,t,s){let n=At(e,t);if(n.status>=300&&n.status<400)return n;t.headers.get("content-type")?.includes("application/json")||n.headers.set("content-type","text/html; charset=utf-8");let i=await n.text();return i=Z(i,e),i=$s(i,e),e.options.standardEventsInspector&&(i=ue(i)),s&&(i=s(i)??i),new Response(i,n)}var Ct=["connection","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","transfer-encoding","upgrade","expect","content-security-policy","host"];function At(e,t){let s=new Response(t.body,t);s.headers.delete("content-length"),s.headers.delete("content-encoding");for(let i of Ct)s.headers.delete(i);s.headers.delete("access-control-allow-origin"),s.headers.delete("access-control-allow-credentials"),s.headers.delete("access-control-allow-methods"),s.headers.delete("access-control-allow-headers"),s.headers.delete("access-control-expose-headers"),s.headers.delete("access-control-max-age");let n=s.headers.get("Link");n&&s.headers.set("Link",Z(n,e));let r=s.headers.get("Location");if(r){let i=new URL(r,"https://shopify.dev");Lt.test(i.pathname)||(i.searchParams.delete("_fd"),i.searchParams.delete("pb"),s.headers.set("Location",i.href.replace(i.origin,"")))}let o=s.headers.getSetCookie();if(o?.length){s.headers.set("Set-Cookie",bs(o,e).join(","));let i=o.join(",").match(Fs)?.[1];i&&(e.session.sessionCookies[qt]=i)}return s}function Ae(e){let t=st(e);for(let n of Ct)delete t[n];delete t["upgrade-insecure-requests"];let s=nt(e);return s&&(t["X-Forwarded-For"]=s),t}function He(e,t){let s=e.path.replace(new RegExp(z,"g"),"/"),n=e.path.startsWith(z)?"cdn.shopify.com":t.session.storeFqdn,r=new URL(s,`https://${n}`);if(r.hostname!==n)return Promise.reject(new Error(`Request failed: Hostname mismatch. Expected host: ${n}. Resulting URL hostname: ${r.hostname}`));let o=rt(e),i=Ae(e);return Ps(e)||(/\/assets\/[^/]+\.(css|js)$/.test(r.pathname)&&/\?\d+$/.test(r.search)&&(r.search=`?v=${Date.now()}`),r.searchParams.set("_fd","0"),r.searchParams.set("pb","0"),i=ht({...i,...mt(),...n===t.session.storeFqdn?t.session.crawlerSignatureHeaders:{},referer:r.origin,Cookie:yt(t.session,{headers:i}),...t.type==="theme"?{Authorization:`Bearer ${t.session.storefrontToken}`}:{}})),fetch(r,{method:e.method,body:o,duplex:o?"half":void 0,redirect:"manual",headers:i}).then(a=>At(t,a)).catch(a=>{throw ae(L(a),r)})}var De=0,ks=5;function Dt(e,t){return $(s=>{let[n="/",r=""]=s.path.split("?");return Is(s)&&(t.lastRequestedPath=s.path),t.options.errorOverlay!=="silent"&&t.localThemeFileSystem.uploadErrors.size>0?Ht(t,{status:500,statusText:"Internal Server Error"},{title:"Failed to Upload Theme Files",header:"Upload Errors",errors:Array.from(t.localThemeFileSystem.uploadErrors.entries()).map(([i,a])=>({message:i,code:a.join(`
|
|
70
|
-
`)}))}):ce(t.session,{method:s.method,path:n,query:[...new URLSearchParams(r)],themeId:String(e.id),sectionId:"",headers:Ae(s),replaceExtensionTemplates:fe(t),replaceTemplates:Oe(t,n,ot(s,"localization")?.toLowerCase())}).then(async i=>{if(i.status>=400&&i.status<500&&!_s(s)){let a=await Ls(s,t,i);if(a)return X(s,a,t),a}return X(s,i,t),Q(t,i,a=>(qs(i,a,String(e.id)),De=0,Ne(a,t)))}).catch(async i=>{if(i instanceof he&&(F(`Theme ID mismatch: expected ${i.getExpectedThemeId()} but got ${i.getActualThemeId()}; refreshing session...`),H("theme-service:error-page:theme-id-mismatch"),t.session.refresh)){De++,De>ks&&(et(new se(i.getMessage())),process.exit(1)),await t.session.refresh();let f=new URLSearchParams(r),x=new URLSearchParams([...f].filter(([ve])=>!ve.startsWith("__sfr"))),P=n+(x.toString()?`?${x}`:"");return new Response(null,{status:302,headers:{Location:P}})}let{status:a,statusText:u,cause:m,...c}=A(i,"Failed to render storefront"),[l,...p]=c.headline.split(`
|
|
71
|
-
`);return te(c),Ht(t,{status:a,statusText:u},{title:l,header:l,errors:[{message:[...p,m.message].join("<br>"),code:m.stack?.replace(`${m.message}
|
|
72
|
-
`,"")??""}]})})})}function Ht(e,t,s){let n=Ne($t(s),e);return e.options.standardEventsInspector&&(n=ue(n)),H("theme-service:error-page:rendered"),new Response(n,{...t,headers:t.headers??{"Content-Type":"text/html; charset=utf-8"}})}function _s(e){let t=new URLSearchParams(e.path.split("?")[1]);return["section_id","sections","app_block_id"].some(s=>t.has(s))}function Is(e){return e.headers.get("sec-fetch-mode")==="navigate"}async function Ls(e,t,s){F(`Render failed for ${e.path} with ${s.status} (x-request-id: ${s.headers.get("x-request-id")}), trying proxy...`);let n=await He(e,t).catch(r=>new Response(null,A(r)));if(n.status<400)return F(`Proxy status: ${n.status}. Returning proxy response.`),t.options.standardEventsInspector&&(n.headers.get("content-type")??"").includes("text/html")?Q(t,n):n;F(`Proxy status: ${n.status}. Returning render error.`)}function qs(e,t,s){let n=t.match(/Shopify\.theme\s*=\s*{[^}]+?"id":\s*"?(\d+)"?(}|,)/)?.[1];if(n&&n!==s)throw new he(s,n,e)}var he=class extends Error{constructor(t,s,n){super([`Theme ID mismatch: expected ${t} but got ${s}.`,`Request ID: ${n.headers.get("x-request-id")}`,`URL: ${n.url}`,"This is likely related to an issue in upstream Shopify APIs.","Please try again in a few minutes and report this issue:","https://community.shopify.dev/c/shopify-cli-libraries/14"].join(`
|
|
73
|
-
`)),this.response=n,this.expectedThemeId=t,this.actualThemeId=s}getMessage(){return this.message}getResponse(){return this.response}getExpectedThemeId(){return this.expectedThemeId}getActualThemeId(){return this.actualThemeId}};h();h();function ge(e,t){let s=new RegExp(`{%-?\\s*${t}\\s*-?%}`),n=new RegExp(`{%-?\\s*end${t}\\s*-?%}`),r=s.exec(e);if(!r)return;let o=r.index+r[0].length;n.lastIndex=o;let i=n.exec(e);if(!i)return;let a=i.index;return e.slice(o,a)}h();function ye(e){let{pathname:t,search:s,searchParams:n}=new URL(e.path,"http://e.c");return{pathname:t,search:s,searchParams:n}}var js={stylesheet:new Map,javascript:new Map};function Ot(e,t){return $(async s=>{if(s.method!=="GET")return;if(Ds(s,t))return Os(s,t);let{file:n,fileKey:r,isUnsynced:o}=Hs(s,t);if(!r)return;let i=U(r);if(i.startsWith("image/")&&s.path.includes("&")&&!o)return;if(at(s,"X-Local-Asset","true"),!n){o&&N(s,O({statusCode:404,statusMessage:"Not found"}));return}let a=n.value?Buffer.from(Z(n.value,t)):Buffer.from(n.attachment??"","base64");return oe(s,{getContents:()=>a,getMeta:()=>({type:i,size:a.length,mtime:n.stats?.mtime})})})}var Cs=/^(?:\/cdn\/(?!extensions\/).*?)?\/assets\/([^?]+)/,As=/^(?:\/(?:ext\/)?cdn\/extensions\/.*?)?\/assets\/([^?]+)/;function Hs(e,t){let s=(n,r)=>{let o=e.path.match(n)?.[1];if(o){let i=E("assets",o),a=r.files.get(i),u=r.unsyncedFileKeys.has(i);if(a||u)return{file:a,isUnsynced:u,fileKey:i}}};return s(Cs,t.localThemeFileSystem)??s(As,t.localThemeExtensionFileSystem)??{isUnsynced:!1,fileKey:void 0,file:void 0}}function Ds(e,t){return t.type==="theme"&&e.path.includes("/compiled_assets")}function Os(e,t){switch(ye(e).pathname.split("/").at(-1)){case"styles.css":return Ns(t,e);case"block-scripts.js":return We(t,e,"block");case"snippet-scripts.js":return We(t,e,"snippet");case"scripts.js":return We(t,e,"section");case void 0:break;default:break}}function Ns(e,t){let s=Ee(e,"section"),n=Ee(e,"block"),r=Ee(e,"snippet"),o=[`/*** GENERATED LOCALLY ***/
|
|
74
|
-
`];for(let[,a]of[...s,...n,...r]){let u=Nt(a,"stylesheet");u&&o.push(u)}let i=o.join(`
|
|
75
|
-
`);return oe(t,{getContents:()=>i,getMeta:()=>({type:"text/css",size:Buffer.byteLength(i),mtime:new Date})})}function We(e,t,s){let n=Ee(e,s),r=`${s}s`,o=[`
|
|
76
|
-
/*** GENERATED LOCALLY ***/
|
|
77
|
-
|
|
78
|
-
(function () {
|
|
79
|
-
var __${r}__ = {};
|
|
80
|
-
|
|
81
|
-
(function () {
|
|
82
|
-
var element = document.getElementById("${r}-script");
|
|
83
|
-
var attribute = element ? element.getAttribute("data-${r}") : "";
|
|
84
|
-
var ${r} = attribute.split(",").filter(Boolean);
|
|
85
|
-
|
|
86
|
-
for (var i = 0; i < ${r}.length; i++) {
|
|
87
|
-
__${r}__[${r}[i]] = true;
|
|
88
|
-
}
|
|
89
|
-
})();`];for(let[a,u]of n){let m=a.split("/").pop()?.replace(".liquid",""),c=Nt(u,"javascript")??"";m&&c&&o.push(`
|
|
90
|
-
(function () {
|
|
91
|
-
if (!__${r}__["${m}"] && !Shopify.designMode) return;
|
|
92
|
-
try {
|
|
93
|
-
${c}
|
|
94
|
-
} catch (e) {
|
|
95
|
-
console.error(e);
|
|
96
|
-
}
|
|
97
|
-
})();`)}o.push("})();");let i=o.join(`
|
|
98
|
-
`);return oe(t,{getContents:()=>i,getMeta:()=>({type:"text/javascript",size:Buffer.byteLength(i),mtime:new Date})})}function Ee(e,t){return[...e.localThemeFileSystem.files.entries()].filter(([s])=>s.endsWith(".liquid")&&s.startsWith(`${t}s/`)).sort(([s],[n])=>s.localeCompare(n))}function Nt(e,t){let s=js[t],n=s.get(e.key);if(n?.checksum===e.checksum)return n.content;if(s.delete(e.key),!e.value)return;let r=[`/* ${e.key} */`],o=ge(e.value??"",t)?.trimEnd();if(o&&r.push(o),r.length>1){let i=r.join(`
|
|
99
|
-
`);return s.set(e.key,{checksum:e.checksum,content:i}),i}}h();import*as Wt from"node:os";function Ws(e,t){let s=new Set,n=`:${t}`,r=e.toLowerCase().trim();if(s.add(`${r}${n}`),["localhost","127.0.0.1","::1","0.0.0.0"].includes(r)&&(s.add(`localhost${n}`),s.add(`127.0.0.1${n}`),s.add(`[::1]${n}`)),r==="0.0.0.0"||r==="::")for(let i of Object.values(Wt.networkInterfaces()))for(let a of i??[]){let u=a.address.toLowerCase().split("%")[0],c=a.family==="IPv6"?`[${u}]`:u;s.add(`${c}${n}`)}return s}function Ms(e){if(e)return e.toLowerCase().replace(/\.(?=:\d|$)/,"")}function Mt(e,t){let s=Ws(e,t);return $(n=>{let r=n.node.req.headers.host,o=Ms(r);if(!o||!s.has(o))return N(n,O({statusCode:400,statusMessage:"Bad Request",message:"Invalid Host header"}))})}h();function Ut(){return Bt()}function qr(){return Bt()}function Bt(){return{root:"",files:new Map,unsyncedFileKeys:new Set,uploadErrors:new Map,ready:()=>Promise.resolve(),delete:async e=>{},read:async e=>"",write:async e=>{},stat:async e=>({mtime:new Date,size:1}),addEventListener:()=>{},startWatcher:async()=>{}}}import{createServer as Us}from"node:http";async function zr(e,t){let s=await Js(e,t);return await zs(e,s),Bs(e,s)}function Bs(e,t){let s=dt();s.use(Mt(t.options.host,t.options.port)),s.use(Jt(e,t)),s.use(Ot(e,t)),s.use(jt(e,t)),s.use(Dt(e,t));let n=Us(pt(s));return{dispatch:s.handler.bind(s),start:async()=>new Promise(r=>n.listen({port:t.options.port,host:t.options.host},()=>r({close:async()=>{await Promise.all([new Promise(o=>{n.closeAllConnections(),n.close(o)})])}})))}}async function Js(e,t){let{adminSession:s,storefrontPassword:n,themeExtensionPort:r,themeExtensionDirectory:o,crawlerSignatureHeaders:i}=t,a="127.0.0.1",u=r??9293,m=Ut(),c=vt(o);return await c.ready(),{session:await Et(e.id.toString(),s,void 0,n,i),localThemeFileSystem:m,localThemeExtensionFileSystem:c,directory:o,type:"theme-extension",lastRequestedPath:"",options:{themeEditorSync:!1,noDelete:!1,ignore:[],only:[],host:a,port:u,liveReload:"hot-reload",standardEventsDevBundle:!1,standardEventsInspector:!1,open:!1,errorOverlay:"default"}}}async function zs(e,t){let s=t.localThemeExtensionFileSystem,n=({fileKey:r,onContent:o,onSync:i})=>{o(()=>{xe(e,t,i,{type:"update",key:r,payload:{isThemeExtension:!0}})})};return s.addEventListener("add",n),s.addEventListener("change",n),s.ready().then(async()=>s.startWatcher())}function fe(e){let t={},s=e.localThemeExtensionFileSystem;for(let n of s.unsyncedFileKeys){let r=s.files.get(n),o=r?.value??r?.attachment;o&&(t[n]=o)}return t}var Re=Ye(ut(),1);import Ys from"node:events";var Me=new Map,K=new Map;function zt(e,t){let s=(0,Re.parseJSON)(t,null,!0);if(!s)return;let n=s?.sections;n&&!e.startsWith("locales/")?K.set(e,Object.entries(n||{}).map(([r,{type:o}])=>[o,r])):K.delete(e)}function Ue(e){return!e.startsWith("assets/")&&[".liquid",".json"].includes(j(e))}function Oe(e,t,s){let n={},r=/^templates\/.+\.json$/,o=t?`${E("templates",t.replace(/^\//,"").replace(/\.html$/,"")||"index")}.json`:"",i=!!t&&e.localThemeFileSystem.files.has(o),a=/^locales\/.+\.json$/,u=!!s&&(e.localThemeFileSystem.files.has(`locales/${s}.json`)||e.localThemeFileSystem.files.has(`locales/${s}.default.json`));for(let m of e.localThemeFileSystem.unsyncedFileKeys)if(Ue(m)){if(i&&r.test(m)){if(m!==o)continue}else if(a.test(m)){if(u){if(!m.startsWith(`locales/${s}.`))continue}else if(!m.includes(".default."))continue}n[m]=e.localThemeFileSystem.files.get(m)?.value??""}return n}function co(e,t){let s=({fileKey:r,onContent:o,onSync:i})=>{let a=j(r);o(u=>{!Qs(r)&&Ue(r)&&a===".json"&&zt(r,u),xe(e,t,i,{type:"update",key:r,payload:Xs(r,t)})})},n=({fileKey:r,onSync:o})=>{K.delete(r),xe(e,t,o,{type:"delete",key:r})};return t.localThemeFileSystem.addEventListener("add",s),t.localThemeFileSystem.addEventListener("change",s),t.localThemeFileSystem.addEventListener("unlink",n),t.localThemeFileSystem.ready().then(async()=>{let r=[...t.localThemeFileSystem.files];return Promise.allSettled(r.map(async([o,i])=>{if(o.endsWith(".json")){let a=i.value??await t.localThemeFileSystem.read(o);a&&typeof a=="string"&&zt(o,a)}else o.endsWith(".liquid")&&Xt(i)}))})}var Gs="1",Gt=new Ys;function we(e){Gt.emit("hot-reload",{...e,version:Gs})}function Jt(e,t){return $(s=>{let n=s.headers.get("accept")==="text/event-stream",r=ye(s).searchParams;if(n){let o=lt(s);return Gt.on("hot-reload",i=>{o.push(JSON.stringify(i)).catch(a=>{_({headline:"Failed to send HotReload event.",body:a.stack})})}),we({type:"open",pid:String(process.pid),themeId:String(e.id)}),o.send().then(()=>o.flush())}if(r.has("hr-log")){let o=(0,Re.parseJSON)(r.get("hr-log")??"",null);return o&&(o.headline=`[HotReload] ${o.headline}`,o.type==="error"?te(o):o.type==="warn"?_(o):o.type==="info"?Ke(o):_({headline:`Unknown HotReload log type: ${o.type}`})),null}if(s.path===Vt)return k(Se()).then(o=>it(s,o,"application/javascript")).catch(o=>N(s,O({cause:o})));if(r.has("section_id")||r.has("app_block_id")){let o=r.get("section_key")??"",i=r.get("section_id")??"",a=r.get("app_block_id")??"",u=s.path.split("?")[0]??"",m=new URLSearchParams(r);if(m.delete("section_key"),m.delete("section_id"),m.delete("app_block_id"),m.delete("_fd"),m.delete("pb"),i===""&&a==="")return;let c={};if(i){let l=t.localThemeFileSystem.unsyncedFileKeys;if(l.has(o)){let p=t.localThemeFileSystem.files.get(o)?.value;if(!p)return"";c[o]=p}for(let p of l)if(p.endsWith(".json")){for(let[f,x]of K.get(p)??[])if(i.endsWith(`__${x}`)){let P=t.localThemeFileSystem.files.get(p)?.value;P&&(c[p]=P);continue}}}return ce(t.session,{method:s.method,path:u??"/",query:[...m.entries()],themeId:String(e.id),sectionId:i,appBlockId:a,replaceTemplates:c,headers:ct(s),replaceExtensionTemplates:fe(t)}).then(async l=>{if(!l.ok)throw H("theme-service:hot-reload:section:render-failed"),ae(l);return Q(t,l)}).catch(async l=>{let{status:p,statusText:f,...x}=A(L(l),"Failed to render section on Hot Reload");return H("theme-service:hot-reload:section:render-error"),a||_(x),new Response(null,{status:p,statusText:f})})}})}var ee=(e,t)=>we({themeId:String(e),type:"full",key:t});function xe(e,t,s,n){let r=()=>ee(e.id,n.key);if(t.options.liveReload==="off")return;if(t.options.liveReload==="full-page"){s(r);return}let o=String(e.id);we({sync:"local",themeId:o,...n}),s(()=>we({sync:"remote",themeId:o,...n}),r)}function Vs(e,t){let s=new Set;if(e.endsWith(".json")){let n=t.localThemeFileSystem.files.get(e)?.value;if(n){let r=(0,Re.parseJSON)(n,null,!0)?.sections;for(let o of Object.keys(r??{}))s.add(o)}}else{let n=e.match(/^sections\/(.+)\.liquid$/)?.[1];if(n)for(let[r,o]of K)for(let[i,a]of o)i===n&&s.add(a)}return[...s]}function Xs(e,t){let[s]=e.split("/"),n=t.localThemeFileSystem.files.get(e);return{sectionNames:s==="sections"?Vs(e,t):[],replaceTemplates:Ue(e)?Oe(t):{},updatedFileParts:n&&Xt(n)}}var Te="hot-reload-client",Zs="/cdn/shopifycloud/theme-hot-reload/theme-hot-reload.js",Yt=new RegExp(`<script id="${Te}"[^>]*>[^<]*</script>`),Vt="/@shopify/theme-hot-reload";function Ne(e,t){return t.options.liveReload==="off"?e.replace(Yt,""):process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD?e.replace(Yt,"").replace(/<\/head>/,`<script id="${Te}" src="${Vt}" defer></script></head>`):e.includes(`<script id="${Te}"`)?e:e.replace(/<\/head>/,`<script id="${Te}" src="${Zs}" defer></script></head>`)}function Qs(e){return e.startsWith("assets/")}function Xt(e){if(!(["sections/","snippets/","blocks/"].some(c=>e.key.startsWith(c))&&e.key.endsWith(".liquid")))return;let n={stylesheetTag:!1,javascriptTag:!1,schemaTag:!1,liquid:!1},r={checksum:e.checksum,liquid:"",stylesheetTag:"",javascriptTag:"",schemaTag:""},o=Me.get(e.key);if(o?.checksum===e.checksum||(Me.delete(e.key),!e.value))return n;let i=["stylesheet","javascript","schema"],a=c=>c?.replace(/\s+/g," ").trim(),u=e.value,m=(c,l)=>{u=u.replace(l,"");let p=a(l),f=`${c}Tag`;n[f]=!o||p!==o[f],r[f]=p};for(let c of i){let l=ge(e.value??"",c);l&&m(c,l)}return u=a(u.replace(/<!--[\s\S]*?-->/g,"").replace(/{%\s*comment\s*%}[\s\S]*?{%\s*endcomment\s*%}/g,"").replace(/{%\s*doc\s*%}[\s\S]*?{%\s*enddoc\s*%}/g,"")),r.liquid=u,n.liquid=!o||u!==o.liquid,Me.set(e.key,r),n}h();var Zt=Ye(ut(),1);function Ks(e){return(e.startsWith("templates/")||e.startsWith("sections/"))&&e.endsWith(".json")}async function Qt(e,t,s){if(Ks(s)){let n=E(e,"listings",t,s);if(await v(n))return n}}async function Kt(e,t){let s=E(e,"config","settings_data.json"),n=await k(s,{encoding:"utf8"}),r=(0,Zt.parseJSON)(n,null,!0);return r?(r.current=$e(t),JSON.stringify(r,null,2)):n}async function go(e,t){let s=E(e,"listings"),n=E(s,t);if(await v(n))return;let o=[];await v(s)&&(o=await C("*",{cwd:s,onlyDirectories:!0,deep:1}));let i=o.length>0?`Available presets: ${o.map(a=>`"${$e(a)}"`).join(", ")}`:'No presets found under "listings/"';throw new se(`Listing preset "${t}" was not found. ${i}.`,`Add the preset to config/settings_data.json and its corresponding "listings/${t}" folder, or remove the --listing flag to use the default theme settings.`)}import en from"node:events";import{fileURLToPath as tn}from"node:url";var sn=250,es=["assets/**/*.*","config/**/*.json","layout/**/*.liquid","locales/**/*.json","sections/**/*.{liquid,json}","blocks/**/*.liquid","snippets/**/*.liquid","templates/**/*.{liquid,json}","templates/customers/**/*.{liquid,json}"],b={layoutLiquidRegex:/^layout\/.+\.liquid$/,sectionLiquidRegex:/^sections\/.+\.liquid$/,blockLiquidRegex:/^blocks\/.+\.liquid$/,configSchemaRegex:/^config\/settings_schema\.json$/,configDataRegex:/^config\/settings_data\.json$/,sectionJsonRegex:/^sections\/.+\.json$/,templateJsonRegex:/^templates\/.+\.json$/,jsonRegex:/^(?!config\/).*\.json$/,contextualizedJsonRegex:/\.context\.[^.]+\.json$/i,staticAssetRegex:/^assets\/(?!.*\.liquid$)/};function Co(e,t){let s=new Map,n=new Map,r=new Set,o={ignoreFromFile:[],ignore:t?.filters?.ignore??[],only:t?.filters?.only??[]},i=new en,a=(d,g)=>{i.emit(d,g)},u=t?.notify?new le(t.notify):void 0,m=async d=>{let g=t?.listing?await rn(e,d,t.listing):await pe(e,d),y=de(d,g);return s.set(d,M({key:d,checksum:y,value:typeof g=="string"?g:"",attachment:Buffer.isBuffer(g)?g.toString("base64"):""})),g},c=C(es,{cwd:e,deep:3,ignore:W}).then(d=>Promise.all([Rt(e),...d.map(m)])).then(([d])=>{Array.isArray(d)&&o.ignoreFromFile.push(...d)}),l=d=>V(e,d),p=d=>Le([{key:d}],o).length===0;function f(d,g,y,T){if(process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD&&T===Se()){ee(g,T);return}let R=l(T);if(t?.listing&&R.startsWith(`listings/${t.listing}/`)){let w=R.replace(`listings/${t.listing}/`,"");if(w.startsWith("templates/")||w.startsWith("sections/"))R=w;else return}x(R).then(()=>{switch(d){case"add":case"change":return P(d,g,y,R);case"unlink":return ve(g,y,R,n)}}).catch(w=>{D(`Error handling file event for ${R}: ${w}`)})}function x(d){return u?.notify(d)??Promise.resolve()}let P=(d,g,y,T)=>{if(p(T))return;let R=s.get(T)?.checksum,w=m(T).then(async()=>{let S=s.get(T);if(S)return S.checksum!==R&&r.add(T),{value:S.value||void 0,attachment:S.attachment}}),I=w.then(S=>{if(S)return nn(r,n,T,g,y)(S)}).catch(_e(T,"upload"));a(d,{fileKey:T,onContent:S=>{w.then(Y=>{r.has(T)&&S(Y?.value??Y?.attachment??"")}).catch(()=>{})},onSync:(S,Y)=>{I.then(G=>{G?S():Y?.()}).catch(()=>{})}})},ve=(d,g,y,T)=>{if(p(y))return;T.delete(y),s.delete(y),r.add(y);let R=t?.noDelete?Promise.resolve():ft(Number(d),[y],g).then(async w=>{if(!w[0]?.success)throw new Error(`Failed to delete file "${y}" from remote theme.`);return r.delete(y),ts("delete",y),!0}).catch(w=>(_e(y,"delete")(w),!1));a("unlink",{fileKey:y,onSync:w=>{R.then(I=>{I&&w()}).catch(()=>{})}})},Pe=new Set(es.map(d=>E(e,d.split("/").shift()??"")));return t?.listing&&Pe.add(E(e,"listings",t.listing)),process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD&&Pe.add(Se()),{root:e,files:s,unsyncedFileKeys:r,uploadErrors:n,ready:()=>c,delete:async d=>{s.delete(d),await on(e,d)},write:async d=>{let g=(d.key.startsWith("templates/")||d.key.startsWith("sections/"))&&d.key.endsWith(".json");if(t?.listing&&g){let y=E("listings",t.listing,d.key),T=E(e,y),R=await v(T);s.set(d.key,M({key:d.key,checksum:d.checksum,value:d.value??"",attachment:d.attachment??""})),R?await Be(e,{...d,key:y}):await Be(e,d);return}s.set(d.key,M({key:d.key,checksum:d.checksum,value:d.value??"",attachment:d.attachment??""})),await Be(e,d)},read:m,applyIgnoreFilters:d=>Le(d,o),addEventListener:(d,g)=>{i.on(d,g)},startWatcher:async(d,g)=>{let{default:y}=await import("./chokidar-VDIVGBZH.js"),T=y.watch([...Pe],{ignored:W,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}),R=new Map,w=(I,S)=>{let G=`${l(S)}:${I}`,ze=R.get(G);ze&&clearTimeout(ze);let ss=setTimeout(()=>{R.delete(G),f(I,d,g,S)},sn);R.set(G,ss)};T.on("add",w.bind(null,"add")).on("change",w.bind(null,"change")).on("unlink",w.bind(null,"unlink")).on("error",I=>{D(`File watcher error: ${I}`),L("theme-service:file-watcher:error")})}}}function nn(e,t,s,n,r){return async o=>{if(!e.has(s))return!1;let[i]=await gt(Number(n),[{key:s,...o}],r);if(!i?.success){let a=i?.errors?.asset??["Response was not successful."];throw t.set(s,a),ee(n,s),new Error(a.join(`
|
|
100
|
-
`))}return t.delete(s)&&ee(n,s),e.delete(s),ts("update",s),!0}}async function Be(e,{key:t,attachment:s,value:n}){let r=E(e,t);if(await an(r),s){let o=Buffer.from(s,"base64");await be(r,o,{encoding:"base64"})}else await be(r,n??"")}async function pe(e,t){let s=Fe(t)?{encoding:"utf8"}:{},n=E(e,t);if(!await v(n)){F(`File ${n} can't be read because it doesn't exist...`);return}return k(n,s)}async function rn(e,t,s){if(t==="config/settings_data.json")return Kt(e,s);let n=await Qt(e,s,t);if(n){let r=Fe(t)?{encoding:"utf8"}:{};return k(n,r)}return pe(e,t)}async function on(e,t){let s=E(e,t);if(!await v(s)){F(`File ${s} can't be removed because it doesn't exist...`);return}await Ze(s)}function Ao(e){let t=[],s=[],n=[],r=[],o=[],i=[],a=[],u=[],m=[],c=[],l=[];return e.forEach(p=>{let f=p.key;f.endsWith(".liquid")?b.sectionLiquidRegex.test(f)?t.push(p):b.blockLiquidRegex.test(f)?c.push(p):b.layoutLiquidRegex.test(f)?l.push(p):s.push(p):b.configSchemaRegex.test(f)?a.push(p):b.configDataRegex.test(f)?u.push(p):b.jsonRegex.test(f)?b.contextualizedJsonRegex.test(f)?i.push(p):b.sectionJsonRegex.test(f)?n.push(p):b.templateJsonRegex.test(f)?r.push(p):o.push(p):b.staticAssetRegex.test(f)&&m.push(p)}),{sectionLiquidFiles:t,otherLiquidFiles:s,sectionJsonFiles:n,templateJsonFiles:r,contextualizedJsonFiles:i,otherJsonFiles:o,configSchemaFile:a,configDataFile:u,staticAssetFiles:m,blockLiquidFiles:c,layoutFiles:l}}function Fe(e){return xt({liquid:"application/liquid",sass:"text/x-sass",scss:"text/x-scss"}),["application/javascript","application/json","application/liquid","text/css","text/x-sass","text/x-scss","image/svg+xml"].includes(U(e))}async function Ho(e){let t=new Set(await C("*",{cwd:e,deep:1,onlyDirectories:!0}));return["config","layout","sections","templates"].every(n=>t.has(n))}async function an(e){let t=cn(e);await v(t)||await Xe(t)}function cn(e){let t=Ge(e),s=e.lastIndexOf(t);return e.substring(0,s)}function ts(e,t){re(ne`• ${ie.format(new Date)} Synced ${q.raw("\xBB")} ${e} ${t}`)}function Se(){let e=process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD;return!e||e==="true"?E(tn(import.meta.url.split("/cli/")[0]??""),"theme-hot-reload/dist/theme-hot-reload.js"):e}function de(e,t){return t?Buffer.isBuffer(t)?Je(t):un(e)?ln(t):dn(e,t):""}function ln(e){let t=e;return t=t.replace(/\r\n/g,`
|
|
101
|
-
`),t=t.replace(/\/\*[\s\S]*?\*\//,""),t=pn(t),Je(t)}function dn(e,t){let s=t;return Fe(e)&&(s=s.replace(/\r\n/g,`
|
|
102
|
-
`)),Je(s)}function pn(e){let t=!1,s=!1,n="";for(let r of e)r==='"'&&!s&&(t=!t),!(!t&&(r===" "||r===`
|
|
103
|
-
`))&&(n+=r,s=r==="\\"&&!s);return n}function Je(e){let t=Buffer.isBuffer(e)?e:Buffer.from(e);return Qe(t)}function Mo(e){let t=new Set(e.filter(({key:s})=>s.startsWith("assets/")&&s.endsWith(".liquid")).map(({key:s})=>s));return e.filter(({key:s})=>s.startsWith("assets/")?!t.has(`${s}.liquid`):!0)}function un(e){return e.endsWith("/settings_data.json")}export{Mo as a,jt as b,Dt as c,Ot as d,Mt as e,qr as f,zr as g,co as h,Jt as i,ee as j,go as k,Co as l,Ao as m,Ho as n};
|
package/dist/chunk-5PLLJPEW.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-6ZRHK4ON.js";import{a as S}from"./chunk-7XQDZF73.js";import{A as b,B as A,D as C,E as x,Fa as V}from"./chunk-UZ7U322K.js";import{a as c}from"./chunk-5JCREGSD.js";import{b as j,c as E}from"./chunk-Q6LCSRIW.js";import{v as y,x as u}from"./chunk-E24W34C4.js";import{d as g,f as o}from"./chunk-ELIH6GCC.js";import{Lb as s,Sb as w,Vb as h}from"./chunk-EYDNSYYE.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();m();async function N(f,t){let i=new Set(t.map(n=>n.file)).size;await c.addPublicMetadata(()=>({cmd_app_validate_valid:f,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:i}))}async function J(f,t={json:!1}){let i=f.errors;if(!i||i.isEmpty()){if(await N(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}y({headline:"App configuration is valid."});return}let n=i.getErrors();if(await N(!1,n),t.json){let d=n.map(({file:p,message:a,path:r,code:e})=>({file:p,message:a,path:r,code:e}));throw s(JSON.stringify({valid:!1,issues:d},null,2)),new o}throw u({headline:"Validation errors found.",body:n.map(d=>`\u2022 ${x(d)}`).join(`
|
|
2
|
-
`)}),new o}var v;async function _(f,t){await c.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:f,cmd_app_validate_file_count:t}))}var l=class extends M{async run(){let{flags:t}=await this.parse(v);await c.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let i;try{i=await b.load(t.path)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let n;try{n=await C(i,t.config)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let d=A(i,n.file);if(d.length>0){let a=d.map(e=>({file:e.path,message:e.message})),r=new Set(d.map(e=>e.path)).size;throw await _(a.length,r),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new o):(u({headline:"Validation errors found.",body:a.map(e=>`\u2022 ${e.message}`).join(`
|
|
3
|
-
`)}),new o)}let p;try{p=(await V({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0})).app}catch(a){let r=a instanceof g?h(w(a.message)).trim():"";throw r.startsWith("Validation errors in ")&&t.json?(await _(1,1),s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o):a}return await J(p,{json:t.json}),{app:p}}};v=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=v.descriptionWithoutMarkdown();l.flags={...j,...S,...E};var X=l;export{X as a};
|
package/dist/chunk-6Y3QXASG.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{c as oe,e as ie,f as R,g as se}from"./chunk-DKKBJ4H5.js";import{a as X,c as ee,d as ne,e as te}from"./chunk-5U6MXSNY.js";import{a as Q}from"./chunk-6ZRHK4ON.js";import{a as K}from"./chunk-7XQDZF73.js";import{$ as P,Fa as Z,H as T,K as q,T as I,da as J,g as W}from"./chunk-UZ7U322K.js";import{a as H}from"./chunk-5JCREGSD.js";import{b as G}from"./chunk-Q6LCSRIW.js";import{A as M,D as j,I as S,t as U,u as Y,v as A}from"./chunk-E24W34C4.js";import{d as V}from"./chunk-3QVXHF6I.js";import{d as h,f as z}from"./chunk-ELIH6GCC.js";import{Ca as B,Gb as C,L as $,Mb as k,Rb as D,wa as _}from"./chunk-EYDNSYYE.js";import{d as E,i as N}from"./chunk-773TIA5M.js";import{r as fe}from"./chunk-T6CC5WUU.js";import{e as me,g}from"./chunk-VKWPEFWQ.js";g();g();g();async function ae(e){let n,t;e.bundlePath&&(n=await te(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await ne(n,e.bundlePath));let o={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};n&&(o.bundleUrl=n),e.appModules.length>0&&(o.appModules=e.appModules);let i=await e.developerPlatformClient.deploy(o);if(!i.appDeploy.appVersion){let a=ge(i.appDeploy.userErrors??[],e.extensionIds,e.appModules,{version:e.version});throw new h({bold:"Version couldn't be created."},null,[],a)}return i.appDeploy.userErrors?.length>0&&(t=i.appDeploy.userErrors.map(a=>a.message).join(", ")),{validationErrors:i.appDeploy.appVersion.appModuleVersions.filter(a=>a.validationErrors.length>0).map(a=>({uuid:a.registrationUuid,errors:a.validationErrors})),versionTag:i.appDeploy.appVersion.versionTag,location:i.appDeploy.appVersion.location,message:i.appDeploy.appVersion.message,deployError:t}}var x=`
|
|
2
|
-
Validation errors`,F=`
|
|
3
|
-
`;function ge(e,n,t,o={}){let i=p=>p.details?.some(b=>b.extension_id)??!1,s=(p,b)=>{let v=p.details?.find(O=>typeof O.extension_id<"u")?.extension_id??"";return Object.values(b).includes(v.toString())},a=p=>{let b=p.on?p.on[0]:void 0;return t.some(v=>v.uid===b?.user_identifier)},[r,d]=I(e,p=>a(p)),[m,c]=I(d,p=>i(p)),[f,l]=I(m,p=>s(p,n));return[...he(c,{version:o.version}),...ye(f,n),...be(l),...we(r,t)]}function he(e,n={}){return e.length>0?e.filter(t=>t.field&&t.field.includes("version_tag")&&t.message==="has already been taken").length>0&&n.version?[{body:["An app version with the name",{userInput:n.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(t=>t.message)}}}]:[]}function ye(e,n){return e.reduce((t,o)=>{let i=(o.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),s=i==="base"?o.message:`${i}: ${o.message}`,a=o.details.find(l=>typeof l.extension_title<"u")?.extension_title,r=o.details.find(l=>typeof l.specification_identifier<"u")?.specification_identifier,d=o.details.find(l=>typeof l.extension_id<"u")?.extension_id?.toString(),c=Object.keys(n).find(l=>n[l]===d)??a;r==="webhook_subscription"&&(c="Webhook Subscription");let f=t.find(l=>l.title===c);if(f){let l=f.body,u=o.category==="invalid"?l.find(p=>p.list.title===x):l.find(p=>p.list.title===F);u?u.list.items.includes(s)||u.list.items.push(s):l.push({list:{title:o.category==="invalid"?x:F,items:[s]}})}else t.push({title:c,body:[{list:{title:o.category==="invalid"?x:F,items:[s]}}]});return t.forEach(l=>{l.body.sort((u,p)=>u.list.title===x?1:p.list.title===x?-1:0)}),t},[])}function we(e,n){return e.reduce((t,o)=>{let s=(o.on?o.on[0]:void 0)?.user_identifier,a=n.find(l=>l.uid===s),r=s?`Extension with uid: ${s}`:"Unknown Extension",d=a?.handle??r,c=`${(o.field??["unknown"]).join(".")}: ${o.message}`,f=t.find(l=>l.title===d);if(f){let u=f.body.find(p=>p.list.title===x);u&&(u.list.items.includes(c)||u.list.items.push(c))}else t.push({title:d,body:[{list:{title:x,items:[c]}}]});return t},[])}function be(e){return e.reduce((n,t)=>{let o=t.details.find(s=>typeof s.extension_title<"u")?.extension_title,i=n.find(s=>s.title===o);return i?i.errorCount+=1:n.push({title:o,errorCount:1}),n},[]).map(n=>({title:n.title,body:`
|
|
4
|
-
${n.errorCount} error${n.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}g();async function re(e){let n=E(e.app.directory,".shopify","deploy-bundle");await B(n,{force:!0}),await _(n),await X(e.appManifest,n),e.skipBuild||await W(e.app);let t=e.app.allExtensions.map(i=>({prefix:i.localIdentifier,action:async(s,a,r)=>{let d=e.isDevDashboardApp?void 0:e.identifiers?.extensions[i.localIdentifier];await i.buildForBundle({stderr:a,stdout:s,signal:r,app:e.app,environment:"production",skipBuild:e.skipBuild},n,d)}}));if(await U({processes:t,showTimestamps:!1}),e.app.allExtensions.some(i=>i.hasDeploySteps))return await ee(n,e.bundlePath),e.bundlePath}async function ve(e){let{app:n,remoteApp:t,developerPlatformClient:o,force:i,extensions:s}=e;if(i||!S())return n;let a=[`App includes legacy extensions that will be deprecated soon:
|
|
5
|
-
`,s.map(d=>` - ${d.title}`).join(`
|
|
6
|
-
`),`
|
|
7
|
-
|
|
8
|
-
Run `,{command:"shopify app import-extensions"},"to add legacy extensions now?"];return await M({message:a,confirmationMessage:"Yes, add legacy extensions and deploy",cancellationMessage:"No, skip for now"})?(await R({app:n,remoteApp:t,developerPlatformClient:o,extensions:s}),T(n)):n}async function xe(e){let{app:n,remoteApp:t,developerPlatformClient:o,force:i,extensions:s}=e,a=[`App can't be deployed until Partner Dashboard managed extensions are added to your version or removed from your app:
|
|
9
|
-
`,s.map(c=>` - ${c.title}`).join(`
|
|
10
|
-
`)],r=[`
|
|
11
|
-
|
|
12
|
-
Run `,{command:"shopify app import-extensions"},"to add legacy extensions."];if(i||!S())throw new h(a,r);let d=[`
|
|
13
|
-
|
|
14
|
-
Run `,{command:"shopify app import-extensions"}," to add legacy extensions now?"];if(await M({message:[...a,...d],confirmationMessage:"Yes, add legacy extensions and deploy",cancellationMessage:"No, don't add legacy extensions"}))return await R({app:n,remoteApp:t,developerPlatformClient:o,extensions:s}),T(n);throw new z}async function Ee(e){let{app:n,remoteApp:t,developerPlatformClient:o}=e,i=await se({developerPlatformClient:o,apiKey:t.apiKey,organizationId:t.organizationId,extensionTypes:oe,onlyDashboardManaged:!0}),s=ie(e.app,i);return s.length===0?n:o.supportsDashboardManagedExtensions?ve({...e,extensions:s}):xe({...e,extensions:s})}async function le(e){let{remoteApp:n,developerPlatformClient:t,noRelease:o,force:i,allowUpdates:s,allowDeletes:a}=e,r=await Ee({app:e.app,remoteApp:n,developerPlatformClient:t,force:i}),{identifiers:d,didMigrateExtensionsToDevDash:m}=await J({...e,app:r,developerPlatformClient:t,allowUpdates:s,allowDeletes:a}),c=!o,f=n.apiKey;D(),c?k(`Releasing a new app version as part of ${n.title}`):k(`Creating a new app version as part of ${n.title}`),D();let l;try{let u=E(e.app.directory,".shopify",`deploy-bundle.${t.bundleFormat}`);await _(N(u));let p=await r.manifest(d),b=await re({app:r,appManifest:p,bundlePath:u,identifiers:d,skipBuild:e.skipBuild,isDevDashboardApp:t.supportsAtomicDeployments}),v;c?v="Releasing an app version":v="Creating an app version",await j([{title:"Running validation",task:async()=>{await r.preDeployValidation()}},{title:v,task:async()=>{let ce=await Promise.all(r.allExtensions.flatMap(ue=>ue.bundleConfig({identifiers:d,developerPlatformClient:t,apiKey:f,appConfiguration:r.configuration})));l=await ae({appManifest:p,appId:n.id,apiKey:f,name:r.name,organizationId:n.organizationId,bundlePath:b,appModules:$(ce),release:c,developerPlatformClient:t,extensionIds:d.extensionIds,message:e.message,version:e.version,commitReference:e.commitReference}),await P({app:r,identifiers:d,command:"deploy",developerPlatformClient:t})}}]),await _e({app:r,project:e.project,release:c,uploadExtensionsBundleResult:l,didMigrateExtensionsToDevDash:m})}catch(u){throw await P({app:r,identifiers:d,command:"deploy",developerPlatformClient:t}),u}return{app:r}}async function _e({app:e,project:n,release:t,uploadExtensionsBundleResult:o,didMigrateExtensionsToDevDash:i}){let s=[{link:{label:o.versionTag??"version",url:o.location}},o.message?`
|
|
15
|
-
${o.message}`:""],a=[];if(i){let r=await q(e.directory),d=Object.values(r).filter(c=>c!==r[e.configuration.client_id]),m=[];d.length>0&&m.push("\u2022 Map extension IDs to other copies of your app by running",{command:C(n.packageManager,"shopify app deploy")},"for: ",{list:{items:d}}),m.push("\u2022 Commit to source control to ensure your extension IDs aren't regenerated on the next deploy."),a=[{title:"Next steps",body:m},{title:"Reference",body:["\u2022 ",{link:{label:"Migrating from the Partner Dashboard",url:"https://shopify.dev/docs/apps/build/dev-dashboard/migrate-from-partners"}}]}]}return t?o.deployError?Y({headline:"New version created, but not released.",body:[...s,`
|
|
16
|
-
|
|
17
|
-
${o.deployError}`],customSections:a}):A({headline:"New version released to users.",body:s,customSections:a}):A({headline:"New version created.",body:s,customSections:a,nextSteps:[["Run",{command:C(n.packageManager,"shopify app release",`--version=${o.versionTag}`)},"to release this version to users."]]})}g();function de(e){if(typeof e>"u")return;let n=["Invalid version name:",{userInput:e}],t=100;if(e.length>t)throw new h(n,`Version name must be ${t} characters or less.`);let o=[".",".."];if(o.find(s=>e===s))throw new h(n,`Version name may not be any of: ${o.map(s=>`'${s}'`).join(" , ")}`);let i=/^[a-zA-Z0-9.\-_]+$/;if(!e.match(i))throw new h(n,["Version name can only contain alphanumeric characters, periods, hyphens, and underscores"])}g();function pe(e){if(typeof e>"u")return;let n=["Invalid message:",{userInput:e}],t=200;if(e.length>t)throw new h(n,`Message name must be ${t} characters or less.`)}var y=me(fe(),1);var L,w=class extends Q{async run(){let{flags:n}=await this.parse(L);await H.addPublicMetadata(()=>({cmd_deploy_flag_message_used:!!n.message,cmd_deploy_flag_version_used:!!n.version,cmd_deploy_flag_source_url_used:!!n["source-control-url"]})),de(n.version),pe(n.message);let t=n["client-id"];await V(()=>({cmd_app_reset_used:n.reset}));let o=n["no-release"],i=[];o||n["allow-updates"]||n["allow-deletes"]||i.push("allow-updates"),this.failMissingNonTTYFlags(n,i);let{app:a,project:r,remoteApp:d,developerPlatformClient:m,organization:c}=await Z({directory:n.path,clientId:t,forceRelink:n.reset,userProvidedConfigName:n.config}),f=o||n["allow-updates"],l=o||n["allow-deletes"];return{app:(await le({app:a,project:r,remoteApp:d,organization:c,developerPlatformClient:m,reset:n.reset,force:o,allowUpdates:f,allowDeletes:l,noRelease:n["no-release"],message:n.message,version:n.version,commitReference:n["source-control-url"],skipBuild:n["no-build"]})).app}}};L=w;w.summary="Deploy your Shopify app.";w.descriptionWithMarkdown=`[Builds the app](https://shopify.dev/docs/api/shopify-cli/app/app-build), then deploys your app configuration and extensions.
|
|
18
|
-
|
|
19
|
-
This command creates an app version, which is a snapshot of your app configuration and all extensions. This version is then released to users.
|
|
20
|
-
|
|
21
|
-
This command doesn't deploy your [web app](https://shopify.dev/docs/apps/tools/cli/structure#web-components). You need to [deploy your web app](https://shopify.dev/docs/apps/deployment/web) to your own hosting solution.
|
|
22
|
-
`;w.description=L.descriptionWithoutMarkdown();w.flags={...G,...K,"allow-updates":y.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":y.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"}),"no-release":y.Flags.boolean({hidden:!1,description:"Creates a version but doesn't release it - it's not made available to merchants. With this flag, a user confirmation is not required.",env:"SHOPIFY_FLAG_NO_RELEASE",default:!1,exclusive:["allow-updates","allow-deletes"]}),"no-build":y.Flags.boolean({description:"Use with caution: Skips building any elements of the app that require building. You should ensure your app has been prepared in advance, such as by running `shopify app build` or by caching build artifacts.",env:"SHOPIFY_FLAG_NO_BUILD",default:!1}),message:y.Flags.string({hidden:!1,description:"Optional message that will be associated with this version. This is for internal use only and won't be available externally.",env:"SHOPIFY_FLAG_MESSAGE"}),version:y.Flags.string({hidden:!1,description:"Optional version tag that will be associated with this app version. If not provided, an auto-generated identifier will be generated for this app version.",env:"SHOPIFY_FLAG_VERSION"}),"source-control-url":y.Flags.string({hidden:!1,description:"URL associated with the new app version.",env:"SHOPIFY_FLAG_SOURCE_CONTROL_URL"})};var fn=w;export{fn as a};
|
package/dist/chunk-6ZRHK4ON.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-PGODIZ64.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|
package/dist/chunk-7USHLXEN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pb as m}from"./chunk-EYDNSYYE.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as h}from"child_process";function g(e=process.pid,i="SIGTERM",r=!0,s){k(e,i,r,s??(n=>{n&&m(`Failed to kill process ${e}: ${n}`)}))}function k(e,i,r,s){let t=typeof e=="number"?e.toString():e;if(!/^\d+$/.test(t))if(s){s(new Error("pid must be a number"));return}else throw new Error("pid must be a number");let n={};n[t]=[];let o=new Set;switch(o.add(t),process.platform){case"win32":{h("taskkill",["/pid",t,"/T","/F"]).on("close",u=>{s&&(u===0?s():s(new Error(`taskkill exited with code ${u}`)))});break}case"darwin":l(t,n,o,function(f){return h("pgrep",["-lfP",f])},function(){w(n,i,t,r,s)});break;default:l(t,n,o,function(f){return h("ps",["-o","pid command","--no-headers","--ppid",f])},function(){w(n,i,t,r,s)});break}}function w(e,i,r,s,t){let n=new Set;try{Object.keys(e).forEach(function(o){e[o].forEach(function(f){n.has(f)||(E(f,i),n.add(f))}),o===r&&s&&!n.has(o)&&(E(o,i),n.add(o))})}catch(o){if(t){t(o);return}else throw o}t&&t()}function E(e,i){try{process.kill(parseInt(e,10),i)}catch(r){if(r.code!=="ESRCH")throw r}}function l(e,i,r,s,t){let n=s(e),o="";n.stdout?.on("data",function(u){let a=u.toString("ascii");o+=a});let f=u=>{if(r.delete(e),u!==0){if(r.size===0){t();return}return}o.trim().split(`
|
|
2
|
-
`).forEach(function(a){let d=a.match(/^(\d+)\s(.*)$/);if(d){let c=d[1],$=d[2];i[e].push(c),i[c]=[],m(`Killing process ${c}: ${$}`),r.add(c),l(c,i,r,s,t)}})};n.on("close",f)}export{g as a};
|
package/dist/chunk-AH2ZJ73H.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{b as C}from"./chunk-4TC4M4RC.js";import{b as f}from"./chunk-IDKUJQIG.js";import{A as S,u as i,y as x}from"./chunk-E24W34C4.js";import{d as v}from"./chunk-ELIH6GCC.js";import{Pb as I}from"./chunk-EYDNSYYE.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();a();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."};a();function p(o=W()){return!!o.get("autocorrectEnabled")}function y(o,n=W()){n.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;a();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 D=u;a();var M,d=class extends f{async run(){p()?i({body:m.on}):i({body:m.off})}};M=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=M.descriptionWithoutMarkdown();var N=d;a();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 n;function n(t){let c=[];if(t==null)return c;let e=typeof t.slice=="function"?t:String(t),r=e.length-o+1;if(r<1)return c;for(;r--;)c[r]=e.slice(r,r+o);return c}}function h(o){return o.replace(/:/g," ")}function F(o,n){let t={};o.forEach(e=>{t[e]=t[e]?t[e]+1:1});let c=[];for(let e of n)e in t&&t[e]>0&&(c.push(e),t[e]=t[e]-1);return c.length}function L(o){if(o.id.length<2)return;let n=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=>!n.has(r)))),c=g(o.id),e=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(e)}`),e.length>0){let{cmd:r}=e[0];return r}}async function Y(o,n){return p()?(i({body:["Autocorrecting",{command:h(n)},"to",{command:h(o)},{char:"."}]}),!0):S({message:["Command",{command:n},"not found. Did you mean",{command:h(o)},{char:"?"}]})}var bo={"config:autocorrect:off":D,"config:autocorrect:status":N,"config:autocorrect:on":E},go=async function(o){let n=L(o),t=h(o.id);if(o.argv&&(o.argv.includes("-f")||o.argv.includes("--force"))||!n){x(new v(`Command '${t}' not found.`));return}await Y(n,t)&&await this.config.runCommand(n,o.argv)};export{L as a,Y as b,bo as c,go as d};
|
package/dist/chunk-AI756VJI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./chunk-6ZRHK4ON.js";import{a as k}from"./chunk-7XQDZF73.js";import{Fa as N,ga as x}from"./chunk-UZ7U322K.js";import{b as C,c as R}from"./chunk-Q6LCSRIW.js";import{C as y}from"./chunk-E24W34C4.js";import{d as v}from"./chunk-ELIH6GCC.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ca as h}from"./chunk-EYDNSYYE.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};
|
package/dist/chunk-DA4LHFJQ.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk-HXYWEKMS.js";import{a as c}from"./chunk-YJCJDCVP.js";import{a as u}from"./chunk-OASPW2P2.js";import{a as y}from"./chunk-IQYZAALJ.js";import{d as f}from"./chunk-YBFCDINU.js";import{p,v as m}from"./chunk-PTIJDS6I.js";import{xa as h}from"./chunk-2HZMOK4U.js";import{b as l,d}from"./chunk-Q6LCSRIW.js";import{r as O}from"./chunk-T6CC5WUU.js";import{e as F,g as a}from"./chunk-VKWPEFWQ.js";a();var t=F(O(),1);var w,o=class extends m{async command(r,n){let{ignore:g=[],only:_=[]}=r;h("theme-command:dev:single-env:authenticated");let i,e;if(r.theme){let s={filter:{theme:r.theme}};i=await u(n,s),e={...r,theme:i.id.toString(),store:n.storeFqdn}}else{i=await new c(n).findOrCreate();let s=r["theme-editor-sync"]&&i.createdAtRuntime;e={...r,theme:i.id.toString(),store:n.storeFqdn,"overwrite-json":s}}await f(i,"start development mode",r["allow-live"])&&(await v({adminSession:n,commandConfig:this.config,directory:e.path,store:e.store,password:e.password,storePassword:e["store-password"],theme:i,listing:e.listing,host:e.host,port:e.port,"live-reload":e["live-reload"],"error-overlay":e["error-overlay"],force:e.force,open:e.open,"theme-editor-sync":e["theme-editor-sync"],"standard-events-inspector":e["standard-events-inspector"],noDelete:e.nodelete,ignore:g,only:_,notify:e.notify}),await y({path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"],silent:!0}))}};w=o;o.summary="Uploads the current theme as a development theme to the connected store, then prints theme editor and preview URLs to your terminal. While running, changes will push to the store in real time.";o.descriptionWithMarkdown=`
|
|
2
|
-
Uploads the current theme as the specified theme, or a [development theme](https://shopify.dev/docs/themes/tools/cli#development-themes), to a store so you can preview it.
|
|
3
|
-
|
|
4
|
-
This command returns the following information:
|
|
5
|
-
|
|
6
|
-
- A link to your development theme at http://127.0.0.1:9292. This URL can hot reload local changes to CSS and sections, or refresh the entire page when a file changes, enabling you to preview changes in real time using the store's data.
|
|
7
|
-
|
|
8
|
-
You can specify a different network interface and port using \`--host\` and \`--port\`.
|
|
9
|
-
|
|
10
|
-
- A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
|
|
11
|
-
|
|
12
|
-
- A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.
|
|
13
|
-
|
|
14
|
-
If you already have a development theme for your current environment, then this command replaces the development theme with your local theme. You can override this using the \`--theme-editor-sync\` flag.
|
|
15
|
-
|
|
16
|
-
> Note: You can't preview checkout customizations using http://127.0.0.1:9292.
|
|
17
|
-
|
|
18
|
-
Development themes are deleted when you run \`shopify auth logout\`. If you need a preview link that can be used after you log out, then you should [share](https://shopify.dev/docs/api/shopify-cli/theme/theme-share) your theme or [push](https://shopify.dev/docs/api/shopify-cli/theme/theme-push) to an unpublished theme on your store.
|
|
19
|
-
|
|
20
|
-
You can run this command only in a directory that matches the [default Shopify theme folder structure](https://shopify.dev/docs/themes/tools/cli#directory-structure).`;o.description=w.descriptionWithoutMarkdown();o.flags={...l,...p,host:t.Flags.string({description:"Set which network interface the web server listens on. The default value is 127.0.0.1.",env:"SHOPIFY_FLAG_HOST"}),"live-reload":t.Flags.string({description:`The live reload mode switches the server behavior when a file is modified:
|
|
21
|
-
- hot-reload Hot reloads local changes to CSS and sections (default)
|
|
22
|
-
- full-page Always refreshes the entire page
|
|
23
|
-
- off Deactivate live reload`,default:"hot-reload",options:["hot-reload","full-page","off"],env:"SHOPIFY_FLAG_LIVE_RELOAD"}),"error-overlay":t.Flags.string({description:`Controls the visibility of the error overlay when an theme asset upload fails:
|
|
24
|
-
- silent Prevents the error overlay from appearing.
|
|
25
|
-
- default Displays the error overlay.
|
|
26
|
-
`,options:["silent","default"],default:"default",env:"SHOPIFY_FLAG_ERROR_OVERLAY"}),poll:t.Flags.boolean({hidden:!0,description:"Force polling to detect file changes.",env:"SHOPIFY_FLAG_POLL"}),"theme-editor-sync":t.Flags.boolean({description:"Synchronize Theme Editor updates in the local theme files.",env:"SHOPIFY_FLAG_THEME_EDITOR_SYNC"}),"standard-events-inspector":t.Flags.boolean({description:"Inject the standard events inspector into storefront HTML.",env:"SHOPIFY_FLAG_STANDARD_EVENTS_INSPECTOR",default:!1}),port:d({description:"Local port to serve theme preview from.",env:"SHOPIFY_FLAG_PORT"}),theme:t.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),listing:t.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"}),nodelete:t.Flags.boolean({char:"n",description:"Prevents files from being deleted in the remote theme when a file has been deleted locally. This applies to files that are deleted while the command is running, and files that have been deleted locally before the command is run.",env:"SHOPIFY_FLAG_NODELETE"}),only:t.Flags.string({char:"o",multiple:!0,description:"Hot reload only files that match the specified pattern.",env:"SHOPIFY_FLAG_ONLY"}),ignore:t.Flags.string({char:"x",multiple:!0,description:"Skip hot reloading any files that match the specified pattern.",env:"SHOPIFY_FLAG_IGNORE"}),force:t.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),notify:t.Flags.string({description:"The file path or URL. The file path is to a file that you want updated on idle. The URL path is where you want a webhook posted to report on file changes.",env:"SHOPIFY_FLAG_NOTIFY"}),open:t.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),"store-password":t.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),"allow-live":t.Flags.boolean({description:"Allow development on a live theme.",char:"a",env:"SHOPIFY_FLAG_ALLOW_LIVE",default:!1})};o.multiEnvironmentsFlags=null;var R=o;export{R as a};
|
package/dist/chunk-DKKBJ4H5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as z,la as j,ma as J,na as k,oa as W,pa as A,qa as q,ra as N,sa as B,ta as L,ua as K,va as R,wa as Q,xa as O,ya as Y}from"./chunk-UZ7U322K.js";import{f as v,i as X,p as c}from"./chunk-IRH6IGFT.js";import{c as G}from"./chunk-ASOT7VNB.js";import{v as U,z as w}from"./chunk-E24W34C4.js";import{d as E,f as $}from"./chunk-ELIH6GCC.js";import{$ as b,Hb as H,Ta as P,Y as a,qa as I,wa as D,ya as V}from"./chunk-EYDNSYYE.js";import{d as C,j as F}from"./chunk-773TIA5M.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();s();function Z(e){switch(e){case d.Offsite:return k;case d.CreditCard:return R;case d.CustomCreditCard:return L;case d.CustomOnsite:return N;case d.Redeemable:return A;case d.CardPresent:return O}}var d;(function(e){e.Offsite="payments_app",e.CreditCard="payments_app_credit_card",e.CustomCreditCard="payments_app_custom_credit_card",e.CustomOnsite="payments_app_custom_onsite",e.Redeemable="payments_app_redeemable",e.CardPresent="payments_app_card_present"})(d||(d={}));function ee(e,t){let i=e.activeVersion?.context??e.draftVersion?.context??Z(e.type);switch(i){case k:return x(e,t,W);case R:return x(e,t,Q);case L:return x(e,t,K);case N:return x(e,t,B);case A:return x(e,t,q);case O:return x(e,t,Y);default:throw new Error(`Unsupported extension: ${i}`)}}function x(e,t,i){let o=(e.activeVersion??e.draftVersion)?.config;if(!o)throw new Error("No config found for extension");let r=JSON.parse(o),l=i(r,t);l&&delete l.api_version;let p=e.activeVersion?.context??e.draftVersion?.context??Z(e.type);return{api_version:r.api_version,extensions:[{name:e.title,type:"payments_extension",handle:a(e.title.substring(0,c)),...l,targeting:[{target:`${p}`}]}]}}s();s();var fe=new Map(J.map(e=>[e[1],e[0]])),ue=(e,t)=>{let i=fe.get(e.uiType);if(!i)throw new E(`Field type ${e.uiType} is not supported`);let n={key:e.name,description:e.description??void 0,type:i};return t==="flow_action_definition"&&(n.name=e.label,n.required=e.required),n},me=(e,t)=>{let o={type:t==="flow_action_definition"?`${e.name.replace("_id","")}_reference`:`${e.uiType}_reference`};return t==="flow_action_definition"&&(o.required=e.required),e.uiType==="marketing-activity-id"&&(o.marketingActivityCreateUrl=e.marketingActivityCreateUrl,o.marketingActivityDeleteUrl=e.marketingActivityDeleteUrl),o},te=(e,t)=>t?t.map(n=>n.uiType==="commerce-object-id"||n.uiType==="marketing-activity-id"||j.includes(n.uiType)?me(n,e):ue(n,e)):[];function ie(e){let t=e.activeVersion?.config??e.draftVersion?.config;if(!t)throw new Error("No config found for extension");let i=e.type==="flow_action_definition"?"https://url.com/api/execute":void 0,n;if(e.type==="flow_trigger_discovery_webhook"){let o=JSON.parse(t);n={extensions:[{type:"flow_trigger_lifecycle_callback",name:e.title,handle:a(e.title.substring(0,c)),url:o.url}]}}else{let o=JSON.parse(t),r=te(e.type,o.fields??[]);n={extensions:[{type:e.type.replace("_definition",""),name:o.title,handle:a(e.title.substring(0,c)),description:o.description,runtime_url:o.url??i,config_page_url:o.custom_configuration_page_url,config_page_preview_url:o.custom_configuration_page_preview_url,validation_url:o.validation_url}],settings:(r?.length??0)>0?{fields:r}:void 0}}return n}s();s();var ne=e=>{let t=e.split("#");if(t.length!==2||t.some(l=>l===""||l===void 0))throw new Error("Invalid context");let i="admin",n=ge(t[0]??""),o=de(t[1]??""),r="link";return o==="selection"?[i,`${n}-index`,`${o}-action`,r].join("."):[i,`${n}-${o}`,"action",r].join(".")},de=e=>{switch(e.toLocaleLowerCase()){case"show":return"details";case"index":return"index";case"action":return"selection";case"fulfilled_card":return"fulfilled-card";default:throw new Error(`Invalid context location: ${e}`)}},ge=e=>e.toLocaleLowerCase()==="variants"?"product-variant":b(e.toLocaleLowerCase().replace(new RegExp("(s)$"),""));function oe(e,t,i){let n=e.activeVersion?.config??e.draftVersion?.config;if(!n)throw new Error("No config found for extension");let o=e.activeVersion?.context??e.draftVersion?.context;if(!o)throw new Error("No context found for link extension");let r=JSON.parse(n);if(i.embedded)try{let p=new URL(r.url),f=p.pathname.startsWith("/")?p.pathname.substring(1):p.pathname,u=new URL(`app://${f}`);u.search=p.search,u.hash=p.hash,r.url=u.toString()}catch{}return{extensions:[{type:"admin_link",name:r.text,handle:a(e.title.substring(0,c)),targeting:[{url:r.url,target:ne(o)}]}]}}s();var _e={facebook:"social",instagram:"social",google:"search",pinterest:"social",bing:"search",email:"email",snapchat:"social",sms:"sms",verizon_media:"display",ebay:"marketplace",tiktok:"social",flow:"email"},ye={facebook:"facebook.com",instagram:"instagram.com",google:"google.com",pinterest:"pinterest.com",bing:"bing.com",snapchat:"snapchat.com",verizon_media:null,email:null,sms:null,ebay:"ebay.com",tiktok:"tiktok.com",flow:null};function Ce(e){let t=new URL(e);return t.pathname+t.search+t.hash}function re(e){let t=e.activeVersion?.config??e.draftVersion?.config;if(!t)throw new Error("No config found for extension");let i=JSON.parse(t);return{extensions:[{type:"marketing_activity",name:e.title,handle:a(e.title.substring(0,c)),title:i.title,description:i.description,api_path:Ce(i.app_api_url),tactic:i.tactic,marketing_channel:_e[i.platform]??"",referring_domain:ye[i.platform]??"",is_automation:i.is_automation,use_external_editor:i.use_external_editor,preview_data:i.preview_data,fields:i.fields.map(({id:o,...r})=>r)}]}}s();function se(e){let t=e.activeVersion?.config??e.draftVersion?.config;if(!t)throw new Error("No config found for extension");let i=JSON.parse(t);return{extensions:[{type:"subscription_link_extension",name:e.title,handle:a(e.title.substring(0,c)),pattern:i.pattern}]}}var S=[{label:"Payments Extensions",value:"payments",extensionTypes:["payments_app","payments_app_credit_card","payments_app_custom_credit_card","payments_app_custom_onsite","payments_app_redeemable","payments_extension"],buildExtensionConfig:ee},{label:"Flow Extensions",value:"flow",extensionTypes:["flow_action_definition","flow_trigger_definition","flow_trigger_discovery_webhook"],buildExtensionConfig:ie},{label:"Marketing Activity Extensions",value:"marketing activity",extensionTypes:["marketing_activity_extension"],buildExtensionConfig:re},{label:"Subscription Link Extensions",value:"subscription link",extensionTypes:["subscription_link","subscription_link_extension"],buildExtensionConfig:se},{label:"Admin Link extensions",value:"link extension",extensionTypes:["app_link","bulk_action"],buildExtensionConfig:oe}];function ae(e){return S.filter(t=>t.extensionTypes.some(i=>e.some(n=>n.type.toLowerCase()===i.toLowerCase())))}async function ut(e){if(e.length===1&&e[0])return e[0];let t=e.map(o=>({label:o.label,value:o.value})),i=await w({message:"Extension type to migrate",choices:t}),n=e.find(o=>o.value===i);if(n===void 0)throw new E("Invalid migration choice");return n}s();var kt=S.flatMap(e=>e.extensionTypes),g;(function(e){e.Write="write",e.Skip="skip",e.Cancel="cancel"})(g||(g={}));async function Ee({name:e,app:t}){let i=b(e),n=C(t.directory,X.extensions.directoryName,i);if(await P(n)){let o=[{label:"Overwrite local TOML with remote configuration",value:g.Write},{label:"Keep local TOML",value:g.Skip},{label:"Cancel",value:g.Cancel}],r=await w({message:`Directory "${i}" already exists. What would you like to do?`,choices:o});if(r===g.Cancel)throw new $;return{directory:n,action:r}}return await D(n),await I(C(n,v.lockFile)),{directory:n,action:g.Write}}async function xe(e){let{app:t,remoteApp:i,developerPlatformClient:n,extensionTypes:o,extensions:r,buildExtensionConfig:l,all:p}=e,f=r.filter(m=>o.includes(m.type.toLowerCase()));if(f=we(t,f),f.length===0)throw new E("No extensions to migrate");if(!p){let m=f.map(y=>({label:y.title,value:y.uuid}));f.length>1&&m.push({label:"All",value:"All"});let _=await w({message:"Extensions to migrate",choices:m});_!=="All"&&(f=[f.find(y=>y?.uuid===_)])}let u={},h=f.map(async m=>{let{directory:_,action:y}=await Ee({app:t,name:m.title}),ce=a(m.title.substring(0,c));if(u[ce]=m.uuid,y===g.Write){let M=l(m,r,t.configuration),le=C(_,"shopify.extension.toml");await new G(le,M).replace(M);let pe=C(_,v.lockFile);await V(pe)}return{extension:m,directory:C("extensions",F(_))}}),T=await Promise.all(h);be(T),await z({app:t,identifiers:{extensions:u,app:i.apiKey},command:"import-extensions",developerPlatformClient:n})}function we(e,t){let i=e.dotenv?.variables??{},n=e.allExtensions.map(o=>i[o.idEnvironmentVariableName]);return t.filter(o=>!n.includes(o.uuid))}async function At(e){let t=ae(e.extensions);await Promise.all(t.map(async i=>xe({...e,extensionTypes:i.extensionTypes,buildExtensionConfig:i.buildExtensionConfig,all:!0})))}function be(e){U({headline:["Imported the following extensions from the dashboard:"],body:e.map(t=>H`• "${t.extension.title}" at: ${t.directory}`.value).join(`
|
|
2
|
-
`)})}s();async function Rt({developerPlatformClient:e,apiKey:t,organizationId:i,extensionTypes:n,onlyDashboardManaged:o=!1}){let r=await e.appExtensionRegistrations({id:t,apiKey:t,organizationId:i}),{dashboardManagedExtensionRegistrations:l,extensionRegistrations:p}=r.app;return(o?l:p.concat(l)).filter(u=>{let h=n.includes(u.type.toLowerCase()),T=u.activeVersion&&u.activeVersion.config,m=u.draftVersion&&u.draftVersion.config;return h&&(T??m)})}export{ae as a,ut as b,kt as c,xe as d,we as e,At as f,Rt as g};
|
package/dist/chunk-EAXEV45I.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-YZY4M6IH.js";import{a as oe}from"./chunk-JOYM7AEQ.js";import{a as se}from"./chunk-6ZRHK4ON.js";import{a as z}from"./chunk-7XQDZF73.js";import{F as X,Fa as re,_ as ee,ba as te,m as W}from"./chunk-UZ7U322K.js";import{ea as Z}from"./chunk-IRH6IGFT.js";import{z as G}from"./chunk-2HZMOK4U.js";import{b as Y,c as K}from"./chunk-Q6LCSRIW.js";import{i as H,u as Q}from"./chunk-E24W34C4.js";import{d as _}from"./chunk-ELIH6GCC.js";import{Lb as M,Mb as S,da as $,eb as F,fb as f,gb as o}from"./chunk-EYDNSYYE.js";import{j as V}from"./chunk-773TIA5M.js";import{r as _e}from"./chunk-T6CC5WUU.js";import{e as N,g as E}from"./chunk-VKWPEFWQ.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
|
|
2
|
-
`),await Se({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id}))}async function Le(t){let{app:s,remoteApp:n,developerPlatformClient:i,primaryStore:l,organization:a}=t,p=V(s.configPath);t.format==="text"&&Pe(n.title,l.shopDomain,t.storeFqdns,p,a.businessName);let u=new Map;return u.set(l.shopId,l.shopDomain),t.storeFqdns&&t.storeFqdns.length>1&&await Promise.all(t.storeFqdns?.slice(1).map(async c=>{let d=await Z(a,c,i);u.set(d.shopId,c)})),{storeIds:Array.from(u.keys()),storeNameById:u}}function Pe(t,s,n,i,l){let a=[];n&&n.length>0?n.forEach(u=>a.push(u)):a.push(s);let p=i?W(i):void 0;Q({headline:i?`Using ${p} for default values:`:"Using these settings:",body:ee({appName:t,org:l,devStores:a,messages:[te]})})}var O=N(_e(),1);var J,I=class extends se{async run(){let{flags:s}=await this.parse(J);await X(s.path);let n=await re({directory:s.path,clientId:s["client-id"],forceRelink:s.reset,userProvidedConfigName:s.config}),i=await oe({appContextResult:n,storeFqdn:s.store?.[0],forceReselectStore:s.reset}),l={...n,primaryStore:i,storeFqdns:s.store,sources:s.source,status:s.status,format:s.json?"json":"text"};return await Ae(l),{app:n.app}}};J=I;I.summary="Stream detailed logs for your Shopify app.";I.descriptionWithMarkdown="\n Opens a real-time stream of detailed app logs from the selected app and store.\n Use the `--source` argument to limit output to a particular log source, such as a specific Shopify Function handle. Use the `shopify app logs sources` command to view a list of sources.\n Use the `--status` argument to filter on status, either `success` or `failure`.\n ```\n shopify app logs --status=success --source=extension.discount-function\n ```\n ";I.description=J.descriptionWithoutMarkdown();I.flags={...Y,...z,...K,store:O.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",multiple:!0,parse:async t=>G(t)}),source:O.Flags.string({description:"Filters output to the specified log source.",env:"SHOPIFY_FLAG_SOURCE",multiple:!0}),status:O.Flags.string({description:"Filters output to the specified status (success or failure).",options:["success","failure"],env:"SHOPIFY_FLAG_STATUS"})};var _t=I;export{_t as a};
|
package/dist/chunk-ELIH6GCC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Eb as x,Sb as P,vb as w}from"./chunk-EYDNSYYE.js";import{e as g}from"./chunk-773TIA5M.js";import{r as T}from"./chunk-T6CC5WUU.js";import{c as h,e as O,g as u}from"./chunk-VKWPEFWQ.js";var M=h(a=>{"use strict";u();a.__esModule=void 0;a.__esModule=!0;var B=typeof Object.setPrototypeOf=="function",R=typeof Object.getPrototypeOf=="function",U=typeof Object.defineProperty=="function",q=typeof Object.create=="function",z=typeof Object.prototype.hasOwnProperty=="function",H=function(e,r){B?Object.setPrototypeOf(e,r):e.__proto__=r};a.setPrototypeOf=H;var L=function(e){return R?Object.getPrototypeOf(e):e.__proto__||e.prototype};a.getPrototypeOf=L;var j=!1,Y=function t(e,r,n){if(U&&!j)try{Object.defineProperty(e,r,n)}catch{j=!0,t(e,r,n)}else e[r]=n.value};a.defineProperty=Y;var k=function(e,r){return z?e.hasOwnProperty(e,r):e[r]===void 0};a.hasOwnProperty=k;var D=function(e,r){if(q)return Object.create(e,r);var n=function(){};n.prototype=e;var s=new n;if(typeof r>"u")return s;if(typeof r=="null")throw new Error("PropertyDescriptors must not be null.");if(typeof r=="object")for(var o in r)k(r,o)&&(s[o]=r[o].value);return s};a.objectCreate=D});var S=h(f=>{"use strict";u();f.__esModule=void 0;f.__esModule=!0;var b=M(),G=b.setPrototypeOf,Z=b.getPrototypeOf,v=b.defineProperty,J=b.objectCreate,K=new Error().toString()==="[object Error]",m="";function p(t){var e=this.constructor,r=e.name||(function(){var y=e.toString().match(/^function\s*([^\s(]+)/);return y===null?m||"Error":y[1]})(),n=r==="Error",s=n?m:r,o=Error.apply(this,arguments);if(G(o,Z(this)),!(o instanceof e)||!(o instanceof p)){var o=this;Error.apply(this,arguments),v(o,"message",{configurable:!0,enumerable:!1,value:t,writable:!0})}if(v(o,"name",{configurable:!0,enumerable:!1,value:s,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(o,n?p:e),o.stack===void 0){var c=new Error(t);c.name=o.name,o.stack=c.stack}return K&&v(o,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),o}m=p.name||"ExtendableError";p.prototype=J(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}});f.ExtendableError=p;f.default=f.ExtendableError});u();var A=O(T()),V=O(S()),i;(function(t){t[t.Abort=0]="Abort",t[t.AbortSilent=1]="AbortSilent",t[t.Bug=2]="Bug"})(i||(i={}));var _=class extends Error{},l=class extends Error{constructor(e,r,n=null,s,o){let c=typeof e=="string"||"value"in e;super(c?P(e):w(e)),n?n instanceof x?this.tryMessage=P(n):this.tryMessage=n:this.tryMessage=null,this.type=r,this.nextSteps=s,this.customSections=o,this.skipOclifErrorHandling=!0,c||(this.formattedMessage=e)}},E=class extends l{constructor(e,r=null,n,s){super(e,i.Abort,r,n,s)}},I=class extends l{constructor(e,r,n,s=null){super(e,i.Abort,s),this.command=r,this.args=n}},C=class extends l{constructor(){super("",i.AbortSilent)}},d=class extends l{constructor(e,r=null){super(e,i.Bug,r)}};async function ne(t){let e;if(N(t))e=t;else if(typeof t=="string")e=new d(t);else if(t instanceof Error)e=new d(t.message),e.stack=t.stack;else{let n=t;e=new d(n?.message??"Unknown error"),n?.stack&&(e.stack=n?.stack)}let{renderFatalError:r}=await import("./ui-QIHGXICT.js");return r(e),Promise.resolve(t)}function oe(t){if(t instanceof A.Errors.CLIError){let e=new E(t.message);return e.stack=t.stack,Promise.resolve(e)}else return Promise.resolve(t)}function N(t){try{return Object.prototype.hasOwnProperty.call(t,"type")}catch{return!1}}function se(t){if(!N(t)){if(t instanceof Error){let e=t.message;return!Q(e)}return!0}return t.type===i.Bug}function ae(t){return g(t).replace("file:/","/").replace(/^\/?[A-Z]:/,"")}function Q(t){return["EPERM: operation not permitted, scandir","EPERM: operation not permitted, rename","EACCES: permission denied","EPERM: operation not permitted, symlink","This version of npm supports the following node versions","EBUSY: resource busy or locked","ENOTEMPTY: directory not empty","getaddrinfo ENOTFOUND","Client network socket disconnected before secure TLS connection was established","spawn EPERM","socket hang up","The user aborted a request.","write EPIPE","Unsupported platform"].some(n=>t.includes(n))}export{i as a,_ as b,l as c,E as d,I as e,C as f,d as g,ne as h,oe as i,se as j,ae as k,V as l};
|