@shopify/cli 4.8.4 → 4.9.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-QK4RFCB6.js +1 -0
- package/dist/analytics-R6I5APDB.js +1 -0
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/bootstrap.js +1 -3
- package/dist/chunk-22LJALHJ.js +7 -0
- package/dist/{chunk-APUYMORT.js → chunk-23K3B23N.js} +1 -1
- package/dist/chunk-2KLXRVGQ.js +317 -0
- package/dist/{chunk-QXR5DJC2.js → chunk-2LZQM5JG.js} +1 -1
- package/dist/chunk-2OHSGC4Q.js +1 -0
- package/dist/chunk-2Q3WIH7S.js +6 -0
- package/dist/{chunk-FRRA5MI2.js → chunk-2W6M7YDY.js} +1 -1
- package/dist/{chunk-NHOF2IN6.js → chunk-2YFB3PTV.js} +9 -9
- package/dist/chunk-2YRVHJEY.js +4 -0
- package/dist/{chunk-3CZ7DKE5.js → chunk-3AASYIOA.js} +3 -3
- package/dist/chunk-3DMDSAWK.js +20 -0
- package/dist/{chunk-KWQGJ3VC.js → chunk-3SG5EJFC.js} +1 -1
- package/dist/chunk-3T2WMZHC.js +1 -0
- package/dist/{chunk-773TIA5M.js → chunk-3VYOLEQE.js} +2 -2
- package/dist/chunk-3WVEL423.js +1 -0
- package/dist/{chunk-SVYHWGMI.js → chunk-3ZK5JZLY.js} +1 -1
- package/dist/chunk-44QTWXOJ.js +8 -0
- package/dist/{chunk-4QBJ5JBX.js → chunk-4A7FPJVT.js} +16 -15
- package/dist/chunk-4TQFTZVD.js +18 -0
- package/dist/chunk-4WACZNFF.js +1 -0
- package/dist/{chunk-RIM7FNP3.js → chunk-4XSYMLQG.js} +1 -1
- package/dist/{chunk-EJJPEWSB.js → chunk-4Y22EM45.js} +1 -1
- package/dist/chunk-53U6XS3J.js +1 -0
- package/dist/chunk-55NKAIIT.js +1 -0
- package/dist/chunk-55PABKRC.js +5 -0
- package/dist/chunk-5BLXN5WU.js +1 -0
- package/dist/{chunk-LAMTFOVF.js → chunk-5BYVVXGD.js} +1 -1
- package/dist/{chunk-Z5KYKXMH.js → chunk-5HEBS5DG.js} +3 -3
- package/dist/{chunk-LEW5IJK6.js → chunk-5HONV6NQ.js} +1 -1
- package/dist/chunk-5RL6DKWR.js +5 -0
- package/dist/chunk-5XO6PAMV.js +1 -0
- package/dist/chunk-6DHY67FO.js +6 -0
- package/dist/{chunk-6QADNGH4.js → chunk-6GA56I3E.js} +1 -1
- package/dist/chunk-6IL3B5Z5.js +4 -0
- package/dist/{chunk-RHBLXZGU.js → chunk-6ILP6QCH.js} +1 -1
- package/dist/{chunk-H7TDIRIU.js → chunk-6RBCFXJT.js} +1 -1
- package/dist/{chunk-WAJRWCZY.js → chunk-72HS7MHV.js} +1 -1
- package/dist/{chunk-SPNM3GES.js → chunk-74HXMIDM.js} +1 -1
- package/dist/{chunk-ZAH6QID2.js → chunk-77B77IGP.js} +1 -1
- package/dist/chunk-7DRKDQRT.js +1 -0
- package/dist/chunk-7HDJBEBP.js +3 -0
- package/dist/chunk-7IGMIDKK.js +15 -0
- package/dist/chunk-7QQPAT4L.js +1 -0
- package/dist/chunk-7Y4X5I6N.js +1 -0
- package/dist/{chunk-WGFGWDWP.js → chunk-7ZSN2QT5.js} +1 -1
- package/dist/chunk-A54V5UCD.js +5 -0
- package/dist/{chunk-VETLNJ56.js → chunk-AD4S2VEI.js} +1 -1
- package/dist/chunk-ADW7ECNU.js +7 -0
- package/dist/chunk-AS2O62JX.js +1 -0
- package/dist/chunk-ASUARYJD.js +1 -0
- package/dist/chunk-B4RPJYDH.js +1 -0
- package/dist/{chunk-ZCNNJCTQ.js → chunk-BJOJNAKH.js} +1 -1
- package/dist/chunk-BL5JWD3Y.js +16 -0
- package/dist/chunk-BOFCBTX7.js +1 -0
- package/dist/chunk-BPIQ4YTW.js +1 -0
- package/dist/chunk-C6FZII5S.js +1 -0
- package/dist/{chunk-NBXXTQWA.js → chunk-CACPRKUF.js} +1 -1
- package/dist/{chunk-QVO5CAJN.js → chunk-CHLSNYF7.js} +1 -1
- package/dist/chunk-CMICT4XI.js +1 -0
- package/dist/chunk-CPFAATMO.js +6 -0
- package/dist/{chunk-CSOCXWP6.js → chunk-CSRNHTHO.js} +2 -2
- package/dist/chunk-D3K42KBL.js +9 -0
- package/dist/chunk-DGMRL5DQ.js +1 -0
- package/dist/chunk-DKJPE42V.js +2 -0
- package/dist/{chunk-AIILEPSK.js → chunk-DYA5UUXL.js} +1 -1
- package/dist/chunk-E5ND6RBL.js +1 -0
- package/dist/{chunk-XKHKXUQY.js → chunk-E75DJTAF.js} +1 -1
- package/dist/chunk-ECEOBSGD.js +1 -0
- package/dist/{chunk-NDT3F2PR.js → chunk-EYSZRIUL.js} +1 -1
- package/dist/chunk-FCULF3JA.js +1 -0
- package/dist/chunk-FL34EOXG.js +1 -0
- package/dist/chunk-FW5HGFSZ.js +20 -0
- package/dist/{chunk-XRJCD3AO.js → chunk-G54BKNIX.js} +1 -1
- package/dist/{chunk-74CYT3VX.js → chunk-G7OIACY5.js} +1 -1
- package/dist/{chunk-IHH5XTPV.js → chunk-GALDYSEX.js} +1 -1
- package/dist/{chunk-A5U4KKNV.js → chunk-GDQLA5NB.js} +1 -1
- package/dist/{chunk-6A3TDSON.js → chunk-GJJBOCKD.js} +3 -3
- package/dist/{chunk-TAY7HU7X.js → chunk-GQZPGTG7.js} +20 -20
- package/dist/{chunk-XHXKPRF5.js → chunk-GVRFO4CV.js} +1 -1
- package/dist/chunk-HB3MJYBK.js +1 -0
- package/dist/{chunk-AEUCDGTB.js → chunk-HDQXFGYG.js} +1 -1
- package/dist/chunk-HSTNTHWM.js +1 -0
- package/dist/{chunk-A3U7JDUC.js → chunk-HSZC2LBB.js} +1 -1
- package/dist/chunk-I4FGM6UH.js +8 -0
- package/dist/chunk-I7GYNNCU.js +6 -0
- package/dist/{chunk-ZVA5F4QC.js → chunk-IBTQO3JD.js} +1 -1
- package/dist/{chunk-XWXAFJFC.js → chunk-IISE7SBT.js} +1 -1
- package/dist/chunk-IUZZWXJG.js +3 -0
- package/dist/chunk-IWML2HLC.js +5 -0
- package/dist/{chunk-CTNBSUVU.js → chunk-JA2QZ635.js} +2 -2
- package/dist/chunk-JOJRABPY.js +3 -0
- package/dist/chunk-JQKB3D37.js +1 -0
- package/dist/chunk-JROJL6RV.js +1 -0
- package/dist/{chunk-GINXNPAR.js → chunk-JTPVSO6Y.js} +1 -1
- package/dist/chunk-JWDUSMCA.js +1 -0
- package/dist/{chunk-CBMX6XI7.js → chunk-KLYJDAP6.js} +1 -1
- package/dist/{chunk-4HOJJCZ6.js → chunk-KVROYIUQ.js} +1 -1
- package/dist/chunk-L5XWYTHY.js +836 -0
- package/dist/chunk-LOTGSNS5.js +2 -0
- package/dist/{chunk-FGRW7GT4.js → chunk-LQLFMDVD.js} +1 -1
- package/dist/{chunk-7LZ34C4S.js → chunk-LSWFHTJT.js} +1 -1
- package/dist/{chunk-HYPY5WH6.js → chunk-LV2IWYGL.js} +1 -1
- package/dist/{chunk-W4SGAPPR.js → chunk-LYPNQFWX.js} +1 -1
- package/dist/{chunk-U6URYCC6.js → chunk-MRVQ6XRW.js} +1 -1
- package/dist/chunk-MVVHISCR.js +2 -0
- package/dist/{chunk-UJBMY5WR.js → chunk-N4DE5H65.js} +1 -1
- package/dist/{chunk-W6ST525S.js → chunk-N56BJ3F7.js} +1 -1
- package/dist/{chunk-W4SQE6NR.js → chunk-NF7MOA4K.js} +1 -1
- package/dist/{chunk-7KLPRSQR.js → chunk-NGN7U2UF.js} +1 -1
- package/dist/{chunk-TCFGEOE4.js → chunk-NTVEJYKI.js} +1 -1
- package/dist/chunk-NYABB6XW.js +1 -0
- package/dist/{chunk-DH3DMUE2.js → chunk-O6E7YL7N.js} +2 -2
- package/dist/chunk-OASB6XPV.js +16 -0
- package/dist/{chunk-WY7QF7VU.js → chunk-OBYY45BX.js} +1 -1
- package/dist/chunk-OETFY7FE.js +28 -0
- package/dist/{chunk-QZEDYQVT.js → chunk-OEZATTOS.js} +1 -1
- package/dist/{chunk-D6LQ56XT.js → chunk-OG7SF4FU.js} +1 -1
- package/dist/chunk-OM243CQ6.js +6 -0
- package/dist/chunk-P3Z5RLVV.js +3 -0
- package/dist/{chunk-HINK4QAR.js → chunk-PBBZNGS4.js} +1 -1
- package/dist/chunk-PGTKKP2B.js +11 -0
- package/dist/chunk-PK4ID32C.js +1 -0
- package/dist/{chunk-7FVCUY54.js → chunk-PVOWU77O.js} +1 -1
- package/dist/{chunk-66HW6J57.js → chunk-PXD2WJOI.js} +3 -3
- package/dist/chunk-PXXTSW6I.js +4 -0
- package/dist/{chunk-AU7GNCOK.js → chunk-PZHE37Z4.js} +1 -1
- package/dist/{chunk-TA2M37OB.js → chunk-Q34PKJRR.js} +1 -1
- package/dist/{chunk-S5H5U3PR.js → chunk-Q3O3AFZT.js} +1 -1
- package/dist/chunk-Q45XAEG2.js +16 -0
- package/dist/{chunk-QKTBYAUD.js → chunk-QAXFCAOV.js} +5 -5
- package/dist/{chunk-FY47X4NG.js → chunk-QBGSSUJP.js} +1 -1
- package/dist/chunk-QILWHHAQ.js +1 -0
- package/dist/chunk-QJST4LZX.js +1 -0
- package/dist/chunk-QQN4PJZD.js +1 -0
- package/dist/{chunk-6P5FGN6P.js → chunk-QSKOR3ED.js} +1 -1
- package/dist/{chunk-FRVRTOTF.js → chunk-QTEWTPAQ.js} +2 -2
- package/dist/chunk-QWDJRSJJ.js +1 -0
- package/dist/{chunk-GTAYTMCP.js → chunk-R757TSQ6.js} +1 -1
- package/dist/chunk-RCIU7NHA.js +1 -0
- package/dist/chunk-RGIUP4FW.js +1 -0
- package/dist/{chunk-RDS2WYQH.js → chunk-RHNFWHFY.js} +1 -1
- package/dist/{chunk-VG3YVCZW.js → chunk-S7536EWZ.js} +4 -4
- package/dist/{chunk-VBICZDA4.js → chunk-SDFO7P2M.js} +1 -1
- package/dist/{chunk-JQPPLSFT.js → chunk-SDJNAUU6.js} +1 -1
- package/dist/chunk-SGBLCVUX.js +1 -0
- package/dist/chunk-SJARQZVN.js +3 -0
- package/dist/chunk-SKRUMRB4.js +383 -0
- package/dist/{chunk-5Z6EW3FA.js → chunk-SW5EWGBJ.js} +1 -1
- package/dist/chunk-SXPWOYLT.js +7 -0
- package/dist/chunk-T234RERA.js +7 -0
- package/dist/chunk-TJJVX7CU.js +4 -0
- package/dist/{chunk-L4LDNEFK.js → chunk-TMV37ENR.js} +1 -1
- package/dist/{chunk-BYX7SQPM.js → chunk-TNXZWQZU.js} +1 -1
- package/dist/{chunk-67QK26HI.js → chunk-TO7TXDLU.js} +1 -1
- package/dist/chunk-TSLZNTFM.js +3 -0
- package/dist/{chunk-BG7QQU23.js → chunk-UFU2LGFK.js} +1 -1
- package/dist/chunk-VDDNDA5K.js +15 -0
- package/dist/{chunk-T4V7KOGJ.js → chunk-VFO5OYQ4.js} +1 -1
- package/dist/{chunk-HXVUDGLH.js → chunk-VFP3PUGZ.js} +24 -24
- package/dist/{chunk-6QDOCBD4.js → chunk-VZUHMW5E.js} +4 -3
- package/dist/chunk-W7CBJNXD.js +12 -0
- package/dist/chunk-WCAGYCT7.js +4 -0
- package/dist/{chunk-DPNZWBT5.js → chunk-WNO2V53C.js} +1 -1
- package/dist/{chunk-Y4BBTWM5.js → chunk-WPUQTUDX.js} +1 -1
- package/dist/chunk-WU7MSL3I.js +8 -0
- package/dist/chunk-WXV35TPE.js +1 -0
- package/dist/{chunk-2WATX3XV.js → chunk-XBSWZ6BT.js} +6 -6
- package/dist/chunk-XCNJL7ES.js +1 -0
- package/dist/{chunk-C4Y7PQDQ.js → chunk-XFZDFDZV.js} +1 -1
- package/dist/chunk-XTYSJIZY.js +1 -0
- package/dist/chunk-Y5ZN62VF.js +1 -0
- package/dist/{chunk-PNNW7YQG.js → chunk-YAH5WFYR.js} +3 -3
- package/dist/{chunk-DUNE3INK.js → chunk-YBQKJHZW.js} +1 -1
- package/dist/chunk-YD66PU3Y.js +1 -0
- package/dist/chunk-YGFEUXKQ.js +1 -0
- package/dist/chunk-YJWNM4XO.js +18 -0
- package/dist/{chunk-L3JBKCAS.js → chunk-YQQHBFMA.js} +1 -1
- package/dist/chunk-YRHFPXC3.js +1 -0
- package/dist/chunk-YTJ3EPD3.js +1 -0
- package/dist/chunk-YX5GRXRS.js +2368 -0
- package/dist/chunk-Z35PUKKP.js +7 -0
- package/dist/{chunk-7VQBIGJB.js → chunk-Z3XIZMEM.js} +1 -1
- package/dist/chunk-ZGASBRSQ.js +5 -0
- package/dist/{chunk-OY6L7J53.js → chunk-ZHJ6KA43.js} +1 -1
- package/dist/{chunk-YHTONNIZ.js → chunk-ZO4IBP4B.js} +1 -1
- package/dist/chunk-ZOYSMJ27.js +1 -0
- package/dist/chunk-ZPCCSPAE.js +3 -0
- package/dist/chunk-ZSJXZCAW.js +4 -0
- package/dist/{chunk-CP56F5UR.js → chunk-ZSVR5NEO.js} +1 -1
- package/dist/{chunk-JJJIRCQP.js → chunk-ZUVAHONX.js} +1 -1
- package/dist/chunk-ZVDFCUJT.js +2 -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/channel-config.js +1 -0
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -0
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -0
- 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 -0
- package/dist/cli/commands/app/security/clean.js +1 -0
- package/dist/cli/commands/app/security/instructions.js +1 -0
- package/dist/cli/commands/app/security/record.js +1 -0
- package/dist/cli/commands/app/security/review.js +1 -0
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +16 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +16 -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.d.ts +13 -0
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +13 -0
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +13 -0
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +2 -0
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +1 -0
- 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.d.ts +1 -0
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +431 -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.d.ts +11 -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.d.ts +15 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.d.ts +5 -2
- package/dist/cli/help.js +6 -2
- package/dist/cli/services/commands/auth/login/types.d.ts +11 -0
- package/dist/cli/services/commands/auth/login/types.js +7 -0
- package/dist/cli/services/commands/config/autoupgrade/index.d.ts +3 -0
- package/dist/cli/services/commands/config/autoupgrade/index.js +9 -0
- package/dist/cli/services/commands/config/autoupgrade/result.d.ts +2 -0
- package/dist/cli/services/commands/config/autoupgrade/result.js +15 -0
- package/dist/cli/services/commands/config/autoupgrade/types.d.ts +10 -0
- package/dist/cli/services/commands/config/autoupgrade/types.js +7 -0
- package/dist/cli/services/commands/doc/fetch.d.ts +1 -1
- package/dist/cli/services/commands/doc/fetch.js +11 -2
- package/dist/cli/services/commands/help/index.d.ts +3 -0
- package/dist/cli/services/commands/help/index.js +51 -0
- package/dist/cli/services/commands/help/result.d.ts +2 -0
- package/dist/cli/services/commands/help/result.js +6 -0
- package/dist/cli/services/commands/help/types.d.ts +431 -0
- package/dist/cli/services/commands/help/types.js +71 -0
- package/dist/cli/services/commands/search/index.d.ts +2 -0
- package/dist/cli/services/commands/search/index.js +8 -0
- package/dist/cli/services/commands/search/result.d.ts +2 -0
- package/dist/cli/services/commands/search/result.js +12 -0
- package/dist/cli/services/commands/search/types.d.ts +10 -0
- package/dist/cli/services/commands/search/types.js +7 -0
- package/dist/cli/services/commands/version/index.d.ts +2 -0
- package/dist/cli/services/commands/version/index.js +5 -0
- package/dist/cli/services/commands/version/result.d.ts +2 -0
- package/dist/cli/services/commands/version/result.js +6 -0
- package/dist/cli/services/commands/version/types.d.ts +10 -0
- package/dist/cli/services/commands/version/types.js +7 -0
- package/dist/command-json-schema-Y3N2NUZN.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-H3UAVGN5.js → conf-store-5ZA3ILWV.js} +1 -1
- package/dist/custom-oclif-loader-VQKMCXNH.js +1 -0
- package/dist/deprecations-PFQXWNF6.js +1 -0
- package/dist/dist-4X53WJBQ.js +1 -0
- package/dist/dist-5M2V3YCM.js +1 -0
- package/dist/environment-ZUTBXY7U.js +1 -0
- package/dist/environments-3RUZ7F4Q.js +1 -0
- package/dist/error-FBSXLW22.js +1 -0
- package/dist/error-handler-D5BURRJ7.js +1 -0
- package/dist/fs-ZLV5W4TV.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +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-D3JUYA5D.js +38 -0
- package/dist/index.js +13 -14
- package/dist/is-global-GZ5CIXQA.js +1 -0
- package/dist/json-error-2BL3UZ7H.js +1 -0
- package/dist/lib-AD2G3QH3.js +1 -0
- package/dist/lib-VEVNMHDE.js +1 -0
- package/dist/lib-ZQW4E7QU.js +1 -0
- package/dist/local-KAZJAYLX.js +1 -0
- package/dist/metadata-M3ZE24WB.js +1 -0
- package/dist/{morph-BMYYMQNX.js → morph-42EXMN3K.js} +3 -3
- package/dist/node-package-manager-RVPONQBY.js +1 -0
- package/dist/notifications-system-MYEMV7JF.js +1 -0
- package/dist/os-DRUILZZR.js +1 -0
- package/dist/output-SDE274Y5.js +1 -0
- package/dist/{path-MBXP7ZIC.js → path-6YMSTSWG.js} +1 -1
- package/dist/system-5FQ3L5PA.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-TEZZM7SE.js +1 -0
- package/dist/uncaught-error-handler.d.ts +6 -0
- package/dist/uncaught-error-handler.js +33 -0
- package/dist/upgrade-3PIVJYBL.js +1 -0
- package/dist/version-FMWTVLMF.js +1 -0
- package/dist/version-IAMVSP7U.js +1 -0
- package/dist/workerd-WRW4ZUYM.js +18 -0
- package/oclif.manifest.json +2646 -226
- package/package.json +17 -8
- package/dist/analytics-M4OC7RPG.js +0 -1
- package/dist/analytics-RGIJMP4U.js +0 -1
- package/dist/chunk-2HW6VRJT.js +0 -2
- package/dist/chunk-2HYR6EUD.js +0 -1
- package/dist/chunk-2IRRFPEY.js +0 -1
- package/dist/chunk-2KD4LHRT.js +0 -5
- package/dist/chunk-2SL443J6.js +0 -1
- package/dist/chunk-2VJ6NBPV.js +0 -15
- package/dist/chunk-2ZROBXJX.js +0 -11
- package/dist/chunk-3DIRCEXA.js +0 -1
- package/dist/chunk-3DT4NS4S.js +0 -4
- package/dist/chunk-3IQ6WXDD.js +0 -3
- package/dist/chunk-43FRAUV6.js +0 -19
- package/dist/chunk-44QD4QNO.js +0 -1
- package/dist/chunk-4DLRS7MT.js +0 -12
- package/dist/chunk-4F3XYIEY.js +0 -1
- package/dist/chunk-4OMKKYFC.js +0 -9
- package/dist/chunk-4ZTRKEA2.js +0 -1
- package/dist/chunk-5DMFEDKY.js +0 -28
- package/dist/chunk-66G2HJ2A.js +0 -3
- package/dist/chunk-6B727IUY.js +0 -5
- package/dist/chunk-6C5AVMKR.js +0 -375
- package/dist/chunk-6CR2EEZ3.js +0 -6
- package/dist/chunk-6V6UNUMM.js +0 -3
- package/dist/chunk-6XLFFOPK.js +0 -1
- package/dist/chunk-A3V2A2I4.js +0 -2
- package/dist/chunk-AQPOPSQ7.js +0 -1
- package/dist/chunk-BAWBC66R.js +0 -5
- package/dist/chunk-BHJ3TGS7.js +0 -1
- package/dist/chunk-BHTHUKHU.js +0 -1
- package/dist/chunk-BV62ZERJ.js +0 -6
- package/dist/chunk-CFQ5G2QS.js +0 -1
- package/dist/chunk-CNK3ZO2B.js +0 -836
- package/dist/chunk-CRALWNNO.js +0 -1
- package/dist/chunk-CVW2HMQO.js +0 -317
- package/dist/chunk-D6QTOQEJ.js +0 -6
- package/dist/chunk-DDZEYA2I.js +0 -8
- package/dist/chunk-DO4SRE4M.js +0 -3
- package/dist/chunk-DZZORIWL.js +0 -4
- package/dist/chunk-EQ2PD2ZA.js +0 -2
- package/dist/chunk-ERBXXVOZ.js +0 -2
- package/dist/chunk-FW3RORD7.js +0 -1
- package/dist/chunk-G2YTINLI.js +0 -6
- package/dist/chunk-GCN4O7HM.js +0 -1
- package/dist/chunk-GGPMDCCB.js +0 -8
- package/dist/chunk-GJHBAOGJ.js +0 -1
- package/dist/chunk-H2HR2AQE.js +0 -7
- package/dist/chunk-HYM3HBDG.js +0 -20
- package/dist/chunk-IHEBV2KO.js +0 -1
- package/dist/chunk-JWHQPDOK.js +0 -3
- package/dist/chunk-JXG2T76F.js +0 -6
- package/dist/chunk-K2DP5Z76.js +0 -1
- package/dist/chunk-KUZ5Z6HM.js +0 -1
- package/dist/chunk-KZU727AL.js +0 -1
- package/dist/chunk-L2DCUVZV.js +0 -1
- package/dist/chunk-L3M7PTHU.js +0 -15
- package/dist/chunk-LBA6FGKC.js +0 -3
- package/dist/chunk-LX5UXWZ7.js +0 -1
- package/dist/chunk-M7VQLMSW.js +0 -1
- package/dist/chunk-MBRFIXCU.js +0 -1705
- package/dist/chunk-MYLMGH7Y.js +0 -1
- package/dist/chunk-NKC3K3XP.js +0 -1
- package/dist/chunk-O72SHE3Q.js +0 -7
- package/dist/chunk-OAG72Q2O.js +0 -1
- package/dist/chunk-OPOPO7DG.js +0 -7
- package/dist/chunk-OUA6EOLX.js +0 -11
- package/dist/chunk-OYCAYEQE.js +0 -7
- package/dist/chunk-PGWQHSDV.js +0 -1
- package/dist/chunk-PM3HRKPR.js +0 -1
- package/dist/chunk-POMWFTBD.js +0 -16
- package/dist/chunk-R3GLEZSE.js +0 -4
- package/dist/chunk-RHNZA4IL.js +0 -5
- package/dist/chunk-SCLGMVNB.js +0 -1
- package/dist/chunk-TU47HMTL.js +0 -1
- package/dist/chunk-UPGRXCFS.js +0 -4
- package/dist/chunk-V2GLAK2W.js +0 -1
- package/dist/chunk-V4774HTF.js +0 -1
- package/dist/chunk-VDGTHMIQ.js +0 -3
- package/dist/chunk-VJ5YOXKL.js +0 -1
- package/dist/chunk-WGUCRVII.js +0 -3
- package/dist/chunk-X4V2CD2H.js +0 -8
- package/dist/chunk-XOYICV6P.js +0 -1
- package/dist/chunk-XYUTD6IU.js +0 -1
- package/dist/chunk-YNFXYVYN.js +0 -2
- package/dist/chunk-Z2HN5L6G.js +0 -6
- package/dist/chunk-ZVJD6CUY.js +0 -18
- package/dist/cli/commands/app/doctor/instructions.js +0 -1
- package/dist/cli/commands/app/doctor.js +0 -1
- package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -4
- package/dist/cli/commands/config/autoupgrade/constants.js +0 -1
- package/dist/cli/services/commands/search.d.ts +0 -1
- package/dist/cli/services/commands/search.js +0 -7
- package/dist/cli/services/commands/version.d.ts +0 -1
- package/dist/cli/services/commands/version.js +0 -6
- package/dist/custom-oclif-loader-BWAMUFQ4.js +0 -1
- package/dist/deprecations-TEUM7CML.js +0 -1
- package/dist/dist-62I5X3FS.js +0 -1
- package/dist/dist-YHZ5BTYD.js +0 -1
- package/dist/environments-LAFWOQWO.js +0 -1
- package/dist/error-6ZCGAC5E.js +0 -1
- package/dist/error-handler-JNCW56EC.js +0 -1
- package/dist/fs-QEWOWUPQ.js +0 -1
- package/dist/http-proxy-node16-A6AKKRQH.js +0 -38
- package/dist/is-global-UYMEAGDR.js +0 -1
- package/dist/lib-2BR2WN7L.js +0 -1
- package/dist/lib-M72BVWQ3.js +0 -1
- package/dist/lib-P3APEIHY.js +0 -1
- package/dist/local-Z4ZEMWE4.js +0 -1
- package/dist/metadata-ZCQMB5AB.js +0 -1
- package/dist/node-package-manager-HMOTOBDS.js +0 -1
- package/dist/notifications-system-RT3CY6LZ.js +0 -1
- package/dist/os-G6KDPJMC.js +0 -1
- package/dist/output-BJCZYDNG.js +0 -1
- package/dist/system-T4H2ISV6.js +0 -1
- package/dist/ui-4MQSY5IN.js +0 -1
- package/dist/upgrade-4234MIYJ.js +0 -1
- package/dist/version-FRSRSCRX.js +0 -1
- package/dist/version-RF7QQXRX.js +0 -1
- package/dist/workerd-7E4H2DM3.js +0 -18
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import{a as yo,b as Oo,c as Br,d as Yr}from"./chunk-T7KHS6RF.js";import{b as mo}from"./chunk-TR4OWSEX.js";import{a as N,c as f,g as i}from"./chunk-VKWPEFWQ.js";var zr=f(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.boolean=void 0;var vo=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1"].includes(r.trim().toLowerCase());case"[object Number]":return r.valueOf()===1;case"[object Boolean]":return r.valueOf();default:return!1}};ie.boolean=vo});var Wr=f(ae=>{"use strict";i();Object.defineProperty(ae,"__esModule",{value:!0});ae.isBooleanable=void 0;var bo=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(r.trim().toLowerCase());case"[object Number]":return[0,1].includes(r.valueOf());case"[object Boolean]":return!0;default:return!1}};ae.isBooleanable=bo});var ue=f(D=>{"use strict";i();Object.defineProperty(D,"__esModule",{value:!0});D.isBooleanable=D.boolean=void 0;var Ro=zr();Object.defineProperty(D,"boolean",{enumerable:!0,get:function(){return Ro.boolean}});var _o=Wr();Object.defineProperty(D,"isBooleanable",{enumerable:!0,get:function(){return _o.isBooleanable}})});var le=f((xc,Kr)=>{i();Kr.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var Ye=f((Dc,Zr)=>{"use strict";i();var Jr=Object.prototype.toString;Zr.exports=function(e){var t=Jr.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Jr.call(e.callee)==="[object Function]"),n}});var at=f((Gc,it)=>{"use strict";i();var ot;Object.keys||(H=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,Qr=Ye(),We=Object.prototype.propertyIsEnumerable,et=!We.call({toString:null},"toString"),rt=We.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ce=function(r){var e=r.constructor;return e&&e.prototype===r},tt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},nt=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!tt["$"+r]&&H.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{ce(window[r])}catch{return!0}}catch{return!0}return!1})(),st=function(r){if(typeof window>"u"||!nt)return ce(r);try{return ce(r)}catch{return!1}},ot=function(e){var t=e!==null&&typeof e=="object",n=ze.call(e)==="[object Function]",s=Qr(e),o=t&&ze.call(e)==="[object String]",a=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var c=rt&&n;if(o&&e.length>0&&!H.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(s&&e.length>0)for(var E=0;E<e.length;++E)a.push(String(E));else for(var u in e)!(c&&u==="prototype")&&H.call(e,u)&&a.push(String(u));if(et)for(var p=st(e),m=0;m<V.length;++m)!(p&&V[m]==="constructor")&&H.call(e,V[m])&&a.push(V[m]);return a});var H,ze,Qr,We,et,rt,V,ce,tt,nt,st;it.exports=ot});var ft=f((Uc,ct)=>{"use strict";i();var wo=Array.prototype.slice,Po=Ye(),ut=Object.keys,fe=ut?function(e){return ut(e)}:at(),lt=Object.keys;fe.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return Po(n)?lt(wo.call(n)):lt(n)})}else Object.keys=fe;return Object.keys||fe};ct.exports=fe});var gt=f((Xc,ht)=>{"use strict";i();var pt=Yr(),$o=yo(),j=Oo(),dt=Br();ht.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new j("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new j("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!dt&&dt(e,t);if(pt)pt(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:n,writable:o===null&&l?l.writable:!o});else if(c||!s&&!o&&!a)e[t]=n;else throw new $o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var yt=f((Hc,mt)=>{"use strict";i();var Ke=Yr(),Et=function(){return!!Ke};Et.hasArrayLengthDefineBug=function(){if(!Ke)return null;try{return Ke([],"length",{value:1}).length!==1}catch{return!0}};mt.exports=Et});var Je=f((Bc,Rt)=>{"use strict";i();var Ao=ft(),No=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",To=Object.prototype.toString,Lo=Array.prototype.concat,Ot=gt(),So=function(r){return typeof r=="function"&&To.call(r)==="[object Function]"},vt=yt()(),Io=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!So(n)||!n())return}vt?Ot(r,e,t,!0):Ot(r,e,t)},bt=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Ao(e);No&&(n=Lo.call(n,Object.getOwnPropertySymbols(e)));for(var s=0;s<n.length;s+=1)Io(r,n[s],e[n[s]],t[n[s]])};bt.supportsDescriptors=!!vt;Rt.exports=bt});var Ze=f((zc,_t)=>{"use strict";i();_t.exports=global});var Qe=f((Kc,wt)=>{"use strict";i();var qo=Ze();wt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?qo:global}});var $t=f((Zc,Pt)=>{"use strict";i();var xo=Je(),Co=Br(),Do=Qe();Pt.exports=function(){var e=Do();if(xo.supportsDescriptors){var t=Co(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var er=f((ef,Tt)=>{"use strict";i();var jo=Je(),Go=Ze(),At=Qe(),Mo=$t(),Uo=At(),Nt=function(){return Uo};jo(Nt,{getPolyfill:At,implementation:Go,shim:Mo});Tt.exports=Nt});var It=f((rr,St)=>{i();rr=St.exports=ko;rr.getSerialize=Lt;function ko(r,e,t,n){return JSON.stringify(r,Lt(e,n),t)}function Lt(r,e){var t=[],n=[];return e==null&&(e=function(s,o){return t[0]===o?"[Circular ~]":"[Circular ~."+n.slice(0,t.indexOf(o)).join(".")+"]"}),function(s,o){if(t.length>0){var a=t.indexOf(this);~a?t.splice(a+1):t.push(this),~a?n.splice(a,1/0,s):n.push(s),~t.indexOf(o)&&(o=e.call(this,s,o))}else t.push(o);return r==null?o:r.call(this,s,o)}}});var qt=f(pe=>{i();(function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(a){return n(o(a),arguments)}function t(a,c){return e.apply(null,[a].concat(c||[]))}function n(a,c){var l=1,E=a.length,u,p="",m,g,O,S,I,C,oe,q;for(m=0;m<E;m++)if(typeof a[m]=="string")p+=a[m];else if(typeof a[m]=="object"){if(O=a[m],O.keys)for(u=c[l],g=0;g<O.keys.length;g++){if(u==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',O.keys[g],O.keys[g-1]));u=u[O.keys[g]]}else O.param_no?u=c[O.param_no]:u=c[l++];if(r.not_type.test(O.type)&&r.not_primitive.test(O.type)&&u instanceof Function&&(u=u()),r.numeric_arg.test(O.type)&&typeof u!="number"&&isNaN(u))throw new TypeError(e("[sprintf] expecting number but found %T",u));switch(r.number.test(O.type)&&(oe=u>=0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}r.json.test(O.type)?p+=u:(r.number.test(O.type)&&(!oe||O.sign)?(q=oe?"+":"-",u=u.toString().replace(r.sign,"")):q="",I=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",C=O.width-(q+u).length,S=O.width&&C>0?I.repeat(C):"",p+=O.align?q+u+S:I==="0"?q+S+u:S+q+u)}return p}var s=Object.create(null);function o(a){if(s[a])return s[a];for(var c=a,l,E=[],u=0;c;){if((l=r.text.exec(c))!==null)E.push(l[0]);else if((l=r.modulo.exec(c))!==null)E.push("%");else if((l=r.placeholder.exec(c))!==null){if(l[2]){u|=1;var p=[],m=l[2],g=[];if((g=r.key.exec(m))!==null)for(p.push(g[1]);(m=m.substring(g[0].length))!=="";)if((g=r.key_access.exec(m))!==null)p.push(g[1]);else if((g=r.index_access.exec(m))!==null)p.push(g[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");E.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");c=c.substring(l[0].length)}return s[a]=E}typeof pe<"u"&&(pe.sprintf=e,pe.vsprintf=t),typeof window<"u"&&(window.sprintf=e,window.vsprintf=t,typeof define=="function"&&define.amd&&define(function(){return{sprintf:e,vsprintf:t}}))})()});var tr=f(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.logLevels=void 0;var Xo={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};de.logLevels=Xo});var Dt=f(ge=>{"use strict";i();Object.defineProperty(ge,"__esModule",{value:!0});ge.default=void 0;var Fo=ir(le()),Ho=ir(er()),Vo=ir(It()),nr=qt(),xt=tr();function ir(r){return r&&r.__esModule?r:{default:r}}function sr(){return sr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},sr.apply(this,arguments)}function Ct(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ct(Object(t),!0).forEach(function(n){Bo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ct(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Bo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Yo=(0,Ho.default)(),B;Fo.default&&(B=N("domain"));var zo=()=>{if(!B)return{};let r=[],e=process.domain;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)e=e.parentDomain,e.roarr&&e.roarr.context&&r.push(e.roarr.context);let t={};for(let n of r)t=w(w({},t),n);return t},he=()=>{if(!B)return{};let r=process.domain;if(r&&r.roarr&&r.roarr.context)return r.roarr.context;if(!r||!r.parentDomain)return{};for(;r&&r.parentDomain;)if(r=r.parentDomain,r.roarr&&r.roarr.context)return r.roarr.context;return{}},or=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{let g=Date.now(),O=Yo.ROARR.sequence++,S,I;if(typeof n=="string"){S=w(w({},he()),e||{});let C=sr({},{a:n,b:s,c:o,d:a,e:c,f:l,g:E,h:u,i:p,k:m});I=Object.keys(C).map(Be=>C[Be]).reduce((Be,Eo)=>Be+=typeof Eo>"u"?0:1,0)===1?(0,nr.sprintf)("%s",n):(0,nr.sprintf)(n,s,o,a,c,l,E,u,p,m)}else{if(typeof s!="string")throw new TypeError("Message must be a string.");S=JSON.parse((0,Vo.default)(w(w(w({},he()),e||{}),n))),I=(0,nr.sprintf)(s,o,a,c,l,E,u,p,m)}r({context:S,message:I,sequence:O,time:g,version:"1.0.0"})};t.child=n=>typeof n=="function"?or(s=>{if(typeof n!="function")throw new TypeError("Unexpected state.");r(n(s))},e):or(r,w(w(w({},he()),e),n)),t.getContext=()=>w(w({},he()),e||{}),t.adopt=async(n,s)=>{if(!B)return n();let o=B.create();return o.run(()=>(o.roarr={context:w(w({},zo()),s)},n()))};for(let n of Object.keys(xt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:xt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Wo=or;ge.default=Wo});var Mt=f(Ee=>{"use strict";i();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.default=void 0;var jt=tr(),Gt=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{};t.adopt=async n=>n(),t.child=n=>Gt(r,e),t.getContext=()=>({});for(let n of Object.keys(jt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:jt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Ko=Gt;Ee.default=Ko});var kt=f((pf,Ut)=>{i();Ut.exports=function(e,t){for(var n=e.split("."),s=t.split("."),o=0;o<3;o++){var a=Number(n[o]),c=Number(s[o]);if(a>c)return 1;if(c>a)return-1;if(!isNaN(a)&&isNaN(c))return 1;if(isNaN(a)&&!isNaN(c))return-1}return 0}});var Xt=f((hf,Jo)=>{Jo.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var Ft=f(me=>{"use strict";i();Object.defineProperty(me,"__esModule",{value:!0});me.default=void 0;var Zo=r=>({write:e=>{r.write(e+`
|
|
2
|
-
`)}}),Qo=()=>{let e=(process.env.ROARR_STREAM||"STDOUT").toUpperCase().toUpperCase()==="STDOUT"?process.stdout:process.stderr;return Zo(e)},ei=Qo;me.default=ei});var Vt=f(Oe=>{"use strict";i();Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=void 0;var ri=lr(le()),ar=lr(kt()),ur=Xt(),ti=lr(Ft());function lr(r){return r&&r.__esModule?r:{default:r}}function Ht(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function ye(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ht(Object(t),!0).forEach(function(n){ni(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ht(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function ni(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var si=r=>{let e=(r.versions||[]).concat();e.sort(ar.default);let t=!e.length||(0,ar.default)(ur.version,e[e.length-1])===1;e.includes(ur.version)||e.push(ur.version),e.sort(ar.default);let n=ye(ye({sequence:0},r),{},{versions:e});return ri.default&&(t||!n.write)&&(n=ye(ye({},n),(0,ti.default)())),n},oi=si;Oe.default=oi});var Bt=f(Y=>{"use strict";i();Object.defineProperty(Y,"__esModule",{value:!0});Object.defineProperty(Y,"createLogger",{enumerable:!0,get:function(){return ii.default}});Object.defineProperty(Y,"createMockLogger",{enumerable:!0,get:function(){return ai.default}});Object.defineProperty(Y,"createRoarrInititialGlobalState",{enumerable:!0,get:function(){return ui.default}});var ii=cr(Dt()),ai=cr(Mt()),ui=cr(Vt());function cr(r){return r&&r.__esModule?r:{default:r}}});var Kt=f(G=>{"use strict";i();Object.defineProperty(G,"__esModule",{value:!0});G.default=G.ROARR=void 0;var li=ue(),ci=zt(le()),fi=zt(er()),pr=Bt();function zt(r){return r&&r.__esModule?r:{default:r}}var Yt=(0,fi.default)(),fr=Yt.ROARR=(0,pr.createRoarrInititialGlobalState)(Yt.ROARR||{});G.ROARR=fr;var Wt=pr.createLogger;ci.default&&((0,li.boolean)(process.env.ROARR_LOG||"")||(Wt=pr.createMockLogger));var pi=Wt(r=>{if(fr.write){let e=JSON.stringify(r);fr.write(e)}});G.default=pi});var z=f(ve=>{"use strict";i();Object.defineProperty(ve,"__esModule",{value:!0});ve.default=void 0;var di=hi(Kt());function hi(r){return r&&r.__esModule?r:{default:r}}var gi=di.default.child({package:"global-agent"}),Ei=gi;ve.default=Ei});var W=f((Pf,Jt)=>{i();var mi="2.0.0",yi=Number.MAX_SAFE_INTEGER||9007199254740991,Oi=16,vi=250,bi=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Jt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Oi,MAX_SAFE_BUILD_LENGTH:vi,MAX_SAFE_INTEGER:yi,RELEASE_TYPES:bi,SEMVER_SPEC_VERSION:mi,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var K=f((Af,Zt)=>{i();var Ri=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Zt.exports=Ri});var M=f((L,Qt)=>{i();var{MAX_SAFE_COMPONENT_LENGTH:dr,MAX_SAFE_BUILD_LENGTH:_i,MAX_LENGTH:wi}=W(),Pi=K();L=Qt.exports={};var $i=L.re=[],Ai=L.safeRe=[],d=L.src=[],h=L.t={},Ni=0,hr="[a-zA-Z0-9-]",Ti=[["\\s",1],["\\d",wi],[hr,_i]],Li=r=>{for(let[e,t]of Ti)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},y=(r,e,t)=>{let n=Li(e),s=Ni++;Pi(r,s,e),h[r]=s,d[s]=e,$i[s]=new RegExp(e,t?"g":void 0),Ai[s]=new RegExp(n,t?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*");y("NUMERICIDENTIFIERLOOSE","\\d+");y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${hr}*`);y("MAINVERSION",`(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})`);y("MAINVERSIONLOOSE",`(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})`);y("PRERELEASEIDENTIFIER",`(?:${d[h.NUMERICIDENTIFIER]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASEIDENTIFIERLOOSE",`(?:${d[h.NUMERICIDENTIFIERLOOSE]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASE",`(?:-(${d[h.PRERELEASEIDENTIFIER]}(?:\\.${d[h.PRERELEASEIDENTIFIER]})*))`);y("PRERELEASELOOSE",`(?:-?(${d[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[h.PRERELEASEIDENTIFIERLOOSE]})*))`);y("BUILDIDENTIFIER",`${hr}+`);y("BUILD",`(?:\\+(${d[h.BUILDIDENTIFIER]}(?:\\.${d[h.BUILDIDENTIFIER]})*))`);y("FULLPLAIN",`v?${d[h.MAINVERSION]}${d[h.PRERELEASE]}?${d[h.BUILD]}?`);y("FULL",`^${d[h.FULLPLAIN]}$`);y("LOOSEPLAIN",`[v=\\s]*${d[h.MAINVERSIONLOOSE]}${d[h.PRERELEASELOOSE]}?${d[h.BUILD]}?`);y("LOOSE",`^${d[h.LOOSEPLAIN]}$`);y("GTLT","((?:<|>)?=?)");y("XRANGEIDENTIFIERLOOSE",`${d[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);y("XRANGEIDENTIFIER",`${d[h.NUMERICIDENTIFIER]}|x|X|\\*`);y("XRANGEPLAIN",`[v=\\s]*(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:${d[h.PRERELEASE]})?${d[h.BUILD]}?)?)?`);y("XRANGEPLAINLOOSE",`[v=\\s]*(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:${d[h.PRERELEASELOOSE]})?${d[h.BUILD]}?)?)?`);y("XRANGE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAIN]}$`);y("XRANGELOOSE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAINLOOSE]}$`);y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${dr}})(?:\\.(\\d{1,${dr}}))?(?:\\.(\\d{1,${dr}}))?`);y("COERCE",`${d[h.COERCEPLAIN]}(?:$|[^\\d])`);y("COERCEFULL",d[h.COERCEPLAIN]+`(?:${d[h.PRERELEASE]})?(?:${d[h.BUILD]})?(?:$|[^\\d])`);y("COERCERTL",d[h.COERCE],!0);y("COERCERTLFULL",d[h.COERCEFULL],!0);y("LONETILDE","(?:~>?)");y("TILDETRIM",`(\\s*)${d[h.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";y("TILDE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAIN]}$`);y("TILDELOOSE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAINLOOSE]}$`);y("LONECARET","(?:\\^)");y("CARETTRIM",`(\\s*)${d[h.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";y("CARET",`^${d[h.LONECARET]}${d[h.XRANGEPLAIN]}$`);y("CARETLOOSE",`^${d[h.LONECARET]}${d[h.XRANGEPLAINLOOSE]}$`);y("COMPARATORLOOSE",`^${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]})$|^$`);y("COMPARATOR",`^${d[h.GTLT]}\\s*(${d[h.FULLPLAIN]})$|^$`);y("COMPARATORTRIM",`(\\s*)${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]}|${d[h.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";y("HYPHENRANGE",`^\\s*(${d[h.XRANGEPLAIN]})\\s+-\\s+(${d[h.XRANGEPLAIN]})\\s*$`);y("HYPHENRANGELOOSE",`^\\s*(${d[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[h.XRANGEPLAINLOOSE]})\\s*$`);y("STAR","(<|>)?=?\\s*\\*");y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var be=f((Lf,en)=>{i();var Si=Object.freeze({loose:!0}),Ii=Object.freeze({}),qi=r=>r?typeof r!="object"?Si:r:Ii;en.exports=qi});var gr=f((If,nn)=>{i();var rn=/^[0-9]+$/,tn=(r,e)=>{let t=rn.test(r),n=rn.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},xi=(r,e)=>tn(e,r);nn.exports={compareIdentifiers:tn,rcompareIdentifiers:xi}});var b=f((xf,un)=>{i();var Re=K(),{MAX_LENGTH:sn,MAX_SAFE_INTEGER:_e}=W(),{safeRe:on,t:an}=M(),Ci=be(),{compareIdentifiers:U}=gr(),Er=class r{constructor(e,t){if(t=Ci(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>sn)throw new TypeError(`version is longer than ${sn} characters`);Re("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?on[an.LOOSE]:on[an.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_e||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_e||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_e||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<_e)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Re("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),U(this.major,e.major)||U(this.minor,e.minor)||U(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Re("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Re("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let o=[t,s];n===!1&&(o=[t]),U(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};un.exports=Er});var x=f((Df,cn)=>{i();var ln=b(),Di=(r,e,t=!1)=>{if(r instanceof ln)return r;try{return new ln(r,e)}catch(n){if(!t)return null;throw n}};cn.exports=Di});var pn=f((Gf,fn)=>{i();var ji=x(),Gi=(r,e)=>{let t=ji(r,e);return t?t.version:null};fn.exports=Gi});var hn=f((Uf,dn)=>{i();var Mi=x(),Ui=(r,e)=>{let t=Mi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};dn.exports=Ui});var mn=f((Xf,En)=>{i();var gn=b(),ki=(r,e,t,n,s)=>{typeof t=="string"&&(s=n,n=t,t=void 0);try{return new gn(r instanceof gn?r.version:r,t).inc(e,n,s).version}catch{return null}};En.exports=ki});var vn=f((Hf,On)=>{i();var yn=x(),Xi=(r,e)=>{let t=yn(r,null,!0),n=yn(e,null,!0),s=t.compare(n);if(s===0)return null;let o=s>0,a=o?t:n,c=o?n:t,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l)return!c.patch&&!c.minor?"major":a.patch?"patch":a.minor?"minor":"major";let u=l?"pre":"";return t.major!==n.major?u+"major":t.minor!==n.minor?u+"minor":t.patch!==n.patch?u+"patch":"prerelease"};On.exports=Xi});var Rn=f((Bf,bn)=>{i();var Fi=b(),Hi=(r,e)=>new Fi(r,e).major;bn.exports=Hi});var wn=f((zf,_n)=>{i();var Vi=b(),Bi=(r,e)=>new Vi(r,e).minor;_n.exports=Bi});var $n=f((Kf,Pn)=>{i();var Yi=b(),zi=(r,e)=>new Yi(r,e).patch;Pn.exports=zi});var Nn=f((Zf,An)=>{i();var Wi=x(),Ki=(r,e)=>{let t=Wi(r,e);return t&&t.prerelease.length?t.prerelease:null};An.exports=Ki});var $=f((ep,Ln)=>{i();var Tn=b(),Ji=(r,e,t)=>new Tn(r,t).compare(new Tn(e,t));Ln.exports=Ji});var In=f((tp,Sn)=>{i();var Zi=$(),Qi=(r,e,t)=>Zi(e,r,t);Sn.exports=Qi});var xn=f((sp,qn)=>{i();var ea=$(),ra=(r,e)=>ea(r,e,!0);qn.exports=ra});var we=f((ip,Dn)=>{i();var Cn=b(),ta=(r,e,t)=>{let n=new Cn(r,t),s=new Cn(e,t);return n.compare(s)||n.compareBuild(s)};Dn.exports=ta});var Gn=f((up,jn)=>{i();var na=we(),sa=(r,e)=>r.sort((t,n)=>na(t,n,e));jn.exports=sa});var Un=f((cp,Mn)=>{i();var oa=we(),ia=(r,e)=>r.sort((t,n)=>oa(n,t,e));Mn.exports=ia});var J=f((pp,kn)=>{i();var aa=$(),ua=(r,e,t)=>aa(r,e,t)>0;kn.exports=ua});var Pe=f((hp,Xn)=>{i();var la=$(),ca=(r,e,t)=>la(r,e,t)<0;Xn.exports=ca});var mr=f((Ep,Fn)=>{i();var fa=$(),pa=(r,e,t)=>fa(r,e,t)===0;Fn.exports=pa});var yr=f((yp,Hn)=>{i();var da=$(),ha=(r,e,t)=>da(r,e,t)!==0;Hn.exports=ha});var $e=f((vp,Vn)=>{i();var ga=$(),Ea=(r,e,t)=>ga(r,e,t)>=0;Vn.exports=Ea});var Ae=f((Rp,Bn)=>{i();var ma=$(),ya=(r,e,t)=>ma(r,e,t)<=0;Bn.exports=ya});var Or=f((wp,Yn)=>{i();var Oa=mr(),va=yr(),ba=J(),Ra=$e(),_a=Pe(),wa=Ae(),Pa=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Oa(r,t,n);case"!=":return va(r,t,n);case">":return ba(r,t,n);case">=":return Ra(r,t,n);case"<":return _a(r,t,n);case"<=":return wa(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Yn.exports=Pa});var Wn=f(($p,zn)=>{i();var $a=b(),Aa=x(),{safeRe:Ne,t:Te}=M(),Na=(r,e)=>{if(r instanceof $a)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Ne[Te.COERCEFULL]:Ne[Te.COERCE]);else{let l=e.includePrerelease?Ne[Te.COERCERTLFULL]:Ne[Te.COERCERTL],E;for(;(E=l.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||E.index+E[0].length!==t.index+t[0].length)&&(t=E),l.lastIndex=E.index+E[1].length+E[2].length;l.lastIndex=-1}if(t===null)return null;let n=t[2],s=t[3]||"0",o=t[4]||"0",a=e.includePrerelease&&t[5]?`-${t[5]}`:"",c=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Aa(`${n}.${s}.${o}${a}${c}`,e)};zn.exports=Na});var Jn=f((Np,Kn)=>{i();var vr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Kn.exports=vr});var A=f((Lp,rs)=>{i();var Ta=/\s+/g,br=class r{constructor(e,t){if(t=Sa(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Rr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Ta," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Qn(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Ga(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Da)|(this.options.loose&&ja))+":"+e,s=Zn.get(n);if(s)return s;let o=this.options.loose,a=o?P[R.HYPHENRANGELOOSE]:P[R.HYPHENRANGE];e=e.replace(a,za(this.options.includePrerelease)),v("hyphen replace",e),e=e.replace(P[R.COMPARATORTRIM],qa),v("comparator trim",e),e=e.replace(P[R.TILDETRIM],xa),v("tilde trim",e),e=e.replace(P[R.CARETTRIM],Ca),v("caret trim",e);let c=e.split(" ").map(p=>Ma(p,this.options)).join(" ").split(/\s+/).map(p=>Ya(p,this.options));o&&(c=c.filter(p=>(v("loose invalid filter",p,this.options),!!p.match(P[R.COMPARATORLOOSE])))),v("range list",c);let l=new Map,E=c.map(p=>new Rr(p,this.options));for(let p of E){if(Qn(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let u=[...l.values()];return Zn.set(n,u),u}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>es(n,t)&&e.set.some(s=>es(s,t)&&n.every(o=>s.every(a=>o.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Ia(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Wa(this.set[t],e,this.options))return!0;return!1}};rs.exports=br;var La=Jn(),Zn=new La,Sa=be(),Rr=Z(),v=K(),Ia=b(),{safeRe:P,t:R,comparatorTrimReplace:qa,tildeTrimReplace:xa,caretTrimReplace:Ca}=M(),{FLAG_INCLUDE_PRERELEASE:Da,FLAG_LOOSE:ja}=W(),Qn=r=>r.value==="<0.0.0-0",Ga=r=>r.value==="",es=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(o=>s.intersects(o,e)),s=n.pop();return t},Ma=(r,e)=>(v("comp",r,e),r=Xa(r,e),v("caret",r),r=Ua(r,e),v("tildes",r),r=Ha(r,e),v("xrange",r),r=Ba(r,e),v("stars",r),r),_=r=>!r||r.toLowerCase()==="x"||r==="*",Ua=(r,e)=>r.trim().split(/\s+/).map(t=>ka(t,e)).join(" "),ka=(r,e)=>{let t=e.loose?P[R.TILDELOOSE]:P[R.TILDE];return r.replace(t,(n,s,o,a,c)=>{v("tilde",r,n,s,o,a,c);let l;return _(s)?l="":_(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:_(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(v("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,v("tilde return",l),l})},Xa=(r,e)=>r.trim().split(/\s+/).map(t=>Fa(t,e)).join(" "),Fa=(r,e)=>{v("caret",r,e);let t=e.loose?P[R.CARETLOOSE]:P[R.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,o,a,c,l)=>{v("caret",r,s,o,a,c,l);let E;return _(o)?E="":_(a)?E=`>=${o}.0.0${n} <${+o+1}.0.0-0`:_(c)?o==="0"?E=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(v("replaceCaret pr",l),o==="0"?a==="0"?E=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(v("no pr"),o==="0"?a==="0"?E=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),v("caret return",E),E})},Ha=(r,e)=>(v("replaceXRanges",r,e),r.split(/\s+/).map(t=>Va(t,e)).join(" ")),Va=(r,e)=>{r=r.trim();let t=e.loose?P[R.XRANGELOOSE]:P[R.XRANGE];return r.replace(t,(n,s,o,a,c,l)=>{v("xRange",r,n,s,o,a,c,l);let E=_(o),u=E||_(a),p=u||_(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",E?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(u&&(a=0),c=0,s===">"?(s=">=",u?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",u?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),v("xRange return",n),n})},Ba=(r,e)=>(v("replaceStars",r,e),r.trim().replace(P[R.STAR],"")),Ya=(r,e)=>(v("replaceGTE0",r,e),r.trim().replace(P[e.includePrerelease?R.GTE0PRE:R.GTE0],"")),za=r=>(e,t,n,s,o,a,c,l,E,u,p,m)=>(_(n)?t="":_(s)?t=`>=${n}.0.0${r?"-0":""}`:_(o)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,_(E)?l="":_(u)?l=`<${+E+1}.0.0-0`:_(p)?l=`<${E}.${+u+1}.0-0`:m?l=`<=${E}.${u}.${p}-${m}`:r?l=`<${E}.${u}.${+p+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),Wa=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(v(r[n].semver),r[n].semver!==Rr.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Z=f((Ip,as)=>{i();var Q=Symbol("SemVer ANY"),Pr=class r{static get ANY(){return Q}constructor(e,t){if(t=ts(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),wr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Q?this.value="":this.value=this.operator+this.semver.version,wr("comp",this)}parse(e){let t=this.options.loose?ns[ss.COMPARATORLOOSE]:ns[ss.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new os(n[2],this.options.loose):this.semver=Q}toString(){return this.value}test(e){if(wr("Comparator.test",e,this.options.loose),this.semver===Q||e===Q)return!0;if(typeof e=="string")try{e=new os(e,this.options)}catch{return!1}return _r(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new is(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new is(this.value,t).test(e.semver):(t=ts(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||_r(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||_r(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};as.exports=Pr;var ts=be(),{safeRe:ns,t:ss}=M(),_r=Or(),wr=K(),os=b(),is=A()});var ee=f((xp,us)=>{i();var Ka=A(),Ja=(r,e,t)=>{try{e=new Ka(e,t)}catch{return!1}return e.test(r)};us.exports=Ja});var cs=f((Dp,ls)=>{i();var Za=A(),Qa=(r,e)=>new Za(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));ls.exports=Qa});var ps=f((Gp,fs)=>{i();var eu=b(),ru=A(),tu=(r,e,t)=>{let n=null,s=null,o=null;try{o=new ru(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new eu(n,t))}),n};fs.exports=tu});var hs=f((Up,ds)=>{i();var nu=b(),su=A(),ou=(r,e,t)=>{let n=null,s=null,o=null;try{o=new su(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new nu(n,t))}),n};ds.exports=ou});var ms=f((Xp,Es)=>{i();var $r=b(),iu=A(),gs=J(),au=(r,e)=>{r=new iu(r,e);let t=new $r("0.0.0");if(r.test(t)||(t=new $r("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],o=null;s.forEach(a=>{let c=new $r(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||gs(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!t||gs(t,o))&&(t=o)}return t&&r.test(t)?t:null};Es.exports=au});var Os=f((Hp,ys)=>{i();var uu=A(),lu=(r,e)=>{try{return new uu(r,e).range||"*"}catch{return null}};ys.exports=lu});var Le=f((Bp,_s)=>{i();var cu=b(),Rs=Z(),{ANY:fu}=Rs,pu=A(),du=ee(),vs=J(),bs=Pe(),hu=Ae(),gu=$e(),Eu=(r,e,t,n)=>{r=new cu(r,n),e=new pu(e,n);let s,o,a,c,l;switch(t){case">":s=vs,o=hu,a=bs,c=">",l=">=";break;case"<":s=bs,o=gu,a=vs,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(du(r,e,n))return!1;for(let E=0;E<e.set.length;++E){let u=e.set[E],p=null,m=null;if(u.forEach(g=>{g.semver===fu&&(g=new Rs(">=0.0.0")),p=p||g,m=m||g,s(g.semver,p.semver,n)?p=g:a(g.semver,m.semver,n)&&(m=g)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(r,m.semver))return!1;if(m.operator===l&&a(r,m.semver))return!1}return!0};_s.exports=Eu});var Ps=f((zp,ws)=>{i();var mu=Le(),yu=(r,e,t)=>mu(r,e,">",t);ws.exports=yu});var As=f((Kp,$s)=>{i();var Ou=Le(),vu=(r,e,t)=>Ou(r,e,"<",t);$s.exports=vu});var Ls=f((Zp,Ts)=>{i();var Ns=A(),bu=(r,e,t)=>(r=new Ns(r,t),e=new Ns(e,t),r.intersects(e,t));Ts.exports=bu});var Is=f((ed,Ss)=>{i();var Ru=ee(),_u=$();Ss.exports=(r,e,t)=>{let n=[],s=null,o=null,a=r.sort((u,p)=>_u(u,p,t));for(let u of a)Ru(u,e,t)?(o=u,s||(s=u)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[u,p]of n)u===p?c.push(u):!p&&u===a[0]?c.push("*"):p?u===a[0]?c.push(`<=${p}`):c.push(`${u} - ${p}`):c.push(`>=${u}`);let l=c.join(" || "),E=typeof e.raw=="string"?e.raw:String(e);return l.length<E.length?l:e}});var Gs=f((td,js)=>{i();var qs=A(),Nr=Z(),{ANY:Ar}=Nr,re=ee(),Tr=$(),wu=(r,e,t={})=>{if(r===e)return!0;r=new qs(r,t),e=new qs(e,t);let n=!1;e:for(let s of r.set){for(let o of e.set){let a=$u(s,o,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Pu=[new Nr(">=0.0.0-0")],xs=[new Nr(">=0.0.0")],$u=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Ar){if(e.length===1&&e[0].semver===Ar)return!0;t.includePrerelease?r=Pu:r=xs}if(e.length===1&&e[0].semver===Ar){if(t.includePrerelease)return!0;e=xs}let n=new Set,s,o;for(let g of r)g.operator===">"||g.operator===">="?s=Cs(s,g,t):g.operator==="<"||g.operator==="<="?o=Ds(o,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&o){if(a=Tr(s.semver,o.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let g of n){if(s&&!re(g,String(s),t)||o&&!re(g,String(o),t))return null;for(let O of e)if(!re(g,String(O),t))return!1;return!0}let c,l,E,u,p=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",E=E||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(c=Cs(s,g,t),c===g&&c!==s)return!1}else if(s.operator===">="&&!re(s.semver,String(g),t))return!1}if(o){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(l=Ds(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!re(o.semver,String(g),t))return!1}if(!g.operator&&(o||s)&&a!==0)return!1}return!(s&&E&&!o&&a!==0||o&&u&&!s&&a!==0||m||p)},Cs=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Ds=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};js.exports=wu});var Xs=f((sd,ks)=>{i();var Lr=M(),Ms=W(),Au=b(),Us=gr(),Nu=x(),Tu=pn(),Lu=hn(),Su=mn(),Iu=vn(),qu=Rn(),xu=wn(),Cu=$n(),Du=Nn(),ju=$(),Gu=In(),Mu=xn(),Uu=we(),ku=Gn(),Xu=Un(),Fu=J(),Hu=Pe(),Vu=mr(),Bu=yr(),Yu=$e(),zu=Ae(),Wu=Or(),Ku=Wn(),Ju=Z(),Zu=A(),Qu=ee(),el=cs(),rl=ps(),tl=hs(),nl=ms(),sl=Os(),ol=Le(),il=Ps(),al=As(),ul=Ls(),ll=Is(),cl=Gs();ks.exports={parse:Nu,valid:Tu,clean:Lu,inc:Su,diff:Iu,major:qu,minor:xu,patch:Cu,prerelease:Du,compare:ju,rcompare:Gu,compareLoose:Mu,compareBuild:Uu,sort:ku,rsort:Xu,gt:Fu,lt:Hu,eq:Vu,neq:Bu,gte:Yu,lte:zu,cmp:Wu,coerce:Ku,Comparator:Ju,Range:Zu,satisfies:Qu,toComparators:el,maxSatisfying:rl,minSatisfying:tl,minVersion:nl,validRange:sl,outside:ol,gtr:il,ltr:al,intersects:ul,simplifyRange:ll,subset:cl,SemVer:Au,re:Lr.re,src:Lr.src,tokens:Lr.t,SEMVER_SPEC_VERSION:Ms.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ms.RELEASE_TYPES,compareIdentifiers:Us.compareIdentifiers,rcompareIdentifiers:Us.rcompareIdentifiers}});var Hs=f((id,Fs)=>{"use strict";i();var Sr=class r extends Error{constructor(e){super(r._prepareSuperMessage(e)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,r)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}},fl=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Ir=({from:r,seen:e,to_:t,forceEnumerable:n})=>{let s=t||(Array.isArray(r)?[]:{});e.push(r);for(let[o,a]of Object.entries(r))if(typeof a!="function"){if(!a||typeof a!="object"){s[o]=a;continue}if(!e.includes(r[o])){s[o]=Ir({from:r[o],seen:e.slice(),forceEnumerable:n});continue}s[o]="[Circular]"}for(let{property:o,enumerable:a}of fl)typeof r[o]=="string"&&Object.defineProperty(s,o,{value:r[o],enumerable:n?!0:a,configurable:!0,writable:!0});return s},pl=r=>typeof r=="object"&&r!==null?Ir({from:r,seen:[],forceEnumerable:!0}):typeof r=="function"?`[Function: ${r.name||"anonymous"}]`:r,dl=r=>{if(r instanceof Error)return r;if(typeof r=="object"&&r!==null&&!Array.isArray(r)){let e=new Error;return Ir({from:r,seen:[],to_:e}),e}return new Sr(r)};Fs.exports={serializeError:pl,deserializeError:dl}});var Ie=f(Se=>{"use strict";i();Object.defineProperty(Se,"__esModule",{value:!0});Se.default=void 0;var Vs=Hs(),hl=ue(),gl=El(z());function El(r){return r&&r.__esModule?r:{default:r}}var T=gl.default.child({namespace:"Agent"}),ml=0,qr=class{constructor(e,t,n,s,o){this.fallbackAgent=s,this.isProxyConfigured=e,this.mustUrlUseProxy=t,this.getUrlProxy=n,this.socketConnectionTimeout=o}addRequest(e,t){let n;if(e.path.startsWith("http://")||e.path.startsWith("https://")?n=e.path:n=this.protocol+"//"+(t.hostname||t.host)+(t.port===80||t.port===443?"":":"+t.port)+e.path,!this.isProxyConfigured()){T.trace({destination:n},"not proxying request; GLOBAL_AGENT.HTTP_PROXY is not configured"),this.fallbackAgent.addRequest(e,t);return}if(!this.mustUrlUseProxy(n)){T.trace({destination:n},"not proxying request; url matches GLOBAL_AGENT.NO_PROXY"),this.fallbackAgent.addRequest(e,t);return}let s=ml++,o=this.getUrlProxy(n);this.protocol==="http:"&&(e.path=n,o.authorization&&e.setHeader("proxy-authorization","Basic "+Buffer.from(o.authorization).toString("base64"))),T.trace({destination:n,proxy:"http://"+o.hostname+":"+o.port,requestId:s},"proxying request"),e.on("error",c=>{T.error({error:(0,Vs.serializeError)(c)},"request error")}),e.once("response",c=>{T.trace({headers:c.headers,requestId:s,statusCode:c.statusCode},"proxying response")}),e.shouldKeepAlive=!1;let a={host:t.hostname||t.host,port:t.port||80,proxy:o,tls:{}};this.protocol==="https:"&&(a.tls={ca:t.ca,cert:t.cert,ciphers:t.ciphers,clientCertEngine:t.clientCertEngine,crl:t.crl,dhparam:t.dhparam,ecdhCurve:t.ecdhCurve,honorCipherOrder:t.honorCipherOrder,key:t.key,passphrase:t.passphrase,pfx:t.pfx,rejectUnauthorized:t.rejectUnauthorized,secureOptions:t.secureOptions,secureProtocol:t.secureProtocol,servername:t.servername||a.host,sessionIdContext:t.sessionIdContext},typeof process.env.NODE_TLS_REJECT_UNAUTHORIZED=="string"&&(0,hl.boolean)(process.env.NODE_TLS_REJECT_UNAUTHORIZED)===!1&&(a.tls.rejectUnauthorized=!1)),this.createConnection(a,(c,l)=>{T.trace({target:a},"connecting"),l&&(l.setTimeout(this.socketConnectionTimeout,()=>{l.destroy()}),l.once("connect",()=>{T.trace({target:a},"connected"),l.setTimeout(0)}),l.once("secureConnect",()=>{T.trace({target:a},"connected (secure)"),l.setTimeout(0)})),c?e.emit("error",c):(T.debug("created socket"),l.on("error",E=>{T.error({error:(0,Vs.serializeError)(E)},"socket error")}),e.onSocket(l))})}},yl=qr;Se.default=yl});var Ys=f(qe=>{"use strict";i();Object.defineProperty(qe,"__esModule",{value:!0});qe.default=void 0;var Ol=Bs(N("net")),vl=Bs(Ie());function Bs(r){return r&&r.__esModule?r:{default:r}}var xr=class extends vl.default{constructor(...e){super(...e),this.protocol="http:",this.defaultPort=80}createConnection(e,t){let n=Ol.default.connect(e.proxy.port,e.proxy.hostname);t(null,n)}},bl=xr;qe.default=bl});var zs=f(xe=>{"use strict";i();Object.defineProperty(xe,"__esModule",{value:!0});xe.default=void 0;var Rl=Dr(N("net")),_l=Dr(N("tls")),wl=Dr(Ie());function Dr(r){return r&&r.__esModule?r:{default:r}}var Cr=class extends wl.default{constructor(...e){super(...e),this.protocol="https:",this.defaultPort=443}createConnection(e,t){let n=Rl.default.connect(e.proxy.port,e.proxy.hostname);n.on("error",o=>{t(o)}),n.once("data",()=>{let o=_l.default.connect({...e.tls,socket:n});t(null,o)});let s="";s+="CONNECT "+e.host+":"+e.port+` HTTP/1.1\r
|
|
1
|
+
import{a as Oo,b as vo,c as Br,d as Yr}from"./chunk-T7KHS6RF.js";import{b as yo}from"./chunk-TR4OWSEX.js";import{a as N,c as f,g as i}from"./chunk-VKWPEFWQ.js";var Wr=f(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.boolean=void 0;var Ro=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1"].includes(r.trim().toLowerCase());case"[object Number]":return r.valueOf()===1;case"[object Boolean]":return r.valueOf();default:return!1}};ie.boolean=Ro});var Kr=f(ae=>{"use strict";i();Object.defineProperty(ae,"__esModule",{value:!0});ae.isBooleanable=void 0;var _o=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(r.trim().toLowerCase());case"[object Number]":return[0,1].includes(r.valueOf());case"[object Boolean]":return!0;default:return!1}};ae.isBooleanable=_o});var ue=f(D=>{"use strict";i();Object.defineProperty(D,"__esModule",{value:!0});D.isBooleanable=D.boolean=void 0;var wo=Wr();Object.defineProperty(D,"boolean",{enumerable:!0,get:function(){return wo.boolean}});var Po=Kr();Object.defineProperty(D,"isBooleanable",{enumerable:!0,get:function(){return Po.isBooleanable}})});var le=f((Uc,Jr)=>{i();Jr.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var Ye=f((Xc,Qr)=>{"use strict";i();var Zr=Object.prototype.toString;Qr.exports=function(e){var t=Zr.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Zr.call(e.callee)==="[object Function]"),n}});var ut=f((Hc,at)=>{"use strict";i();var it;Object.keys||(H=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,et=Ye(),We=Object.prototype.propertyIsEnumerable,rt=!We.call({toString:null},"toString"),tt=We.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ce=function(r){var e=r.constructor;return e&&e.prototype===r},nt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},st=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!nt["$"+r]&&H.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{ce(window[r])}catch{return!0}}catch{return!0}return!1})(),ot=function(r){if(typeof window>"u"||!st)return ce(r);try{return ce(r)}catch{return!1}},it=function(e){var t=e!==null&&typeof e=="object",n=ze.call(e)==="[object Function]",s=et(e),o=t&&ze.call(e)==="[object String]",a=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var c=tt&&n;if(o&&e.length>0&&!H.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(s&&e.length>0)for(var E=0;E<e.length;++E)a.push(String(E));else for(var u in e)!(c&&u==="prototype")&&H.call(e,u)&&a.push(String(u));if(rt)for(var p=ot(e),m=0;m<V.length;++m)!(p&&V[m]==="constructor")&&H.call(e,V[m])&&a.push(V[m]);return a});var H,ze,et,We,rt,tt,V,ce,nt,st,ot;at.exports=it});var pt=f((Bc,ft)=>{"use strict";i();var $o=Array.prototype.slice,Ao=Ye(),lt=Object.keys,fe=lt?function(e){return lt(e)}:ut(),ct=Object.keys;fe.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return Ao(n)?ct($o.call(n)):ct(n)})}else Object.keys=fe;return Object.keys||fe};ft.exports=fe});var Et=f((zc,gt)=>{"use strict";i();var dt=Yr(),No=Oo(),j=vo(),ht=Br();gt.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new j("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new j("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!ht&&ht(e,t);if(dt)dt(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:n,writable:o===null&&l?l.writable:!o});else if(c||!s&&!o&&!a)e[t]=n;else throw new No("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ot=f((Kc,yt)=>{"use strict";i();var Ke=Yr(),mt=function(){return!!Ke};mt.hasArrayLengthDefineBug=function(){if(!Ke)return null;try{return Ke([],"length",{value:1}).length!==1}catch{return!0}};yt.exports=mt});var Je=f((Zc,_t)=>{"use strict";i();var To=pt(),Lo=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",So=Object.prototype.toString,Io=Array.prototype.concat,vt=Et(),qo=function(r){return typeof r=="function"&&So.call(r)==="[object Function]"},bt=Ot()(),xo=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!qo(n)||!n())return}bt?vt(r,e,t,!0):vt(r,e,t)},Rt=function(r,e){var t=arguments.length>2?arguments[2]:{},n=To(e);Lo&&(n=Io.call(n,Object.getOwnPropertySymbols(e)));for(var s=0;s<n.length;s+=1)xo(r,n[s],e[n[s]],t[n[s]])};Rt.supportsDescriptors=!!bt;_t.exports=Rt});var Ze=f((ef,wt)=>{"use strict";i();wt.exports=global});var Qe=f((tf,Pt)=>{"use strict";i();var Co=Ze();Pt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?Co:global}});var At=f((sf,$t)=>{"use strict";i();var Do=Je(),jo=Br(),Go=Qe();$t.exports=function(){var e=Go();if(Do.supportsDescriptors){var t=jo(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var er=f((af,Lt)=>{"use strict";i();var Mo=Je(),Uo=Ze(),Nt=Qe(),ko=At(),Xo=Nt(),Tt=function(){return Xo};Mo(Tt,{getPolyfill:Nt,implementation:Uo,shim:ko});Lt.exports=Tt});var qt=f((rr,It)=>{i();rr=It.exports=Fo;rr.getSerialize=St;function Fo(r,e,t,n){return JSON.stringify(r,St(e,n),t)}function St(r,e){var t=[],n=[];return e==null&&(e=function(s,o){return t[0]===o?"[Circular ~]":"[Circular ~."+n.slice(0,t.indexOf(o)).join(".")+"]"}),function(s,o){if(t.length>0){var a=t.indexOf(this);~a?t.splice(a+1):t.push(this),~a?n.splice(a,1/0,s):n.push(s),~t.indexOf(o)&&(o=e.call(this,s,o))}else t.push(o);return r==null?o:r.call(this,s,o)}}});var xt=f(pe=>{i();(function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(a){return n(o(a),arguments)}function t(a,c){return e.apply(null,[a].concat(c||[]))}function n(a,c){var l=1,E=a.length,u,p="",m,g,O,S,I,C,oe,q;for(m=0;m<E;m++)if(typeof a[m]=="string")p+=a[m];else if(typeof a[m]=="object"){if(O=a[m],O.keys)for(u=c[l],g=0;g<O.keys.length;g++){if(u==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',O.keys[g],O.keys[g-1]));u=u[O.keys[g]]}else O.param_no?u=c[O.param_no]:u=c[l++];if(r.not_type.test(O.type)&&r.not_primitive.test(O.type)&&u instanceof Function&&(u=u()),r.numeric_arg.test(O.type)&&typeof u!="number"&&isNaN(u))throw new TypeError(e("[sprintf] expecting number but found %T",u));switch(r.number.test(O.type)&&(oe=u>=0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}r.json.test(O.type)?p+=u:(r.number.test(O.type)&&(!oe||O.sign)?(q=oe?"+":"-",u=u.toString().replace(r.sign,"")):q="",I=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",C=O.width-(q+u).length,S=O.width&&C>0?I.repeat(C):"",p+=O.align?q+u+S:I==="0"?q+S+u:S+q+u)}return p}var s=Object.create(null);function o(a){if(s[a])return s[a];for(var c=a,l,E=[],u=0;c;){if((l=r.text.exec(c))!==null)E.push(l[0]);else if((l=r.modulo.exec(c))!==null)E.push("%");else if((l=r.placeholder.exec(c))!==null){if(l[2]){u|=1;var p=[],m=l[2],g=[];if((g=r.key.exec(m))!==null)for(p.push(g[1]);(m=m.substring(g[0].length))!=="";)if((g=r.key_access.exec(m))!==null)p.push(g[1]);else if((g=r.index_access.exec(m))!==null)p.push(g[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");E.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");c=c.substring(l[0].length)}return s[a]=E}typeof pe<"u"&&(pe.sprintf=e,pe.vsprintf=t),typeof window<"u"&&(window.sprintf=e,window.vsprintf=t,typeof define=="function"&&define.amd&&define(function(){return{sprintf:e,vsprintf:t}}))})()});var tr=f(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.logLevels=void 0;var Ho={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};de.logLevels=Ho});var jt=f(ge=>{"use strict";i();Object.defineProperty(ge,"__esModule",{value:!0});ge.default=void 0;var Vo=ir(le()),Bo=ir(er()),Yo=ir(qt()),nr=xt(),Ct=tr();function ir(r){return r&&r.__esModule?r:{default:r}}function sr(){return sr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},sr.apply(this,arguments)}function Dt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(t),!0).forEach(function(n){zo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function zo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Wo=(0,Bo.default)(),B;Vo.default&&(B=N("domain"));var Ko=()=>{if(!B)return{};let r=[],e=process.domain;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)e=e.parentDomain,e.roarr&&e.roarr.context&&r.push(e.roarr.context);let t={};for(let n of r)t=w(w({},t),n);return t},he=()=>{if(!B)return{};let r=process.domain;if(r&&r.roarr&&r.roarr.context)return r.roarr.context;if(!r||!r.parentDomain)return{};for(;r&&r.parentDomain;)if(r=r.parentDomain,r.roarr&&r.roarr.context)return r.roarr.context;return{}},or=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{let g=Date.now(),O=Wo.ROARR.sequence++,S,I;if(typeof n=="string"){S=w(w({},he()),e||{});let C=sr({},{a:n,b:s,c:o,d:a,e:c,f:l,g:E,h:u,i:p,k:m});I=Object.keys(C).map(Be=>C[Be]).reduce((Be,mo)=>Be+=typeof mo>"u"?0:1,0)===1?(0,nr.sprintf)("%s",n):(0,nr.sprintf)(n,s,o,a,c,l,E,u,p,m)}else{if(typeof s!="string")throw new TypeError("Message must be a string.");S=JSON.parse((0,Yo.default)(w(w(w({},he()),e||{}),n))),I=(0,nr.sprintf)(s,o,a,c,l,E,u,p,m)}r({context:S,message:I,sequence:O,time:g,version:"1.0.0"})};t.child=n=>typeof n=="function"?or(s=>{if(typeof n!="function")throw new TypeError("Unexpected state.");r(n(s))},e):or(r,w(w(w({},he()),e),n)),t.getContext=()=>w(w({},he()),e||{}),t.adopt=async(n,s)=>{if(!B)return n();let o=B.create();return o.run(()=>(o.roarr={context:w(w({},Ko()),s)},n()))};for(let n of Object.keys(Ct.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:Ct.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Jo=or;ge.default=Jo});var Ut=f(Ee=>{"use strict";i();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.default=void 0;var Gt=tr(),Mt=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{};t.adopt=async n=>n(),t.child=n=>Mt(r,e),t.getContext=()=>({});for(let n of Object.keys(Gt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:Gt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Zo=Mt;Ee.default=Zo});var Xt=f((yf,kt)=>{i();kt.exports=function(e,t){for(var n=e.split("."),s=t.split("."),o=0;o<3;o++){var a=Number(n[o]),c=Number(s[o]);if(a>c)return 1;if(c>a)return-1;if(!isNaN(a)&&isNaN(c))return 1;if(isNaN(a)&&!isNaN(c))return-1}return 0}});var Ft=f((vf,Qo)=>{Qo.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var Ht=f(me=>{"use strict";i();Object.defineProperty(me,"__esModule",{value:!0});me.default=void 0;var ei=r=>({write:e=>{r.write(e+`
|
|
2
|
+
`)}}),ri=()=>{let e=(process.env.ROARR_STREAM||"STDOUT").toUpperCase().toUpperCase()==="STDOUT"?process.stdout:process.stderr;return ei(e)},ti=ri;me.default=ti});var Bt=f(Oe=>{"use strict";i();Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=void 0;var ni=lr(le()),ar=lr(Xt()),ur=Ft(),si=lr(Ht());function lr(r){return r&&r.__esModule?r:{default:r}}function Vt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function ye(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Vt(Object(t),!0).forEach(function(n){oi(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Vt(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function oi(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var ii=r=>{let e=(r.versions||[]).concat();e.sort(ar.default);let t=!e.length||(0,ar.default)(ur.version,e[e.length-1])===1;e.includes(ur.version)||e.push(ur.version),e.sort(ar.default);let n=ye(ye({sequence:0},r),{},{versions:e});return ni.default&&(t||!n.write)&&(n=ye(ye({},n),(0,si.default)())),n},ai=ii;Oe.default=ai});var Yt=f(Y=>{"use strict";i();Object.defineProperty(Y,"__esModule",{value:!0});Object.defineProperty(Y,"createLogger",{enumerable:!0,get:function(){return ui.default}});Object.defineProperty(Y,"createMockLogger",{enumerable:!0,get:function(){return li.default}});Object.defineProperty(Y,"createRoarrInititialGlobalState",{enumerable:!0,get:function(){return ci.default}});var ui=cr(jt()),li=cr(Ut()),ci=cr(Bt());function cr(r){return r&&r.__esModule?r:{default:r}}});var Jt=f(G=>{"use strict";i();Object.defineProperty(G,"__esModule",{value:!0});G.default=G.ROARR=void 0;var fi=ue(),pi=Wt(le()),di=Wt(er()),pr=Yt();function Wt(r){return r&&r.__esModule?r:{default:r}}var zt=(0,di.default)(),fr=zt.ROARR=(0,pr.createRoarrInititialGlobalState)(zt.ROARR||{});G.ROARR=fr;var Kt=pr.createLogger;pi.default&&((0,fi.boolean)(process.env.ROARR_LOG||"")||(Kt=pr.createMockLogger));var hi=Kt(r=>{if(fr.write){let e=JSON.stringify(r);fr.write(e)}});G.default=hi});var z=f(ve=>{"use strict";i();Object.defineProperty(ve,"__esModule",{value:!0});ve.default=void 0;var gi=Ei(Jt());function Ei(r){return r&&r.__esModule?r:{default:r}}var mi=gi.default.child({package:"global-agent"}),yi=mi;ve.default=yi});var W=f((Sf,Zt)=>{i();var Oi="2.0.0",vi=Number.MAX_SAFE_INTEGER||9007199254740991,bi=16,Ri=250,_i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Zt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:bi,MAX_SAFE_BUILD_LENGTH:Ri,MAX_SAFE_INTEGER:vi,RELEASE_TYPES:_i,SEMVER_SPEC_VERSION:Oi,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var K=f((qf,Qt)=>{i();var wi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Qt.exports=wi});var M=f((L,en)=>{i();var{MAX_SAFE_COMPONENT_LENGTH:dr,MAX_SAFE_BUILD_LENGTH:Pi,MAX_LENGTH:$i}=W(),Ai=K();L=en.exports={};var Ni=L.re=[],Ti=L.safeRe=[],d=L.src=[],h=L.t={},Li=0,hr="[a-zA-Z0-9-]",Si=[["\\s",1],["\\d",$i],[hr,Pi]],Ii=r=>{for(let[e,t]of Si)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},y=(r,e,t)=>{let n=Ii(e),s=Li++;Ai(r,s,e),h[r]=s,d[s]=e,Ni[s]=new RegExp(e,t?"g":void 0),Ti[s]=new RegExp(n,t?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*");y("NUMERICIDENTIFIERLOOSE","\\d+");y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${hr}*`);y("MAINVERSION",`(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})`);y("MAINVERSIONLOOSE",`(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})`);y("PRERELEASEIDENTIFIER",`(?:${d[h.NUMERICIDENTIFIER]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASEIDENTIFIERLOOSE",`(?:${d[h.NUMERICIDENTIFIERLOOSE]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASE",`(?:-(${d[h.PRERELEASEIDENTIFIER]}(?:\\.${d[h.PRERELEASEIDENTIFIER]})*))`);y("PRERELEASELOOSE",`(?:-?(${d[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[h.PRERELEASEIDENTIFIERLOOSE]})*))`);y("BUILDIDENTIFIER",`${hr}+`);y("BUILD",`(?:\\+(${d[h.BUILDIDENTIFIER]}(?:\\.${d[h.BUILDIDENTIFIER]})*))`);y("FULLPLAIN",`v?${d[h.MAINVERSION]}${d[h.PRERELEASE]}?${d[h.BUILD]}?`);y("FULL",`^${d[h.FULLPLAIN]}$`);y("LOOSEPLAIN",`[v=\\s]*${d[h.MAINVERSIONLOOSE]}${d[h.PRERELEASELOOSE]}?${d[h.BUILD]}?`);y("LOOSE",`^${d[h.LOOSEPLAIN]}$`);y("GTLT","((?:<|>)?=?)");y("XRANGEIDENTIFIERLOOSE",`${d[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);y("XRANGEIDENTIFIER",`${d[h.NUMERICIDENTIFIER]}|x|X|\\*`);y("XRANGEPLAIN",`[v=\\s]*(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:${d[h.PRERELEASE]})?${d[h.BUILD]}?)?)?`);y("XRANGEPLAINLOOSE",`[v=\\s]*(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:${d[h.PRERELEASELOOSE]})?${d[h.BUILD]}?)?)?`);y("XRANGE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAIN]}$`);y("XRANGELOOSE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAINLOOSE]}$`);y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${dr}})(?:\\.(\\d{1,${dr}}))?(?:\\.(\\d{1,${dr}}))?`);y("COERCE",`${d[h.COERCEPLAIN]}(?:$|[^\\d])`);y("COERCEFULL",d[h.COERCEPLAIN]+`(?:${d[h.PRERELEASE]})?(?:${d[h.BUILD]})?(?:$|[^\\d])`);y("COERCERTL",d[h.COERCE],!0);y("COERCERTLFULL",d[h.COERCEFULL],!0);y("LONETILDE","(?:~>?)");y("TILDETRIM",`(\\s*)${d[h.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";y("TILDE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAIN]}$`);y("TILDELOOSE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAINLOOSE]}$`);y("LONECARET","(?:\\^)");y("CARETTRIM",`(\\s*)${d[h.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";y("CARET",`^${d[h.LONECARET]}${d[h.XRANGEPLAIN]}$`);y("CARETLOOSE",`^${d[h.LONECARET]}${d[h.XRANGEPLAINLOOSE]}$`);y("COMPARATORLOOSE",`^${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]})$|^$`);y("COMPARATOR",`^${d[h.GTLT]}\\s*(${d[h.FULLPLAIN]})$|^$`);y("COMPARATORTRIM",`(\\s*)${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]}|${d[h.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";y("HYPHENRANGE",`^\\s*(${d[h.XRANGEPLAIN]})\\s+-\\s+(${d[h.XRANGEPLAIN]})\\s*$`);y("HYPHENRANGELOOSE",`^\\s*(${d[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[h.XRANGEPLAINLOOSE]})\\s*$`);y("STAR","(<|>)?=?\\s*\\*");y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var be=f((Df,rn)=>{i();var qi=Object.freeze({loose:!0}),xi=Object.freeze({}),Ci=r=>r?typeof r!="object"?qi:r:xi;rn.exports=Ci});var gr=f((Gf,sn)=>{i();var tn=/^[0-9]+$/,nn=(r,e)=>{let t=tn.test(r),n=tn.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Di=(r,e)=>nn(e,r);sn.exports={compareIdentifiers:nn,rcompareIdentifiers:Di}});var b=f((Uf,ln)=>{i();var Re=K(),{MAX_LENGTH:on,MAX_SAFE_INTEGER:_e}=W(),{safeRe:an,t:un}=M(),ji=be(),{compareIdentifiers:U}=gr(),Er=class r{constructor(e,t){if(t=ji(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>on)throw new TypeError(`version is longer than ${on} characters`);Re("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?an[un.LOOSE]:an[un.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_e||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_e||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_e||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<_e)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Re("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),U(this.major,e.major)||U(this.minor,e.minor)||U(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Re("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Re("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let o=[t,s];n===!1&&(o=[t]),U(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};ln.exports=Er});var x=f((Xf,fn)=>{i();var cn=b(),Gi=(r,e,t=!1)=>{if(r instanceof cn)return r;try{return new cn(r,e)}catch(n){if(!t)return null;throw n}};fn.exports=Gi});var dn=f((Hf,pn)=>{i();var Mi=x(),Ui=(r,e)=>{let t=Mi(r,e);return t?t.version:null};pn.exports=Ui});var gn=f((Bf,hn)=>{i();var ki=x(),Xi=(r,e)=>{let t=ki(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};hn.exports=Xi});var yn=f((zf,mn)=>{i();var En=b(),Fi=(r,e,t,n,s)=>{typeof t=="string"&&(s=n,n=t,t=void 0);try{return new En(r instanceof En?r.version:r,t).inc(e,n,s).version}catch{return null}};mn.exports=Fi});var bn=f((Kf,vn)=>{i();var On=x(),Hi=(r,e)=>{let t=On(r,null,!0),n=On(e,null,!0),s=t.compare(n);if(s===0)return null;let o=s>0,a=o?t:n,c=o?n:t,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l)return!c.patch&&!c.minor?"major":a.patch?"patch":a.minor?"minor":"major";let u=l?"pre":"";return t.major!==n.major?u+"major":t.minor!==n.minor?u+"minor":t.patch!==n.patch?u+"patch":"prerelease"};vn.exports=Hi});var _n=f((Zf,Rn)=>{i();var Vi=b(),Bi=(r,e)=>new Vi(r,e).major;Rn.exports=Bi});var Pn=f((ep,wn)=>{i();var Yi=b(),zi=(r,e)=>new Yi(r,e).minor;wn.exports=zi});var An=f((tp,$n)=>{i();var Wi=b(),Ki=(r,e)=>new Wi(r,e).patch;$n.exports=Ki});var Tn=f((sp,Nn)=>{i();var Ji=x(),Zi=(r,e)=>{let t=Ji(r,e);return t&&t.prerelease.length?t.prerelease:null};Nn.exports=Zi});var $=f((ip,Sn)=>{i();var Ln=b(),Qi=(r,e,t)=>new Ln(r,t).compare(new Ln(e,t));Sn.exports=Qi});var qn=f((up,In)=>{i();var ea=$(),ra=(r,e,t)=>ea(e,r,t);In.exports=ra});var Cn=f((cp,xn)=>{i();var ta=$(),na=(r,e)=>ta(r,e,!0);xn.exports=na});var we=f((pp,jn)=>{i();var Dn=b(),sa=(r,e,t)=>{let n=new Dn(r,t),s=new Dn(e,t);return n.compare(s)||n.compareBuild(s)};jn.exports=sa});var Mn=f((hp,Gn)=>{i();var oa=we(),ia=(r,e)=>r.sort((t,n)=>oa(t,n,e));Gn.exports=ia});var kn=f((Ep,Un)=>{i();var aa=we(),ua=(r,e)=>r.sort((t,n)=>aa(n,t,e));Un.exports=ua});var J=f((yp,Xn)=>{i();var la=$(),ca=(r,e,t)=>la(r,e,t)>0;Xn.exports=ca});var Pe=f((vp,Fn)=>{i();var fa=$(),pa=(r,e,t)=>fa(r,e,t)<0;Fn.exports=pa});var mr=f((Rp,Hn)=>{i();var da=$(),ha=(r,e,t)=>da(r,e,t)===0;Hn.exports=ha});var yr=f((wp,Vn)=>{i();var ga=$(),Ea=(r,e,t)=>ga(r,e,t)!==0;Vn.exports=Ea});var $e=f(($p,Bn)=>{i();var ma=$(),ya=(r,e,t)=>ma(r,e,t)>=0;Bn.exports=ya});var Ae=f((Np,Yn)=>{i();var Oa=$(),va=(r,e,t)=>Oa(r,e,t)<=0;Yn.exports=va});var Or=f((Lp,zn)=>{i();var ba=mr(),Ra=yr(),_a=J(),wa=$e(),Pa=Pe(),$a=Ae(),Aa=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return ba(r,t,n);case"!=":return Ra(r,t,n);case">":return _a(r,t,n);case">=":return wa(r,t,n);case"<":return Pa(r,t,n);case"<=":return $a(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};zn.exports=Aa});var Kn=f((Ip,Wn)=>{i();var Na=b(),Ta=x(),{safeRe:Ne,t:Te}=M(),La=(r,e)=>{if(r instanceof Na)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Ne[Te.COERCEFULL]:Ne[Te.COERCE]);else{let l=e.includePrerelease?Ne[Te.COERCERTLFULL]:Ne[Te.COERCERTL],E;for(;(E=l.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||E.index+E[0].length!==t.index+t[0].length)&&(t=E),l.lastIndex=E.index+E[1].length+E[2].length;l.lastIndex=-1}if(t===null)return null;let n=t[2],s=t[3]||"0",o=t[4]||"0",a=e.includePrerelease&&t[5]?`-${t[5]}`:"",c=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Ta(`${n}.${s}.${o}${a}${c}`,e)};Wn.exports=La});var Zn=f((xp,Jn)=>{i();var vr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Jn.exports=vr});var A=f((Dp,ts)=>{i();var Sa=/\s+/g,br=class r{constructor(e,t){if(t=qa(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Rr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Sa," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!es(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Ua(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Ga)|(this.options.loose&&Ma))+":"+e,s=Qn.get(n);if(s)return s;let o=this.options.loose,a=o?P[R.HYPHENRANGELOOSE]:P[R.HYPHENRANGE];e=e.replace(a,Ka(this.options.includePrerelease)),v("hyphen replace",e),e=e.replace(P[R.COMPARATORTRIM],Ca),v("comparator trim",e),e=e.replace(P[R.TILDETRIM],Da),v("tilde trim",e),e=e.replace(P[R.CARETTRIM],ja),v("caret trim",e);let c=e.split(" ").map(p=>ka(p,this.options)).join(" ").split(/\s+/).map(p=>Wa(p,this.options));o&&(c=c.filter(p=>(v("loose invalid filter",p,this.options),!!p.match(P[R.COMPARATORLOOSE])))),v("range list",c);let l=new Map,E=c.map(p=>new Rr(p,this.options));for(let p of E){if(es(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let u=[...l.values()];return Qn.set(n,u),u}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>rs(n,t)&&e.set.some(s=>rs(s,t)&&n.every(o=>s.every(a=>o.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new xa(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Ja(this.set[t],e,this.options))return!0;return!1}};ts.exports=br;var Ia=Zn(),Qn=new Ia,qa=be(),Rr=Z(),v=K(),xa=b(),{safeRe:P,t:R,comparatorTrimReplace:Ca,tildeTrimReplace:Da,caretTrimReplace:ja}=M(),{FLAG_INCLUDE_PRERELEASE:Ga,FLAG_LOOSE:Ma}=W(),es=r=>r.value==="<0.0.0-0",Ua=r=>r.value==="",rs=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(o=>s.intersects(o,e)),s=n.pop();return t},ka=(r,e)=>(v("comp",r,e),r=Ha(r,e),v("caret",r),r=Xa(r,e),v("tildes",r),r=Ba(r,e),v("xrange",r),r=za(r,e),v("stars",r),r),_=r=>!r||r.toLowerCase()==="x"||r==="*",Xa=(r,e)=>r.trim().split(/\s+/).map(t=>Fa(t,e)).join(" "),Fa=(r,e)=>{let t=e.loose?P[R.TILDELOOSE]:P[R.TILDE];return r.replace(t,(n,s,o,a,c)=>{v("tilde",r,n,s,o,a,c);let l;return _(s)?l="":_(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:_(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(v("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,v("tilde return",l),l})},Ha=(r,e)=>r.trim().split(/\s+/).map(t=>Va(t,e)).join(" "),Va=(r,e)=>{v("caret",r,e);let t=e.loose?P[R.CARETLOOSE]:P[R.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,o,a,c,l)=>{v("caret",r,s,o,a,c,l);let E;return _(o)?E="":_(a)?E=`>=${o}.0.0${n} <${+o+1}.0.0-0`:_(c)?o==="0"?E=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(v("replaceCaret pr",l),o==="0"?a==="0"?E=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(v("no pr"),o==="0"?a==="0"?E=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),v("caret return",E),E})},Ba=(r,e)=>(v("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ya(t,e)).join(" ")),Ya=(r,e)=>{r=r.trim();let t=e.loose?P[R.XRANGELOOSE]:P[R.XRANGE];return r.replace(t,(n,s,o,a,c,l)=>{v("xRange",r,n,s,o,a,c,l);let E=_(o),u=E||_(a),p=u||_(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",E?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(u&&(a=0),c=0,s===">"?(s=">=",u?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",u?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),v("xRange return",n),n})},za=(r,e)=>(v("replaceStars",r,e),r.trim().replace(P[R.STAR],"")),Wa=(r,e)=>(v("replaceGTE0",r,e),r.trim().replace(P[e.includePrerelease?R.GTE0PRE:R.GTE0],"")),Ka=r=>(e,t,n,s,o,a,c,l,E,u,p,m)=>(_(n)?t="":_(s)?t=`>=${n}.0.0${r?"-0":""}`:_(o)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,_(E)?l="":_(u)?l=`<${+E+1}.0.0-0`:_(p)?l=`<${E}.${+u+1}.0-0`:m?l=`<=${E}.${u}.${p}-${m}`:r?l=`<${E}.${u}.${+p+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),Ja=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(v(r[n].semver),r[n].semver!==Rr.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Z=f((Gp,us)=>{i();var Q=Symbol("SemVer ANY"),Pr=class r{static get ANY(){return Q}constructor(e,t){if(t=ns(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),wr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Q?this.value="":this.value=this.operator+this.semver.version,wr("comp",this)}parse(e){let t=this.options.loose?ss[os.COMPARATORLOOSE]:ss[os.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new is(n[2],this.options.loose):this.semver=Q}toString(){return this.value}test(e){if(wr("Comparator.test",e,this.options.loose),this.semver===Q||e===Q)return!0;if(typeof e=="string")try{e=new is(e,this.options)}catch{return!1}return _r(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new as(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new as(this.value,t).test(e.semver):(t=ns(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||_r(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||_r(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};us.exports=Pr;var ns=be(),{safeRe:ss,t:os}=M(),_r=Or(),wr=K(),is=b(),as=A()});var ee=f((Up,ls)=>{i();var Za=A(),Qa=(r,e,t)=>{try{e=new Za(e,t)}catch{return!1}return e.test(r)};ls.exports=Qa});var fs=f((Xp,cs)=>{i();var eu=A(),ru=(r,e)=>new eu(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));cs.exports=ru});var ds=f((Hp,ps)=>{i();var tu=b(),nu=A(),su=(r,e,t)=>{let n=null,s=null,o=null;try{o=new nu(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new tu(n,t))}),n};ps.exports=su});var gs=f((Bp,hs)=>{i();var ou=b(),iu=A(),au=(r,e,t)=>{let n=null,s=null,o=null;try{o=new iu(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new ou(n,t))}),n};hs.exports=au});var ys=f((zp,ms)=>{i();var $r=b(),uu=A(),Es=J(),lu=(r,e)=>{r=new uu(r,e);let t=new $r("0.0.0");if(r.test(t)||(t=new $r("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],o=null;s.forEach(a=>{let c=new $r(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Es(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!t||Es(t,o))&&(t=o)}return t&&r.test(t)?t:null};ms.exports=lu});var vs=f((Kp,Os)=>{i();var cu=A(),fu=(r,e)=>{try{return new cu(r,e).range||"*"}catch{return null}};Os.exports=fu});var Le=f((Zp,ws)=>{i();var pu=b(),_s=Z(),{ANY:du}=_s,hu=A(),gu=ee(),bs=J(),Rs=Pe(),Eu=Ae(),mu=$e(),yu=(r,e,t,n)=>{r=new pu(r,n),e=new hu(e,n);let s,o,a,c,l;switch(t){case">":s=bs,o=Eu,a=Rs,c=">",l=">=";break;case"<":s=Rs,o=mu,a=bs,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(gu(r,e,n))return!1;for(let E=0;E<e.set.length;++E){let u=e.set[E],p=null,m=null;if(u.forEach(g=>{g.semver===du&&(g=new _s(">=0.0.0")),p=p||g,m=m||g,s(g.semver,p.semver,n)?p=g:a(g.semver,m.semver,n)&&(m=g)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(r,m.semver))return!1;if(m.operator===l&&a(r,m.semver))return!1}return!0};ws.exports=yu});var $s=f((ed,Ps)=>{i();var Ou=Le(),vu=(r,e,t)=>Ou(r,e,">",t);Ps.exports=vu});var Ns=f((td,As)=>{i();var bu=Le(),Ru=(r,e,t)=>bu(r,e,"<",t);As.exports=Ru});var Ss=f((sd,Ls)=>{i();var Ts=A(),_u=(r,e,t)=>(r=new Ts(r,t),e=new Ts(e,t),r.intersects(e,t));Ls.exports=_u});var qs=f((id,Is)=>{i();var wu=ee(),Pu=$();Is.exports=(r,e,t)=>{let n=[],s=null,o=null,a=r.sort((u,p)=>Pu(u,p,t));for(let u of a)wu(u,e,t)?(o=u,s||(s=u)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[u,p]of n)u===p?c.push(u):!p&&u===a[0]?c.push("*"):p?u===a[0]?c.push(`<=${p}`):c.push(`${u} - ${p}`):c.push(`>=${u}`);let l=c.join(" || "),E=typeof e.raw=="string"?e.raw:String(e);return l.length<E.length?l:e}});var Ms=f((ud,Gs)=>{i();var xs=A(),Nr=Z(),{ANY:Ar}=Nr,re=ee(),Tr=$(),$u=(r,e,t={})=>{if(r===e)return!0;r=new xs(r,t),e=new xs(e,t);let n=!1;e:for(let s of r.set){for(let o of e.set){let a=Nu(s,o,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Au=[new Nr(">=0.0.0-0")],Cs=[new Nr(">=0.0.0")],Nu=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Ar){if(e.length===1&&e[0].semver===Ar)return!0;t.includePrerelease?r=Au:r=Cs}if(e.length===1&&e[0].semver===Ar){if(t.includePrerelease)return!0;e=Cs}let n=new Set,s,o;for(let g of r)g.operator===">"||g.operator===">="?s=Ds(s,g,t):g.operator==="<"||g.operator==="<="?o=js(o,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&o){if(a=Tr(s.semver,o.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let g of n){if(s&&!re(g,String(s),t)||o&&!re(g,String(o),t))return null;for(let O of e)if(!re(g,String(O),t))return!1;return!0}let c,l,E,u,p=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",E=E||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(c=Ds(s,g,t),c===g&&c!==s)return!1}else if(s.operator===">="&&!re(s.semver,String(g),t))return!1}if(o){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(l=js(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!re(o.semver,String(g),t))return!1}if(!g.operator&&(o||s)&&a!==0)return!1}return!(s&&E&&!o&&a!==0||o&&u&&!s&&a!==0||m||p)},Ds=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},js=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Gs.exports=$u});var Fs=f((cd,Xs)=>{i();var Lr=M(),Us=W(),Tu=b(),ks=gr(),Lu=x(),Su=dn(),Iu=gn(),qu=yn(),xu=bn(),Cu=_n(),Du=Pn(),ju=An(),Gu=Tn(),Mu=$(),Uu=qn(),ku=Cn(),Xu=we(),Fu=Mn(),Hu=kn(),Vu=J(),Bu=Pe(),Yu=mr(),zu=yr(),Wu=$e(),Ku=Ae(),Ju=Or(),Zu=Kn(),Qu=Z(),el=A(),rl=ee(),tl=fs(),nl=ds(),sl=gs(),ol=ys(),il=vs(),al=Le(),ul=$s(),ll=Ns(),cl=Ss(),fl=qs(),pl=Ms();Xs.exports={parse:Lu,valid:Su,clean:Iu,inc:qu,diff:xu,major:Cu,minor:Du,patch:ju,prerelease:Gu,compare:Mu,rcompare:Uu,compareLoose:ku,compareBuild:Xu,sort:Fu,rsort:Hu,gt:Vu,lt:Bu,eq:Yu,neq:zu,gte:Wu,lte:Ku,cmp:Ju,coerce:Zu,Comparator:Qu,Range:el,satisfies:rl,toComparators:tl,maxSatisfying:nl,minSatisfying:sl,minVersion:ol,validRange:il,outside:al,gtr:ul,ltr:ll,intersects:cl,simplifyRange:fl,subset:pl,SemVer:Tu,re:Lr.re,src:Lr.src,tokens:Lr.t,SEMVER_SPEC_VERSION:Us.SEMVER_SPEC_VERSION,RELEASE_TYPES:Us.RELEASE_TYPES,compareIdentifiers:ks.compareIdentifiers,rcompareIdentifiers:ks.rcompareIdentifiers}});var Vs=f((pd,Hs)=>{"use strict";i();var Sr=class r extends Error{constructor(e){super(r._prepareSuperMessage(e)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,r)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}},dl=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Ir=({from:r,seen:e,to_:t,forceEnumerable:n})=>{let s=t||(Array.isArray(r)?[]:{});e.push(r);for(let[o,a]of Object.entries(r))if(typeof a!="function"){if(!a||typeof a!="object"){s[o]=a;continue}if(!e.includes(r[o])){s[o]=Ir({from:r[o],seen:e.slice(),forceEnumerable:n});continue}s[o]="[Circular]"}for(let{property:o,enumerable:a}of dl)typeof r[o]=="string"&&Object.defineProperty(s,o,{value:r[o],enumerable:n?!0:a,configurable:!0,writable:!0});return s},hl=r=>typeof r=="object"&&r!==null?Ir({from:r,seen:[],forceEnumerable:!0}):typeof r=="function"?`[Function: ${r.name||"anonymous"}]`:r,gl=r=>{if(r instanceof Error)return r;if(typeof r=="object"&&r!==null&&!Array.isArray(r)){let e=new Error;return Ir({from:r,seen:[],to_:e}),e}return new Sr(r)};Hs.exports={serializeError:hl,deserializeError:gl}});var Ie=f(Se=>{"use strict";i();Object.defineProperty(Se,"__esModule",{value:!0});Se.default=void 0;var Bs=Vs(),El=ue(),ml=yl(z());function yl(r){return r&&r.__esModule?r:{default:r}}var T=ml.default.child({namespace:"Agent"}),Ol=0,qr=class{constructor(e,t,n,s,o){this.fallbackAgent=s,this.isProxyConfigured=e,this.mustUrlUseProxy=t,this.getUrlProxy=n,this.socketConnectionTimeout=o}addRequest(e,t){let n;if(e.path.startsWith("http://")||e.path.startsWith("https://")?n=e.path:n=this.protocol+"//"+(t.hostname||t.host)+(t.port===80||t.port===443?"":":"+t.port)+e.path,!this.isProxyConfigured()){T.trace({destination:n},"not proxying request; GLOBAL_AGENT.HTTP_PROXY is not configured"),this.fallbackAgent.addRequest(e,t);return}if(!this.mustUrlUseProxy(n)){T.trace({destination:n},"not proxying request; url matches GLOBAL_AGENT.NO_PROXY"),this.fallbackAgent.addRequest(e,t);return}let s=Ol++,o=this.getUrlProxy(n);this.protocol==="http:"&&(e.path=n,o.authorization&&e.setHeader("proxy-authorization","Basic "+Buffer.from(o.authorization).toString("base64"))),T.trace({destination:n,proxy:"http://"+o.hostname+":"+o.port,requestId:s},"proxying request"),e.on("error",c=>{T.error({error:(0,Bs.serializeError)(c)},"request error")}),e.once("response",c=>{T.trace({headers:c.headers,requestId:s,statusCode:c.statusCode},"proxying response")}),e.shouldKeepAlive=!1;let a={host:t.hostname||t.host,port:t.port||80,proxy:o,tls:{}};this.protocol==="https:"&&(a.tls={ca:t.ca,cert:t.cert,ciphers:t.ciphers,clientCertEngine:t.clientCertEngine,crl:t.crl,dhparam:t.dhparam,ecdhCurve:t.ecdhCurve,honorCipherOrder:t.honorCipherOrder,key:t.key,passphrase:t.passphrase,pfx:t.pfx,rejectUnauthorized:t.rejectUnauthorized,secureOptions:t.secureOptions,secureProtocol:t.secureProtocol,servername:t.servername||a.host,sessionIdContext:t.sessionIdContext},typeof process.env.NODE_TLS_REJECT_UNAUTHORIZED=="string"&&(0,El.boolean)(process.env.NODE_TLS_REJECT_UNAUTHORIZED)===!1&&(a.tls.rejectUnauthorized=!1)),this.createConnection(a,(c,l)=>{T.trace({target:a},"connecting"),l&&(l.setTimeout(this.socketConnectionTimeout,()=>{l.destroy()}),l.once("connect",()=>{T.trace({target:a},"connected"),l.setTimeout(0)}),l.once("secureConnect",()=>{T.trace({target:a},"connected (secure)"),l.setTimeout(0)})),c?e.emit("error",c):(T.debug("created socket"),l.on("error",E=>{T.error({error:(0,Bs.serializeError)(E)},"socket error")}),e.onSocket(l))})}},vl=qr;Se.default=vl});var zs=f(qe=>{"use strict";i();Object.defineProperty(qe,"__esModule",{value:!0});qe.default=void 0;var bl=Ys(N("net")),Rl=Ys(Ie());function Ys(r){return r&&r.__esModule?r:{default:r}}var xr=class extends Rl.default{constructor(...e){super(...e),this.protocol="http:",this.defaultPort=80}createConnection(e,t){let n=bl.default.connect(e.proxy.port,e.proxy.hostname);t(null,n)}},_l=xr;qe.default=_l});var Ws=f(xe=>{"use strict";i();Object.defineProperty(xe,"__esModule",{value:!0});xe.default=void 0;var wl=Dr(N("net")),Pl=Dr(N("tls")),$l=Dr(Ie());function Dr(r){return r&&r.__esModule?r:{default:r}}var Cr=class extends $l.default{constructor(...e){super(...e),this.protocol="https:",this.defaultPort=443}createConnection(e,t){let n=wl.default.connect(e.proxy.port,e.proxy.hostname);n.on("error",o=>{t(o)}),n.once("data",()=>{let o=Pl.default.connect({...e.tls,socket:n});t(null,o)});let s="";s+="CONNECT "+e.host+":"+e.port+` HTTP/1.1\r
|
|
3
3
|
`,s+="Host: "+e.host+":"+e.port+`\r
|
|
4
4
|
`,e.proxy.authorization&&(s+="Proxy-Authorization: Basic "+Buffer.from(e.proxy.authorization).toString("base64")+`\r
|
|
5
5
|
`),s+=`\r
|
|
6
|
-
`,n.write(s)}},
|
|
6
|
+
`,n.write(s)}},Al=Cr;xe.default=Al});var Ks=f(te=>{"use strict";i();Object.defineProperty(te,"__esModule",{value:!0});Object.defineProperty(te,"Agent",{enumerable:!0,get:function(){return Nl.default}});Object.defineProperty(te,"HttpProxyAgent",{enumerable:!0,get:function(){return Tl.default}});Object.defineProperty(te,"HttpsProxyAgent",{enumerable:!0,get:function(){return Ll.default}});var Nl=jr(Ie()),Tl=jr(zs()),Ll=jr(Ws());function jr(r){return r&&r.__esModule?r:{default:r}}});var Qs=f((Ce,Zs)=>{"use strict";i();Object.defineProperty(Ce,"__esModule",{value:!0});function Sl(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Js(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Il(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}function ql(r){function e(){r.apply(this,arguments)}return e.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r,e}var xl=(function(r){Il(e,r);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";Sl(this,e);var n=Js(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),Js(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(t).stack,writable:!0}),n)}return e})(ql(Error));Ce.default=xl;Zs.exports=Ce.default});var je=f(De=>{"use strict";i();Object.defineProperty(De,"__esModule",{value:!0});De.UnexpectedStateError=void 0;var Cl=Dl(Qs());function Dl(r){return r&&r.__esModule?r:{default:r}}var Gr=class extends Cl.default{constructor(e,t="UNEXPECTED_STATE_ERROR"){super(e),this.code=t}};De.UnexpectedStateError=Gr});var ro=f(Ge=>{"use strict";i();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.default=void 0;var jl=eo(N("http")),Gl=eo(N("https"));function eo(r){return r&&r.__esModule?r:{default:r}}var Ml=(r,e,t)=>(...n)=>{let s,o,a;return typeof n[0]=="string"||n[0]instanceof URL?(s=n[0],typeof n[1]=="function"?(o={},a=n[1]):(o={...n[1]},a=n[2])):(o={...n[0]},a=n[1]),t?o.agent=e:(o.agent||(o.agent=e),(o.agent===jl.default.globalAgent||o.agent===Gl.default.globalAgent)&&(o.agent=e)),s?r(s,o,a):r(o,a)},Ul=Ml;Ge.default=Ul});var no=f((Ad,Ur)=>{"use strict";i();var kl=yo(),Mr=new Map;function to(r,e){e={caseSensitive:!1,...e};let t=r+JSON.stringify(e);if(Mr.has(t))return Mr.get(t);let n=r[0]==="!";n&&(r=r.slice(1)),r=kl(r).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${r}$`,e.caseSensitive?"":"i");return s.negated=n,Mr.set(t,s),s}Ur.exports=(r,e,t)=>{if(!(Array.isArray(r)&&Array.isArray(e)))throw new TypeError(`Expected two arrays, got ${typeof r} ${typeof e}`);if(e.length===0)return r;let n=e[0][0]==="!";e=e.map(o=>to(o,t));let s=[];for(let o of r){let a=n;for(let c of e)c.test(o)&&(a=!c.negated);a&&s.push(o)}return s};Ur.exports.isMatch=(r,e,t)=>{let n=Array.isArray(r)?r:[r],s=Array.isArray(e)?e:[e];return n.some(o=>s.every(a=>{let c=to(a,t),l=c.test(o);return c.negated?!l:l}))}});var oo=f(Me=>{"use strict";i();Object.defineProperty(Me,"__esModule",{value:!0});Me.default=void 0;var Xl=N("url"),Fl=Hl(no()),so=je();function Hl(r){return r&&r.__esModule?r:{default:r}}var Vl=(r,e)=>{let t=(0,Xl.parse)(r),n=e.split(/[\s,]+/);for(let s of n){let o=s.replace(/^(?<leadingDot>\.)/,"*").match(/^(?<hostname>.+?)(?::(?<port>\d+))?$/);if(!o||!o.groups)throw new so.UnexpectedStateError("Invalid NO_PROXY pattern.");if(!o.groups.hostname)throw new so.UnexpectedStateError("NO_PROXY entry pattern must include hostname. Use * to match any hostname.");if(Fl.default.isMatch(t.hostname,o.groups.hostname)&&(!o.groups||!o.groups.port||t.port&&t.port===o.groups.port))return!0}return!1},Bl=Vl;Me.default=Bl});var io=f(Ue=>{"use strict";i();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=void 0;var Yl=N("url"),kr=je(),zl=r=>{let e=(0,Yl.parse)(r);if(e.query!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have query.");if(e.hash!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have hash.");if(e.protocol!=="http:")throw new kr.UnexpectedStateError('Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".');let t=80;return e.port&&(t=Number.parseInt(e.port,10)),{authorization:e.auth||null,hostname:e.hostname,port:t}},Wl=zl;Ue.default=Wl});var ao=f(ne=>{"use strict";i();Object.defineProperty(ne,"__esModule",{value:!0});Object.defineProperty(ne,"bindHttpMethod",{enumerable:!0,get:function(){return Kl.default}});Object.defineProperty(ne,"isUrlMatchingNoProxy",{enumerable:!0,get:function(){return Jl.default}});Object.defineProperty(ne,"parseProxyUrl",{enumerable:!0,get:function(){return Zl.default}});var Kl=Xr(ro()),Jl=Xr(oo()),Zl=Xr(io());function Xr(r){return r&&r.__esModule?r:{default:r}}});var Fr=f(ke=>{"use strict";i();Object.defineProperty(ke,"__esModule",{value:!0});ke.default=void 0;var Ql=ec(z());function ec(r){return r&&r.__esModule?r:{default:r}}var rc=Ql.default.child({namespace:"createProxyController"}),tc=["HTTP_PROXY","HTTPS_PROXY","NO_PROXY"],nc=()=>new Proxy({HTTP_PROXY:null,HTTPS_PROXY:null,NO_PROXY:null},{set:(r,e,t)=>{if(!tc.includes(e))throw new Error('Cannot set an unmapped property "'+e+'".');return r[e]=t,rc.info({change:{name:e,value:t},newConfiguration:r},"configuration changed"),!0}}),sc=nc;ke.default=sc});var po=f(Xe=>{"use strict";i();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=void 0;var X=se(N("http")),F=se(N("https")),oc=ue(),uo=se(Fs()),ic=se(z()),lo=Ks(),ac=je(),k=ao(),uc=se(Fr());function se(r){return r&&r.__esModule?r:{default:r}}var lc=X.default.get,cc=X.default.request,fc=F.default.get,pc=F.default.request,co=ic.default.child({namespace:"createGlobalProxyAgent"}),fo={environmentVariableNamespace:void 0,forceGlobalAgent:void 0,socketConnectionTimeout:6e4},dc=r=>{let e=Object.keys(r),t={};for(let n of e){let s=r[n];s!==void 0&&(t[n]=s)}return t},hc=r=>{let e=process.env;return{...{environmentVariableNamespace:typeof e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE=="string"?e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE:"GLOBAL_AGENT_",forceGlobalAgent:typeof e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT=="string"?(0,oc.boolean)(e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT):!0,socketConnectionTimeout:typeof e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT=="string"?Number.parseInt(e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT,10):fo.socketConnectionTimeout},...dc(r)}},gc=(r=fo)=>{let e=hc(r),t=(0,uc.default)();t.HTTP_PROXY=process.env[e.environmentVariableNamespace+"HTTP_PROXY"]||null,t.HTTPS_PROXY=process.env[e.environmentVariableNamespace+"HTTPS_PROXY"]||null,t.NO_PROXY=process.env[e.environmentVariableNamespace+"NO_PROXY"]||null,co.info({configuration:e,state:t},"global agent has been initialized");let n=p=>m=>p()?t.NO_PROXY?!(0,k.isUrlMatchingNoProxy)(m,t.NO_PROXY):!0:!1,s=p=>()=>{let m=p();if(!m)throw new ac.UnexpectedStateError("HTTP(S) proxy must be configured.");return(0,k.parseProxyUrl)(m)},o=()=>t.HTTP_PROXY,a=class extends lo.HttpProxyAgent{constructor(){super(()=>o(),n(o),s(o),X.default.globalAgent,e.socketConnectionTimeout)}},c=new a,l=()=>t.HTTPS_PROXY||t.HTTP_PROXY,E=class extends lo.HttpsProxyAgent{constructor(){super(()=>l(),n(l),s(l),F.default.globalAgent,e.socketConnectionTimeout)}},u=new E;return uo.default.gte(process.version,"v11.7.0")&&(X.default.globalAgent=c,F.default.globalAgent=u),uo.default.gte(process.version,"v10.0.0")?(X.default.get=(0,k.bindHttpMethod)(lc,c,e.forceGlobalAgent),X.default.request=(0,k.bindHttpMethod)(cc,c,e.forceGlobalAgent),F.default.get=(0,k.bindHttpMethod)(fc,u,e.forceGlobalAgent),F.default.request=(0,k.bindHttpMethod)(pc,u,e.forceGlobalAgent)):co.warn("attempt to initialize global-agent in unsupported Node.js version was ignored"),t},Ec=gc;Xe.default=Ec});var Hr=f(Fe=>{"use strict";i();Object.defineProperty(Fe,"__esModule",{value:!0});Object.defineProperty(Fe,"createGlobalProxyAgent",{enumerable:!0,get:function(){return mc.default}});Object.defineProperty(Fe,"createProxyController",{enumerable:!0,get:function(){return yc.default}});var mc=ho(po()),yc=ho(Fr());function ho(r){return r&&r.__esModule?r:{default:r}}});var go=f(He=>{"use strict";i();Object.defineProperty(He,"__esModule",{value:!0});He.default=void 0;var Oc=bc(z()),vc=Hr();function bc(r){return r&&r.__esModule?r:{default:r}}var Rc=Oc.default.child({namespace:"bootstrap"}),_c=r=>global.GLOBAL_AGENT?(Rc.warn("found global.GLOBAL_AGENT; second attempt to bootstrap global-agent was ignored"),!1):(global.GLOBAL_AGENT=(0,vc.createGlobalProxyAgent)(r),!0),wc=_c;He.default=wc});var Eo=f(Vr=>{"use strict";i();Object.defineProperty(Vr,"__esModule",{value:!0});Object.defineProperty(Vr,"bootstrap",{enumerable:!0,get:function(){return Pc.default}});var Pc=$c(go());function $c(r){return r&&r.__esModule?r:{default:r}}});var Tc=f(Ve=>{"use strict";i();Object.defineProperty(Ve,"__esModule",{value:!0});Object.defineProperty(Ve,"bootstrap",{enumerable:!0,get:function(){return Ac.bootstrap}});Object.defineProperty(Ve,"createGlobalProxyAgent",{enumerable:!0,get:function(){return Nc.createGlobalProxyAgent}});var Ac=Eo(),Nc=Hr()});i();import bo from"fs";function zr(r){let e=r instanceof Error?r.stack??r.message:String(r);bo.writeSync(process.stderr.fd,`${e}
|
|
7
|
+
`)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-ZUTBXY7U.js");if(e()){let{handler:n}=await import("./error-FBSXLW22.js");await n(r);return}let{FatalError:t}=await import("./error-FBSXLW22.js");if(r instanceof t){let{renderFatalError:n}=await import("./ui-TEZZM7SE.js");n(r)}else zr(r)}catch{zr(r)}}export{Sc as a,Tc as b};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{a as E}from"./chunk-HSTNTHWM.js";import{a as u,b as U,c as W}from"./chunk-HB3MJYBK.js";import{a as M}from"./chunk-RCIU7NHA.js";import{b as P}from"./chunk-QQN4PJZD.js";import{D as T,F as j,I as B,L as O,a as D,d as g,k as d,l as x,m as f,n as I,o as b,q as L,t as N}from"./chunk-YX5GRXRS.js";import{b as R}from"./chunk-DGMRL5DQ.js";import{b as F}from"./chunk-FW5HGFSZ.js";import{A as C,B as A,y as S,z as $}from"./chunk-SKRUMRB4.js";import{i as _}from"./chunk-FCULF3JA.js";import{ka as w}from"./chunk-YJWNM4XO.js";import{b as te}from"./chunk-JA2QZ635.js";import{e as ee,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();var Y={high:"High",medium:"Medium",low:"Low"},ne={executed:"passed",not_applicable:"not applicable",unresolved:"unresolved"},se={executed:"executed",not_applicable:"not applicable",unresolved:"unresolved"},p=["deterministic","agent"],ie={deterministic:"deterministic-findings.json",agent:"agent-findings.json"},H=3,oe="Agent findings were recorded for a different scope than the latest scan.",q="agent result stale",re="The agent result is older than the deterministic result, so both are shown.",ce={info:S,success:$,warning:C,error:A};function J(e){for(let t of ue(e))ce[t.type](t.options)}function ue(e){let{checks:t}=e.result,n=t.filter(i=>i.status==="unresolved"&&d(i).length===0),s=t.filter(i=>i.status!=="unresolved"&&d(i).length===0),o=t.filter(i=>d(i).length>0);return[...n.length>0?[Se(n,e.verbose)]:[],...s.length>0?[$e(s,e.verbose)]:[],...o.map(i=>Ae(i,e.verbose,e.now)),ve(de(e))]}function de(e){let{result:t}=e,n=t.sources.deterministic!==null||t.sources.agent!==null,s=b(t.checks),o=t.sources.deterministic?.document,i=t.blocking.blockedChecks>0,r=t.checks.filter(f).length;return{type:ae(t.checks,s,n),headline:fe(t.checks,s,n),...t.filter&&n?{filterLine:`Showing ${t.checks.length} of ${t.allChecks.length} checks (--check-id).`}:{},checksWithFindings:t.checks.filter(c=>d(c).length>0).map(pe),otherChecks:ge(s),...r>0?{staleAgentResults:le(r)}:{},...o?{coverage:be(o)}:{},scopeLines:me(t.sources),...t.scopeDiffers?{scopeNote:oe}:{},resultsFiles:{directory:t.resultsDirectory,rows:p.map(c=>ke(c,t.sources[c]?.document,e.now))},...i?{blocking:`${u(t.blocking.blockedChecks,"check")} at or above ${t.blocking.level} (--blocking ${t.blocking.level}).`}:{nextSteps:ye(t,s,n,r,e.commands)}}}function le(e){let t=e===1?"shows":"show";return`${u(e,"check")} ${t} both sources because the agent results are older than the deterministic results.`}function ae(e,t,n){return n?e.some(s=>s.severity==="high"&&d(s).length>0)?"error":t.withFindings>0||t.unresolved>0?"warning":"success":"info"}function fe(e,t,n){if(!n)return"No app security check results to review.";if(t.withFindings===0)return`No findings in ${u(e.length,"check")}.`;let s=t.unresolved>0?` ${u(t.unresolved,"check")} unresolved.`:"";return`${U(t)}.${s}`}function pe(e){return{severity:Y[e.severity],id:e.id,counts:he(e)}}function he(e){let t=d(e);return p.map(n=>[n,t.filter(s=>s.source===n).length]).filter(([,n])=>n>0).map(([n,s])=>`${s} ${n}`).join(", ")}function ge(e){return[h(W(e)),V(e)].filter(t=>t!=="")}function V(e){return h([e.suppressed>0?`${u(e.suppressed,"finding")} suppressed`:void 0,e.superseded>0?`${u(e.superseded,"finding")} superseded`:void 0])}function m(e){return V(b([e]))}function h(e){return e.filter(t=>t!==void 0).join(" \xB7 ")}function be(e){let t=e.coverage.files_skipped,{too_large:n,unreadable:s}=L(t),o=[n>0?`${n} too large`:void 0,s>0?`${s} unreadable`:void 0].filter(l=>l!==void 0),i=t.length===0?"none skipped":`${t.length} skipped (${o.join(", ")})`,r=e.detection.languages.filter(l=>l.support==="unsupported"),c=r.length===0?"":` Unsupported ${r.length===1?"language":"languages"}: ${r.map(l=>`${l.name} (${u(l.files.length,"file")})`).join(", ")}.`;return`Deterministic coverage: ${u(e.coverage.files_scanned,"file")} scanned, ${i}.${c}`}function K(e){let t=[...e.include_dirs.map(n=>`--include-dir ${n}`),...e.excludes.map(n=>`--exclude ${n}`),...e.no_git_ignore?["--no-git-ignore"]:[]];return t.length===0?"none":t.join(" ")}function me({deterministic:e,agent:t}){return[...e?[`Scan directories: ${e.document.coverage.scan_directories.map(({directory:n})=>n).join(", ")}`,`Scan scope: ${K(e.document.coverage.scope)}`]:[],...t?[`Scope reported by the agent: ${K(t.document.scope)}`]:[]]}function ke(e,t,n){let s=ie[e];return t?{name:s,updated:z(t.generated_at,n),engine:t.engine.version}:{name:s,updated:"not found"}}function z(e,t){let n=Date.parse(e);return Number.isNaN(n)?"unknown":w(new Date(n),t)}function ye(e,t,n,s,o){let i={command:O(o.scan)};if(!n)return[["Run",i,"or have your coding agent run it."]];let r=[];if(t.withFindings>0){let c=["Fix the issues, then run",i,"again."];e.sources.agent===null?r.push(c,"For a deeper review, have your agent run the same command and record its findings."):s>0?r.push(c):r.push([...c,"To refresh agent findings, have your agent run the command and record its findings."])}return s>0?r.push(["Agent results are older than the deterministic results. Have your coding agent run",i,"and record its findings again to refresh them."]):t.withFindings===0&&e.sources.agent===null&&r.push(["For a deeper review, have your coding agent run",i,{char:"."}]),r}function ve(e){let t=[];return e.filterLine&&t.push({body:{subdued:e.filterLine}}),e.checksWithFindings.length>0&&t.push({title:"Checks with findings",body:{tabularData:e.checksWithFindings.map(n=>[n.severity,n.id,n.counts]),firstColumnSubdued:!0}}),e.otherChecks.length>0&&t.push({title:"Other checks",body:e.otherChecks.join(`
|
|
2
|
+
`)}),e.staleAgentResults&&t.push({body:e.staleAgentResults}),e.coverage&&t.push({body:{subdued:e.coverage}}),e.scopeLines.length>0&&t.push({body:{subdued:e.scopeLines.join(`
|
|
3
|
+
`)}}),e.scopeNote&&t.push({body:e.scopeNote}),t.push({title:`Results files in ${e.resultsFiles.directory}`,body:{tabularData:[["",{subdued:"Updated"},{subdued:"Engine"}],...e.resultsFiles.rows.map(we)]}}),e.blocking===void 0?e.nextSteps.length>0&&t.push({title:"Next steps",body:{list:{items:e.nextSteps}}}):t.push({title:"Blocking",body:e.blocking}),{type:e.type,options:{headline:e.headline,customSections:t}}}function we(e){return e.engine===void 0?[e.name,{subdued:e.updated}]:[e.name,e.updated,e.engine]}function Se(e,t){return{type:"warning",options:{headline:`${u(e.length,"check")} unresolved.`,customSections:e.flatMap(n=>[{title:`${n.id} \xB7 ${n.title}`,body:{tabularData:X(n,{withDispositions:!0}),firstColumnSubdued:!0}},...t?n.findings.map(s=>k(s,t,`${n.id} \xB7 `)):[]])}}}function $e(e,t){let n=e.filter(x).length,s=e.length-n;return{type:"info",options:{headline:[n>0?`${u(n,"check")} passed.`:void 0,s>0?`${u(s,"check")} not applicable.`:void 0].filter(i=>i!==void 0).join(" "),customSections:[{body:{tabularData:e.map(Ce)}},...t?e.flatMap(i=>i.findings.map(r=>k(r,t,`${i.id} \xB7 `))):[]]}}}function Ce(e){let t=m(e);return[e.id,h([ne[e.status],t===""?void 0:t,f(e)?q:void 0])]}function Ae(e,t,n){let s=m(e),o=t?e.findings:d(e);return{type:e.severity==="high"?"error":"warning",options:{headline:`${Y[e.severity]} \xB7 ${e.id} \xB7 ${e.title}`,...s===""?{}:{body:{subdued:s}},...e.docs_url?{link:{label:`${e.id} on shopify.dev`,url:e.docs_url}}:{},customSections:[..._e(e,n),...o.map(i=>k(i,t))]}}}function _e(e,t){if(f(e))return[{body:{tabularData:p.flatMap(r=>{let c=e.by_source[r];return c?[[r,Q(c),z(c.generated_at,t)]]:[]}),firstColumnSubdued:!0}},{body:{subdued:re}}];let{deterministic:n,agent:s}=e.by_source;return n!==null&&s!==null&&n.status!==s.status?[{body:{tabularData:X(e,{withDispositions:!1}),firstColumnSubdued:!0}}]:[]}function X(e,t){let n=f(e),s=p.flatMap(i=>{let r=e.by_source[i];if(!r)return[];let c=n&&i==="agent"?q:void 0;return[[i,h([Q(r),c])]]}),o=t.withDispositions?m(e):"";return o===""?s:[...s,["findings",o]]}function Q(e){let t=se[e.status];return e.reason?`${t} \u2014 ${e.reason.message}`:t}function k(e,t,n=""){let s=e.disposition==="active"?"":` (${e.disposition})`,o=[e.message];if(e.snippet&&o.push({subdued:`
|
|
4
|
+
Code: ${e.snippet}`}),e.source==="deterministic"){e.fix&&o.push({subdued:`
|
|
5
|
+
Fix: ${e.fix.description}`});let i=e.fix?.guide;i&&o.push({subdued:`
|
|
6
|
+
Guide: ${i}`})}else e.confidence&&o.push({subdued:`
|
|
7
|
+
Confidence: ${e.confidence}`}),e.reasoning&&o.push({subdued:`
|
|
8
|
+
Reasoning: ${t?e.reasoning:Fe(e.reasoning)}`});return t&&(o.push(...e.evidence.map(i=>({subdued:`
|
|
9
|
+
Evidence: ${G(i.location)}${i.quote?` \u2014 ${i.quote}`:""}`}))),I(e,e.source)&&e.suppression&&o.push({subdued:`
|
|
10
|
+
Suppressed: ${e.suppression.justification}`})),{title:`${n}${e.source} \xB7 ${G(e.location)}${s}`,body:o}}function Fe(e){let t=e.split(`
|
|
11
|
+
`);return t.length<=H?e:`${t.slice(0,H).join(`
|
|
12
|
+
`)}\u2026`}function G(e){return e.line===void 0?e.file:`${e.file}:${e.line}`}var Re={resolveSelection:j,loadResults:P,render:J,now:()=>new Date,setExitCode:e=>{process.exitCode=e},recordMetadata:M};function Ee(e){return e.blocking.blockedChecks>0}function De(e,t){let n=t.checkIds.length>0?{checkIds:t.checkIds}:null,s=e.sources.deterministic!==null||e.sources.agent!==null;n&&s&&Le(n.checkIds,e.checks);let o=n?e.checks.filter(i=>n.checkIds.includes(i.id)):e.checks;return{resultsDirectory:t.resultsDirectory,sources:e.sources,allChecks:e.checks,checks:o,filter:n,scopeDiffers:xe(e.sources),blocking:{level:t.blocking,blockedChecks:Ie(o,t.blocking)}}}function xe({deterministic:e,agent:t}){return!e||!t?!1:JSON.stringify(e.document.coverage.scope)!==JSON.stringify(t.document.scope)}function Ie(e,t){return t==="none"?0:e.filter(n=>d(n).length>0&&g[n.severity]>=g[t]).length}function Le(e,t){let n=new Set(t.map(i=>i.id)),s=e.filter(i=>!n.has(i));if(s.length===0)return;let o=s.length===1?"check ID":"check IDs";throw new _(`Unknown ${o}: ${s.join(", ")}.`,"Pass --check-id with one of the checks in the results files.",[],[{title:"Available check IDs",body:{list:{items:t.map(i=>i.id)}}}])}async function y(e,t=Re){let n=await t.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!1,validateClientIdFlag:!0}),s=await t.loadResults(n,e.directory),o=De(s,{resultsDirectory:N(n.appDirectory,T(n)).resultsDirectory,checkIds:e.checkIds,blocking:e.blocking});if(o.sources.deterministic!==null||o.sources.agent!==null){let i=o.allChecks.reduce((r,c)=>r+d(c).length,0);await t.recordMetadata({num_security_findings:i})}t.render({result:o,verbose:e.verbose,now:t.now(),commands:B(n,e.directory,s.sources.deterministic?.document.coverage.scope)}),Ee(o)&&t.setExitCode(1)}var Z=ee(te(),1);var v=class e extends F{static summary="Show the combined app security check results.";static descriptionWithMarkdown="Combines the deterministic results (`deterministic-findings.json`, written by `shopify app security check`) with the recorded agent results (`agent-findings.json`, written by `shopify app security record`) and shows one view of every check: its findings, status and source. Both files are in the results directory, `.shopify/app-security/<results key>/`. `--client-id` is checked against your Shopify account before any results are read, so it needs you to be logged in.\n\nThe summary shows the scan directories and the scope of the latest scan, and the scope the agent reported. It notes when the agent findings were recorded for a different scope than the latest scan; that doesn't change the exit code.\n\nThe agent results are optional. Use `--check-id` to narrow the review to specific checks, `--verbose` for full reasoning, evidence and suppressed findings, and `--blocking` to exit with code 1 when a check with findings is at or above a severity.";static description=this.descriptionForHelp();static flags={...R,...D,"check-id":Z.Flags.string({description:"Show only this check. Repeat the flag to show several checks.",env:"SHOPIFY_FLAG_CHECK_ID",multiple:!0}),...E};async run(){let{flags:t}=await this.parse(e);await y({directory:t.path,configName:t.config,clientId:t["client-id"],withoutAppConfig:!!t["without-app-config"],verbose:!!t.verbose,checkIds:t["check-id"]??[],blocking:t.blocking})}};export{v as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{b as U,c as w}from"./chunk-KLYJDAP6.js";import{c as O,e as T}from"./chunk-7ZSN2QT5.js";import{B as y,m as E,t as N,u as R,v as g,z as _}from"./chunk-6GA56I3E.js";import{q as S,s as h}from"./chunk-QAXFCAOV.js";import{a as s}from"./chunk-RGIUP4FW.js";import{S as F,W as C,z as x}from"./chunk-SKRUMRB4.js";import{i as v}from"./chunk-FCULF3JA.js";import{Cb as c,Eb as p,Kb as d,Nb as u,Ob as M,tb as D,wb as V,xb as P}from"./chunk-YJWNM4XO.js";import{d as J}from"./chunk-SGBLCVUX.js";import{p as $,q as A,r as L}from"./chunk-3VYOLEQE.js";import{a as H}from"./chunk-CX5CC6P5.js";import{e as B,g as I}from"./chunk-VKWPEFWQ.js";I();var Y=B(H());function j(){let e=V();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function fe(e={}){let n=L()??A(),o=P(n),t=D();if(J()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let r=j();if(!r)throw new Error("Could not determine the package manager");let[a,...i]=r.split(" ");if(!a)throw new Error("Could not determine the command to run");let l=g("@shopify/cli",s),q=l?`\u2728 New version of Shopify CLI available! (${s} \u2192 ${l})`:"\u2728 New version of Shopify CLI available!";d(p`${q}
|
|
2
|
+
Now upgrading by running: ${c.genericShellCommand(r)}...`),await F(a,i,{stdio:"inherit"});let f=await U();if(!f)throw new v("Couldn't verify the Shopify CLI version after upgrading.",p`Check the installed version by running ${c.genericShellCommand("shopify version")}.`);let k=l??s;if((0,Y.lt)(f,k))throw new v(`Failed to upgrade Shopify CLI. Expected to be on version ${k}, but version ${f} is now installed.`,"Your package manager may be resolving @shopify/cli from a registry with outdated versions. Check your npm registry configuration and try again.");x({headline:"Shopify CLI upgraded.",body:`You're now on version ${f}.`})}else if(o)await z(o,s);else throw new Error("Could not determine the local project directory")}function ge(){let e=s,n=g("@shopify/cli",e);if(!n){u("Auto-upgrade: No newer version available.");return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")return u("Auto-upgrade: Forcing auto-upgrade because of SHOPIFY_CLI_FORCE_AUTO_UPGRADE."),n;if(!h()){u("Auto-upgrade: Skipping because auto-upgrade is not enabled.");return}if(C()){u("Auto-upgrade: Skipping auto-upgrade in CI.");return}if(w(e)){u("Auto-upgrade: Skipping auto-upgrade for pre-release version.");return}return n}async function me(){try{let{notifications:e}=await O();return T(e,"",["autoupgrade"]).some(o=>o.type==="error")}catch{return!1}}async function he(){if(C()||w(s)||h())return;let e=g("@shopify/cli",s);e&&await S("warn-on-available-upgrade",{days:1},async()=>{M(K(e))})}function K(e,n=!1){let o=j(),t=o?p`💡 Version ${e} available! Run ${c.genericShellCommand(o)}`.value:p`💡 Version ${e} available!`.value;if(n){let r=`https://github.com/Shopify/cli/releases/tag/${e}`,a=p`⚠️ This is a major version — review breaking changes before upgrading:\n ${c.link(r,r)}`.value;return`${t}
|
|
3
|
+
|
|
4
|
+
${a}`}return t}async function z(e,n){let o=(await y(e)).content,t=o.dependencies??{},r=o.devDependencies??{},i={...t,...r}[await b()];if(!i){u("Auto-upgrade: CLI dependency not found in project dependencies, skipping local upgrade.");return}i.slice(0,1).match(/[\^~]/)&&(i=n);let l=await R(await b(),i);l?Z(i,l):X(i),await G("prod",t,e),await G("dev",r,e)}async function G(e,n,o){let t=[await b(),...await Q()].filter(a=>!!n[a]).map(a=>({name:a,version:"latest"})),r=await N(o);t.length>0&&await _(t,{packageManager:await E(o),type:e,directory:o,stdout:process.stdout,stderr:process.stderr,addToRootDirectory:r})}async function b(){return(await W()).name}async function Q(){return(await W())?.oclif?.plugins??[]}var m;async function W(){if(!m){let e=await y($(import.meta.url));m=m??e.content}return m}function X(e){d(p`You're on the latest version, ${c.yellow(e)}, no need to upgrade!`)}function Z(e,n){d(p`Upgrading CLI from ${c.yellow(e)} to ${c.yellow(n)}...`)}export{j as a,fe as b,ge as c,me as d,he as e,K as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./chunk-
|
|
1
|
+
import{d as s}from"./chunk-3VYOLEQE.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();import e from"node:path";import p from"node:os";import c from"node:process";var n=p.homedir(),a=p.tmpdir(),{env:i}=c,E=o=>{let t=e.join(n,"Library");return{data:e.join(t,"Application Support",o),config:e.join(t,"Preferences",o),cache:e.join(t,"Caches",o),log:e.join(t,"Logs",o),temp:e.join(a,o)}},A=o=>{let t=i.APPDATA||e.join(n,"AppData","Roaming"),_=i.LOCALAPPDATA||e.join(n,"AppData","Local");return{data:e.join(_,o,"Data"),config:e.join(t,o,"Config"),cache:e.join(_,o,"Cache"),log:e.join(_,o,"Log"),temp:e.join(a,o)}},S=o=>{let t=e.basename(n);return{data:e.join(i.XDG_DATA_HOME||e.join(n,".local","share"),o),config:e.join(i.XDG_CONFIG_HOME||e.join(n,".config"),o),cache:e.join(i.XDG_CACHE_HOME||e.join(n,".cache"),o),log:e.join(i.XDG_STATE_HOME||e.join(n,".local","state"),o),temp:e.join(a,t,o)}};function I(o,{suffix:t="nodejs"}={}){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);return t&&(o+=`-${t}`),c.platform==="darwin"?E(o):c.platform==="win32"?A(o):S(o)}var T="shopify-cli",O=()=>process.env.XDG_CACHE_HOME?process.env.XDG_CACHE_HOME:I(T).cache;var C={alwaysLogAnalytics:"SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",alwaysLogMetrics:"SHOPIFY_CLI_ALWAYS_LOG_METRICS",deviceAuth:"SHOPIFY_CLI_DEVICE_AUTH",doctor:"SHOPIFY_CLI_DOCTOR",enableCliRedirect:"SHOPIFY_CLI_ENABLE_CLI_REDIRECT",env:"SHOPIFY_CLI_ENV",noAnalytics:"SHOPIFY_CLI_NO_ANALYTICS",optOutInstrumentation:"OPT_OUT_INSTRUMENTATION",appAutomationToken:"SHOPIFY_APP_AUTOMATION_TOKEN",partnersToken:"SHOPIFY_CLI_PARTNERS_TOKEN",runAsUser:"SHOPIFY_RUN_AS_USER",serviceEnv:"SHOPIFY_SERVICE_ENV",skipCliRedirect:"SHOPIFY_CLI_SKIP_CLI_REDIRECT",spinInstance:"SPIN_INSTANCE",themeToken:"SHOPIFY_CLI_THEME_TOKEN",unitTest:"SHOPIFY_UNIT_TEST",verbose:"SHOPIFY_FLAG_VERBOSE",codespaces:"CODESPACES",codespaceName:"CODESPACE_NAME",codespacePortForwardingDomain:"GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",gitpod:"GITPOD_WORKSPACE_URL",cloudShell:"CLOUD_SHELL",spinAppPort:"SERVER_PORT",spinAppHost:"SPIN_APP_HOST",organization:"SHOPIFY_CLI_ORGANIZATION",identityToken:"SHOPIFY_CLI_IDENTITY_TOKEN",refreshToken:"SHOPIFY_CLI_REFRESH_TOKEN",otelURL:"SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",themeKitAccessDomain:"SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",json:"SHOPIFY_FLAG_JSON",skipNetworkLevelRetry:"SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",maxRequestTimeForNetworkCalls:"SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS",disableImportScanning:"SHOPIFY_CLI_DISABLE_IMPORT_SCANNING"},P="theme-kit-access.shopifyapps.com",F={backendPort:"BACKEND_PORT"},h={executables:{dev:"/opt/dev/bin/dev"},directories:{cache:{path:()=>O(),vendor:{path:()=>s(O(),"vendor"),binaries:()=>s(O(),"vendor","binaries")}}}},m={expirationTimeMarginInMinutes:4},Y="9e1e6889176fd0c795d5c659225e0fae",u={limit:300,timeout:{days:1}},f=process.env[C.themeKitAccessDomain]??P;export{I as a,C as b,P as c,F as d,h as e,m as f,Y as g,u as h,f as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as E}from"./chunk-GVRFO4CV.js";import{a as I,b as w}from"./chunk-YY6TFARF.js";import{a as _}from"./chunk-LYPNQFWX.js";import{f as a,g as l,p as S,v as b}from"./chunk-P3Z5RLVV.js";import{b as T,c as g}from"./chunk-DGMRL5DQ.js";import{oa as s,ra as p}from"./chunk-L5XWYTHY.js";import{y as f}from"./chunk-SKRUMRB4.js";import{d as m}from"./chunk-OEZATTOS.js";import{i as v}from"./chunk-FCULF3JA.js";import{Ib as c}from"./chunk-YJWNM4XO.js";import{b as x}from"./chunk-JA2QZ635.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();function A(t,e){return{theme:{id:t.id,name:t.name,role:t.role,shop:e.storeFqdn,preview_url:I(t,e),editor_url:w(t,e)}}}function D(t){let{platform:e,arch:n}=m(),o=a(),r=null;return o&&(r=Number(l())||null),{store:o??"Not configured",development_theme_id:r,cli_version:t.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(t,e){let n;if(e.development)n=await new E(t).findOrCreate();else{let o={filter:{theme:e.theme}};n=await _(t,o)}return n?A(n,t):void 0}async function y(t){return[M(),await j(t)]}function M(){let t=a()??"Not configured",e=l();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",t],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(t){let{platform:e,arch:n}=m();return N("Tooling and System",[["Shopify CLI",t.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(t,e){return{title:t,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(t,e){let n=Object.entries(t.theme).map(([o,r])=>{if(o==="editor_url"||o==="preview_url"){let C=String(r),$=o==="editor_url"?"Open in Theme Editor":"Preview Theme";return[u(o),{link:{url:C,label:$}}]}else return o==="id"?[u(o),`#${r}`]:[u(o),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function u(t){return t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var d=L(x(),1);var h=class extends b{static description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";static flags={...T,...g,...S,development:d.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,n){if(s("theme-command:info"),e.theme||e.development){let o=await O(n,e);if(!o)throw new v("Theme not found!");if(e.json)return c(JSON.stringify(o,null,2));let r=await F(o,e);f(r)}else{if(e.json)return c(JSON.stringify(D({cliVersion:this.config.version}),null,2));let o=await y({cliVersion:this.config.version});f({customSections:o})}s("theme-command:info")}};export{h as a};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{p as P,v as x}from"./chunk-P3Z5RLVV.js";import{a as O}from"./chunk-QJST4LZX.js";import{c as k,l as G}from"./chunk-IISE7SBT.js";import{b as _}from"./chunk-DGMRL5DQ.js";import{A as N,D as d,H as S,J as R,V as f}from"./chunk-SKRUMRB4.js";import{i as g}from"./chunk-FCULF3JA.js";import{Ea as E,Ga as v,Xa as L,Za as F,oa as C,qa as w,ya as b}from"./chunk-YJWNM4XO.js";import{b as W}from"./chunk-JA2QZ635.js";import{d as s}from"./chunk-3VYOLEQE.js";import{e as q,g as h}from"./chunk-VKWPEFWQ.js";h();h();var l="https://github.com/Shopify/skeleton-theme.git",V="https://github.com/Shopify/theme-liquid-docs.git",I={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function $(t,e){await T(t,e)}async function H(t,e){await T(t,e,!0)}async function M(t){let e=await O("Shopify","skeleton-theme",{filter:o=>!o.draft&&!o.prerelease});if(!e)throw new g("Couldn't find a stable Skeleton theme release");await T(`${l}#${e.tag_name}`,t)}async function T(t,e,o){await S([{title:`Cloning ${t} into ${e}`,task:async()=>{await k({repoUrl:t,destination:e,latestTag:o,shallow:!o}),await G(e),t.split("#")[0]===l&&(await Promise.all(Object.keys(I).map(async i=>U(s(e,`.${i}`)))),await U(s(e,".git")))}}])}async function U(t){await L(t)&&await v(t)}async function j(){return await d({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(I).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function D(t,e){let o=[];await S([{title:`Adding AI instructions into ${t}`,task:async()=>{await C(async i=>{await k({repoUrl:V,destination:i,shallow:!0});let c=e==="all"?Object.keys(I).filter(a=>a!=="all"):[e];try{let a=s(i,"ai","github","copilot-instructions.md"),n=await w(a),r=s(t,"AGENTS.md"),m=`# AGENTS.md
|
|
2
|
+
|
|
3
|
+
${n}`;await b(r,m),(await Promise.all(c.map(p=>K(t,r,p)))).forEach(p=>{p.copiedFile&&o.push(p.copiedFile)})}catch{throw new g("Failed to create AI instructions")}})}}]),o.length>0&&N({headline:"Files created instead of symlinks.",body:`Shopify CLI attempted to create symbolic links between AGENTS.md and ${o.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`})}async function K(t,e,o){if(o==="cursor")return{};let c={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],a=s(t,c);try{return await E(e,a),{}}catch(n){if(n instanceof Error){let r=await w(e);return await b(a,r),{copiedFile:c}}else throw n}}var u=q(W(),1);var A=class extends x{static summary="Clones a Git repository to use as a starting point for building a new theme.";static descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
|
|
4
|
+
|
|
5
|
+
If no Git repository is specified, then this command creates a copy of Shopify's [Skeleton theme](${l}), with the specified name in the current folder. If no name is provided, then you're prompted to enter one.
|
|
6
|
+
|
|
7
|
+
> Caution: If you're building a theme for the Shopify Theme Store, then you can use our example theme as a starting point. However, the theme that you submit needs to be [substantively different from existing themes](https://shopify.dev/docs/themes/store/requirements#uniqueness) so that it provides added value for users.
|
|
8
|
+
`;static description=this.descriptionForHelp();static usage="theme init [name] [flags]";static args={name:u.Args.string({name:"name",description:"Name of the new theme",required:!1})};static flags={..._,path:P.path,"clone-url":u.Flags.string({char:"u",default:l,description:"The Git URL to clone from. Defaults to Shopify's Skeleton theme.",env:"SHOPIFY_FLAG_CLONE_URL"}),latest:u.Flags.boolean({char:"l",description:"Downloads the latest release of the `clone-url`",env:"SHOPIFY_FLAG_LATEST"})};static multiEnvironmentsFlags=null;async command(e,o,i,c){let a=c.name??await this.promptName(e.path,e["no-input"]),n=e["clone-url"],r=s(e.path,a),m=e.latest;if(!m&&n===l&&(m=e["no-input"]||!f()||await d({message:"Which version of Skeleton theme would you like to use?",choices:[{label:"Latest stable release",value:"stable"},{label:"Upstream (new features may not be available on your store)",value:"upstream"}],defaultValue:"stable"})==="stable"),m&&n===l?await M(r):m?await H(n,r):await $(n,r),e["no-input"]||!f())return;let y=await j();y&&await D(r,y)}async promptName(e,o=!1){let i=await F({suffix:"theme",directory:e,family:"creative"});return o||!f()?i:R({message:"Name of the new theme",defaultValue:i})}};export{A as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-3T2WMZHC.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as
|
|
1
|
+
import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as H,i as _}from"./chunk-PVOWU77O.js";import{a as I}from"./chunk-YGFEUXKQ.js";import{a as b}from"./chunk-JTPVSO6Y.js";import{Ha as T,ia as P}from"./chunk-2KLXRVGQ.js";import{f as l}from"./chunk-DGMRL5DQ.js";import{D as p,F as g,J as v}from"./chunk-SKRUMRB4.js";import{Lb as h,Ob as m,Qb as w}from"./chunk-YJWNM4XO.js";import{b as G}from"./chunk-JA2QZ635.js";import{j as y}from"./chunk-3VYOLEQE.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function M(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function V(e){let t=e.map(o=>({label:o,value:o}));return await g({message:"Webhook Topic",choices:t})}async function C(e){return p({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function R(){return p({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function D(e){return(await v({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!k(o,e))return`Invalid address.
|
|
2
2
|
${d(e)}`}})).trim()}function U(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function d(e){return U(e).map(t=>` \xB7 ${w(t)}`).join(`
|
|
3
|
-
`)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:c}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(P({appName:s.title,configFile:y(c.configPath)}),{clientSecret:s.apiSecretKeys.find(f=>f.secret).secret,apiKey:s.apiKey})}async function O(e,t,r){let o=await A(e,r);return t?L(t,o):C(o)}async function B(e,t,r,o){let s=await
|
|
4
|
-
${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.address,r.samplePayload,r.headers)){h("Localhost delivery sucessful");return}
|
|
3
|
+
`)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:c}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(P({appName:s.title,configFile:y(c.configPath)}),{clientSecret:s.apiSecretKeys.find(f=>f.secret).secret,apiKey:s.apiKey})}async function O(e,t,r){let o=await A(e,r);return t?L(t,o):C(o)}async function B(e,t,r,o){let s=await M(e,t,o);return r?H(r,t,s):V(s)}async function N(e,t){let r=e??_(t)??await R(),o=t??await D(r);return F(o,r)}async function Y(e){let t=await z(e);await W(t)}async function z(e){let t=await O(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await B(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await N(e.deliveryMethod,e.address),c=await x(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:c.apiKey,clientSecret:c.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function W(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await S(e.developerPlatformClient,t,e.organizationId);if(!r.success){m(`Request errors:
|
|
4
|
+
${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.address,r.samplePayload,r.headers)){h("Localhost delivery sucessful");return}m("Localhost delivery failed");return}r.samplePayload===JSON.stringify({})&&h("Webhook has been enqueued for delivery")}function K(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
|
|
5
5
|
`)).join(`
|
|
6
|
-
`)}catch{return JSON.stringify(e)}}var n=q(G(),1);var
|
|
6
|
+
`)}catch{return JSON.stringify(e)}}var n=q(G(),1);var u=class e extends I{static summary="Trigger delivery of a sample webhook topic payload to a designated address.";static descriptionWithMarkdown=`
|
|
7
7
|
Triggers the delivery of a sample Admin API event topic payload to a designated address.
|
|
8
8
|
|
|
9
9
|
You should use this command to experiment with webhooks, to initially test your webhook configuration, or for unit testing. However, to test your webhook configuration from end to end, you should always trigger webhooks by performing the related action in Shopify.
|
|
@@ -18,8 +18,8 @@ ${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.addr
|
|
|
18
18
|
- Webhooks triggered using this method aren't retried when they fail.
|
|
19
19
|
- Trigger requests are rate-limited using the [Partner API rate limit](https://shopify.dev/docs/api/partner#rate_limits).
|
|
20
20
|
- You can't use this method to validate your API webhook subscriptions.
|
|
21
|
-
`;static description=this.
|
|
21
|
+
`;static description=this.descriptionForHelp();static flags={...b,help:n.Flags.help({required:!1,hidden:!1,env:"SHOPIFY_FLAG_HELP",description:"This help. When you run the trigger command the CLI will prompt you for any information that isn't passed using flags."}),topic:l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_TOPIC",description:"The requested webhook topic."})),"api-version":l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_API_VERSION",description:"The API Version of the webhook topic."})),"delivery-method":n.Flags.string({required:!1,hidden:!1,options:[i.HTTP,i.PUBSUB,i.EVENTBRIDGE],env:"SHOPIFY_FLAG_DELIVERY_METHOD",description:"Method chosen to deliver the topic payload. If not passed, it's inferred from the address."}),"client-secret":n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_CLIENT_SECRET",description:"Your app's client secret. This secret allows us to return the X-Shopify-Hmac-SHA256 header that lets you validate the origin of the response that you receive."}),address:l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_ADDRESS",description:`The URL where the webhook payload should be sent.
|
|
22
22
|
You will need a different address type for each delivery-method:
|
|
23
23
|
${d(i.HTTP)}
|
|
24
24
|
${d(i.PUBSUB)}
|
|
25
|
-
${d(i.EVENTBRIDGE)}`}))};async run(){let{flags:t}=await this.parse(e),r=await T({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o={...r,topic:t.topic,apiVersion:t["api-version"],deliveryMethod:t["delivery-method"],address:t.address,clientId:t["client-id"],clientSecret:t["client-secret"],path:t.path,config:t.config,organizationId:r.organization.id};return await Y(o),{app:r.app}}};export{
|
|
25
|
+
${d(i.EVENTBRIDGE)}`}))};async run(){let{flags:t}=await this.parse(e),r=await T({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o={...r,topic:t.topic,apiVersion:t["api-version"],deliveryMethod:t["delivery-method"],address:t.address,clientId:t["client-id"],clientSecret:t["client-secret"],path:t.path,config:t.config,organizationId:r.organization.id};return await Y(o),{app:r.app}}};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as m,c as u}from"./chunk-AD4S2VEI.js";import{a as p}from"./chunk-WXV35TPE.js";import{a as n}from"./chunk-JTPVSO6Y.js";import{Ia as c,q as a}from"./chunk-2KLXRVGQ.js";import{b as e}from"./chunk-DGMRL5DQ.js";import{z as i}from"./chunk-SKRUMRB4.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var s=class l extends p{static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...e,...n,...m};async run(){let{flags:t}=await this.parse(l),{app:o}=await c({directory:t.path,userProvidedConfigName:t.config}),d=await u(o,t.path);return await a(d,{app:o,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),i({headline:"Function built successfully."}),{app:o}}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as u}from"./chunk-4A7FPJVT.js";import{A as c}from"./chunk-SKRUMRB4.js";import{e as s}from"./chunk-G54BKNIX.js";import{db as d}from"./chunk-YJWNM4XO.js";import{q as m}from"./chunk-3VYOLEQE.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();function o(e,n){n||c(e)}async function P(e,n,t){let r=await l(n,t);if(!r){o({body:"Environment file not found."},t?.silent);return}let a=(await u.read(r)).content.environments;if(!a){o({body:["No environments found in",{command:r},{char:"."}]},t?.silent);return}let i=a[e];if(!i){o({body:["Environment",{command:e},"not found."]},t?.silent);return}return await s(()=>({environmentFlags:JSON.stringify(i)})),i}async function l(e,n){let t=n?.from&&n.from!=="."?n.from:m();return d(e,{cwd:t,type:"file"})}export{P as a,l as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,b as c,c as d}from"./chunk-AD4S2VEI.js";import{a as r}from"./chunk-YGFEUXKQ.js";import{a as n}from"./chunk-JTPVSO6Y.js";import{Ha as s}from"./chunk-2KLXRVGQ.js";import{b as a}from"./chunk-DGMRL5DQ.js";import{b as y}from"./chunk-JA2QZ635.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var f=g(y(),1);var o=class m extends r{static summary="Fetch the latest GraphQL schema for a function.";static descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";static description=this.descriptionForHelp();static flags={...a,...n,...c,stdout:f.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};async run(){let{flags:t}=await this.parse(m),{app:e,developerPlatformClient:h,organization:l}=await s({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),u=await d(e,t.path);return await p({app:e,extension:u,stdout:t.stdout,developerPlatformClient:h,orgId:l.id}),{app:e}}};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-AS2O62JX.js";import{a as t}from"./chunk-6IL3B5Z5.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var a=class extends t{static hidden=!0;static flags={...t.flags};static baseFlags={...t.baseFlags};async run(){return r({from:"app import-custom-data-definitions",to:"app import custom-data-definitions"}),super.run()}};export{a};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{b as N,c as S,d as A}from"./chunk-
|
|
1
|
+
import{b as N,c as S,d as A}from"./chunk-AD4S2VEI.js";import{a as T}from"./chunk-WXV35TPE.js";import{a as g}from"./chunk-JTPVSO6Y.js";import{Ia as x,b as P,c as y}from"./chunk-2KLXRVGQ.js";import{b as d,c as b}from"./chunk-DGMRL5DQ.js";import{y as f}from"./chunk-SKRUMRB4.js";import{Cb as h,Eb as l,Ib as m}from"./chunk-YJWNM4XO.js";import{d as p}from"./chunk-3VYOLEQE.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();s();function C(n,t){let o={};return n.targeting?.forEach(e=>{e.target&&(o[e.target]={...e.input_query&&{inputQueryPath:`${t}/${e.input_query}`},...e.export&&{export:e.export}})}),o}function I(n,t,o,e,r,i){return JSON.stringify({handle:t.handle,name:n.name,apiVersion:t.api_version,targeting:o,schemaPath:i,wasmPath:r,functionRunnerPath:e},null,2)}function w(n,t){return{title:`CONFIGURATION
|
|
2
2
|
`,body:{tabularData:[["Handle",n.handle??"N/A"],["Name",t??"N/A"],["API Version",n.api_version??"N/A"]],firstColumnSubdued:!0}}}function j(n){if(Object.keys(n).length===0)return null;let t=[];return Object.entries(n).forEach(([o,e])=>{t.push([l`${h.cyan(o)}`.value,""]),e.inputQueryPath&&t.push([{subdued:" Input Query Path"},{filePath:e.inputQueryPath}]),e.export&&t.push([{subdued:" Export"},e.export])}),{title:`
|
|
3
3
|
TARGETING
|
|
4
4
|
`,body:{tabularData:t}}}function O(n,t){return{title:`
|
|
5
5
|
BUILD
|
|
6
6
|
`,body:{tabularData:[["Schema Path",{filePath:t??"N/A"}],["Wasm Path",{filePath:n}]],firstColumnSubdued:!0}}}function D(n){return{title:`
|
|
7
7
|
FUNCTION RUNNER
|
|
8
|
-
`,body:{tabularData:[["Path",{filePath:n}]],firstColumnSubdued:!0}}}function v(n,t,o,e,r,i){let a=[
|
|
8
|
+
`,body:{tabularData:[["Path",{filePath:n}]],firstColumnSubdued:!0}}}function v(n,t,o,e,r,i){let a=[w(t,n.name)],u=j(o);return u&&a.push(u),a.push(O(r,i),D(e)),a}function R(n,t){let{format:o,functionRunnerPath:e,schemaPath:r}=t,i=n.configuration,a=C(i,n.directory),u=p(n.directory,i.build?.path??n.outputRelativePath);return o==="json"?I(n,i,a,e,u,r):v(n,i,a,e,u,r)}var c=class n extends T{static summary="Print basic information about your function.";static descriptionWithMarkdown=`The information returned includes the following:
|
|
9
9
|
|
|
10
10
|
- The function handle
|
|
11
11
|
- The function name
|
|
@@ -13,4 +13,4 @@ FUNCTION RUNNER
|
|
|
13
13
|
- The targeting configuration
|
|
14
14
|
- The schema path
|
|
15
15
|
- The WASM path
|
|
16
|
-
- The function runner path`;static description=this.
|
|
16
|
+
- The function runner path`;static description=this.descriptionForHelp();static flags={...d,...g,...N,...b};async run(){let{flags:t}=await this.parse(n),{app:o}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await S(o,t.path),r=P();await y(r);let i=await A(e,t.path,t["client-id"],t.reset,t.config),a=R(e,{format:t.json?"json":"text",functionRunnerPath:r.path,schemaPath:i});return t.json?m(a):f({customSections:a}),{app:o}}};export{c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as V}from"./chunk-
|
|
1
|
+
import{b as L}from"./chunk-2YFB3PTV.js";import{a as V}from"./chunk-VFO5OYQ4.js";import{k as q,l as H,n as I}from"./chunk-NTVEJYKI.js";import{a as Y}from"./chunk-UFU2LGFK.js";import{a as y,c as U}from"./chunk-ECEOBSGD.js";import{a as N}from"./chunk-GVRFO4CV.js";import{a as p,b as w}from"./chunk-YY6TFARF.js";import{a as F}from"./chunk-LYPNQFWX.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-R757TSQ6.js";import{r as k}from"./chunk-P3Z5RLVV.js";import{aa as B}from"./chunk-IBTQO3JD.js";import{K as b,oa as a,pa as O}from"./chunk-L5XWYTHY.js";import{A as d,B as C,E as P,z as f}from"./chunk-SKRUMRB4.js";import{i as S}from"./chunk-FCULF3JA.js";import{Ib as $}from"./chunk-YJWNM4XO.js";import{f as T,q as l}from"./chunk-3VYOLEQE.js";import{e as z,g as v}from"./chunk-VKWPEFWQ.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
|
|
2
2
|
|
|
3
3
|
`}]:[];E(t)?d({body:[...o,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):f({body:[...o,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,o){let n=o?[{subdued:`Environment: ${o}
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-AS2O62JX.js";import{a}from"./chunk-2LZQM5JG.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var r=class extends a{static hidden=!0;static flags={...a.flags};static baseFlags={...a.baseFlags};async run(){return e({from:"app import-extensions",to:"app import dashboard-extensions"}),super.run()}};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-3T2WMZHC.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|