shopify 5.0.0 → 5.0.2
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-Q6QDIDYT.js → analytics-NMMVOF4B.js} +1 -1
- package/dist/{analytics-VKKJNJ62.js → analytics-UK77WNLG.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-Q5MEFIMV.js → chunk-224UPIYS.js} +1 -1
- package/dist/{chunk-XBQDMGUN.js → chunk-26PWHH3B.js} +1 -1
- package/dist/{chunk-46MSIQ6Z.js → chunk-27NXPOAS.js} +1 -1
- package/dist/{chunk-SFPXYHHL.js → chunk-2A2JSAAA.js} +1 -1
- package/dist/{chunk-P33TONYG.js → chunk-2L6AN3QA.js} +1 -1
- package/dist/{chunk-43KLFFP7.js → chunk-2MT3LSMZ.js} +1 -1
- package/dist/{chunk-PGLWZMJU.js → chunk-2T4HDR6R.js} +1 -1
- package/dist/{chunk-5UWMXOHM.js → chunk-2WJOTJOD.js} +1 -1
- package/dist/{chunk-HIRTL45Q.js → chunk-2ZBXHCQZ.js} +1 -1
- package/dist/chunk-33ZE3DRQ.js +16 -0
- package/dist/{chunk-WFWISGLS.js → chunk-34MOWGRL.js} +1 -1
- package/dist/{chunk-AXC2MHHO.js → chunk-35XFNKNB.js} +1 -1
- package/dist/{chunk-LHKVXJPX.js → chunk-3JSKNXL7.js} +1 -1
- package/dist/{chunk-Q2SZCZE7.js → chunk-3KM5ZOW2.js} +1 -1
- package/dist/{chunk-KJQDS5HI.js → chunk-3MG4MTWQ.js} +1 -1
- package/dist/{chunk-MDRVCBDO.js → chunk-3MYDSQHF.js} +1 -1
- package/dist/{chunk-MYAIWSOO.js → chunk-3ODQKAEA.js} +1 -1
- package/dist/{chunk-6DXP7PQ7.js → chunk-3XRI3D44.js} +1 -1
- package/dist/{chunk-KGRIYAMA.js → chunk-3Z3MADXZ.js} +1 -1
- package/dist/{chunk-GB6E3ATN.js → chunk-4KECSZTL.js} +1 -1
- package/dist/{chunk-G6ZMSWEU.js → chunk-4WYKPIN3.js} +1 -1
- package/dist/{chunk-M3ACZWMR.js → chunk-5AEZJZNQ.js} +1 -1
- package/dist/chunk-5ED7SOQZ.js +20 -0
- package/dist/{chunk-FFHH5LOR.js → chunk-5IDJALJH.js} +1 -1
- package/dist/{chunk-GXORLBVN.js → chunk-62EOM3Y2.js} +1 -1
- package/dist/{chunk-EXFBZPZS.js → chunk-64G5TGFF.js} +1 -1
- package/dist/{chunk-QN3774QI.js → chunk-66TMIQMB.js} +1 -1
- package/dist/{chunk-L7MSPGDS.js → chunk-67L7FIB6.js} +1 -1
- package/dist/{chunk-7UOA4DI7.js → chunk-6ES4KRFW.js} +1 -1
- package/dist/{chunk-XMODGI45.js → chunk-74NRFUGQ.js} +1 -1
- package/dist/{chunk-YVY32DNA.js → chunk-7CCTPBCT.js} +1 -1
- package/dist/{chunk-2DID73ML.js → chunk-7GUMJ5E4.js} +1 -1
- package/dist/{chunk-IUTZIN2T.js → chunk-7NFTSBHQ.js} +1 -1
- package/dist/{chunk-TPSA4JN5.js → chunk-ACZNWIRY.js} +1 -1
- package/dist/{chunk-CCMDZX35.js → chunk-AQ6EVL73.js} +1 -1
- package/dist/{chunk-7WPUV7GY.js → chunk-AQKWPRZE.js} +1 -1
- package/dist/chunk-AUE7LM32.js +1 -0
- package/dist/{chunk-PIAD3F6M.js → chunk-AXL2VIWA.js} +1 -1
- package/dist/{chunk-CVVQQLCF.js → chunk-B2O3ANRZ.js} +1 -1
- package/dist/chunk-B3ZJGYZY.js +3 -0
- package/dist/{chunk-4SS6DXC7.js → chunk-BWN2QG6D.js} +1 -1
- package/dist/{chunk-6BNKBCCU.js → chunk-C3RFAKWR.js} +1 -1
- package/dist/{chunk-SNNZ4U2W.js → chunk-CCUQM4FX.js} +1 -1
- package/dist/{chunk-EITIW5OX.js → chunk-CGVROSPS.js} +1 -1
- package/dist/{chunk-7QUZWCJZ.js → chunk-CLUUA3HX.js} +1 -1
- package/dist/{chunk-X7HVAVSZ.js → chunk-CXI3RHPW.js} +1 -1
- package/dist/chunk-CYEEGTVZ.js +11 -0
- package/dist/{chunk-CZ22VZDA.js → chunk-D2KIGKBI.js} +108 -108
- package/dist/chunk-DBDTE3EE.js +5 -0
- package/dist/{chunk-YKS7MH3F.js → chunk-DLVB3237.js} +1 -1
- package/dist/{chunk-UZROQRLX.js → chunk-DN6X7SHW.js} +1 -1
- package/dist/{chunk-OGWPS55W.js → chunk-DZKFP6H2.js} +1 -1
- package/dist/{chunk-S67I4E7M.js → chunk-E5COIKGY.js} +1 -1
- package/dist/{chunk-CW2T7EOQ.js → chunk-E6RONHMT.js} +1 -1
- package/dist/{chunk-2CMEKSI7.js → chunk-EAZIQI2D.js} +1 -1
- package/dist/{chunk-FNLECT7B.js → chunk-EEY4FKAW.js} +1 -1
- package/dist/{chunk-YGYEM6QO.js → chunk-EKFPTBXC.js} +1 -1
- package/dist/{chunk-VW6QS7DO.js → chunk-ER6C5WS3.js} +1 -1
- package/dist/{chunk-MR2AUT7Q.js → chunk-ESFCYB46.js} +1 -1
- package/dist/{chunk-GRGFA26K.js → chunk-F3CK3EJJ.js} +1 -1
- package/dist/{chunk-M4BVLMPH.js → chunk-FEBOZ2XX.js} +1 -1
- package/dist/{chunk-5OMJFPQW.js → chunk-GNCVDN7U.js} +1 -1
- package/dist/{chunk-H4V55Y3Z.js → chunk-GQLNG537.js} +83 -83
- package/dist/{chunk-IEQ4UOH3.js → chunk-GVI3DWSB.js} +1 -1
- package/dist/{chunk-DFQ4WTET.js → chunk-GW7YIJPJ.js} +1 -1
- package/dist/{chunk-SFQEHDJY.js → chunk-H6GNKWYM.js} +1 -1
- package/dist/{chunk-5TB52UUV.js → chunk-H6GYBLVQ.js} +1 -1
- package/dist/chunk-HSKDFEXW.js +1 -0
- package/dist/{chunk-JYMDWR25.js → chunk-HTRJU4R4.js} +1 -1
- package/dist/{chunk-EMSF57ZB.js → chunk-HXZAY5OA.js} +1 -1
- package/dist/{chunk-WJSUIUBW.js → chunk-I4CEH7AK.js} +1 -1
- package/dist/{chunk-4ARCB6DT.js → chunk-I7PEEJVH.js} +1 -1
- package/dist/{chunk-CCQNP5YR.js → chunk-IHMATNOR.js} +1 -1
- package/dist/{chunk-N2RFDHRY.js → chunk-IHXGZW42.js} +1 -1
- package/dist/chunk-IJY3RJPJ.js +47 -0
- package/dist/{chunk-52FDK2LC.js → chunk-ISKQQXLZ.js} +1 -1
- package/dist/{chunk-UVRKTMF7.js → chunk-J55GQLP4.js} +1 -1
- package/dist/{chunk-3LVCG4JB.js → chunk-J5ERDFIC.js} +1 -1
- package/dist/{chunk-LWCTKI4Z.js → chunk-JLQRDFR5.js} +3 -3
- package/dist/{chunk-HCZG7YJ6.js → chunk-JPWRZ5SL.js} +1 -1
- package/dist/{chunk-BWRNXCVN.js → chunk-K7ZSPQKL.js} +1 -1
- package/dist/{chunk-4GCI2YCZ.js → chunk-KNWT7JLL.js} +1 -1
- package/dist/{chunk-U25W35TX.js → chunk-KZRLZWOU.js} +1 -1
- package/dist/chunk-L5TSPCSY.js +26 -0
- package/dist/{chunk-J6TW43TG.js → chunk-LEHBZKK3.js} +1 -1
- package/dist/chunk-LGXI7EGM.js +8 -0
- package/dist/{chunk-3A3DZVEJ.js → chunk-LHXFTFFM.js} +1 -1
- package/dist/{chunk-4RDFMBRG.js → chunk-LUGMXSRI.js} +1 -1
- package/dist/chunk-M2CWCOFU.js +11 -0
- package/dist/{chunk-2VSNFOKD.js → chunk-M5VIFG2V.js} +1 -1
- package/dist/{chunk-IWEKM5Y3.js → chunk-MADINS4Z.js} +1 -1
- package/dist/{chunk-VMMUJN4T.js → chunk-MEYVUHQH.js} +1 -1
- package/dist/{chunk-PEVIRAMR.js → chunk-MGHPF7HU.js} +1 -1
- package/dist/{chunk-ZT5WFUKJ.js → chunk-MHR5OHT5.js} +1 -1
- package/dist/{chunk-5NEGOQT6.js → chunk-MXEXP3HT.js} +1 -1
- package/dist/{chunk-IQVRP7CT.js → chunk-N57Y7THE.js} +1 -1
- package/dist/{chunk-FWB3GLMW.js → chunk-NVKJ7ZLP.js} +1 -1
- package/dist/{chunk-GQNOVEKP.js → chunk-NXAEBGMO.js} +1 -1
- package/dist/{chunk-PYIICTLX.js → chunk-OJULL7HT.js} +1 -1
- package/dist/{chunk-SL3VBI62.js → chunk-OMPQ7REW.js} +1 -1
- package/dist/{chunk-NK2MGR6A.js → chunk-OR4IJ4BQ.js} +1 -1
- package/dist/{chunk-CIK5BF7V.js → chunk-P2RMFHQP.js} +1 -1
- package/dist/{chunk-R7EMV77H.js → chunk-P4VZYOKO.js} +2 -2
- package/dist/{chunk-NDKSG4CC.js → chunk-PDZBKVWL.js} +1 -1
- package/dist/{chunk-QKVVJXWS.js → chunk-PF53E2DC.js} +1 -1
- package/dist/{chunk-XNNKLUTN.js → chunk-PLSS456F.js} +1 -1
- package/dist/{chunk-XM7YUXTF.js → chunk-PTSCGSQV.js} +2 -2
- package/dist/{chunk-KSDU4YOB.js → chunk-PWAT52M4.js} +1 -1
- package/dist/{chunk-NOH63WC6.js → chunk-Q2KWXZQB.js} +1 -1
- package/dist/{chunk-EGCWR5AS.js → chunk-Q4JYAUVL.js} +1 -1
- package/dist/{chunk-4CRBTSVP.js → chunk-Q5IC3IYY.js} +1 -1
- package/dist/{chunk-Z5SILNH2.js → chunk-QDCLL5OI.js} +1 -1
- package/dist/{chunk-VB7YQMAM.js → chunk-QEKGGTMN.js} +1 -1
- package/dist/{chunk-BJPDJIS4.js → chunk-QEVTBD33.js} +1 -1
- package/dist/{chunk-PZUGDE7N.js → chunk-QF5WKTPD.js} +1 -1
- package/dist/{chunk-7NSK77WG.js → chunk-QFSENE5T.js} +1 -1
- package/dist/{chunk-IUP7POIE.js → chunk-QQJNQNKP.js} +1 -1
- package/dist/{chunk-PSSYLJG4.js → chunk-QW52RPAU.js} +1 -1
- package/dist/{chunk-ULD7CIOY.js → chunk-R4UVIYZP.js} +1 -1
- package/dist/{chunk-M5TGCSUK.js → chunk-RLNIOJH3.js} +1 -1
- package/dist/{chunk-ZYQ2XWC5.js → chunk-RPCIFYCY.js} +1 -1
- package/dist/{chunk-C3KEDG33.js → chunk-RPVZ2JON.js} +1 -1
- package/dist/{chunk-I4OVLRQR.js → chunk-RW6G4ZPU.js} +1 -1
- package/dist/{chunk-4GOJQKY5.js → chunk-S4LOWCGS.js} +1 -1
- package/dist/{chunk-OQU3HLAE.js → chunk-S5P7KWY4.js} +1 -1
- package/dist/{chunk-UWMZ5CSB.js → chunk-SACNUF4I.js} +1 -1
- package/dist/chunk-SB27UOXX.js +1 -0
- package/dist/{chunk-YVVU4J5O.js → chunk-SHD4VV5V.js} +1 -1
- package/dist/{chunk-M7LPHCP2.js → chunk-SIL6HPMK.js} +2 -2
- package/dist/{chunk-AJMDF3QC.js → chunk-SK7EPN6C.js} +1 -1
- package/dist/{chunk-XITZIDCL.js → chunk-SLY27GDC.js} +1 -1
- package/dist/{chunk-C7V755IT.js → chunk-SNH4XZ6E.js} +1 -1
- package/dist/{chunk-POKY4RWR.js → chunk-T4XJKM6B.js} +1 -1
- package/dist/{chunk-7MVWDCI3.js → chunk-TAWCKJKP.js} +1 -1
- package/dist/{chunk-BCYTZ7LM.js → chunk-TFPW2VGN.js} +1 -1
- package/dist/{chunk-UOS2XLGG.js → chunk-TODZ3TJR.js} +1 -1
- package/dist/chunk-U2T5HPRD.js +319 -0
- package/dist/{chunk-XTREQ4A2.js → chunk-U6YOP562.js} +1 -1
- package/dist/{chunk-53BG3NLH.js → chunk-UBP3LQFY.js} +1 -1
- package/dist/{chunk-GFVKTWFT.js → chunk-UKWIWCOH.js} +1 -1
- package/dist/{chunk-GAMC2BNY.js → chunk-UPPO3BMT.js} +1 -1
- package/dist/{chunk-Q2XRITUG.js → chunk-URXM5A2K.js} +1 -1
- package/dist/chunk-USXIXANP.js +103 -0
- package/dist/{chunk-R2BDABJD.js → chunk-UUAKOX7E.js} +1 -1
- package/dist/{chunk-WGUOLSMG.js → chunk-UV5GAGAD.js} +1 -1
- package/dist/{chunk-AYL6KBPE.js → chunk-UXVXVI6O.js} +1 -1
- package/dist/{chunk-VWH3VPYI.js → chunk-UY6W2EVZ.js} +1 -1
- package/dist/{chunk-BVSKBX7T.js → chunk-UYELAINQ.js} +1 -1
- package/dist/{chunk-KDPQXURV.js → chunk-VAVXDIUX.js} +1 -1
- package/dist/{chunk-OX7UVDSU.js → chunk-VEUKT5EI.js} +1 -1
- package/dist/chunk-VGSH52JM.js +1 -0
- package/dist/chunk-VHZ6RL67.js +1 -0
- package/dist/{chunk-UK6576EO.js → chunk-VQA3X7O3.js} +1 -1
- package/dist/{chunk-TTEF7GTX.js → chunk-VZCMJRYV.js} +1 -1
- package/dist/{chunk-3G4HJO72.js → chunk-W37IFK3P.js} +1 -1
- package/dist/{chunk-LMQGNECW.js → chunk-W56ZGEQQ.js} +1 -1
- package/dist/{chunk-GCNA3HXH.js → chunk-WBVS5NBV.js} +1 -1
- package/dist/{chunk-XKRJKUA7.js → chunk-WCC52MR2.js} +1 -1
- package/dist/{chunk-LDU5T3DN.js → chunk-WESTVWWD.js} +1 -1
- package/dist/{chunk-24NUJTIH.js → chunk-WRZWHT6M.js} +1 -1
- package/dist/{chunk-4TI7U2PN.js → chunk-WSDKCQH6.js} +1 -1
- package/dist/{chunk-UIQL5ZF3.js → chunk-X2PFXSU4.js} +1 -1
- package/dist/{chunk-NB4BRW3H.js → chunk-X5NIAZA4.js} +1 -1
- package/dist/{chunk-RFGEM5JC.js → chunk-XBMD3FEZ.js} +1 -1
- package/dist/{chunk-I6FRVYGE.js → chunk-XDVPIGXE.js} +1 -1
- package/dist/chunk-XLIJYJ6Q.js +1 -0
- package/dist/chunk-XUHGWIWW.js +4 -0
- package/dist/{chunk-2ORRV7GH.js → chunk-XWSWXQCC.js} +1 -1
- package/dist/{chunk-Q66CI37F.js → chunk-Y55T4IIQ.js} +1 -1
- package/dist/{chunk-WMAFG2JD.js → chunk-Y5CVX5LJ.js} +1 -1
- package/dist/{chunk-VHUD3CBC.js → chunk-Y6J46XYF.js} +1 -1
- package/dist/{chunk-DJAZBPYA.js → chunk-YKMINHYY.js} +1 -1
- package/dist/{chunk-KKPOOIE4.js → chunk-YSWVYPWR.js} +1 -1
- package/dist/{chunk-D7NB7YR6.js → chunk-YV2TP44L.js} +1 -1
- package/dist/{chunk-7IFE4UQY.js → chunk-Z2WAW6MM.js} +1 -1
- package/dist/chunk-ZBL7XMJ6.js +25 -0
- package/dist/{chunk-YTUDXZLN.js → chunk-ZGBTO46A.js} +1 -1
- package/dist/{chunk-ZQDDRIBA.js → chunk-ZJOX5HW4.js} +4 -4
- package/dist/{chunk-MXJAH2GW.js → chunk-ZOOT3GBY.js} +1 -1
- package/dist/{chunk-ZAA2DXK5.js → chunk-ZRI3SSLG.js} +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/{command-json-schema-2UMKY7MY.js → command-json-schema-F5XF7XHL.js} +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-RI3TL6I4.js → conf-store-5CBLWTOC.js} +1 -1
- package/dist/{custom-oclif-loader-IZCKN67O.js → custom-oclif-loader-UDVUFKMD.js} +1 -1
- package/dist/{deprecations-IFVUXXDB.js → deprecations-EOHPSTCS.js} +1 -1
- package/dist/dist-RNV3GFZ7.js +1 -0
- package/dist/dist-ZFKWJVNB.js +1 -0
- package/dist/{environments-CYMEN7NV.js → environments-4FLRZW4P.js} +1 -1
- package/dist/{error-IL6WQMSW.js → error-JY2ADS6S.js} +1 -1
- package/dist/{error-handler-74HKA23T.js → error-handler-4GCXKC6I.js} +1 -1
- package/dist/{fs-AINFLJ2E.js → fs-XS5YF34R.js} +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.js +12 -12
- package/dist/{is-global-2VLKV46Q.js → is-global-27MUENOK.js} +1 -1
- package/dist/{json-error-HZB5YIHV.js → json-error-S5XFS3UX.js} +1 -1
- package/dist/{local-KOZETREJ.js → local-OKPVB4NH.js} +1 -1
- package/dist/{metadata-IBPHZB7N.js → metadata-2YJBAKR7.js} +1 -1
- package/dist/{node-package-manager-DXSRNEDC.js → node-package-manager-B3OW3PFQ.js} +1 -1
- package/dist/{notifications-system-XA3EBOGJ.js → notifications-system-BWTDYBG2.js} +1 -1
- package/dist/{os-X73O7BAB.js → os-F6QKJCFW.js} +1 -1
- package/dist/{output-3OYXK3Z5.js → output-BRIPK7UC.js} +1 -1
- package/dist/{system-JWYYT4PM.js → system-466QKFDI.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-PCG5D6RZ.js → ui-VJTNGCS6.js} +1 -1
- package/dist/{upgrade-7U2TUNC4.js → upgrade-VHVJLXKX.js} +1 -1
- package/dist/{version-7DGU2KYH.js → version-FETZRLZO.js} +1 -1
- package/dist/version-T4XXTJMB.js +1 -0
- package/dist/{workerd-MQZ3NKJI.js → workerd-32DMKLMN.js} +1 -1
- package/oclif.manifest.json +6 -3
- package/package.json +7 -7
- package/dist/chunk-3C6VLJ5D.js +0 -319
- package/dist/chunk-4C2DAX5T.js +0 -1
- package/dist/chunk-7LAKWAKX.js +0 -25
- package/dist/chunk-7RPFJZLP.js +0 -1
- package/dist/chunk-CEIJKJOF.js +0 -11
- package/dist/chunk-DNMXVMJM.js +0 -47
- package/dist/chunk-FDXHQZTO.js +0 -26
- package/dist/chunk-JDR6UVZA.js +0 -8
- package/dist/chunk-JEA3C7ON.js +0 -3
- package/dist/chunk-JOJV5E2K.js +0 -1
- package/dist/chunk-LVLAOBJM.js +0 -103
- package/dist/chunk-OQ5CLM2H.js +0 -4
- package/dist/chunk-OVWUGAEU.js +0 -11
- package/dist/chunk-PMHP57MH.js +0 -20
- package/dist/chunk-RVQV6G5M.js +0 -1
- package/dist/chunk-T2IUXXCT.js +0 -1
- package/dist/chunk-WDFCOZAY.js +0 -16
- package/dist/chunk-X2H6I2WW.js +0 -5
- package/dist/chunk-ZGV3HNEV.js +0 -1
- package/dist/dist-4H2B7BMN.js +0 -1
- package/dist/dist-QNWOGQN3.js +0 -1
- package/dist/version-SXQTRBXB.js +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{e as ce}from"./chunk-QFWWCZOI.js";import{p as P,v as ie}from"./chunk-YKMINHYY.js";import{ca as xe,da as se}from"./chunk-RLNIOJH3.js";import{r as Z}from"./chunk-QQJNQNKP.js";import{b as re,c as L}from"./chunk-3KM5ZOW2.js";import{A as ee,z as T}from"./chunk-D2KIGKBI.js";import{c as X}from"./chunk-LEHBZKK3.js";import{h as E}from"./chunk-M5VIFG2V.js";import{Bb as oe,Da as D,N as A,Sa as N,_a as V,na as q,ta as j,wb as g,yb as te,zb as ne}from"./chunk-JLQRDFR5.js";import{b as m,h as z,i as K,j as Q}from"./chunk-FZCGRIOM.js";import{b as Te}from"./chunk-YTUUU33R.js";import{c as O,e as I,g as B,o as M}from"./chunk-IWTNUJGY.js";import{e as b,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();import{AsyncLocalStorage as Se}from"node:async_hooks";import{format as Fe}from"node:util";var ae=new Se,x=0,$;async function ue(t){if(Q()!=="json")return t();x===0&&($=console.error,console.error=(...e)=>{ae.getStore()?K({type:"diagnostic",level:"warning",message:Fe(...e)}):$(...e)}),x++;try{return await ae.run(!0,t)}finally{_e()}}function _e(){x--,x===0&&(console.error=$)}var i=b(se(),1),k=b(xe(),1);function Re(t,e){return t instanceof Error&&"code"in t&&t.code==="ENOENT"&&"path"in t&&typeof t.path=="string"&&I(t.path)===I(e)}async function Ie(t){if(!(t===void 0||i.ModernIdentifiers.some(e=>e===t))&&await N(t)&&await D(await q(t)))throw new E(`Theme Check config must be a file, but ${t} is a directory.`,"Pass the path to a .theme-check.yml file to --config, or omit --config to use the .theme-check.yml in your theme root. To choose the theme directory, use --path.")}async function G(t,e){await Ie(t);try{return await e()}catch(r){throw t!==void 0&&Re(r,t)?new E(`Theme Check config file not found: ${t}`):r}}function Ae(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function me(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function je(t){return new Map(t.map(e=>[e.uri,e.source]))}function Ne(t,e,r){let o=t.split(`
|
|
2
|
+
`).slice(e,r+1),s=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=s?c.trim():c;return`${u} ${h}`}).join(`
|
|
3
|
+
`)}function Ee(t){switch(t){case i.Severity.ERROR:return{error:`
|
|
4
|
+
[error]:`};case i.Severity.WARNING:return{warn:`
|
|
5
|
+
[warning]:`};case i.Severity.INFO:return{info:`
|
|
6
|
+
[info]:`}}}function Le(t,e){return t.map((n,o)=>{let{message:s,uri:c,start:a,end:u,check:h,severity:y}=n,f=e.get(c),p=f===void 0?[]:[`
|
|
7
|
+
|
|
8
|
+
${Ne(f,a.line,u.line)}`],v=o===t.length-1?"":`
|
|
9
|
+
|
|
10
|
+
`;return[Ee(y),{bold:h},{subdued:`
|
|
11
|
+
${s}`},...p,v]}).flat()}var Pe=(t,e)=>t.severity-e.severity;function H(t){let e=t.reduce((r,n)=>{let{uri:o}=n,s=i.path.fsPath(o);return r[s]??=[],r[s].push(n),r},{});return Object.keys(e).reduce((r,n)=>(r[n]=e[n].sort(Pe),r),{})}function he(t){return t.reduce((e,r)=>(e[r.severity]=(e[r.severity]??0)+1,e),{})}function fe(t,e,r){let n=[`${r.length} files inspected`];if(t.length===0)n.push("with no offenses found.");else{n.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let o=he(t);o[i.Severity.ERROR]&&n.push(`
|
|
12
|
+
${o[i.Severity.ERROR]} errors.`),o[i.Severity.WARNING]&&n.push(`
|
|
13
|
+
${o[i.Severity.WARNING]} warnings.`),o[i.Severity.INFO]&&n.push(`
|
|
14
|
+
${o[i.Severity.INFO]} info issues.`)}return n}function le(t,e,r,n){let o=je(r);Object.keys(t).sort().forEach(c=>{let a=c.replace(e,"").slice(1);T({headline:n?`[${n}] ${a}`:a,body:Le(t[c],o)})})}function $e(t,e){return Object.entries(t).map(([r,n])=>{let o=n.map(c=>({check:c.check,severity:me(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),s=he(n);return{environment:e,path:r,offenses:o,errorCount:s[i.Severity.ERROR]??0,warningCount:s[i.Severity.WARNING]??0,infoCount:s[i.Severity.INFO]??0}})}function de(t,e){process.exit(W(t,e)?1:0)}function W(t,e){let r=e?Ae(e):void 0;return r!==void 0&&t.some(n=>n.severity<=r)}function Ge(t){return t.split(`
|
|
15
|
+
`).map(e=>`# ${e}`).join(`
|
|
16
|
+
`)}async function pe(t){let e=".theme-check.yml",r=O(t,e);if(await N(r)){te(`${e} already exists at ${t}`);return}let{settings:n}=await(0,i.loadConfig)(void 0,t),o=Ge(k.default.stringify(n)),s=k.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await j(r,`${s}${o}`),ne(`Created ${e} at ${t}`)}var He=async(t,e)=>{let r=(0,i.applyFixToString)(t.source,e),n=i.path.fsPath(t.uri);await j(n,r)};async function ge(t,e){await(0,i.autofix)(t,e,He)}async function ye(t,e,r){let{ignore:n,settings:o,rootUri:s}=await G(e,()=>(0,i.loadConfig)(e,t)),c={extends:[],ignore:A(n??[]),rootUri:s,...o},a=r?{[r]:c}:c;g(k.default.stringify(a))}async function ve(t,e,r){let{settings:n,ignore:o,checks:s}=await G(e,()=>(0,i.loadConfig)(e,t)),c=A(o??[]),u=Object.keys(n).reduce((y,f)=>{let{severity:p,enabled:v,...C}=n[f];if(!v)return y;let we=me(p??i.Severity.INFO),w=s.find(Oe=>Oe.meta.code===f),be=w&&w.meta?{description:w.meta.docs.description,doc:w.meta.docs.url}:{};return y[f]={severity:we,...be,ignored_patterns:`[${c.join(", ")}]`,...C},y},{}),h=r?{[r]:u}:u;g(k.default.stringify(h))}function ke(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}async function Y(t,e,r){let{offenses:n,theme:o}=await G(e,()=>ue(()=>(0,i.themeCheckRun)(t,e,c=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&oe(c)})));return{result:$e(H(n),r),offenses:n,theme:o}}l();l();import{resolve as We}from"node:path";var Ce=m.object({filePath:m.string().refine(B).describe("The absolute native path of the file."),check:m.string(),severity:m.enum(["error","warning","info"]),startRow:m.number().int().positive().describe("The one-based starting line."),startColumn:m.number().int().positive().describe("The one-based starting column."),endRow:m.number().int().positive().describe("The one-based ending line."),endColumn:m.number().int().positive().describe("The one-based ending column."),message:m.string()}).strict(),Ye=m.object({valid:m.boolean().describe("Whether the validation passes the selected blocking policy."),issues:m.array(Ce),errorCount:m.number().int().nonnegative(),warningCount:m.number().int().nonnegative(),infoCount:m.number().int().nonnegative()}).strict();function S(t){return Math.max(t+1,1)}var F=ce({name:"ThemeCheckResult",schema:Ye,definitions:{ThemeCheckIssue:Ce},project:t=>{let{files:e,valid:r}=Array.isArray(t)?{files:t,valid:void 0}:t;return{valid:r??e.every(n=>n.errorCount===0),issues:e.flatMap(n=>n.offenses.map(o=>({filePath:We(n.path),check:o.check,severity:o.severity,startRow:S(o.start_row),startColumn:S(o.start_column),endRow:S(o.end_row),endColumn:S(o.end_column),message:o.message}))),errorCount:e.reduce((n,o)=>n+o.errorCount,0),warningCount:e.reduce((n,o)=>n+o.warningCount,0),infoCount:e.reduce((n,o)=>n+o.infoCount,0)}}});function J(t){return JSON.stringify(JSON.parse(F.encode(t)))}function _({result:t,offenses:e,theme:r,valid:n},o,s,c){let a=H(e);if(o==="text"&&(le(a,s,r,c),(e.length?T:ee)({headline:c?`[${c}] Theme Check Summary.`:"Theme Check Summary.",body:fe(e,a,r)})),o==="json"){let u=process.stdout;ke(u)&&u._handle.setBlocking(!0),g(J(n===void 0?t:{files:t,valid:n}))}}var d=b(Te(),1);var U=b(se(),1);var R=class extends ie{static get jsonOutputSchema(){return F}static summary="Validate the theme.";static descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";static description=this.descriptionForHelp();static flags={...re,...L,json:d.Flags.boolean({...L.json,env:"SHOPIFY_FLAG_JSON",exclusive:["init","version","print","list"]}),path:P.path,"auto-correct":d.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:d.Flags.string({char:"C",required:!1,description:`Path to a config file to use, overriding .theme-check.yml if present
|
|
17
|
+
Use --path to set the theme directory
|
|
18
|
+
Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
|
|
19
|
+
theme-check:recommended, theme-check:all
|
|
20
|
+
For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":d.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:d.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:d.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:d.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:d.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:d.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:P.environment};static multiEnvironmentsFlags=["path"];async command(e,r,n){let o=e.path,s=e.environment?.[0],a=e.config?.startsWith(":")&&U.LegacyIdentifiers.has(e.config.slice(1))?U.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await pe(o);return}if(e.version){let v=await V(O("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:M(import.meta.url)}),C="unknown";v&&(C=await Z(v)??"unknown"),g(C);return}if(e.print){await ye(o,a,s);return}if(e.list){await ve(o,a,s);return}let u=await Y(o,a,s),{offenses:h,theme:y}=u,f=e.json||e.output==="json",p=!W(h,e["fail-level"]);if(f||_({...u,valid:p},e.output,o,s),e["auto-correct"]&&await ge(y,h),f&&!n&&_({...u,valid:p},"json",o,s),f)return p||(process.exitCode=1),{files:u.result,valid:p};if(!n)return de(h,e["fail-level"])}async _run(){let e=this.argv.indexOf("--"),r=e<0?this.argv:this.argv.slice(0,e),n=Je(r)==="json";return n&&!r.includes("--json")&&(this.argv=[...r,"--json",...e<0?[]:this.argv.slice(e)]),n?z({outputMode:"json",sink:X},()=>super._run()):super._run()}collectsEnvironmentResults(e){return!!e.json||e.output==="json"}validateCommandFlags(e){if(!this.collectsEnvironmentResults(e))return;let r=["init","version","print","list"].find(n=>e[n]);r&&this.error(`JSON output can't be used with --${r}.`,{exit:2})}renderEnvironmentResults(e){g(J({environments:e}))}};function Je(t){let e=process.env.SHOPIFY_FLAG_OUTPUT,r=Object.entries(R.flags);for(let n=0;n<t.length;n++){let o=t[n];if(o.startsWith("--")){let[s,...c]=o.slice(2).split("=");if(r.find(([h])=>h===s)?.[1]?.type!=="option")continue;let u=c.length?c.join("="):t[++n];s==="output"&&(e=u)}else if(o.startsWith("-"))for(let s=1;s<o.length;s++){let c=r.find(([,u])=>u.char===o[s]);if(!c)break;if(c[1].type!=="option")continue;let a=o.slice(s+1).replace(/^=/,"")||t[++n];c[0]==="output"&&(e=a);break}}return e}async function St(t,e,r,n){let o=await Y(t,r,n);return _(o,e,t,n),{offenses:o.offenses,theme:o.theme}}export{R as a,St as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-NXAEBGMO.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-2YJBAKR7.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-EOHPSTCS.js");i(o);let{outputDebug:n}=await import("./output-BRIPK7UC.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&!r.includes("send-analytics")&&await M();let{reportAnalyticsEvent:c}=await import("./analytics-NMMVOF4B.js");await c({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-VHVJLXKX.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-5CBLWTOC.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:c},s]=await Promise.all([import("./version-T4XXTJMB.js"),import("./version-FETZRLZO.js"),import("./output-BRIPK7UC.js"),import("./upgrade-VHVJLXKX.js"),import("./metadata-2YJBAKR7.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await c()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let p=`Auto-upgrade failed: ${f}`;i(p),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-4GCXKC6I.js"),import("./is-global-27MUENOK.js")]),_=Object.assign(new Error(p),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-2YJBAKR7.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as g,j as S,l as s,m as I,o as E}from"./chunk-
|
|
1
|
+
import{h as g,j as S,l as s,m as I,o as E}from"./chunk-PDZBKVWL.js";import{a as p}from"./chunk-C3RFAKWR.js";import{A as l,B as c,z as h}from"./chunk-D2KIGKBI.js";import{h as m}from"./chunk-M5VIFG2V.js";import{wb as u}from"./chunk-JLQRDFR5.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();function f(e){return S.encode(E(e))}function y(e){return g.encode({status:e.outcomes.some(({status:o})=>o==="failed")?"partial":"success",operations:e.outcomes.map(o=>o.status==="success"?{status:o.status,operationGid:o.operationId,operation:s(o.operation)}:{status:o.status,operationGid:o.operationId,operation:o.operation===null?null:s(o.operation),error:"error"in o?p(o.error):{type:"abort",message:o.userErrors.map(({message:i})=>i).join("; "),details:{userErrors:I(o.userErrors)}}})})}function T(e){j(e)}function Y(e,o){if(e.status==="failed"&&e.submission.operations.length===0){let i=["Subscription migration submission failed.",...e.failure.type==="submission"?e.failure.userErrors.map(({message:n})=>n):[]].join(`
|
|
2
2
|
`),r=new m(i);throw r.details=e.failure.type==="submission"?{batchIndex:e.failure.batchIndex,userErrors:e.failure.userErrors.map(({message:n,field:t})=>({message:n,fieldPath:t}))}:{operationGids:e.failure.operationIds},r}return e.status==="cancelled"?(o.json&&u(f(e)),0):(o.json?u(f(e)):e.status==="failed"?$(e):o.watch?h({headline:"Subscription migration operations.",body:e.submission.operations.map(({operation:i})=>b(i))}):j(e.submission),e.status==="failed"?1:0)}function k(e,o){let i=e.outcomes[0];if(e.outcomes.length===1&&i?.status==="failed"){if("error"in i)throw i.error;let n=new m(i.userErrors.map(({message:t})=>t).join("; "));throw n.details={operationGid:i.operationId,operation:i.operation===null?null:s(i.operation),userErrors:i.userErrors.map(({message:t,field:d})=>({message:t,fieldPath:d}))},n}let r=e.outcomes.some(({status:n})=>n==="failed");return o.json?u(y(e)):r?c({headline:"Some subscription migration operations could not be canceled.",body:M(e.outcomes)}):l({headline:"Subscription migration operations canceled.",body:M(e.outcomes)}),r?1:0}function j(e){let o=e.action==="schedule"?"scheduled":"unscheduled";l({headline:`Subscription migrations ${o}.`,body:[`Shops: ${e.total}`,"Operation IDs:",...e.operations.map(({operation:i})=>i.id),"Save every operation ID. You will need them to check or cancel this submission."]})}function $(e){if(e.failure.type==="operations"){c({headline:"Some subscription migration operations failed.",body:["Failed operation IDs:",...e.failure.operationIds,"Terminal operation outcomes:",...e.submission.operations.map(({operation:i})=>b(i)),"Save every operation ID. You will need them to inspect this submission."]});return}let o=e.submission.operations.map(({operation:i})=>i.id);c({headline:o.length===0?"Subscription migration submission failed.":"Some subscription migration operations were accepted before submission failed.",body:[...o.length===0?["Accepted operation IDs: None."]:["Accepted operation IDs:",...o],`Batch index: ${e.failure.batchIndex}`,"Errors:",...e.failure.userErrors.map(({message:i})=>i),...o.length===0?[]:["Save every accepted operation ID. You will need them to check or cancel accepted operations."]]})}function M(e){let o=e.filter(r=>r.status==="success"),i=e.filter(r=>r.status==="failed");return[...o.length===0?["Canceled operations: None."]:["Canceled operations:",...o.map(({operation:r})=>b(r))],...i.length===0?[]:["Failed operations:",...i.map(r=>{let n=r.operation?` (returned status: ${r.operation.status})`:"",t="error"in r?p(r.error).message:r.userErrors.map(({message:d})=>d).join("; ");return`${r.operationId}: ${t}${n}`})]]}function b(e){return`${e.id}: ${e.status} (${e.results.edges.length}/${e.total} settled)`}export{T as a,Y as b,k as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as m,J as d,y as c}from"./chunk-
|
|
1
|
+
import{I as m,J as d,y as c}from"./chunk-D2KIGKBI.js";import{pb as w,qb as n,sb as a}from"./chunk-JLQRDFR5.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();async function P(){let r,l=new Promise(function(e,i){r=e});await c({processes:[{prefix:"backend",action:async(e,i,s)=>{e.write("first backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third backend message"),await new Promise(t=>setTimeout(t,1e3)),r()}},{prefix:"frontend",action:async(e,i,s)=>{await l,e.write("first frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third frontend message")}}]}),await m([{title:"Installing dependencies",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}},{title:"Downloading assets",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}}]),await d({title:new w("Importing data"),task:async e=>{for(let i=1;i<=10;i++){await new Promise(t=>setTimeout(t,500));let s=a`Importing data ${n.italic(a`(${n.green(i.toString())} complete)`)}`;e(s)}return"completed"}})}export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as c,J as p,M as o,U as S,j as f,t as h,w as y,z as g}from"./chunk-
|
|
1
|
+
import{D as c,J as p,M as o,U as S,j as f,t as h,w as y,z as g}from"./chunk-W56ZGEQQ.js";import{h as a}from"./chunk-M5VIFG2V.js";import{i as d}from"./chunk-IWTNUJGY.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();async function A(t,e){let r=c(t);if(await y(t.appDirectory,r))return;let{scan:s}=p(t,e),n=new a(`No app security check results for ${r} in ${t.appDirectory}.`,`Run \`${o(s)}\`.`);throw n.code="results-directory-not-found",n}async function q(t,e){await A(t,e);let r=h(t.appDirectory,c(t)),[s,n]=await Promise.all([b(r.deterministicFindingsPath,"deterministic"),b(r.agentFindingsPath,"agent")]),i=[v(s,"deterministic"),v(n,"agent")].filter(k=>k!==void 0);i.length>0&&D(i,p(t,e));let u=w(s),l=w(n);return{sources:{deterministic:u,agent:l},checks:f({deterministic:u?.document??null,agent:l?.document??null})}}async function b(t,e){return{path:t,result:await g(t,e)}}function v(t,e){if(t.result.status==="invalid")return{source:e,path:t.path,errors:t.result.errors}}function w(t){return t.result.status!=="ok"?null:{path:t.path,document:t.result.value}}function D(t,e){let r=t.length===1?"The app security check results could not be loaded because a results file is invalid.":"The app security check results could not be loaded because both results files are invalid.",s=[...t.map(i=>R(i.source,e,`${d(i.path)}.`)),["Or run",{command:o(e.clean)},"to delete both results files and start over."]],n=new a(r,null,s,t.map($));throw n.code="results-file-invalid",n.details={files:t.map(({path:i,errors:u})=>({path:S(i),errors:u}))},n}function R(t,e,r){return t==="deterministic"?["Run",{command:o(e.scan)},`to regenerate ${r}`]:["Have your coding agent run",{command:o(e.record)},`again to regenerate ${r}`]}function $(t){return{title:t.path,body:{list:{items:t.errors}}}}export{A as a,q as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as S}from"./chunk-7GHSE7SG.js";import{qb as o,sb as r,wb as p}from"./chunk-
|
|
1
|
+
import{b as S}from"./chunk-7GHSE7SG.js";import{qb as o,sb as r,wb as p}from"./chunk-JLQRDFR5.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function P(e){let t=Object.fromEntries(e.variables.map(({name:u,value:E})=>[u,E]));return r`
|
|
2
2
|
${o.green("SHOPIFY_API_KEY")}=${t.SHOPIFY_API_KEY??""}
|
|
3
3
|
${o.green("SHOPIFY_API_SECRET")}=${t.SHOPIFY_API_SECRET??""}
|
|
4
4
|
${o.green("SCOPES")}=${t.SCOPES??""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as E}from"./chunk-
|
|
1
|
+
import{h as E}from"./chunk-M5VIFG2V.js";import{Bb as O,Sa as V,la as N,qb as $,sb as T}from"./chunk-JLQRDFR5.js";import{a as g,c as w,e as Y,g as m}from"./chunk-VKWPEFWQ.js";var I=w((z,R)=>{R.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var K=w((X,d)=>{m();var b=g("fs"),y=g("path"),q=g("os"),F=g("crypto"),P=I(),D=P.version,C=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function S(e){let n={},r=e.toString();r=r.replace(/\r\n?/mg,`
|
|
2
2
|
`);let s;for(;(s=C.exec(r))!=null;){let a=s[1],t=s[2]||"";t=t.trim();let o=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(t=t.replace(/\\n/g,`
|
|
3
3
|
`),t=t.replace(/\\r/g,"\r")),n[a]=t}return n}function U(e){e=e||{};let n=x(e);e.path=n;let r=l.configDotenv(e);if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${n} for an unknown reason`);throw o.code="MISSING_DATA",o}let s=A(e).split(","),a=s.length,t;for(let o=0;o<a;o++)try{let i=s[o].trim(),f=M(r,i);t=l.decrypt(f.ciphertext,f.key);break}catch(i){if(o+1>=a)throw i}return l.parse(t)}function B(e){console.log(`[dotenv@${D}][WARN] ${e}`)}function v(e){console.log(`[dotenv@${D}][DEBUG] ${e}`)}function j(e){console.log(`[dotenv@${D}] ${e}`)}function A(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function M(e,n){let r;try{r=new URL(n)}catch(i){if(i.code==="ERR_INVALID_URL"){let f=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw f.code="INVALID_DOTENV_KEY",f}throw i}let s=r.password;if(!s){let i=new Error("INVALID_DOTENV_KEY: Missing key part");throw i.code="INVALID_DOTENV_KEY",i}let a=r.searchParams.get("environment");if(!a){let i=new Error("INVALID_DOTENV_KEY: Missing environment part");throw i.code="INVALID_DOTENV_KEY",i}let t=`DOTENV_VAULT_${a.toUpperCase()}`,o=e.parsed[t];if(!o){let i=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${t} in your .env.vault file.`);throw i.code="NOT_FOUND_DOTENV_ENVIRONMENT",i}return{ciphertext:o,key:s}}function x(e){let n=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)b.existsSync(r)&&(n=r.endsWith(".vault")?r:`${r}.vault`);else n=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else n=y.resolve(process.cwd(),".env.vault");return b.existsSync(n)?n:null}function k(e){return e[0]==="~"?y.join(q.homedir(),e.slice(1)):e}function W(e){let n=!!(e&&e.debug),r=e&&"quiet"in e?e.quiet:!0;(n||!r)&&j("Loading env from encrypted .env.vault");let s=l._parseVault(e),a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),l.populate(a,s,e),{parsed:s}}function G(e){let n=y.resolve(process.cwd(),".env"),r="utf8",s=!!(e&&e.debug),a=e&&"quiet"in e?e.quiet:!0;e&&e.encoding?r=e.encoding:s&&v("No encoding is specified. UTF-8 is used by default");let t=[n];if(e&&e.path)if(!Array.isArray(e.path))t=[k(e.path)];else{t=[];for(let u of e.path)t.push(k(u))}let o,i={};for(let u of t)try{let c=l.parse(b.readFileSync(u,{encoding:r}));l.populate(i,c,e)}catch(c){s&&v(`Failed to load ${u} ${c.message}`),o=c}let f=process.env;if(e&&e.processEnv!=null&&(f=e.processEnv),l.populate(f,i,e),s||!a){let u=Object.keys(i).length,c=[];for(let p of t)try{let h=y.relative(process.cwd(),p);c.push(h)}catch(h){s&&v(`Failed to load ${p} ${h.message}`),o=h}j(`injecting env (${u}) from ${c.join(",")}`)}return o?{parsed:i,error:o}:{parsed:i}}function J(e){if(A(e).length===0)return l.configDotenv(e);let n=x(e);return n?l._configVault(e):(B(`You set DOTENV_KEY but you are missing a .env.vault file at ${n}. Did you forget to build it?`),l.configDotenv(e))}function Q(e,n){let r=Buffer.from(n.slice(-64),"hex"),s=Buffer.from(e,"base64"),a=s.subarray(0,12),t=s.subarray(-16);s=s.subarray(12,-16);try{let o=F.createDecipheriv("aes-256-gcm",r,a);return o.setAuthTag(t),`${o.update(s)}${o.final()}`}catch(o){let i=o instanceof RangeError,f=o.message==="Invalid key length",u=o.message==="Unsupported state or unable to authenticate data";if(i||f){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(u){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw o}}function H(e,n,r={}){let s=!!(r&&r.debug),a=!!(r&&r.override);if(typeof n!="object"){let t=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw t.code="OBJECT_REQUIRED",t}for(let t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)?(a===!0&&(e[t]=n[t]),s&&v(a===!0?`"${t}" is already defined and WAS overwritten`:`"${t}" is already defined and was NOT overwritten`)):e[t]=n[t]}var l={configDotenv:G,_configVault:W,_parseVault:U,config:J,decrypt:Q,parse:S,populate:H};d.exports.configDotenv=l.configDotenv;d.exports._configVault=l._configVault;d.exports._parseVault=l._parseVault;d.exports.config=l.config;d.exports.decrypt=l.decrypt;d.exports.parse=l.parse;d.exports.populate=l.populate;d.exports=l});m();var L=Y(K());async function oe(e){if(O(T`Reading the .env file at ${$.path(e)}`),!await V(e))throw new E(`The environment file at ${e} does not exist.`);let n=await N(e);return{path:e,variables:(0,L.parse)(n)}}function se(e,n){let r=[],s=e===null?[]:e.split(`
|
|
4
4
|
`),a=[],t;for(let o of s){if(t){if(o.endsWith(t.quote)){let u=_(t.key,t.value+o.slice(0,-1),t.quote),c=n[t.key];c&&(a.push(t.key),u=_(t.key,c)),r.push(u),t=void 0}else t.value+=`${o}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as l}from"./chunk-
|
|
1
|
+
import{b as l}from"./chunk-67L7FIB6.js";import{a as m}from"./chunk-XLIJYJ6Q.js";import{b as c}from"./chunk-7GHSE7SG.js";import{a as p}from"./chunk-VHZ6RL67.js";import{a as s}from"./chunk-NVKJ7ZLP.js";import{Ma as r}from"./chunk-U2T5HPRD.js";import{b as i,c as n}from"./chunk-3KM5ZOW2.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends p{static summary="Display app and extensions environment variables.";static descriptionWithMarkdown="Displays environment variables that can be used to deploy apps and app extensions.";static get jsonOutputSchema(){return c}static description=this.descriptionForHelp();static flags={...i,...n,...s};async run(){let{flags:t}=await this.parse(d),{app:a,remoteApp:f,organization:u}=await r({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),g=await m(a,f,u);return l(g,t.json?"json":"text"),{app:a}}};export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as n}from"./chunk-
|
|
1
|
+
import{o as n}from"./chunk-QQJNQNKP.js";import{I as s}from"./chunk-D2KIGKBI.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b}from"./chunk-
|
|
1
|
+
import{c as b}from"./chunk-62EOM3Y2.js";import{e as f,g as h,h as g,s as y}from"./chunk-PDZBKVWL.js";import{a as m}from"./chunk-VHZ6RL67.js";import{Ma as u}from"./chunk-U2T5HPRD.js";import{c as l}from"./chunk-3KM5ZOW2.js";import{h as d}from"./chunk-M5VIFG2V.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();var s=class extends Error{operationId;constructor(t){super(`Migration cancellation for ${t} returned neither an operation nor user errors`),this.name="MigrationCancellationProtocolError",this.operationId=t}};async function w({clientId:o,operationIds:t,cancelOperation:a=y}){let r=t.filter(e=>!h.safeParse(e).success);if(r.length>0)throw new d(`Invalid subscription migration operation IDs: ${r.join(", ")}.`,"Use Shopify AppSubscriptionMigrationOperation GIDs returned by a migration submission.");return{outcomes:await Promise.all(t.map(async e=>{try{let i=await a({clientId:o,operationId:e});if(i.userErrors.length>0)return{status:"failed",operationId:e,operation:i.operation,userErrors:i.userErrors};if(!i.operation)throw new s(e);return{status:"success",operationId:e,operation:i.operation}}catch(i){if(t.length===1)throw i;return{status:"failed",operationId:e,operation:null,error:i}}}))}}var p=class o extends m{static summary="Cancels app subscription migration operations.";static descriptionWithMarkdown="Cancels app subscription migration operations.\n\nCanceling stops additional unprocessed shops, but does not undo shops that have already been scheduled or migrated. Use `unschedule` for reversible schedules.\n\nRepeat `--id` to cancel every operation GID returned by a multi-batch submission. Use `--json` to output the resulting operation states and per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2>","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...f,...l};static get jsonOutputSchema(){return g}async run(){let{flags:t}=await this.parse(o),{app:a,remoteApp:r}=await u({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),c=await w({clientId:r.apiKey,operationIds:t.id}),e=b(c,{json:t.json});return e!==0&&(process.exitCode=e),{app:a}}};export{p as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ke}from"./chunk-
|
|
1
|
+
import{c as ke}from"./chunk-SACNUF4I.js";import{a as Ie,c as Pe}from"./chunk-PTSCGSQV.js";import{b as ve}from"./chunk-P4VZYOKO.js";import{a as ze}from"./chunk-VHZ6RL67.js";import{Ha as je,M as Te,Ma as Ge,U as xe,W as Ce,Y as Fe,ea as _e,h as Ae,ha as $e}from"./chunk-U2T5HPRD.js";import{D as Re,c as be,ua as Le,za as Se}from"./chunk-33ZE3DRQ.js";import{B as ee}from"./chunk-GQLNG537.js";import{B as ne,D as se,E as pe,f as F,g as ie,i as oe,p as re}from"./chunk-QQJNQNKP.js";import{e as J}from"./chunk-MHR5OHT5.js";import{a as E}from"./chunk-HSKDFEXW.js";import{b as ge,c as ye,f as we}from"./chunk-3KM5ZOW2.js";import{A as de,E as j,I as fe,z as me}from"./chunk-D2KIGKBI.js";import{b as le}from"./chunk-GW7YIJPJ.js";import{a as M}from"./chunk-BN7ZXAZJ.js";import{d as ce}from"./chunk-CXI3RHPW.js";import{h as d}from"./chunk-M5VIFG2V.js";import{Ba as T,Ia as W,Na as B,Sa as x,Ta as C,Ua as Z,Va as Q,_ as q,_a as X,ja as Y,jb as te,kb as ae,la as K,qb as g,ra as _,rb as L,sb as v,ta as $,va as V,wb as he}from"./chunk-JLQRDFR5.js";import{b as h}from"./chunk-FZCGRIOM.js";import{f as ue}from"./chunk-LHXFTFFM.js";import{b as Qe}from"./chunk-YTUUU33R.js";import{c as p,d as R,e as O,o as H,p as U}from"./chunk-IWTNUJGY.js";import{e as Ze,g as l}from"./chunk-VKWPEFWQ.js";l();l();var y={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},G=Object.keys(y),S=G.filter(e=>y[e].visible),Xe=["reactRouter","none"],Je=async e=>{let t=e.template,a=e.flavor,i={template:y.reactRouter.url};t??=await j({choices:Xe.map(r=>({label:y[r].label||r,value:r})),message:"Get started building your app:",defaultValue:G.find(r=>y[r].url===i.template)});let o={...e,template:t,templateType:P(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(o.templateType!=="custom"){let r=y[o.templateType];n=r.url,r.branches&&(a?s=r.branches.options[a]?.branch:s=await j({message:r.branches.prompt||"Choose a flavor:",choices:Object.entries(r.branches.options).map(([m,u])=>({value:u.branch,label:u.label}))}))}return s&&(n=`${n}#${s}`),o.template=n||o.template||i.template,o.globalCLIResult=await ae(),o},Ne=Je;function P(e){return G.includes(e)}function De(e){return e!==void 0&&P(e)&&y[e].branches!==void 0}l();l();import{platform as et}from"os";async function Ee({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=E,delete e.dependencies["@shopify/app"],t){let i=await tt("cli");e.dependencies["@shopify/cli"]=i;let o={"@shopify/cli":i};e.overrides=e.overrides?{...e.overrides,...o}:o,e.resolutions=e.resolutions?{...e.resolutions,...o}:o}return e}async function tt(e){return`file:${await X(`packages/${e}`,{type:"directory",cwd:H(import.meta.url)})}`}async function Me({from:e,packageManager:t}){let a=et()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return re({directory:R(e),packageManager:t,args:a})}l();async function z(e,t){let i=(await Q([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>T(s,{force:!0})),o=new Set(ie[t]),n=F.filter(s=>!o.has(s)).map(s=>{let r=p(e,s);if(C(r))return W(r)});return Promise.all([...i,...n])}async function at(e){let t=e.packageManager,a=q(e.name),i=p(e.directory,a),o=ke(e.template);await Oe(i,a),await it(i),me({body:["Initializing project with",{command:t},`
|
|
2
2
|
Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await Y(async r=>{let m=p(r,"download"),u=o.filePath?p(m,o.filePath):m,f=p(r,"app"),A=o.branch?`${o.baseURL}#${o.branch}`:o.baseURL;await V(m);let b=[{title:`Downloading template from ${A}`,task:async()=>{await Pe({repoUrl:A,destination:m,shallow:!0})}}];b.push({title:"Parsing liquid",task:async()=>{await ve(u,f,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let c=(await ne(f)).content;c.name=a,c.author=await le()??"",c.private=!0;let I=["extensions/*"].concat(ot(f));switch(t){case"npm":case"yarn":case"bun":c.workspaces=I;break;case"pnpm":{await rt(f,I),await _(p(f,".npmrc"),`auto-install-peers=true
|
|
3
3
|
`);break}case"homebrew":case"unknown":throw new oe}await Ee({packageJSON:c,local:e.local,directory:f,useGlobalCLI:e.useGlobalCLI}),await se(f,c)}}),e.postCloneActions.removeLockfilesFromGitignore&&b.push({title:"Removing lockfiles from .gitignore",task:async()=>{let c=p(f,".gitignore");if(await x(c)){let I=await K(c);F.forEach(We=>{let Be=new RegExp(`^${We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");I=I.replace(Be,"")}),await $(c,I.trim())}}}),await ue()&&b.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let c=p(f,".npmrc");await _(c,`@shopify:registry=https://registry.npmjs.org
|
|
4
4
|
`)}});let D=!1;b.push({title:"Preparing project directory",task:async()=>{await Oe(i,a),D=!0,await B(f,i)}}),b.push({title:`Installing dependencies with ${t}`,task:async()=>{await Me({from:i,packageManager:t})}},{title:"Cleaning up",task:async()=>{await z(i,t)}},{title:"Initializing a Git repository...",task:async()=>{await Ie(i)}});try{await fe(b)}catch(c){throw D&&await T(i).catch(()=>{}),c}});let n;if(e.selectedAppOrNameResult.result==="new"){let r=await Te(i,e.name),m=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(m,r)}else n=e.selectedAppOrNameResult.app;return await je({directory:i,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1),{app:(await Ge({directory:i,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0})).app,remoteApp:n,projectName:a,packageManager:t,template:e.template}}async function Oe(e,t){if(await x(e))throw new d(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-QEKGGTMN.js";import{a as p,b as m}from"./chunk-62EOM3Y2.js";import{d as r,j as c}from"./chunk-PDZBKVWL.js";import{a as s}from"./chunk-VHZ6RL67.js";import{Ma as a}from"./chunk-U2T5HPRD.js";import{c as n}from"./chunk-3KM5ZOW2.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class u extends s{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...r,...n};static get jsonOutputSchema(){return c}async run(){let{flags:t}=await this.parse(u),{app:h,remoteApp:l}=await a({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),f=await d({action:"unschedule",input:t.input??"-",clientId:l.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:p}:{}}),i=m(f,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:h}}};export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as F,b as c,c as P}from"./chunk-HF4NDEX3.js";import{a as I}from"./chunk-6PUU6ZNQ.js";import{a as S}from"./chunk-
|
|
1
|
+
import{a as F,b as c,c as P}from"./chunk-HF4NDEX3.js";import{a as I}from"./chunk-6PUU6ZNQ.js";import{a as S}from"./chunk-QW52RPAU.js";import{a as w}from"./chunk-YY6TFARF.js";import{a as j}from"./chunk-2L6AN3QA.js";import{e as g}from"./chunk-QFWWCZOI.js";import{p as v}from"./chunk-H6GYBLVQ.js";import{p as T,v as y}from"./chunk-YKMINHYY.js";import{b as d,c as b,f as n}from"./chunk-3KM5ZOW2.js";import{A as p,F as f}from"./chunk-D2KIGKBI.js";import{wb as a}from"./chunk-JLQRDFR5.js";import{b as h}from"./chunk-FZCGRIOM.js";import{b as k}from"./chunk-YTUUU33R.js";import{e as R,g as r}from"./chunk-VKWPEFWQ.js";r();r();var x=I.extend({changed:h.boolean(),theme:F}),s=g({name:"ThemePublishResult",schema:h.object({status:h.literal("success"),changed:h.boolean(),theme:c}).strict(),definitions:{Theme:c},project(t){let e=x.parse(t);return{status:e.status,changed:e.changed,theme:P(e.theme)}}});r();function O(t,e,m){if(e==="json"){a(s.encode(t.data));return}p({headline:m?`Environment: ${m}`:void 0,body:["The theme",...S(t.originalTheme),t.data.changed?"is now live at":"is already live at",{link:{label:t.previewUrl,url:t.previewUrl}},{char:"."}]})}r();async function M(t,e,m){let o=await j(t,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:e.theme}}),i=w({...o,role:"live"},t);return o.role==="live"?{data:{status:"success",changed:!1,theme:{...o,shop:t.storeFqdn}},originalTheme:o,previewUrl:i}:!e.force&&!m&&!await f({message:`Do you want to make '${o.name}' the new live theme on ${t.storeFqdn}?`,confirmationMessage:`Yes, make '${o.name}' the new live theme`,cancellationMessage:"No, cancel publish"})?void 0:{data:{status:"success",changed:!0,theme:{...await v(o.id,t),shop:t.storeFqdn}},originalTheme:o,previewUrl:i}}var u=R(k(),1);var l=class extends y{static get jsonOutputSchema(){return s}static summary="Set a remote theme as the live theme.";static descriptionWithMarkdown=`Publishes an unpublished theme from your theme library.
|
|
2
2
|
|
|
3
3
|
If no theme ID is specified, then you're prompted to select the theme that you want to publish from the list of themes in your store.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as N,b as c,c as S}from"./chunk-HF4NDEX3.js";import{a as O}from"./chunk-6PUU6ZNQ.js";import{a as w}from"./chunk-
|
|
1
|
+
import{a as N,b as c,c as S}from"./chunk-HF4NDEX3.js";import{a as O}from"./chunk-6PUU6ZNQ.js";import{a as w}from"./chunk-QW52RPAU.js";import{a as E}from"./chunk-2L6AN3QA.js";import{e as g}from"./chunk-QFWWCZOI.js";import{f as R,o as F}from"./chunk-H6GYBLVQ.js";import{p as v,v as T}from"./chunk-YKMINHYY.js";import{b as u,c as d,f}from"./chunk-3KM5ZOW2.js";import{A as l}from"./chunk-D2KIGKBI.js";import{wb as h}from"./chunk-JLQRDFR5.js";import{b as r}from"./chunk-FZCGRIOM.js";import{b as j}from"./chunk-YTUUU33R.js";import{e as _,g as m}from"./chunk-VKWPEFWQ.js";m();m();var x=O.extend({originalName:r.string(),theme:N}),a=g({name:"ThemeRenameResult",schema:r.object({status:r.literal("success"),changed:r.boolean(),originalName:r.string(),theme:c}).strict(),definitions:{Theme:c},project(t){let e=x.parse(t);return{status:e.status,changed:e.originalName!==e.theme.name,originalName:e.originalName,theme:S(e.theme)}}});m();function y(t,e,n){if(e==="json"){h(a.encode(t.data));return}l({body:[...n?[{subdued:`Environment: ${n}
|
|
2
2
|
|
|
3
3
|
`}]:[],"The theme",...w(t.originalTheme),"was renamed to",`'${t.requestedName}'`]})}m();async function I(t,e){let n=t.name??await R("New name for the theme"),o=await E(e,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}}),s=await F(o.id,{name:n},e);return{data:{status:"success",originalName:o.name,theme:{...s,processing:o.processing,shop:e.storeFqdn}},originalTheme:o,requestedName:n}}var i=_(j(),1);var p=class extends T{static get jsonOutputSchema(){return a}static summary="Renames an existing theme.";static descriptionWithMarkdown=`Renames a theme in your store.
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as s}from"./chunk-DZKFP6H2.js";import{fa as p}from"./chunk-33ZE3DRQ.js";import{S as i}from"./chunk-GQLNG537.js";import{h as a}from"./chunk-M5VIFG2V.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();async function x(t,e){return i(e,t.apiKey,await p(t))}function S(t){let{organization:e,remoteApp:m,storeFqdn:u,version:o}=t,r=[`Organization: ${e.businessName}`,`App: ${m.title}`,`Store: ${u}`];return o&&r.push(`API version: ${o}`),r}function y(t,e){if(s(t)&&e.storeType!=="APP_DEVELOPMENT")throw new a("Mutations can only be executed on dev stores.")}export{x as a,S as b,y as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as A,g as R,h as j}from"./chunk-
|
|
1
|
+
import{f as A,g as R,h as j}from"./chunk-S4LOWCGS.js";import{a as T}from"./chunk-VGSH52JM.js";import{a as S}from"./chunk-NVKJ7ZLP.js";import{Na as N,b as I,c as w}from"./chunk-U2T5HPRD.js";import{b as y,c as x}from"./chunk-3KM5ZOW2.js";import{z as m}from"./chunk-D2KIGKBI.js";import{a as d}from"./chunk-BN7ZXAZJ.js";import{qb as b,sb as g,wb as P}from"./chunk-JLQRDFR5.js";import{b as r}from"./chunk-FZCGRIOM.js";import{c as h}from"./chunk-IWTNUJGY.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();import{resolve as u}from"node:path";function v(t,{functionRunnerPath:n,schemaPath:e}){let i=t.configuration;return{function:{handle:i.handle??null,name:t.name,apiVersion:i.api_version??null,directory:u(t.directory),targets:(i.targeting??[]).filter(({target:o})=>!!o).map(o=>({target:o.target,inputQueryPath:o.input_query?u(h(t.directory,o.input_query)):null,export:o.export===""?null:o.export??null})),schemaPath:e?u(e):null,wasmPath:u(h(t.directory,i.build?.path??t.outputRelativePath)),functionRunnerPath:u(n)}}}a();var s=r.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/).describe("An absolute native filesystem path."),C=r.object({target:r.string().min(1),inputQueryPath:s.nullable().describe("Null when no input query is configured."),export:r.string().min(1).nullable().describe("Null when no WebAssembly export is configured.")}).strict(),O=r.object({handle:r.string().nullable().describe("Null when the extension does not configure a handle."),name:r.string(),apiVersion:r.string().nullable().describe("The configured API version, or null when unavailable."),directory:s,targets:r.array(C).describe("All configured targets; empty when none are configured."),schemaPath:s.nullable().describe("Null when a GraphQL schema is unavailable."),wasmPath:s,functionRunnerPath:s}).strict(),l=d({name:"FunctionInfoResult",schema:r.object({function:O}).strict(),definitions:{FunctionInfo:O,FunctionTarget:C}});a();function B(t,n){return{title:`CONFIGURATION
|
|
2
2
|
`,body:{tabularData:[["Handle",t.handle??"N/A"],["Name",n??"N/A"],["API Version",t.api_version??"N/A"]],firstColumnSubdued:!0}}}function E(t){if(Object.keys(t).length===0)return null;let n=[];return Object.entries(t).forEach(([e,i])=>{n.push([g`${b.cyan(e)}`.value,""]),i.inputQueryPath&&n.push([{subdued:" Input Query Path"},{filePath:i.inputQueryPath}]),i.export&&n.push([{subdued:" Export"},i.export])}),{title:`
|
|
3
3
|
TARGETING
|
|
4
4
|
`,body:{tabularData:n}}}function G(t,n){return{title:`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-ZJOX5HW4.js";import{Ba as g,ta as u,va as c}from"./chunk-JLQRDFR5.js";import{c as f,p}from"./chunk-IWTNUJGY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static description="Generate CLI commands documentation";static hidden=!0;async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
|
|
2
2
|
* ${$}
|
|
3
3
|
*${D}
|
|
4
4
|
*/
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as L,b as g,d as w,g as I}from"./chunk-W37IFK3P.js";import{a as A}from"./chunk-H6GNKWYM.js";import{t as P}from"./chunk-DZKFP6H2.js";import{a as G}from"./chunk-VHZ6RL67.js";import{a as S}from"./chunk-NVKJ7ZLP.js";import{fa as F}from"./chunk-33ZE3DRQ.js";import{p as c,u as d}from"./chunk-GQLNG537.js";import{b as v,e as b}from"./chunk-3KM5ZOW2.js";import{O as u,a as l}from"./chunk-D2KIGKBI.js";import{Cb as y,qb as f,sb as h,yb as i}from"./chunk-JLQRDFR5.js";import{b as q}from"./chunk-YTUUU33R.js";import{e as C,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();import{randomBytes as x}from"crypto";function K(){return x(32).toString("hex")}function T(r){let e=new URL(`http://localhost:${r.port}/graphiql`);return e.searchParams.set("key",r.key),r.query&&e.searchParams.set("query",r.query),r.variables&&e.searchParams.set("variables",r.variables),r.apiVersion&&e.searchParams.set("api_version",r.apiVersion),e.toString()}async function k(r){let e=await A(r.port),t=g({stdout:r.stdout??process.stdout,port:e,storeFqdn:r.storeFqdn,tokenProvider:r.tokenProvider,key:r.key,appContext:r.appContext,protectMutations:r.protectMutations}),a=T({port:e,key:r.key,query:r.query,variables:r.variables,apiVersion:r.apiVersion});try{i(h`GraphiQL is running at ${f.link(a)}`),r.additionalReadyMessages?.forEach(s=>i(s)),i("Press Ctrl+C to stop."),await u(a)||y("Browser did not open automatically. Open the URL above manually."),await O(r.abortSignal)}finally{t.close()}}async function O(r){let e=new l,t=()=>e.abort();process.once("SIGINT",t);try{await new Promise(a=>{if(e.signal.aborted||r?.aborted){a();return}e.signal.addEventListener("abort",()=>a(),{once:!0}),r?.addEventListener("abort",()=>e.abort(),{once:!0})})}finally{process.removeListener("SIGINT",t)}}async function Q(r){let e=await F(r.remoteApp),t=L(void 0,e,r.store),a=I({apiKey:r.remoteApp.apiKey,apiSecret:e,storeFqdn:r.store}),m=await c(),s=w(r.store,r.remoteApp.apiKey,m);await k({port:r.port,storeFqdn:r.store,tokenProvider:a,key:t,appContext:{appName:r.remoteApp.title,appUrl:s,apiSecret:e},variables:r.variables,apiVersion:r.apiVersion,abortSignal:r.abortSignal})}var n=C(q(),1),p=class r extends G{static summary="Open a local GraphiQL UI for your app and store.";static descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
|
|
2
|
+
|
|
3
|
+
The app must be installed on the store.`;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];static flags={...v,...S,store:n.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>d(e)}),port:b({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:n.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:n.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};async run(){let{flags:e}=await this.parse(r),{appContextResult:t,store:a}=await P(e);return await Q({remoteApp:t.remoteApp,store:a.shopDomain,port:e.port,variables:e.variables,apiVersion:e.version}),{app:t.app}}};export{K as a,k as b,p as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as re,b as oe,c as ie,d as ae}from"./chunk-
|
|
1
|
+
import{a as re,b as oe,c as ie,d as ae}from"./chunk-EAZIQI2D.js";import{f as te,g as ne}from"./chunk-S4LOWCGS.js";import{q as v}from"./chunk-ZOOT3GBY.js";import{c as Z,d as ee}from"./chunk-MGHPF7HU.js";import{a as X}from"./chunk-VHZ6RL67.js";import{a as V}from"./chunk-NVKJ7ZLP.js";import{Ma as Q}from"./chunk-U2T5HPRD.js";import{b as K,c as z,f as Y}from"./chunk-3KM5ZOW2.js";import{G,a as b,f as O,g as u,h as s,i as j,j as B,k as J,n as H,o as q,p as x,u as C}from"./chunk-D2KIGKBI.js";import{h as R}from"./chunk-M5VIFG2V.js";import{a as $}from"./chunk-NXAEBGMO.js";import{la as N}from"./chunk-JLQRDFR5.js";import{g as U}from"./chunk-LHXFTFFM.js";import{b as Fe}from"./chunk-YTUUU33R.js";import{c as I}from"./chunk-IWTNUJGY.js";import{e as S,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var h=S(O(),1);import{Writable as se}from"stream";function ce({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[m,p]=(0,h.useState)([]),[d,l]=(0,h.useState)([a,a]),[y,f]=(0,h.useState)(void 0),{input:w,export:W}=e.payload,[he,A]=(0,h.useState)(`Watching for changes to ${e.source}...`);return(0,h.useEffect)(()=>{let k=new b;t.signal.addEventListener("abort",()=>{k.abort()});let _=async()=>{let E=await xe(r,JSON.stringify(w),W);l(g=>[E,g[0]]),A(`Watching for changes to ${e.source}...`),p(g=>[...g,E])},ye=async()=>{A("Replaying log with local function..."),await _()},we=async()=>{i.onEvent(async g=>{let F=g.extensionEvents.find(L=>L.extension.handle===r.handle);if(!(!F||F.type!==Z.Updated)){if(F.buildResult?.status==="error"){f(`Error while reloading and building extension: ${F.buildResult?.error}`);return}f(void 0),A("Re-running with latest changes..."),await _()}});let E=new se({write(g,F,L){p(Ee=>[...Ee,{type:"systemMessage",message:g.toString()}]),L()}});await i.start({stdout:E,stderr:E,signal:k.signal},!1)};return ye().then(()=>{we()}),()=>{k.abort()}},[w,W,o,r]),C(t.signal,async()=>{setTimeout(()=>{U()||$(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:m,statusMessage:he,recentFunctionRuns:d,error:y}}async function xe(e,t,o){let r="",i=new se({write(m,p,d){r+=m,d()}});return await oe({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=S(O(),1);var ue=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=C(t.signal),{isRawModeSupported:a}=B(),m=new ee(o),{logs:p,statusMessage:d,recentFunctionRuns:l,error:y}=ce({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:m});return J((f,w)=>{q(f,w,()=>t.abort()),f==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:p},(f,w)=>n.default.createElement(u,{key:`replayOutputScrollerLog${w}`,flexDirection:"column"},n.default.createElement(Ae,{log:f}))),i?null:n.default.createElement(u,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(u,{flexDirection:"column"},n.default.createElement(u,{flexDirection:"row"},n.default.createElement(s,null,x.pointerSmall," ",d)),n.default.createElement(De,{recentFunctionRuns:l}),n.default.createElement(s,null,x.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",x.lineVertical," quit")):null,y?n.default.createElement(s,{color:"red"},y):null))};function D({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
|
|
2
2
|
|
|
3
3
|
`,r,e,r,`
|
|
4
4
|
`)}function Re({input:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,v(e)))}function Se({logs:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function be({output:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,v(e)))}function Ce({functionRun:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function De({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(s,null,x.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Ae({log:e}){switch(e.type){case"functionRun":return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(Re,{input:e.input}),n.default.createElement(Se,{logs:e.logs}),n.default.createElement(be,{output:e.output}),n.default.createElement(Ce,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var le=S(O(),1);async function me({selectedRun:e,abortController:t,app:o,extension:r}){return H(le.default.createElement(ue,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function pe(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await G({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as ke,readdirSync as Le}from"fs";var M=100;async function fe(e){let{watch:t,extension:o,app:r}=e,i=new b;try{let a=await Ie(e),{input:m,export:p}=a.payload;if(t)await me({selectedRun:a,abortController:i,app:r,extension:o});else return await ie({functionExtension:o,json:e.json,input:JSON.stringify(m),export:p})}catch(a){throw i.abort(),a}}async function Ie(e){let t=e.app.getLogsDir();return e.log?Ne(t,e.extension.handle,e.log):ve(t,e.extension.handle)}async function Ne(e,t,o){let r=await Oe(e,t,o);if(r===void 0)throw new R(`No log found for '${o}'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l}from"./chunk-
|
|
1
|
+
import{e as l}from"./chunk-M5VIFG2V.js";import{Hb as o,fb as y}from"./chunk-JLQRDFR5.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();function p(t){if(!(typeof t.command!="string"||!Array.isArray(t.args))&&t.args.every(e=>typeof e=="string"))return{command:t.command,args:t.args}}function b(t,e){return t.type===l.Abort?e?"external":"abort":"bug"}function s(t){if(t!=null)try{let e=y(t);return typeof e=="string"?o(e):void 0}catch(e){if(e instanceof TypeError)return;throw e}}function A(t){if(!Array.isArray(t))return;let e=t.map(s).filter(n=>n!==void 0);return e.length>0?e:void 0}function j(t){if(Array.isArray(t))return t.filter(e=>Array.isArray(e)).map(e=>e.map(n=>s(n)??""))}function S(t){if(typeof t!="object"||t===null||!("body"in t))return;let e="title"in t&&typeof t.title=="string"?o(t.title):void 0,n=t.body,r=typeof n=="object"&&n!==null&&"tabularData"in n?j(n.tabularData):s(n);if(r!==void 0)return{...e?{title:e}:{},body:r}}function T(t){if(!Array.isArray(t))return;let e=t.map(S).filter(n=>n!==void 0);return e.length>0?e:void 0}function E(t){let e=typeof t=="object"&&t!==null?t:{message:t},n=p(e),r=b(e,n),g=s(e.formattedMessage)??(typeof e.message=="string"?o(e.message):"Unknown error"),f=s(e.tryMessage),u=A(e.nextSteps),d=T(e.customSections),c=e.details,a={message:g,...typeof e.code=="string"&&e.code.length>0?{code:e.code}:{},...f===void 0?{}:{tryMessage:f},...u===void 0?{}:{nextSteps:u},...d===void 0?{}:{customSections:d},...c===void 0?{}:{details:c}},i;return r==="bug"?i={type:r,...a,...typeof e.stack=="string"?{stack:o(e.stack)}:{}}:r==="external"&&n?i={type:r,...a,...n}:i={type:"abort",...a},i}export{E as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as s,c as i,d as p}from"./chunk-
|
|
1
|
+
import{b as s,c as i,d as p}from"./chunk-XWSWXQCC.js";import{b as o}from"./chunk-ZJOX5HW4.js";import{b as e,c as r}from"./chunk-3KM5ZOW2.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class n extends o{static summary="Enable automatic upgrades for Shopify CLI.";static descriptionWithMarkdown=`Enable automatic upgrades for Shopify CLI.
|
|
2
2
|
|
|
3
3
|
When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version once per day. Major version upgrades are skipped and must be done manually.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-IHXGZW42.js";import{g as r,h as n,i as h}from"./chunk-YKMINHYY.js";import{h as m}from"./chunk-M5VIFG2V.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,E="No development theme ID has been set. Please create a development theme first.",p=class extends s{context="Development";constructor(e){super(e),this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):E);return e}setTheme(e){n(e)}removeTheme(){h()}};export{p as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{b as f}from"./chunk-
|
|
1
|
+
import{b as f}from"./chunk-AUE7LM32.js";import{D as c}from"./chunk-GQLNG537.js";import{z as m}from"./chunk-D2KIGKBI.js";import{a}from"./chunk-BN7ZXAZJ.js";import{k as d}from"./chunk-M5VIFG2V.js";import{yb as h}from"./chunk-JLQRDFR5.js";import{b as t,c as l,d as s}from"./chunk-FZCGRIOM.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();var u=t.string().regex(/^gid:\/\/shopify\/BulkOperation\/[^/]+$/).describe("The Shopify global ID of a bulk operation."),n=t.object({gid:u,type:t.string(),status:t.string(),errorCode:t.string().nullable(),createdAt:l,completedAt:l.nullable(),objectCount:t.string().regex(/^\d+$/).describe("A nonnegative decimal count, without loss of integer precision."),url:t.string().url().nullable(),partialDataUrl:t.string().url().nullable()}).strict(),i=t.object({storeDomain:t.string().regex(/^[^.]+\.myshopify\.com$/).nullable(),apiVersion:t.string().nullable().describe("The API version selected for the request.")}).strict();var B=n.omit({type:!0}),O=i.extend({operationGid:u,operation:n.nullable()}),b=i.extend({operations:t.array(B),pageInfo:t.object({hasNextPage:t.boolean().nullable().describe("Unknown when the API result reaches the fetch limit.")}).strict()}),D=a({name:"BulkOperationStatusResult",schema:t.union([O,b]),definitions:{GetBulkOperationStatusResult:O,ListBulkOperationsResult:b,BulkOperation:n,ListedBulkOperation:B}}),J=a({name:"CancelBulkOperationResult",schema:i.extend({status:t.literal("success"),operation:n}),definitions:{BulkOperation:n}}),k=i.extend({status:t.enum(["success","partial","cancelled"]),reason:t.literal("watch-aborted").optional(),operation:n,resultsJsonl:t.string().optional().describe("Downloaded results in their native JSONL format.")}),g=t.object({path:t.string().describe("The absolute path of the downloaded results file."),format:t.literal("jsonl")}).strict(),R=a({name:"ExecuteBulkOperationResult",schema:t.union([k,g]),definitions:{BulkOperation:n,ExecuteBulkOperationResult:k,BulkOperationFile:g}});o();function U(e,r,S){let p=[...r.operationId?[`ID: ${r.operationId}`]:[],...f(r)];if(S==="json"){h(`${e}
|
|
2
2
|
${p.join(`
|
|
3
3
|
`)}`);return}m({headline:e,body:[{list:{items:p}}]})}o();function F(e){let r=c(e.store);return{storeDomain:r?`${r}.myshopify.com`:null,apiVersion:e.apiVersion??null}}function q(e){if(typeof e.objectCount=="number"&&!Number.isSafeInteger(e.objectCount))throw new d("Shopify returned a bulk operation count that can't be represented exactly.");return{gid:e.id,..."type"in e?{type:e.type}:{},status:e.status,errorCode:e.errorCode??null,createdAt:s(new Date(String(e.createdAt))),completedAt:e.completedAt?s(new Date(String(e.completedAt))):null,objectCount:String(e.objectCount),url:e.url??null,partialDataUrl:e.partialDataUrl??null}}export{D as a,J as b,R as c,F as d,q as e,U as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as b}from"./chunk-
|
|
1
|
+
import{g as b}from"./chunk-LHXFTFFM.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-4GCXKC6I.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{a as j}from"./chunk-FKIVKNOV.js";import{a as $}from"./chunk-XLIJYJ6Q.js";import{a as f}from"./chunk-7GHSE7SG.js";import{a as R}from"./chunk-VHZ6RL67.js";import{a as k}from"./chunk-NVKJ7ZLP.js";import{Ma as C,O}from"./chunk-U2T5HPRD.js";import{b as S}from"./chunk-6ES4KRFW.js";import{b as A,c as y}from"./chunk-3KM5ZOW2.js";import{a as b}from"./chunk-BN7ZXAZJ.js";import{Sa as F,la as x,qb as l,sb as m,ta as w,wb as P}from"./chunk-JLQRDFR5.js";import{b as r}from"./chunk-FZCGRIOM.js";import{b as I}from"./chunk-YTUUU33R.js";import{e as c,g as E}from"./chunk-IWTNUJGY.js";import{e as H,g as o}from"./chunk-VKWPEFWQ.js";o();o();async function J({app:n,remoteApp:e,organization:a,envFile:i}){let{variables:s}=await $(n,e,a),t=c(i),p=await F(t)?await x(t):null,T=s.flatMap(({name:V,value:g})=>g===void 0?[]:[[V,g]]),d=S(p,Object.fromEntries(T)),v=d!==p;return v&&await w(t,d),{result:{path:t,status:"success",changed:v,variables:s,content:d},previousContent:p}}o();var u=b({name:"AppEnvPullResult",schema:r.object({path:r.string().refine(E,"Expected an absolute path").describe("The absolute native dotenv file path."),status:r.literal("success"),changed:r.boolean().describe("Whether the dotenv file was created or updated."),variables:r.array(f).describe("The known app variables, not unrelated local variables."),content:r.string().describe("The complete native dotenv content, preserving existing variables and comments.")}).strict(),definitions:{AppEnvironmentVariable:f}});o();import{resolve as W}from"node:path";function z({result:n,previousContent:e},a){if(a==="json")return u.encode({...n,path:W(n.path)});let{path:i,changed:s,content:t}=n;return s?e===null?m`Created ${l.path(i)}:
|
|
2
|
+
|
|
3
|
+
${t}
|
|
4
|
+
`:m`Updated ${l.path(i)} to be:
|
|
5
|
+
|
|
6
|
+
${t}
|
|
7
|
+
|
|
8
|
+
Here's what changed:
|
|
9
|
+
|
|
10
|
+
${l.linesDiff(j(e??"",t))}
|
|
11
|
+
`:m`No changes to ${l.path(i)}`}function L(n,e){P(z(n,e))}var N=H(I(),1);var h=class n extends R{static summary="Pull app and extensions environment variables.";static descriptionWithMarkdown="Creates or updates an `.env` files that contains app and app extension environment variables.\n\n When an existing `.env` file is updated, changes to the variables are displayed in the terminal output. Existing variables and commented variables are preserved.";static get jsonOutputSchema(){return u}static description=this.descriptionForHelp();static flags={...A,...y,...k,"env-file":N.Flags.string({hidden:!1,description:"Specify an environment file to update if the update flag is set",env:"SHOPIFY_FLAG_ENV_FILE"})};async run(){let{flags:e}=await this.parse(n),{app:a,remoteApp:i,organization:s}=await C({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),t=c(a.directory,e["env-file"]??O(a.configPath)),p=await J({app:a,remoteApp:i,organization:s,envFile:t});return L(p,e.json?"json":"text"),{app:a}}};export{h as a};
|