vercel 59.13.1 → 59.15.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/chunks/add-7XFD2OHW.js +8 -0
- package/dist/chunks/add-HZC7AUBY.js +8 -0
- package/dist/chunks/add-PYUNJZ6K.js +8 -0
- package/dist/chunks/build-EFKQ6BND.js +7 -0
- package/dist/chunks/chunk-2B2MN3U5.js +8 -0
- package/dist/chunks/chunk-2H77IRPI.js +9 -0
- package/dist/chunks/chunk-2I64AYHG.js +7 -0
- package/dist/chunks/chunk-2PPXY24N.js +20 -0
- package/dist/chunks/chunk-2S6PE6GB.js +7 -0
- package/dist/chunks/{chunk-PIMIVJYK.js → chunk-3FMJYJUR.js} +7 -32
- package/dist/chunks/chunk-3IAQUNQH.js +7 -0
- package/dist/chunks/chunk-3QHJYVCY.js +7 -0
- package/dist/chunks/chunk-3QT7VOE3.js +7 -0
- package/dist/chunks/chunk-3TXEXPUW.js +7 -0
- package/dist/chunks/chunk-4MZK6JT6.js +7 -0
- package/dist/chunks/chunk-4NE5IQ25.js +7 -0
- package/dist/chunks/chunk-4PNSSS3L.js +7 -0
- package/dist/chunks/chunk-4QX77CP7.js +7 -0
- package/dist/chunks/chunk-57GHYR4Y.js +25 -0
- package/dist/chunks/chunk-5QQNYN4N.js +7 -0
- package/dist/chunks/chunk-5XJNPXQK.js +7 -0
- package/dist/chunks/chunk-6L236MNA.js +7 -0
- package/dist/chunks/chunk-6PFC3KWQ.js +7 -0
- package/dist/chunks/chunk-6QKS6QK7.js +7 -0
- package/dist/chunks/chunk-6RIQPTJA.js +8 -0
- package/dist/chunks/chunk-6TAQ6OWD.js +13 -0
- package/dist/chunks/chunk-6YAADRQB.js +9 -0
- package/dist/chunks/chunk-75CPY75D.js +15 -0
- package/dist/chunks/chunk-7HL2RPUO.js +7 -0
- package/dist/chunks/chunk-7PNYOSDU.js +9 -0
- package/dist/chunks/chunk-7R5FEXZ5.js +7 -0
- package/dist/chunks/chunk-7RMCBXBB.js +62 -0
- package/dist/chunks/chunk-7RR7MIMT.js +7 -0
- package/dist/chunks/chunk-7T6TL3GQ.js +7 -0
- package/dist/chunks/chunk-ADUYPK2G.js +13 -0
- package/dist/chunks/chunk-AFPOIDM5.js +7 -0
- package/dist/chunks/chunk-AM46JVVN.js +7 -0
- package/dist/chunks/chunk-AVSPFBLM.js +7 -0
- package/dist/chunks/chunk-B4ATVYZW.js +7 -0
- package/dist/chunks/chunk-BATE73HA.js +9 -0
- package/dist/chunks/{chunk-A3NYPUKZ.js → chunk-BRK4OB4B.js} +1 -11
- package/dist/chunks/chunk-BVH2AEFE.js +7 -0
- package/dist/chunks/chunk-CN2QZO4U.js +7 -0
- package/dist/chunks/chunk-COQGD2EI.js +8 -0
- package/dist/chunks/chunk-CUAIEGNE.js +7 -0
- package/dist/chunks/chunk-CVKB54WW.js +7 -0
- package/dist/chunks/{chunk-O26N2UPI.js → chunk-CZSOZKHX.js} +1 -9
- package/dist/chunks/chunk-D4MW3RDW.js +7 -0
- package/dist/chunks/chunk-DFVNL5ML.js +7 -0
- package/dist/chunks/chunk-EE3FVJLV.js +16 -0
- package/dist/chunks/chunk-EGMJRU5P.js +28 -0
- package/dist/chunks/chunk-ENBTTYJR.js +7 -0
- package/dist/chunks/chunk-ENS6KX2F.js +7 -0
- package/dist/chunks/chunk-EOBD4ZEG.js +8 -0
- package/dist/chunks/chunk-EOCTK4EA.js +7 -0
- package/dist/chunks/chunk-EQ52F4LH.js +7 -0
- package/dist/chunks/chunk-ETV3C2CV.js +7 -0
- package/dist/chunks/chunk-EVZRQGNK.js +7 -0
- package/dist/chunks/chunk-F2ZWW2IO.js +8 -0
- package/dist/chunks/chunk-FAW6NBLQ.js +7 -0
- package/dist/chunks/chunk-FI772UVH.js +7 -0
- package/dist/chunks/chunk-FKCOBJFH.js +7 -0
- package/dist/chunks/chunk-FVGESGJI.js +45 -0
- package/dist/chunks/chunk-G5FC5ZCO.js +9 -0
- package/dist/chunks/chunk-G6CTAHKY.js +39 -0
- package/dist/chunks/chunk-G7Y77DFH.js +7 -0
- package/dist/chunks/chunk-GHAY4PSD.js +7 -0
- package/dist/chunks/chunk-GHM7V3GG.js +7 -0
- package/dist/chunks/chunk-GRNTLNC7.js +7 -0
- package/dist/chunks/chunk-GTRGQIY2.js +10 -0
- package/dist/chunks/chunk-GU6VIFR5.js +7 -0
- package/dist/chunks/{constants-WEQVJSYS.js → chunk-GZNDA6SV.js} +2 -9
- package/dist/chunks/chunk-HBFPLBTX.js +10 -0
- package/dist/chunks/chunk-HEGJZJO7.js +7 -0
- package/dist/chunks/chunk-HSJ6AHWG.js +12 -0
- package/dist/chunks/chunk-HTC6KO2B.js +7 -0
- package/dist/chunks/chunk-HVUHCRZB.js +18 -0
- package/dist/chunks/chunk-HZZ5L472.js +7 -0
- package/dist/chunks/chunk-IVSSTHB6.js +7 -0
- package/dist/chunks/chunk-IVWPQYIH.js +7 -0
- package/dist/chunks/chunk-J3U3L45Y.js +7 -0
- package/dist/chunks/chunk-JAJW3P42.js +7 -0
- package/dist/chunks/chunk-JEIMW3CO.js +7 -0
- package/dist/chunks/chunk-JIYY3B4C.js +7 -0
- package/dist/chunks/chunk-JKTQV2QJ.js +7 -0
- package/dist/chunks/chunk-JTVVBRW7.js +7 -0
- package/dist/chunks/chunk-JYAUUIR4.js +7 -0
- package/dist/chunks/chunk-JZRMH5UA.js +7 -0
- package/dist/chunks/chunk-K2RAW5DI.js +10 -0
- package/dist/chunks/chunk-K3KJZLBD.js +7 -0
- package/dist/chunks/chunk-KK4AJES5.js +36 -0
- package/dist/chunks/chunk-KKS7XWEX.js +7 -0
- package/dist/chunks/chunk-KNEWCUWF.js +14 -0
- package/dist/chunks/chunk-KO733OJG.js +9 -0
- package/dist/chunks/chunk-L243RUIR.js +19 -0
- package/dist/chunks/chunk-L3JDEHCQ.js +7 -0
- package/dist/chunks/chunk-LDM3SQAU.js +13 -0
- package/dist/chunks/chunk-LNPMDXBJ.js +7 -0
- package/dist/chunks/chunk-M2W3HKV3.js +23 -0
- package/dist/chunks/chunk-M2XARQBF.js +9 -0
- package/dist/chunks/chunk-M5AV545M.js +7 -0
- package/dist/chunks/chunk-MAVRGZQP.js +7 -0
- package/dist/chunks/chunk-MBL6TXEJ.js +7 -0
- package/dist/chunks/chunk-MEAY2K5Z.js +11 -0
- package/dist/chunks/chunk-MY4MONOH.js +7 -0
- package/dist/chunks/chunk-N3N5UHIL.js +7 -0
- package/dist/chunks/chunk-N3ZZ7FHQ.js +7 -0
- package/dist/chunks/chunk-N6CNMMSZ.js +7 -0
- package/dist/chunks/chunk-NBVY237X.js +7 -0
- package/dist/chunks/chunk-NGNOUPWS.js +25 -0
- package/dist/chunks/chunk-NHTF332K.js +7 -0
- package/dist/chunks/chunk-NNP5NITU.js +15 -0
- package/dist/chunks/chunk-NS4FH2TY.js +11 -0
- package/dist/chunks/chunk-NUGLE4QY.js +11 -0
- package/dist/chunks/chunk-NWFHHUKZ.js +7 -0
- package/dist/chunks/chunk-O7G3CZ42.js +7 -0
- package/dist/chunks/chunk-OD6RZ3XZ.js +8 -0
- package/dist/chunks/chunk-OHDEHZLX.js +7 -0
- package/dist/chunks/chunk-OK3S6KFX.js +16 -0
- package/dist/chunks/chunk-OKZDOANA.js +23 -0
- package/dist/chunks/chunk-OSCCYU74.js +7 -0
- package/dist/chunks/chunk-OUHPDA7Q.js +7 -0
- package/dist/chunks/chunk-P2O5DOYE.js +7 -0
- package/dist/chunks/chunk-PHW54NU5.js +13 -0
- package/dist/chunks/chunk-PPCFQQSU.js +7 -0
- package/dist/chunks/chunk-QGIGNMII.js +8 -0
- package/dist/chunks/chunk-QGIQK47P.js +7 -0
- package/dist/chunks/chunk-QHJLRTVY.js +7 -0
- package/dist/chunks/chunk-QR7QPUFN.js +7 -0
- package/dist/chunks/chunk-QTKJC2O5.js +7 -0
- package/dist/chunks/chunk-R2TGGVCT.js +19 -0
- package/dist/chunks/chunk-RAIBQIKB.js +7 -0
- package/dist/chunks/chunk-RCTYVKM5.js +16 -0
- package/dist/chunks/chunk-RKAUVPOQ.js +86 -0
- package/dist/chunks/chunk-S5CEIACD.js +7 -0
- package/dist/chunks/chunk-SGWVKRSR.js +8 -0
- package/dist/chunks/chunk-SOJCELXH.js +7 -0
- package/dist/chunks/chunk-SXUEGVWB.js +7 -0
- package/dist/chunks/{pkg-56KRLZ5K.js → chunk-T3GQAMBJ.js} +1 -7
- package/dist/chunks/chunk-T52FMXWC.js +7 -0
- package/dist/chunks/{chunk-2473DUBR.js → chunk-TG2RCYTH.js} +1 -9
- package/dist/chunks/chunk-TJCIHDPZ.js +9 -0
- package/dist/chunks/chunk-TKBXN4H3.js +9 -0
- package/dist/chunks/chunk-TRTEXGVN.js +7 -0
- package/dist/chunks/chunk-TXELFFNK.js +15 -0
- package/dist/chunks/chunk-U56NHYAH.js +7 -0
- package/dist/chunks/chunk-U7KCDTCH.js +12 -0
- package/dist/chunks/chunk-UETTIYUQ.js +8 -0
- package/dist/chunks/chunk-UGMZQZJE.js +24 -0
- package/dist/chunks/chunk-ULLWCOYC.js +7 -0
- package/dist/chunks/chunk-UXTHEQVJ.js +21 -0
- package/dist/chunks/chunk-VLZ47RWM.js +44 -0
- package/dist/chunks/chunk-WKZ6JSGZ.js +7 -0
- package/dist/chunks/chunk-WPS6JZF6.js +7 -0
- package/dist/chunks/chunk-WRILLB46.js +7 -0
- package/dist/chunks/chunk-WUZD4KBL.js +7 -0
- package/dist/chunks/chunk-XCJDGQO7.js +7 -0
- package/dist/chunks/{update-route-version-E3V47KNI.js → chunk-XD2LZRBS.js} +1 -7
- package/dist/chunks/{chunk-64IF634X.js → chunk-XFVGX5HG.js} +1 -12
- package/dist/chunks/chunk-XHOGOH6N.js +7 -0
- package/dist/chunks/chunk-XPXOV5UO.js +7 -0
- package/dist/chunks/chunk-XQ73QIQ3.js +7 -0
- package/dist/chunks/chunk-XSVBYDYI.js +8 -0
- package/dist/chunks/chunk-YKZLKOOD.js +12 -0
- package/dist/chunks/chunk-YMVDWVMO.js +7 -0
- package/dist/chunks/chunk-YPTLSODC.js +7 -0
- package/dist/chunks/chunk-YV6CTDHR.js +7 -0
- package/dist/chunks/chunk-Z6Y55QJW.js +23 -0
- package/dist/chunks/chunk-ZDX75YNZ.js +7 -0
- package/dist/chunks/chunk-ZIPVX7LD.js +7 -0
- package/dist/chunks/chunk-ZKYS7EAB.js +7 -0
- package/dist/chunks/chunk-ZT6KDLLY.js +20 -0
- package/dist/chunks/chunk-ZXE4XYIV.js +7 -0
- package/dist/chunks/chunk-ZZQRMRWD.js +20 -0
- package/dist/chunks/cjs-GOQHXIHX.js +54 -0
- package/dist/chunks/clear-5NQAVWIF.js +8 -0
- package/dist/chunks/compile-vercel-config-6J2XUFRK.js +7 -0
- package/dist/chunks/config-CKYRXZXL.js +7 -0
- package/dist/chunks/config-VNUY4RJ4.js +8 -0
- package/dist/chunks/connect-git-provider-GIU5WZ52.js +7 -0
- package/dist/chunks/constants-G4UYVLOF.js +7 -0
- package/dist/chunks/create-project-SRQGD4JY.js +7 -0
- package/dist/chunks/delete-GTXXCSKQ.js +10 -0
- package/dist/chunks/delete-HRJEO4MI.js +9 -0
- package/dist/chunks/detect-projects-2GNCZ4CS.js +7 -0
- package/dist/chunks/detect-services-GHILEGNU.js +7 -0
- package/dist/chunks/disable-RWCRVG5O.js +7 -0
- package/dist/chunks/discard-SHFIYCJU.js +14 -0
- package/dist/chunks/edit-DMO3NSO2.js +9 -0
- package/dist/chunks/edit-EVQI2RSS.js +8 -0
- package/dist/chunks/enable-AWDU6STD.js +7 -0
- package/dist/chunks/esm-7HVUFWMN.js +7 -0
- package/dist/chunks/esm-BZBEM7YA.js +7 -0
- package/dist/chunks/esm-CXICLFA3.js +9 -0
- package/dist/chunks/esm-HDEHVK7I.js +9 -0
- package/dist/chunks/esm-NQRLKALI.js +20 -0
- package/dist/chunks/esm-SZZI53W7.js +7 -0
- package/dist/chunks/esm-WGJFGCLK.js +7 -0
- package/dist/chunks/exec-4AISDHUV.js +16372 -0
- package/dist/chunks/export-IQKTA4RS.js +19 -0
- package/dist/chunks/fetch-proxy-AEAWC6MD.js +7 -0
- package/dist/chunks/future-E2FHKPJN.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-VKOWC4PZ.js +7 -0
- package/dist/chunks/image-LDFYNOCA.js +7 -0
- package/dist/chunks/import-builders-P7CXSX2D.js +7 -0
- package/dist/chunks/inspect-3N47ODIH.js +15 -0
- package/dist/chunks/inspect-53SGDDAH.js +20 -0
- package/dist/chunks/inspect-5INZDUQS.js +19 -0
- package/dist/chunks/inspect-WMT2M335.js +9 -0
- package/dist/chunks/inspect-Y6BUCOUV.js +13 -0
- package/dist/chunks/list-BIAPHKFM.js +11 -0
- package/dist/chunks/list-DMOCRRSE.js +16 -0
- package/dist/chunks/list-K5J7OULR.js +10 -0
- package/dist/chunks/login-DEAEVUHM.js +7 -0
- package/dist/chunks/login-SRVNHI4Y.js +9 -0
- package/dist/chunks/logs-GK7CJBYY.js +7 -0
- package/dist/chunks/ls-7ZX6DCJW.js +12 -0
- package/dist/chunks/ls-AJWN5ZR4.js +12 -0
- package/dist/chunks/ls-BFJWCRLZ.js +12 -0
- package/dist/chunks/ls-KGIE6HCO.js +12 -0
- package/dist/chunks/ls-UVKTHBTE.js +8 -0
- package/dist/chunks/ls-WEG45IOC.js +8 -0
- package/dist/chunks/native-self-update-KOJVRMHR.js +7 -0
- package/dist/chunks/open-OEWPI5G6.js +7 -0
- package/dist/chunks/openapi-MO5HYMHR.js +7 -0
- package/dist/chunks/permissions-EPQBQFE3.js +7 -0
- package/dist/chunks/pkg-YFU67U7I.js +7 -0
- package/dist/chunks/prompt-missing-credentials-IUHLYSQU.js +7 -0
- package/dist/chunks/publish-JG7MEPWT.js +15 -0
- package/dist/chunks/pull-MRKXG6TO.js +7 -0
- package/dist/chunks/purchase-domain-if-available-O5ARXEZ5.js +7 -0
- package/dist/chunks/push-XOXJDFYO.js +7 -0
- package/dist/chunks/query-AL7C6WV2.js +12 -0
- package/dist/chunks/reauthenticate-SH4XR7NH.js +7 -0
- package/dist/chunks/reorder-5DMRFDBY.js +10 -0
- package/dist/chunks/reply-WSRNZWFD.js +9 -0
- package/dist/chunks/repo-info-to-url-SK3VX6UL.js +7 -0
- package/dist/chunks/resolve-YJUXQVOZ.js +12 -0
- package/dist/chunks/resolve-deployment-framework-preset-XF3NJIDS.js +7 -0
- package/dist/chunks/restore-QT3DBGKU.js +16 -0
- package/dist/chunks/rm-MHPIUEZ5.js +8 -0
- package/dist/chunks/rm-MVZFU6RG.js +8 -0
- package/dist/chunks/rm-PXR4J2US.js +8 -0
- package/dist/chunks/rm-WB2AIP3N.js +8 -0
- package/dist/chunks/rm-XRP6MRUT.js +8 -0
- package/dist/chunks/routes-5DERZV5M.js +7 -0
- package/dist/chunks/rule-inspect-TT3DRGCS.js +8 -0
- package/dist/chunks/rules-B5GW4KJH.js +7 -0
- package/dist/chunks/schema-JY5QTZOG.js +14 -0
- package/dist/chunks/schema-KCNKVFT3.js +44 -0
- package/dist/chunks/select-org-KSCYSESV.js +7 -0
- package/dist/chunks/set-7BANEWEL.js +7 -0
- package/dist/chunks/setup-and-link-ZAV3EFGC.js +7 -0
- package/dist/chunks/slugify-O5DBATYT.js +7 -0
- package/dist/chunks/stamp-OX4YO3KY.js +7 -0
- package/dist/chunks/tags-VZR66NUC.js +7 -0
- package/dist/chunks/types-LRXQEDYI.js +14 -0
- package/dist/chunks/update-RBFNNSWE.js +8 -0
- package/dist/chunks/update-route-version-XZAFPQJC.js +7 -0
- package/dist/chunks/utils-B5ZTMQKY.js +58 -0
- package/dist/chunks/vlt-builder-importer-YVCYYRVV.js +11 -0
- package/dist/commands/build/index.js +24 -4918
- package/dist/commands/deploy/index.js +43 -2875
- package/dist/commands/dev/index.js +56 -23857
- package/dist/commands/env/index.js +26 -3411
- package/dist/commands/link/index.js +4 -284
- package/dist/commands/list/index.js +6 -566
- package/dist/commands-bulk.js +1204 -86657
- package/dist/help.js +1 -8
- package/dist/index.js +19 -2591
- package/dist/version.mjs +1 -1
- package/package.json +48 -49
- package/dist/chunks/add-7OX6PBFD.js +0 -145
- package/dist/chunks/add-7RYUFBZ3.js +0 -221
- package/dist/chunks/add-FX5WWUXU.js +0 -196
- package/dist/chunks/build-Q3TR46K4.js +0 -251
- package/dist/chunks/chunk-26CU4Q3C.js +0 -598
- package/dist/chunks/chunk-2GXA4NGG.js +0 -163
- package/dist/chunks/chunk-2HSQ7YUK.js +0 -93
- package/dist/chunks/chunk-2JIX6UMI.js +0 -4626
- package/dist/chunks/chunk-2QFYCMKN.js +0 -3495
- package/dist/chunks/chunk-332LMJLZ.js +0 -16014
- package/dist/chunks/chunk-3FIEWWMM.js +0 -59
- package/dist/chunks/chunk-3HZLXCVL.js +0 -137
- package/dist/chunks/chunk-3VM7HWF6.js +0 -104
- package/dist/chunks/chunk-3ZE5CFVM.js +0 -346
- package/dist/chunks/chunk-4IALDGB7.js +0 -22
- package/dist/chunks/chunk-4KD5BYHB.js +0 -127
- package/dist/chunks/chunk-4TUMNBEE.js +0 -231
- package/dist/chunks/chunk-57RHXXXG.js +0 -150
- package/dist/chunks/chunk-5AJPMLDV.js +0 -28
- package/dist/chunks/chunk-5JDX6XOS.js +0 -1536
- package/dist/chunks/chunk-5NF5HOBJ.js +0 -1854
- package/dist/chunks/chunk-5ORMFNXL.js +0 -13413
- package/dist/chunks/chunk-66LPM47Z.js +0 -137
- package/dist/chunks/chunk-6E6KPBXY.js +0 -43
- package/dist/chunks/chunk-76CB3CF2.js +0 -522
- package/dist/chunks/chunk-7F5RNOTP.js +0 -14059
- package/dist/chunks/chunk-7MRDIPJY.js +0 -107
- package/dist/chunks/chunk-7NRNFV77.js +0 -875
- package/dist/chunks/chunk-7Q45OKWR.js +0 -149
- package/dist/chunks/chunk-AHU7WNL2.js +0 -24
- package/dist/chunks/chunk-AINIBIP4.js +0 -39
- package/dist/chunks/chunk-AKLTIZCU.js +0 -46
- package/dist/chunks/chunk-B5XLQKHI.js +0 -849
- package/dist/chunks/chunk-BEQV3X2L.js +0 -86
- package/dist/chunks/chunk-CJV7J7B5.js +0 -314
- package/dist/chunks/chunk-CV5YC2EN.js +0 -867
- package/dist/chunks/chunk-DQ23J2KG.js +0 -305
- package/dist/chunks/chunk-E336ZXPP.js +0 -43
- package/dist/chunks/chunk-EDMW7SBH.js +0 -246
- package/dist/chunks/chunk-EEV2LKFC.js +0 -58
- package/dist/chunks/chunk-EFYMIIER.js +0 -40
- package/dist/chunks/chunk-EIBH6FCR.js +0 -253
- package/dist/chunks/chunk-EKPSCRJZ.js +0 -26
- package/dist/chunks/chunk-EOZFDJSY.js +0 -18
- package/dist/chunks/chunk-EZKW5YJ2.js +0 -177
- package/dist/chunks/chunk-F4S6Q4OY.js +0 -79
- package/dist/chunks/chunk-FGDKMNEN.js +0 -21
- package/dist/chunks/chunk-FRVG4OW3.js +0 -7438
- package/dist/chunks/chunk-G5FBSUL4.js +0 -822
- package/dist/chunks/chunk-GDOUDU6O.js +0 -74
- package/dist/chunks/chunk-GGP5R3FU.js +0 -129
- package/dist/chunks/chunk-GQRG7VFK.js +0 -257
- package/dist/chunks/chunk-GVNCVKCI.js +0 -68
- package/dist/chunks/chunk-GY5I4AYD.js +0 -122
- package/dist/chunks/chunk-GZLPFESR.js +0 -48
- package/dist/chunks/chunk-HB4UKFDO.js +0 -1295
- package/dist/chunks/chunk-HD4DR3DA.js +0 -818
- package/dist/chunks/chunk-HKHXKSXQ.js +0 -152
- package/dist/chunks/chunk-HM24ZWQL.js +0 -174
- package/dist/chunks/chunk-HRXRELD3.js +0 -338
- package/dist/chunks/chunk-IB5L4LKZ.js +0 -1082
- package/dist/chunks/chunk-IIMSID24.js +0 -104
- package/dist/chunks/chunk-IK6PC2JA.js +0 -1288
- package/dist/chunks/chunk-IUC3TR3S.js +0 -92
- package/dist/chunks/chunk-JIK2FUMT.js +0 -1892
- package/dist/chunks/chunk-JSD4EZL3.js +0 -34
- package/dist/chunks/chunk-K3RED3VO.js +0 -566
- package/dist/chunks/chunk-KFWQ3EFH.js +0 -151
- package/dist/chunks/chunk-KU2WCB6G.js +0 -1708
- package/dist/chunks/chunk-KW7BS25T.js +0 -466
- package/dist/chunks/chunk-KXDWXXJH.js +0 -70
- package/dist/chunks/chunk-KXTXGYG7.js +0 -577
- package/dist/chunks/chunk-L4H3DP65.js +0 -417
- package/dist/chunks/chunk-LE5V7G2U.js +0 -559
- package/dist/chunks/chunk-LVCCV2YJ.js +0 -324
- package/dist/chunks/chunk-MUGF3SGQ.js +0 -49
- package/dist/chunks/chunk-N6HP5BLI.js +0 -18190
- package/dist/chunks/chunk-ND5CF2H3.js +0 -53
- package/dist/chunks/chunk-NFU4XJIR.js +0 -120
- package/dist/chunks/chunk-NSGRICJ2.js +0 -506
- package/dist/chunks/chunk-NW34PW6V.js +0 -1772
- package/dist/chunks/chunk-OAMU5QO6.js +0 -18
- package/dist/chunks/chunk-P3SKP5WM.js +0 -27
- package/dist/chunks/chunk-P4QNYOFB.js +0 -96
- package/dist/chunks/chunk-P7VSBDR4.js +0 -827
- package/dist/chunks/chunk-PEC3CQSK.js +0 -90
- package/dist/chunks/chunk-PMSMUMUO.js +0 -30
- package/dist/chunks/chunk-PNGVSHR3.js +0 -40
- package/dist/chunks/chunk-POOO7W47.js +0 -916
- package/dist/chunks/chunk-PRWJUY5U.js +0 -848
- package/dist/chunks/chunk-Q2DGFCO7.js +0 -579
- package/dist/chunks/chunk-QRFRS2JH.js +0 -242
- package/dist/chunks/chunk-QSJ6Q5QP.js +0 -255
- package/dist/chunks/chunk-RBIFXFZX.js +0 -52
- package/dist/chunks/chunk-RN6V5ODW.js +0 -114
- package/dist/chunks/chunk-RVBZ64EQ.js +0 -52
- package/dist/chunks/chunk-S3HYE6ZE.js +0 -61
- package/dist/chunks/chunk-S7KYDPEM.js +0 -1564
- package/dist/chunks/chunk-SLPSPYVR.js +0 -334
- package/dist/chunks/chunk-SPRQ4IBQ.js +0 -11441
- package/dist/chunks/chunk-T3NB7VQG.js +0 -2399
- package/dist/chunks/chunk-TLPHZ7M4.js +0 -81
- package/dist/chunks/chunk-TO7QZGYK.js +0 -105
- package/dist/chunks/chunk-TOXZAP5I.js +0 -90
- package/dist/chunks/chunk-TZ2YI2VH.js +0 -87
- package/dist/chunks/chunk-U4ZLWJQD.js +0 -2914
- package/dist/chunks/chunk-UG2WOB5L.js +0 -150
- package/dist/chunks/chunk-UXKNSAP2.js +0 -233
- package/dist/chunks/chunk-V4RMJKQP.js +0 -36
- package/dist/chunks/chunk-VGIMO3ZK.js +0 -17
- package/dist/chunks/chunk-VP5Y3SZG.js +0 -106
- package/dist/chunks/chunk-VUS2JQB2.js +0 -121
- package/dist/chunks/chunk-VXYGCOKL.js +0 -28
- package/dist/chunks/chunk-WGGABYO5.js +0 -31
- package/dist/chunks/chunk-XDGOOW3K.js +0 -60
- package/dist/chunks/chunk-XEVKGAVI.js +0 -2099
- package/dist/chunks/chunk-XFF5TGRA.js +0 -303
- package/dist/chunks/chunk-XNIZGCN5.js +0 -58
- package/dist/chunks/chunk-XPJLPUKO.js +0 -117
- package/dist/chunks/chunk-XUAWTW4W.js +0 -467
- package/dist/chunks/chunk-YPQSDAEW.js +0 -29
- package/dist/chunks/chunk-YS76T533.js +0 -270
- package/dist/chunks/chunk-Z6YZMXVN.js +0 -233
- package/dist/chunks/chunk-ZDU2NODC.js +0 -104
- package/dist/chunks/chunk-ZW6HETRE.js +0 -97
- package/dist/chunks/cjs-DV4RM7XU.js +0 -20743
- package/dist/chunks/clear-GIAFWC5X.js +0 -141
- package/dist/chunks/compile-vercel-config-QJGEQKK4.js +0 -33
- package/dist/chunks/config-AOA2HS4R.js +0 -168
- package/dist/chunks/config-HYBSW733.js +0 -127
- package/dist/chunks/delete-BBFI75A2.js +0 -226
- package/dist/chunks/delete-DJ7RI2NX.js +0 -159
- package/dist/chunks/detect-projects-ODNU4PK2.js +0 -18
- package/dist/chunks/detect-services-Q2DVXVMH.js +0 -40
- package/dist/chunks/disable-P7X2V5LS.js +0 -198
- package/dist/chunks/discard-JNQBH4XU.js +0 -145
- package/dist/chunks/edit-AXQEMBQC.js +0 -162
- package/dist/chunks/edit-BO3GXEKA.js +0 -647
- package/dist/chunks/enable-NC4BN7EQ.js +0 -204
- package/dist/chunks/exec-4IPHZ55G.js +0 -1291
- package/dist/chunks/export-HQ42UNYD.js +0 -177
- package/dist/chunks/fetch-proxy-R3JZNXBZ.js +0 -99
- package/dist/chunks/image-UM4FQYOA.js +0 -75
- package/dist/chunks/import-builders-F6SWNCHK.js +0 -39
- package/dist/chunks/inspect-EXEA57MP.js +0 -145
- package/dist/chunks/inspect-H3M3XJNB.js +0 -596
- package/dist/chunks/inspect-MTNQOLNM.js +0 -175
- package/dist/chunks/inspect-PYFF2K4X.js +0 -171
- package/dist/chunks/inspect-XF324IQ2.js +0 -216
- package/dist/chunks/list-4JHZJUBS.js +0 -426
- package/dist/chunks/list-YEN54SGY.js +0 -387
- package/dist/chunks/list-ZKD2O4D2.js +0 -404
- package/dist/chunks/login-56KGZQI2.js +0 -233
- package/dist/chunks/ls-ELYVF6EU.js +0 -223
- package/dist/chunks/ls-HZEMZY2R.js +0 -188
- package/dist/chunks/ls-IJW74NG3.js +0 -175
- package/dist/chunks/ls-OAGYLILX.js +0 -210
- package/dist/chunks/ls-QNTHMTIH.js +0 -183
- package/dist/chunks/ls-WW5UFH5B.js +0 -204
- package/dist/chunks/open-D2E5TEKN.js +0 -116
- package/dist/chunks/permissions-CFUXWXSK.js +0 -99
- package/dist/chunks/publish-BP4IUYNM.js +0 -155
- package/dist/chunks/pull-DL72B6RW.js +0 -45
- package/dist/chunks/push-6YCS4YQW.js +0 -191
- package/dist/chunks/query-7N3YB4LE.js +0 -725
- package/dist/chunks/reorder-YJN36TPT.js +0 -412
- package/dist/chunks/reply-3U3O7LNG.js +0 -176
- package/dist/chunks/resolve-TT75WCWT.js +0 -237
- package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +0 -36
- package/dist/chunks/restore-6UF6W23A.js +0 -252
- package/dist/chunks/rm-3QIDFPVA.js +0 -162
- package/dist/chunks/rm-6MJ7ZPXQ.js +0 -148
- package/dist/chunks/rm-JZRS2NBH.js +0 -147
- package/dist/chunks/rm-KI4W2HYP.js +0 -322
- package/dist/chunks/rm-QCQXVB54.js +0 -195
- package/dist/chunks/routes-QVMBXOSX.js +0 -24
- package/dist/chunks/rule-inspect-PX73J52Q.js +0 -123
- package/dist/chunks/rules-Q334NBUC.js +0 -89
- package/dist/chunks/schema-GRTOHAZO.js +0 -381
- package/dist/chunks/schema-YV3XYL3A.js +0 -237
- package/dist/chunks/set-J3AQKL6V.js +0 -250
- package/dist/chunks/setup-and-link-R5N7WJ46.js +0 -65
- package/dist/chunks/stamp-AA7R3MZS.js +0 -16
- package/dist/chunks/tags-2VLJ4VIH.js +0 -69
- package/dist/chunks/types-4GAJ7XQQ.js +0 -116
- package/dist/chunks/update-VMS45VF2.js +0 -224
- package/dist/chunks/vlt-builder-importer-USCFHWPL.js +0 -322
|
@@ -1,1708 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirname_(__filename);
|
|
7
|
-
import {
|
|
8
|
-
require_dist2,
|
|
9
|
-
require_minimatch
|
|
10
|
-
} from "./chunk-332LMJLZ.js";
|
|
11
|
-
import {
|
|
12
|
-
require_semver
|
|
13
|
-
} from "./chunk-IB5L4LKZ.js";
|
|
14
|
-
import {
|
|
15
|
-
readJSONFile
|
|
16
|
-
} from "./chunk-MUGF3SGQ.js";
|
|
17
|
-
import {
|
|
18
|
-
VERCEL_CONFIG_EXTENSIONS
|
|
19
|
-
} from "./chunk-L4H3DP65.js";
|
|
20
|
-
import {
|
|
21
|
-
require_execa
|
|
22
|
-
} from "./chunk-5NF5HOBJ.js";
|
|
23
|
-
import {
|
|
24
|
-
isNativeBinaryInstall
|
|
25
|
-
} from "./chunk-4IALDGB7.js";
|
|
26
|
-
import {
|
|
27
|
-
VERCEL_DIR,
|
|
28
|
-
require_lib,
|
|
29
|
-
require_pluralize
|
|
30
|
-
} from "./chunk-7F5RNOTP.js";
|
|
31
|
-
import {
|
|
32
|
-
CantParseJSONFile,
|
|
33
|
-
code
|
|
34
|
-
} from "./chunk-CV5YC2EN.js";
|
|
35
|
-
import {
|
|
36
|
-
cmd
|
|
37
|
-
} from "./chunk-Q2DGFCO7.js";
|
|
38
|
-
import {
|
|
39
|
-
output_manager_default
|
|
40
|
-
} from "./chunk-2JIX6UMI.js";
|
|
41
|
-
import {
|
|
42
|
-
pkg_default
|
|
43
|
-
} from "./chunk-P4QNYOFB.js";
|
|
44
|
-
import {
|
|
45
|
-
require_dist
|
|
46
|
-
} from "./chunk-ZW6HETRE.js";
|
|
47
|
-
import {
|
|
48
|
-
__commonJS,
|
|
49
|
-
__export,
|
|
50
|
-
__require,
|
|
51
|
-
__toESM
|
|
52
|
-
} from "./chunk-TZ2YI2VH.js";
|
|
53
|
-
|
|
54
|
-
// ../../node_modules/.pnpm/builtins@1.0.3/node_modules/builtins/builtins.json
|
|
55
|
-
var require_builtins = __commonJS({
|
|
56
|
-
"../../node_modules/.pnpm/builtins@1.0.3/node_modules/builtins/builtins.json"(exports, module) {
|
|
57
|
-
module.exports = [
|
|
58
|
-
"assert",
|
|
59
|
-
"buffer",
|
|
60
|
-
"child_process",
|
|
61
|
-
"cluster",
|
|
62
|
-
"console",
|
|
63
|
-
"constants",
|
|
64
|
-
"crypto",
|
|
65
|
-
"dgram",
|
|
66
|
-
"dns",
|
|
67
|
-
"domain",
|
|
68
|
-
"events",
|
|
69
|
-
"fs",
|
|
70
|
-
"http",
|
|
71
|
-
"https",
|
|
72
|
-
"module",
|
|
73
|
-
"net",
|
|
74
|
-
"os",
|
|
75
|
-
"path",
|
|
76
|
-
"process",
|
|
77
|
-
"punycode",
|
|
78
|
-
"querystring",
|
|
79
|
-
"readline",
|
|
80
|
-
"repl",
|
|
81
|
-
"stream",
|
|
82
|
-
"string_decoder",
|
|
83
|
-
"timers",
|
|
84
|
-
"tls",
|
|
85
|
-
"tty",
|
|
86
|
-
"url",
|
|
87
|
-
"util",
|
|
88
|
-
"v8",
|
|
89
|
-
"vm",
|
|
90
|
-
"zlib"
|
|
91
|
-
];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
// ../../node_modules/.pnpm/validate-npm-package-name@3.0.0/node_modules/validate-npm-package-name/index.js
|
|
96
|
-
var require_validate_npm_package_name = __commonJS({
|
|
97
|
-
"../../node_modules/.pnpm/validate-npm-package-name@3.0.0/node_modules/validate-npm-package-name/index.js"(exports, module) {
|
|
98
|
-
"use strict";
|
|
99
|
-
var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
|
|
100
|
-
var builtins = require_builtins();
|
|
101
|
-
var blacklist = [
|
|
102
|
-
"node_modules",
|
|
103
|
-
"favicon.ico"
|
|
104
|
-
];
|
|
105
|
-
var validate = module.exports = function(name) {
|
|
106
|
-
var warnings = [];
|
|
107
|
-
var errors = [];
|
|
108
|
-
if (name === null) {
|
|
109
|
-
errors.push("name cannot be null");
|
|
110
|
-
return done(warnings, errors);
|
|
111
|
-
}
|
|
112
|
-
if (name === void 0) {
|
|
113
|
-
errors.push("name cannot be undefined");
|
|
114
|
-
return done(warnings, errors);
|
|
115
|
-
}
|
|
116
|
-
if (typeof name !== "string") {
|
|
117
|
-
errors.push("name must be a string");
|
|
118
|
-
return done(warnings, errors);
|
|
119
|
-
}
|
|
120
|
-
if (!name.length) {
|
|
121
|
-
errors.push("name length must be greater than zero");
|
|
122
|
-
}
|
|
123
|
-
if (name.match(/^\./)) {
|
|
124
|
-
errors.push("name cannot start with a period");
|
|
125
|
-
}
|
|
126
|
-
if (name.match(/^_/)) {
|
|
127
|
-
errors.push("name cannot start with an underscore");
|
|
128
|
-
}
|
|
129
|
-
if (name.trim() !== name) {
|
|
130
|
-
errors.push("name cannot contain leading or trailing spaces");
|
|
131
|
-
}
|
|
132
|
-
blacklist.forEach(function(blacklistedName) {
|
|
133
|
-
if (name.toLowerCase() === blacklistedName) {
|
|
134
|
-
errors.push(blacklistedName + " is a blacklisted name");
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
builtins.forEach(function(builtin) {
|
|
138
|
-
if (name.toLowerCase() === builtin) {
|
|
139
|
-
warnings.push(builtin + " is a core module name");
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
if (name.length > 214) {
|
|
143
|
-
warnings.push("name can no longer contain more than 214 characters");
|
|
144
|
-
}
|
|
145
|
-
if (name.toLowerCase() !== name) {
|
|
146
|
-
warnings.push("name can no longer contain capital letters");
|
|
147
|
-
}
|
|
148
|
-
if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) {
|
|
149
|
-
warnings.push(`name can no longer contain special characters ("~'!()*")`);
|
|
150
|
-
}
|
|
151
|
-
if (encodeURIComponent(name) !== name) {
|
|
152
|
-
var nameMatch = name.match(scopedPackagePattern);
|
|
153
|
-
if (nameMatch) {
|
|
154
|
-
var user = nameMatch[1];
|
|
155
|
-
var pkg = nameMatch[2];
|
|
156
|
-
if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
|
|
157
|
-
return done(warnings, errors);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
errors.push("name can only contain URL-friendly characters");
|
|
161
|
-
}
|
|
162
|
-
return done(warnings, errors);
|
|
163
|
-
};
|
|
164
|
-
validate.scopedPackagePattern = scopedPackagePattern;
|
|
165
|
-
var done = function(warnings, errors) {
|
|
166
|
-
var result = {
|
|
167
|
-
validForNewPackages: errors.length === 0 && warnings.length === 0,
|
|
168
|
-
validForOldPackages: errors.length === 0,
|
|
169
|
-
warnings,
|
|
170
|
-
errors
|
|
171
|
-
};
|
|
172
|
-
if (!result.warnings.length)
|
|
173
|
-
delete result.warnings;
|
|
174
|
-
if (!result.errors.length)
|
|
175
|
-
delete result.errors;
|
|
176
|
-
return result;
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
// ../../node_modules/.pnpm/hosted-git-info@2.8.9/node_modules/hosted-git-info/git-host-info.js
|
|
182
|
-
var require_git_host_info = __commonJS({
|
|
183
|
-
"../../node_modules/.pnpm/hosted-git-info@2.8.9/node_modules/hosted-git-info/git-host-info.js"(exports, module) {
|
|
184
|
-
"use strict";
|
|
185
|
-
var gitHosts = module.exports = {
|
|
186
|
-
github: {
|
|
187
|
-
// First two are insecure and generally shouldn't be used any more, but
|
|
188
|
-
// they are still supported.
|
|
189
|
-
"protocols": ["git", "http", "git+ssh", "git+https", "ssh", "https"],
|
|
190
|
-
"domain": "github.com",
|
|
191
|
-
"treepath": "tree",
|
|
192
|
-
"filetemplate": "https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",
|
|
193
|
-
"bugstemplate": "https://{domain}/{user}/{project}/issues",
|
|
194
|
-
"gittemplate": "git://{auth@}{domain}/{user}/{project}.git{#committish}",
|
|
195
|
-
"tarballtemplate": "https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"
|
|
196
|
-
},
|
|
197
|
-
bitbucket: {
|
|
198
|
-
"protocols": ["git+ssh", "git+https", "ssh", "https"],
|
|
199
|
-
"domain": "bitbucket.org",
|
|
200
|
-
"treepath": "src",
|
|
201
|
-
"tarballtemplate": "https://{domain}/{user}/{project}/get/{committish}.tar.gz"
|
|
202
|
-
},
|
|
203
|
-
gitlab: {
|
|
204
|
-
"protocols": ["git+ssh", "git+https", "ssh", "https"],
|
|
205
|
-
"domain": "gitlab.com",
|
|
206
|
-
"treepath": "tree",
|
|
207
|
-
"bugstemplate": "https://{domain}/{user}/{project}/issues",
|
|
208
|
-
"httpstemplate": "git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",
|
|
209
|
-
"tarballtemplate": "https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",
|
|
210
|
-
"pathmatch": /^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/
|
|
211
|
-
},
|
|
212
|
-
gist: {
|
|
213
|
-
"protocols": ["git", "git+ssh", "git+https", "ssh", "https"],
|
|
214
|
-
"domain": "gist.github.com",
|
|
215
|
-
"pathmatch": /^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/,
|
|
216
|
-
"filetemplate": "https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",
|
|
217
|
-
"bugstemplate": "https://{domain}/{project}",
|
|
218
|
-
"gittemplate": "git://{domain}/{project}.git{#committish}",
|
|
219
|
-
"sshtemplate": "git@{domain}:/{project}.git{#committish}",
|
|
220
|
-
"sshurltemplate": "git+ssh://git@{domain}/{project}.git{#committish}",
|
|
221
|
-
"browsetemplate": "https://{domain}/{project}{/committish}",
|
|
222
|
-
"browsefiletemplate": "https://{domain}/{project}{/committish}{#path}",
|
|
223
|
-
"docstemplate": "https://{domain}/{project}{/committish}",
|
|
224
|
-
"httpstemplate": "git+https://{domain}/{project}.git{#committish}",
|
|
225
|
-
"shortcuttemplate": "{type}:{project}{#committish}",
|
|
226
|
-
"pathtemplate": "{project}{#committish}",
|
|
227
|
-
"tarballtemplate": "https://codeload.github.com/gist/{project}/tar.gz/{committish}",
|
|
228
|
-
"hashformat": function(fragment) {
|
|
229
|
-
return "file-" + formatHashFragment(fragment);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
var gitHostDefaults = {
|
|
234
|
-
"sshtemplate": "git@{domain}:{user}/{project}.git{#committish}",
|
|
235
|
-
"sshurltemplate": "git+ssh://git@{domain}/{user}/{project}.git{#committish}",
|
|
236
|
-
"browsetemplate": "https://{domain}/{user}/{project}{/tree/committish}",
|
|
237
|
-
"browsefiletemplate": "https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",
|
|
238
|
-
"docstemplate": "https://{domain}/{user}/{project}{/tree/committish}#readme",
|
|
239
|
-
"httpstemplate": "git+https://{auth@}{domain}/{user}/{project}.git{#committish}",
|
|
240
|
-
"filetemplate": "https://{domain}/{user}/{project}/raw/{committish}/{path}",
|
|
241
|
-
"shortcuttemplate": "{type}:{user}/{project}{#committish}",
|
|
242
|
-
"pathtemplate": "{user}/{project}{#committish}",
|
|
243
|
-
"pathmatch": /^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,
|
|
244
|
-
"hashformat": formatHashFragment
|
|
245
|
-
};
|
|
246
|
-
Object.keys(gitHosts).forEach(function(name) {
|
|
247
|
-
Object.keys(gitHostDefaults).forEach(function(key) {
|
|
248
|
-
if (gitHosts[name][key])
|
|
249
|
-
return;
|
|
250
|
-
gitHosts[name][key] = gitHostDefaults[key];
|
|
251
|
-
});
|
|
252
|
-
gitHosts[name].protocols_re = RegExp("^(" + gitHosts[name].protocols.map(function(protocol) {
|
|
253
|
-
return protocol.replace(/([\\+*{}()[\]$^|])/g, "\\$1");
|
|
254
|
-
}).join("|") + "):$");
|
|
255
|
-
});
|
|
256
|
-
function formatHashFragment(fragment) {
|
|
257
|
-
return fragment.toLowerCase().replace(/^\W+|\/|\W+$/g, "").replace(/\W+/g, "-");
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
// ../../node_modules/.pnpm/hosted-git-info@2.8.9/node_modules/hosted-git-info/git-host.js
|
|
263
|
-
var require_git_host = __commonJS({
|
|
264
|
-
"../../node_modules/.pnpm/hosted-git-info@2.8.9/node_modules/hosted-git-info/git-host.js"(exports, module) {
|
|
265
|
-
"use strict";
|
|
266
|
-
var gitHosts = require_git_host_info();
|
|
267
|
-
var extend = Object.assign || function _extend(target, source) {
|
|
268
|
-
if (source === null || typeof source !== "object")
|
|
269
|
-
return target;
|
|
270
|
-
var keys = Object.keys(source);
|
|
271
|
-
var i = keys.length;
|
|
272
|
-
while (i--) {
|
|
273
|
-
target[keys[i]] = source[keys[i]];
|
|
274
|
-
}
|
|
275
|
-
return target;
|
|
276
|
-
};
|
|
277
|
-
module.exports = GitHost;
|
|
278
|
-
function GitHost(type, user, auth, project, committish, defaultRepresentation, opts) {
|
|
279
|
-
var gitHostInfo = this;
|
|
280
|
-
gitHostInfo.type = type;
|
|
281
|
-
Object.keys(gitHosts[type]).forEach(function(key) {
|
|
282
|
-
gitHostInfo[key] = gitHosts[type][key];
|
|
283
|
-
});
|
|
284
|
-
gitHostInfo.user = user;
|
|
285
|
-
gitHostInfo.auth = auth;
|
|
286
|
-
gitHostInfo.project = project;
|
|
287
|
-
gitHostInfo.committish = committish;
|
|
288
|
-
gitHostInfo.default = defaultRepresentation;
|
|
289
|
-
gitHostInfo.opts = opts || {};
|
|
290
|
-
}
|
|
291
|
-
GitHost.prototype.hash = function() {
|
|
292
|
-
return this.committish ? "#" + this.committish : "";
|
|
293
|
-
};
|
|
294
|
-
GitHost.prototype._fill = function(template, opts) {
|
|
295
|
-
if (!template)
|
|
296
|
-
return;
|
|
297
|
-
var vars = extend({}, opts);
|
|
298
|
-
vars.path = vars.path ? vars.path.replace(/^[/]+/g, "") : "";
|
|
299
|
-
opts = extend(extend({}, this.opts), opts);
|
|
300
|
-
var self = this;
|
|
301
|
-
Object.keys(this).forEach(function(key) {
|
|
302
|
-
if (self[key] != null && vars[key] == null)
|
|
303
|
-
vars[key] = self[key];
|
|
304
|
-
});
|
|
305
|
-
var rawAuth = vars.auth;
|
|
306
|
-
var rawcommittish = vars.committish;
|
|
307
|
-
var rawFragment = vars.fragment;
|
|
308
|
-
var rawPath = vars.path;
|
|
309
|
-
var rawProject = vars.project;
|
|
310
|
-
Object.keys(vars).forEach(function(key) {
|
|
311
|
-
var value = vars[key];
|
|
312
|
-
if ((key === "path" || key === "project") && typeof value === "string") {
|
|
313
|
-
vars[key] = value.split("/").map(function(pathComponent) {
|
|
314
|
-
return encodeURIComponent(pathComponent);
|
|
315
|
-
}).join("/");
|
|
316
|
-
} else {
|
|
317
|
-
vars[key] = encodeURIComponent(value);
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
vars["auth@"] = rawAuth ? rawAuth + "@" : "";
|
|
321
|
-
vars["#fragment"] = rawFragment ? "#" + this.hashformat(rawFragment) : "";
|
|
322
|
-
vars.fragment = vars.fragment ? vars.fragment : "";
|
|
323
|
-
vars["#path"] = rawPath ? "#" + this.hashformat(rawPath) : "";
|
|
324
|
-
vars["/path"] = vars.path ? "/" + vars.path : "";
|
|
325
|
-
vars.projectPath = rawProject.split("/").map(encodeURIComponent).join("/");
|
|
326
|
-
if (opts.noCommittish) {
|
|
327
|
-
vars["#committish"] = "";
|
|
328
|
-
vars["/tree/committish"] = "";
|
|
329
|
-
vars["/committish"] = "";
|
|
330
|
-
vars.committish = "";
|
|
331
|
-
} else {
|
|
332
|
-
vars["#committish"] = rawcommittish ? "#" + rawcommittish : "";
|
|
333
|
-
vars["/tree/committish"] = vars.committish ? "/" + vars.treepath + "/" + vars.committish : "";
|
|
334
|
-
vars["/committish"] = vars.committish ? "/" + vars.committish : "";
|
|
335
|
-
vars.committish = vars.committish || "master";
|
|
336
|
-
}
|
|
337
|
-
var res = template;
|
|
338
|
-
Object.keys(vars).forEach(function(key) {
|
|
339
|
-
res = res.replace(new RegExp("[{]" + key + "[}]", "g"), vars[key]);
|
|
340
|
-
});
|
|
341
|
-
if (opts.noGitPlus) {
|
|
342
|
-
return res.replace(/^git[+]/, "");
|
|
343
|
-
} else {
|
|
344
|
-
return res;
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
GitHost.prototype.ssh = function(opts) {
|
|
348
|
-
return this._fill(this.sshtemplate, opts);
|
|
349
|
-
};
|
|
350
|
-
GitHost.prototype.sshurl = function(opts) {
|
|
351
|
-
return this._fill(this.sshurltemplate, opts);
|
|
352
|
-
};
|
|
353
|
-
GitHost.prototype.browse = function(P, F, opts) {
|
|
354
|
-
if (typeof P === "string") {
|
|
355
|
-
if (typeof F !== "string") {
|
|
356
|
-
opts = F;
|
|
357
|
-
F = null;
|
|
358
|
-
}
|
|
359
|
-
return this._fill(this.browsefiletemplate, extend({
|
|
360
|
-
fragment: F,
|
|
361
|
-
path: P
|
|
362
|
-
}, opts));
|
|
363
|
-
} else {
|
|
364
|
-
return this._fill(this.browsetemplate, P);
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
GitHost.prototype.docs = function(opts) {
|
|
368
|
-
return this._fill(this.docstemplate, opts);
|
|
369
|
-
};
|
|
370
|
-
GitHost.prototype.bugs = function(opts) {
|
|
371
|
-
return this._fill(this.bugstemplate, opts);
|
|
372
|
-
};
|
|
373
|
-
GitHost.prototype.https = function(opts) {
|
|
374
|
-
return this._fill(this.httpstemplate, opts);
|
|
375
|
-
};
|
|
376
|
-
GitHost.prototype.git = function(opts) {
|
|
377
|
-
return this._fill(this.gittemplate, opts);
|
|
378
|
-
};
|
|
379
|
-
GitHost.prototype.shortcut = function(opts) {
|
|
380
|
-
return this._fill(this.shortcuttemplate, opts);
|
|
381
|
-
};
|
|
382
|
-
GitHost.prototype.path = function(opts) {
|
|
383
|
-
return this._fill(this.pathtemplate, opts);
|
|
384
|
-
};
|
|
385
|
-
GitHost.prototype.tarball = function(opts_) {
|
|
386
|
-
var opts = extend({}, opts_, { noCommittish: false });
|
|
387
|
-
return this._fill(this.tarballtemplate, opts);
|
|
388
|
-
};
|
|
389
|
-
GitHost.prototype.file = function(P, opts) {
|
|
390
|
-
return this._fill(this.filetemplate, extend({ path: P }, opts));
|
|
391
|
-
};
|
|
392
|
-
GitHost.prototype.getDefaultRepresentation = function() {
|
|
393
|
-
return this.default;
|
|
394
|
-
};
|
|
395
|
-
GitHost.prototype.toString = function(opts) {
|
|
396
|
-
if (this.default && typeof this[this.default] === "function")
|
|
397
|
-
return this[this.default](opts);
|
|
398
|
-
return this.sshurl(opts);
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
|
|
403
|
-
// ../../node_modules/.pnpm/hosted-git-info@2.8.9/node_modules/hosted-git-info/index.js
|
|
404
|
-
var require_hosted_git_info = __commonJS({
|
|
405
|
-
"../../node_modules/.pnpm/hosted-git-info@2.8.9/node_modules/hosted-git-info/index.js"(exports, module) {
|
|
406
|
-
"use strict";
|
|
407
|
-
var url = __require("url");
|
|
408
|
-
var gitHosts = require_git_host_info();
|
|
409
|
-
var GitHost = module.exports = require_git_host();
|
|
410
|
-
var protocolToRepresentationMap = {
|
|
411
|
-
"git+ssh:": "sshurl",
|
|
412
|
-
"git+https:": "https",
|
|
413
|
-
"ssh:": "sshurl",
|
|
414
|
-
"git:": "git"
|
|
415
|
-
};
|
|
416
|
-
function protocolToRepresentation(protocol) {
|
|
417
|
-
return protocolToRepresentationMap[protocol] || protocol.slice(0, -1);
|
|
418
|
-
}
|
|
419
|
-
var authProtocols = {
|
|
420
|
-
"git:": true,
|
|
421
|
-
"https:": true,
|
|
422
|
-
"git+https:": true,
|
|
423
|
-
"http:": true,
|
|
424
|
-
"git+http:": true
|
|
425
|
-
};
|
|
426
|
-
var cache = {};
|
|
427
|
-
module.exports.fromUrl = function(giturl, opts) {
|
|
428
|
-
if (typeof giturl !== "string")
|
|
429
|
-
return;
|
|
430
|
-
var key = giturl + JSON.stringify(opts || {});
|
|
431
|
-
if (!(key in cache)) {
|
|
432
|
-
cache[key] = fromUrl(giturl, opts);
|
|
433
|
-
}
|
|
434
|
-
return cache[key];
|
|
435
|
-
};
|
|
436
|
-
function fromUrl(giturl, opts) {
|
|
437
|
-
if (giturl == null || giturl === "")
|
|
438
|
-
return;
|
|
439
|
-
var url2 = fixupUnqualifiedGist(
|
|
440
|
-
isGitHubShorthand(giturl) ? "github:" + giturl : giturl
|
|
441
|
-
);
|
|
442
|
-
var parsed = parseGitUrl(url2);
|
|
443
|
-
var shortcutMatch = url2.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/);
|
|
444
|
-
var matches = Object.keys(gitHosts).map(function(gitHostName) {
|
|
445
|
-
try {
|
|
446
|
-
var gitHostInfo = gitHosts[gitHostName];
|
|
447
|
-
var auth = null;
|
|
448
|
-
if (parsed.auth && authProtocols[parsed.protocol]) {
|
|
449
|
-
auth = parsed.auth;
|
|
450
|
-
}
|
|
451
|
-
var committish = parsed.hash ? decodeURIComponent(parsed.hash.substr(1)) : null;
|
|
452
|
-
var user = null;
|
|
453
|
-
var project = null;
|
|
454
|
-
var defaultRepresentation = null;
|
|
455
|
-
if (shortcutMatch && shortcutMatch[1] === gitHostName) {
|
|
456
|
-
user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2]);
|
|
457
|
-
project = decodeURIComponent(shortcutMatch[3].replace(/\.git$/, ""));
|
|
458
|
-
defaultRepresentation = "shortcut";
|
|
459
|
-
} else {
|
|
460
|
-
if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, "") !== gitHostInfo.domain)
|
|
461
|
-
return;
|
|
462
|
-
if (!gitHostInfo.protocols_re.test(parsed.protocol))
|
|
463
|
-
return;
|
|
464
|
-
if (!parsed.path)
|
|
465
|
-
return;
|
|
466
|
-
var pathmatch = gitHostInfo.pathmatch;
|
|
467
|
-
var matched = parsed.path.match(pathmatch);
|
|
468
|
-
if (!matched)
|
|
469
|
-
return;
|
|
470
|
-
if (matched[1] !== null && matched[1] !== void 0) {
|
|
471
|
-
user = decodeURIComponent(matched[1].replace(/^:/, ""));
|
|
472
|
-
}
|
|
473
|
-
project = decodeURIComponent(matched[2]);
|
|
474
|
-
defaultRepresentation = protocolToRepresentation(parsed.protocol);
|
|
475
|
-
}
|
|
476
|
-
return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
|
|
477
|
-
} catch (ex) {
|
|
478
|
-
if (ex instanceof URIError) {
|
|
479
|
-
} else
|
|
480
|
-
throw ex;
|
|
481
|
-
}
|
|
482
|
-
}).filter(function(gitHostInfo) {
|
|
483
|
-
return gitHostInfo;
|
|
484
|
-
});
|
|
485
|
-
if (matches.length !== 1)
|
|
486
|
-
return;
|
|
487
|
-
return matches[0];
|
|
488
|
-
}
|
|
489
|
-
function isGitHubShorthand(arg) {
|
|
490
|
-
return /^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(arg);
|
|
491
|
-
}
|
|
492
|
-
function fixupUnqualifiedGist(giturl) {
|
|
493
|
-
var parsed = url.parse(giturl);
|
|
494
|
-
if (parsed.protocol === "gist:" && parsed.host && !parsed.path) {
|
|
495
|
-
return parsed.protocol + "/" + parsed.host;
|
|
496
|
-
} else {
|
|
497
|
-
return giturl;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
function parseGitUrl(giturl) {
|
|
501
|
-
var matched = giturl.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);
|
|
502
|
-
if (!matched) {
|
|
503
|
-
var legacy = url.parse(giturl);
|
|
504
|
-
if (legacy.auth && typeof url.URL === "function") {
|
|
505
|
-
var authmatch = giturl.match(/[^@]+@[^:/]+/);
|
|
506
|
-
if (authmatch) {
|
|
507
|
-
var whatwg = new url.URL(authmatch[0]);
|
|
508
|
-
legacy.auth = whatwg.username || "";
|
|
509
|
-
if (whatwg.password)
|
|
510
|
-
legacy.auth += ":" + whatwg.password;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
return legacy;
|
|
514
|
-
}
|
|
515
|
-
return {
|
|
516
|
-
protocol: "git+ssh:",
|
|
517
|
-
slashes: true,
|
|
518
|
-
auth: matched[1],
|
|
519
|
-
host: matched[2],
|
|
520
|
-
port: null,
|
|
521
|
-
hostname: matched[2],
|
|
522
|
-
hash: matched[4],
|
|
523
|
-
search: null,
|
|
524
|
-
query: null,
|
|
525
|
-
pathname: "/" + matched[3],
|
|
526
|
-
path: "/" + matched[3],
|
|
527
|
-
href: "git+ssh://" + matched[1] + "@" + matched[2] + "/" + matched[3] + (matched[4] || "")
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
});
|
|
532
|
-
|
|
533
|
-
// ../../node_modules/.pnpm/os-tmpdir@1.0.2/node_modules/os-tmpdir/index.js
|
|
534
|
-
var require_os_tmpdir = __commonJS({
|
|
535
|
-
"../../node_modules/.pnpm/os-tmpdir@1.0.2/node_modules/os-tmpdir/index.js"(exports, module) {
|
|
536
|
-
"use strict";
|
|
537
|
-
var isWindows = process.platform === "win32";
|
|
538
|
-
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
|
|
539
|
-
module.exports = function() {
|
|
540
|
-
var path;
|
|
541
|
-
if (isWindows) {
|
|
542
|
-
path = process.env.TEMP || process.env.TMP || (process.env.SystemRoot || process.env.windir) + "\\temp";
|
|
543
|
-
} else {
|
|
544
|
-
path = process.env.TMPDIR || process.env.TMP || process.env.TEMP || "/tmp";
|
|
545
|
-
}
|
|
546
|
-
if (trailingSlashRe.test(path)) {
|
|
547
|
-
path = path.slice(0, -1);
|
|
548
|
-
}
|
|
549
|
-
return path;
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
// ../../node_modules/.pnpm/os-homedir@1.0.2/node_modules/os-homedir/index.js
|
|
555
|
-
var require_os_homedir = __commonJS({
|
|
556
|
-
"../../node_modules/.pnpm/os-homedir@1.0.2/node_modules/os-homedir/index.js"(exports, module) {
|
|
557
|
-
"use strict";
|
|
558
|
-
var os = __require("os");
|
|
559
|
-
function homedir() {
|
|
560
|
-
var env = process.env;
|
|
561
|
-
var home = env.HOME;
|
|
562
|
-
var user = env.LOGNAME || env.USER || env.LNAME || env.USERNAME;
|
|
563
|
-
if (process.platform === "win32") {
|
|
564
|
-
return env.USERPROFILE || env.HOMEDRIVE + env.HOMEPATH || home || null;
|
|
565
|
-
}
|
|
566
|
-
if (process.platform === "darwin") {
|
|
567
|
-
return home || (user ? "/Users/" + user : null);
|
|
568
|
-
}
|
|
569
|
-
if (process.platform === "linux") {
|
|
570
|
-
return home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null);
|
|
571
|
-
}
|
|
572
|
-
return home || null;
|
|
573
|
-
}
|
|
574
|
-
module.exports = typeof os.homedir === "function" ? os.homedir : homedir;
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
|
|
578
|
-
// ../../node_modules/.pnpm/osenv@0.1.5/node_modules/osenv/osenv.js
|
|
579
|
-
var require_osenv = __commonJS({
|
|
580
|
-
"../../node_modules/.pnpm/osenv@0.1.5/node_modules/osenv/osenv.js"(exports) {
|
|
581
|
-
var isWindows = process.platform === "win32";
|
|
582
|
-
var path = __require("path");
|
|
583
|
-
var exec = __require("child_process").exec;
|
|
584
|
-
var osTmpdir = require_os_tmpdir();
|
|
585
|
-
var osHomedir = require_os_homedir();
|
|
586
|
-
function memo(key, lookup, fallback) {
|
|
587
|
-
var fell = false;
|
|
588
|
-
var falling = false;
|
|
589
|
-
exports[key] = function(cb) {
|
|
590
|
-
var val = lookup();
|
|
591
|
-
if (!val && !fell && !falling && fallback) {
|
|
592
|
-
fell = true;
|
|
593
|
-
falling = true;
|
|
594
|
-
exec(fallback, function(er, output, stderr) {
|
|
595
|
-
falling = false;
|
|
596
|
-
if (er)
|
|
597
|
-
return;
|
|
598
|
-
val = output.trim();
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
exports[key] = function(cb2) {
|
|
602
|
-
if (cb2)
|
|
603
|
-
process.nextTick(cb2.bind(null, null, val));
|
|
604
|
-
return val;
|
|
605
|
-
};
|
|
606
|
-
if (cb && !falling)
|
|
607
|
-
process.nextTick(cb.bind(null, null, val));
|
|
608
|
-
return val;
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
memo("user", function() {
|
|
612
|
-
return isWindows ? process.env.USERDOMAIN + "\\" + process.env.USERNAME : process.env.USER;
|
|
613
|
-
}, "whoami");
|
|
614
|
-
memo("prompt", function() {
|
|
615
|
-
return isWindows ? process.env.PROMPT : process.env.PS1;
|
|
616
|
-
});
|
|
617
|
-
memo("hostname", function() {
|
|
618
|
-
return isWindows ? process.env.COMPUTERNAME : process.env.HOSTNAME;
|
|
619
|
-
}, "hostname");
|
|
620
|
-
memo("tmpdir", function() {
|
|
621
|
-
return osTmpdir();
|
|
622
|
-
});
|
|
623
|
-
memo("home", function() {
|
|
624
|
-
return osHomedir();
|
|
625
|
-
});
|
|
626
|
-
memo("path", function() {
|
|
627
|
-
return (process.env.PATH || process.env.Path || process.env.path).split(isWindows ? ";" : ":");
|
|
628
|
-
});
|
|
629
|
-
memo("editor", function() {
|
|
630
|
-
return process.env.EDITOR || process.env.VISUAL || (isWindows ? "notepad.exe" : "vi");
|
|
631
|
-
});
|
|
632
|
-
memo("shell", function() {
|
|
633
|
-
return isWindows ? process.env.ComSpec || "cmd" : process.env.SHELL || "bash";
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
// ../../node_modules/.pnpm/npm-package-arg@6.1.0/node_modules/npm-package-arg/npa.js
|
|
639
|
-
var require_npa = __commonJS({
|
|
640
|
-
"../../node_modules/.pnpm/npm-package-arg@6.1.0/node_modules/npm-package-arg/npa.js"(exports, module) {
|
|
641
|
-
"use strict";
|
|
642
|
-
module.exports = npa2;
|
|
643
|
-
module.exports.resolve = resolve;
|
|
644
|
-
module.exports.Result = Result;
|
|
645
|
-
var url;
|
|
646
|
-
var HostedGit;
|
|
647
|
-
var semver;
|
|
648
|
-
var path;
|
|
649
|
-
var validatePackageName;
|
|
650
|
-
var osenv;
|
|
651
|
-
var isWindows = process.platform === "win32" || global.FAKE_WINDOWS;
|
|
652
|
-
var hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
653
|
-
var isURL = /^(?:git[+])?[a-z]+:/i;
|
|
654
|
-
var isFilename = /[.](?:tgz|tar.gz|tar)$/i;
|
|
655
|
-
function npa2(arg, where) {
|
|
656
|
-
let name;
|
|
657
|
-
let spec;
|
|
658
|
-
if (typeof arg === "object") {
|
|
659
|
-
if (arg instanceof Result && (!where || where === arg.where)) {
|
|
660
|
-
return arg;
|
|
661
|
-
} else if (arg.name && arg.rawSpec) {
|
|
662
|
-
return npa2.resolve(arg.name, arg.rawSpec, where || arg.where);
|
|
663
|
-
} else {
|
|
664
|
-
return npa2(arg.raw, where || arg.where);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
const nameEndsAt = arg[0] === "@" ? arg.slice(1).indexOf("@") + 1 : arg.indexOf("@");
|
|
668
|
-
const namePart = nameEndsAt > 0 ? arg.slice(0, nameEndsAt) : arg;
|
|
669
|
-
if (isURL.test(arg)) {
|
|
670
|
-
spec = arg;
|
|
671
|
-
} else if (namePart[0] !== "@" && (hasSlashes.test(namePart) || isFilename.test(namePart))) {
|
|
672
|
-
spec = arg;
|
|
673
|
-
} else if (nameEndsAt > 0) {
|
|
674
|
-
name = namePart;
|
|
675
|
-
spec = arg.slice(nameEndsAt + 1);
|
|
676
|
-
} else {
|
|
677
|
-
if (!validatePackageName)
|
|
678
|
-
validatePackageName = require_validate_npm_package_name();
|
|
679
|
-
const valid = validatePackageName(arg);
|
|
680
|
-
if (valid.validForOldPackages) {
|
|
681
|
-
name = arg;
|
|
682
|
-
} else {
|
|
683
|
-
spec = arg;
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
return resolve(name, spec, where, arg);
|
|
687
|
-
}
|
|
688
|
-
var isFilespec = isWindows ? /^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/ : /^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;
|
|
689
|
-
function resolve(name, spec, where, arg) {
|
|
690
|
-
const res = new Result({
|
|
691
|
-
raw: arg,
|
|
692
|
-
name,
|
|
693
|
-
rawSpec: spec,
|
|
694
|
-
fromArgument: arg != null
|
|
695
|
-
});
|
|
696
|
-
if (name)
|
|
697
|
-
res.setName(name);
|
|
698
|
-
if (spec && (isFilespec.test(spec) || /^file:/i.test(spec))) {
|
|
699
|
-
return fromFile(res, where);
|
|
700
|
-
} else if (spec && /^npm:/i.test(spec)) {
|
|
701
|
-
return fromAlias(res, where);
|
|
702
|
-
}
|
|
703
|
-
if (!HostedGit)
|
|
704
|
-
HostedGit = require_hosted_git_info();
|
|
705
|
-
const hosted = HostedGit.fromUrl(spec, { noGitPlus: true, noCommittish: true });
|
|
706
|
-
if (hosted) {
|
|
707
|
-
return fromHostedGit(res, hosted);
|
|
708
|
-
} else if (spec && isURL.test(spec)) {
|
|
709
|
-
return fromURL(res);
|
|
710
|
-
} else if (spec && (hasSlashes.test(spec) || isFilename.test(spec))) {
|
|
711
|
-
return fromFile(res, where);
|
|
712
|
-
} else {
|
|
713
|
-
return fromRegistry(res);
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
function invalidPackageName(name, valid) {
|
|
717
|
-
const err = new Error(`Invalid package name "${name}": ${valid.errors.join("; ")}`);
|
|
718
|
-
err.code = "EINVALIDPACKAGENAME";
|
|
719
|
-
return err;
|
|
720
|
-
}
|
|
721
|
-
function invalidTagName(name) {
|
|
722
|
-
const err = new Error(`Invalid tag name "${name}": Tags may not have any characters that encodeURIComponent encodes.`);
|
|
723
|
-
err.code = "EINVALIDTAGNAME";
|
|
724
|
-
return err;
|
|
725
|
-
}
|
|
726
|
-
function Result(opts) {
|
|
727
|
-
this.type = opts.type;
|
|
728
|
-
this.registry = opts.registry;
|
|
729
|
-
this.where = opts.where;
|
|
730
|
-
if (opts.raw == null) {
|
|
731
|
-
this.raw = opts.name ? opts.name + "@" + opts.rawSpec : opts.rawSpec;
|
|
732
|
-
} else {
|
|
733
|
-
this.raw = opts.raw;
|
|
734
|
-
}
|
|
735
|
-
this.name = void 0;
|
|
736
|
-
this.escapedName = void 0;
|
|
737
|
-
this.scope = void 0;
|
|
738
|
-
this.rawSpec = opts.rawSpec == null ? "" : opts.rawSpec;
|
|
739
|
-
this.saveSpec = opts.saveSpec;
|
|
740
|
-
this.fetchSpec = opts.fetchSpec;
|
|
741
|
-
if (opts.name)
|
|
742
|
-
this.setName(opts.name);
|
|
743
|
-
this.gitRange = opts.gitRange;
|
|
744
|
-
this.gitCommittish = opts.gitCommittish;
|
|
745
|
-
this.hosted = opts.hosted;
|
|
746
|
-
}
|
|
747
|
-
Result.prototype = {};
|
|
748
|
-
Result.prototype.setName = function(name) {
|
|
749
|
-
if (!validatePackageName)
|
|
750
|
-
validatePackageName = require_validate_npm_package_name();
|
|
751
|
-
const valid = validatePackageName(name);
|
|
752
|
-
if (!valid.validForOldPackages) {
|
|
753
|
-
throw invalidPackageName(name, valid);
|
|
754
|
-
}
|
|
755
|
-
this.name = name;
|
|
756
|
-
this.scope = name[0] === "@" ? name.slice(0, name.indexOf("/")) : void 0;
|
|
757
|
-
this.escapedName = name.replace("/", "%2f");
|
|
758
|
-
return this;
|
|
759
|
-
};
|
|
760
|
-
Result.prototype.toString = function() {
|
|
761
|
-
const full = [];
|
|
762
|
-
if (this.name != null && this.name !== "")
|
|
763
|
-
full.push(this.name);
|
|
764
|
-
const spec = this.saveSpec || this.fetchSpec || this.rawSpec;
|
|
765
|
-
if (spec != null && spec !== "")
|
|
766
|
-
full.push(spec);
|
|
767
|
-
return full.length ? full.join("@") : this.raw;
|
|
768
|
-
};
|
|
769
|
-
Result.prototype.toJSON = function() {
|
|
770
|
-
const result = Object.assign({}, this);
|
|
771
|
-
delete result.hosted;
|
|
772
|
-
return result;
|
|
773
|
-
};
|
|
774
|
-
function setGitCommittish(res, committish) {
|
|
775
|
-
if (committish != null && committish.length >= 7 && committish.slice(0, 7) === "semver:") {
|
|
776
|
-
res.gitRange = decodeURIComponent(committish.slice(7));
|
|
777
|
-
res.gitCommittish = null;
|
|
778
|
-
} else {
|
|
779
|
-
res.gitCommittish = committish === "" ? null : committish;
|
|
780
|
-
}
|
|
781
|
-
return res;
|
|
782
|
-
}
|
|
783
|
-
var isAbsolutePath = /^[/]|^[A-Za-z]:/;
|
|
784
|
-
function resolvePath(where, spec) {
|
|
785
|
-
if (isAbsolutePath.test(spec))
|
|
786
|
-
return spec;
|
|
787
|
-
if (!path)
|
|
788
|
-
path = __require("path");
|
|
789
|
-
return path.resolve(where, spec);
|
|
790
|
-
}
|
|
791
|
-
function isAbsolute(dir) {
|
|
792
|
-
if (dir[0] === "/")
|
|
793
|
-
return true;
|
|
794
|
-
if (/^[A-Za-z]:/.test(dir))
|
|
795
|
-
return true;
|
|
796
|
-
return false;
|
|
797
|
-
}
|
|
798
|
-
function fromFile(res, where) {
|
|
799
|
-
if (!where)
|
|
800
|
-
where = process.cwd();
|
|
801
|
-
res.type = isFilename.test(res.rawSpec) ? "file" : "directory";
|
|
802
|
-
res.where = where;
|
|
803
|
-
const spec = res.rawSpec.replace(/\\/g, "/").replace(/^file:[/]*([A-Za-z]:)/, "$1").replace(/^file:(?:[/]*([~./]))?/, "$1");
|
|
804
|
-
if (/^~[/]/.test(spec)) {
|
|
805
|
-
if (!osenv)
|
|
806
|
-
osenv = require_osenv();
|
|
807
|
-
res.fetchSpec = resolvePath(osenv.home(), spec.slice(2));
|
|
808
|
-
res.saveSpec = "file:" + spec;
|
|
809
|
-
} else {
|
|
810
|
-
res.fetchSpec = resolvePath(where, spec);
|
|
811
|
-
if (isAbsolute(spec)) {
|
|
812
|
-
res.saveSpec = "file:" + spec;
|
|
813
|
-
} else {
|
|
814
|
-
if (!path)
|
|
815
|
-
path = __require("path");
|
|
816
|
-
res.saveSpec = "file:" + path.relative(where, res.fetchSpec);
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
return res;
|
|
820
|
-
}
|
|
821
|
-
function fromHostedGit(res, hosted) {
|
|
822
|
-
res.type = "git";
|
|
823
|
-
res.hosted = hosted;
|
|
824
|
-
res.saveSpec = hosted.toString({ noGitPlus: false, noCommittish: false });
|
|
825
|
-
res.fetchSpec = hosted.getDefaultRepresentation() === "shortcut" ? null : hosted.toString();
|
|
826
|
-
return setGitCommittish(res, hosted.committish);
|
|
827
|
-
}
|
|
828
|
-
function unsupportedURLType(protocol, spec) {
|
|
829
|
-
const err = new Error(`Unsupported URL Type "${protocol}": ${spec}`);
|
|
830
|
-
err.code = "EUNSUPPORTEDPROTOCOL";
|
|
831
|
-
return err;
|
|
832
|
-
}
|
|
833
|
-
function matchGitScp(spec) {
|
|
834
|
-
const matched = spec.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);
|
|
835
|
-
return matched && !matched[1].match(/:[0-9]+\/?.*$/i) && {
|
|
836
|
-
fetchSpec: matched[1],
|
|
837
|
-
gitCommittish: matched[2] == null ? null : matched[2]
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
function fromURL(res) {
|
|
841
|
-
if (!url)
|
|
842
|
-
url = __require("url");
|
|
843
|
-
const urlparse = url.parse(res.rawSpec);
|
|
844
|
-
res.saveSpec = res.rawSpec;
|
|
845
|
-
switch (urlparse.protocol) {
|
|
846
|
-
case "git:":
|
|
847
|
-
case "git+http:":
|
|
848
|
-
case "git+https:":
|
|
849
|
-
case "git+rsync:":
|
|
850
|
-
case "git+ftp:":
|
|
851
|
-
case "git+file:":
|
|
852
|
-
case "git+ssh:":
|
|
853
|
-
res.type = "git";
|
|
854
|
-
const match = urlparse.protocol === "git+ssh:" && matchGitScp(res.rawSpec);
|
|
855
|
-
if (match) {
|
|
856
|
-
setGitCommittish(res, match.gitCommittish);
|
|
857
|
-
res.fetchSpec = match.fetchSpec;
|
|
858
|
-
} else {
|
|
859
|
-
setGitCommittish(res, urlparse.hash != null ? urlparse.hash.slice(1) : "");
|
|
860
|
-
urlparse.protocol = urlparse.protocol.replace(/^git[+]/, "");
|
|
861
|
-
delete urlparse.hash;
|
|
862
|
-
res.fetchSpec = url.format(urlparse);
|
|
863
|
-
}
|
|
864
|
-
break;
|
|
865
|
-
case "http:":
|
|
866
|
-
case "https:":
|
|
867
|
-
res.type = "remote";
|
|
868
|
-
res.fetchSpec = res.saveSpec;
|
|
869
|
-
break;
|
|
870
|
-
default:
|
|
871
|
-
throw unsupportedURLType(urlparse.protocol, res.rawSpec);
|
|
872
|
-
}
|
|
873
|
-
return res;
|
|
874
|
-
}
|
|
875
|
-
function fromAlias(res, where) {
|
|
876
|
-
const subSpec = npa2(res.rawSpec.substr(4), where);
|
|
877
|
-
if (subSpec.type === "alias") {
|
|
878
|
-
throw new Error("nested aliases not supported");
|
|
879
|
-
}
|
|
880
|
-
if (!subSpec.registry) {
|
|
881
|
-
throw new Error("aliases only work for registry deps");
|
|
882
|
-
}
|
|
883
|
-
res.subSpec = subSpec;
|
|
884
|
-
res.registry = true;
|
|
885
|
-
res.type = "alias";
|
|
886
|
-
res.saveSpec = null;
|
|
887
|
-
res.fetchSpec = null;
|
|
888
|
-
return res;
|
|
889
|
-
}
|
|
890
|
-
function fromRegistry(res) {
|
|
891
|
-
res.registry = true;
|
|
892
|
-
const spec = res.rawSpec === "" ? "latest" : res.rawSpec;
|
|
893
|
-
res.saveSpec = null;
|
|
894
|
-
res.fetchSpec = spec;
|
|
895
|
-
if (!semver)
|
|
896
|
-
semver = require_semver();
|
|
897
|
-
const version2 = semver.valid(spec, true);
|
|
898
|
-
const range = semver.validRange(spec, true);
|
|
899
|
-
if (version2) {
|
|
900
|
-
res.type = "version";
|
|
901
|
-
} else if (range) {
|
|
902
|
-
res.type = "range";
|
|
903
|
-
} else {
|
|
904
|
-
if (encodeURIComponent(spec) !== spec) {
|
|
905
|
-
throw invalidTagName(spec);
|
|
906
|
-
}
|
|
907
|
-
res.type = "tag";
|
|
908
|
-
}
|
|
909
|
-
return res;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
|
|
914
|
-
// ../../internals/builder-orchestration/dist/import-builders.js
|
|
915
|
-
var require_import_builders = __commonJS({
|
|
916
|
-
"../../internals/builder-orchestration/dist/import-builders.js"(exports, module) {
|
|
917
|
-
"use strict";
|
|
918
|
-
var __create = Object.create;
|
|
919
|
-
var __defProp = Object.defineProperty;
|
|
920
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
921
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
922
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
923
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
924
|
-
var __export2 = (target, all) => {
|
|
925
|
-
for (var name in all)
|
|
926
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
927
|
-
};
|
|
928
|
-
var __copyProps = (to, from, except, desc) => {
|
|
929
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
930
|
-
for (let key of __getOwnPropNames(from))
|
|
931
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
932
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
933
|
-
}
|
|
934
|
-
return to;
|
|
935
|
-
};
|
|
936
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
937
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
938
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
939
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
940
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
941
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
942
|
-
mod
|
|
943
|
-
));
|
|
944
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
945
|
-
var import_builders_exports = {};
|
|
946
|
-
__export2(import_builders_exports, {
|
|
947
|
-
createImportBuilders: () => createImportBuilders2,
|
|
948
|
-
formatResolvedBuilders: () => formatResolvedBuilders2,
|
|
949
|
-
getBuildersDir: () => getBuildersDir2
|
|
950
|
-
});
|
|
951
|
-
module.exports = __toCommonJS(import_builders_exports);
|
|
952
|
-
var import_npm_package_arg2 = __toESM2(require_npa());
|
|
953
|
-
var import_semver = require_semver();
|
|
954
|
-
var import_path = __require("path");
|
|
955
|
-
var import_fs_extra = require_lib();
|
|
956
|
-
var import_fs_detectors = require_dist2();
|
|
957
|
-
var import_error_utils = require_dist();
|
|
958
|
-
function isRemoteBuilderPin(pin) {
|
|
959
|
-
return /^https?:\/\//i.test(pin);
|
|
960
|
-
}
|
|
961
|
-
function isBareSpec(parsed) {
|
|
962
|
-
return parsed.type === "tag" && parsed.rawSpec === "";
|
|
963
|
-
}
|
|
964
|
-
function formatResolvedBuilders2(builders) {
|
|
965
|
-
return Array.from(
|
|
966
|
-
builders.values(),
|
|
967
|
-
(b) => b.pkgPath ? `${b.pkg.name}@${b.pkg.version}=${(0, import_path.dirname)(b.pkgPath)}` : `${b.pkg.name}=built-in`
|
|
968
|
-
).join(",");
|
|
969
|
-
}
|
|
970
|
-
function pinBuilderSpecs(specs, pins) {
|
|
971
|
-
const pinnedSpecs = /* @__PURE__ */ new Map();
|
|
972
|
-
for (const spec of specs) {
|
|
973
|
-
const parsed = (0, import_npm_package_arg2.default)(spec);
|
|
974
|
-
if (parsed.name && isBareSpec(parsed)) {
|
|
975
|
-
const version2 = pins.get(parsed.name);
|
|
976
|
-
if (version2) {
|
|
977
|
-
pinnedSpecs.set(
|
|
978
|
-
spec,
|
|
979
|
-
isRemoteBuilderPin(version2) ? version2 : `${parsed.name}@${version2}`
|
|
980
|
-
);
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
return pinnedSpecs;
|
|
985
|
-
}
|
|
986
|
-
function getBuildersDir2(cwd, vercelDir = ".vercel") {
|
|
987
|
-
const override = process.env.VERCEL_BUILDERS_DIR;
|
|
988
|
-
if (override) {
|
|
989
|
-
return (0, import_path.isAbsolute)(override) ? override : (0, import_path.resolve)(cwd, override);
|
|
990
|
-
}
|
|
991
|
-
return (0, import_path.join)(cwd, vercelDir, "builders");
|
|
992
|
-
}
|
|
993
|
-
function createImportBuilders2(dependencies) {
|
|
994
|
-
const {
|
|
995
|
-
debug,
|
|
996
|
-
installBuilders: installBuilders2,
|
|
997
|
-
isNativeBinaryInstall: isNativeBinaryInstall2,
|
|
998
|
-
require: require2,
|
|
999
|
-
staticBuilder,
|
|
1000
|
-
vercelDir
|
|
1001
|
-
} = dependencies;
|
|
1002
|
-
const builderPins = /* @__PURE__ */ new Map();
|
|
1003
|
-
for (const [name, version2] of Object.entries(dependencies.builderPins)) {
|
|
1004
|
-
if ((0, import_semver.validRange)(version2) || isRemoteBuilderPin(version2)) {
|
|
1005
|
-
builderPins.set(name, version2);
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
const resolveDependencies = {
|
|
1009
|
-
builderPins,
|
|
1010
|
-
debug,
|
|
1011
|
-
isNativeBinaryInstall: isNativeBinaryInstall2,
|
|
1012
|
-
require: require2,
|
|
1013
|
-
staticBuilder
|
|
1014
|
-
};
|
|
1015
|
-
return async function importBuilders2(builderSpecs, cwd, span) {
|
|
1016
|
-
const buildersDir = getBuildersDir2(cwd, vercelDir);
|
|
1017
|
-
let importResult = await resolveBuilders(
|
|
1018
|
-
buildersDir,
|
|
1019
|
-
builderSpecs,
|
|
1020
|
-
resolveDependencies
|
|
1021
|
-
);
|
|
1022
|
-
if ("buildersToAdd" in importResult) {
|
|
1023
|
-
const { buildersToAdd, installReasons } = importResult;
|
|
1024
|
-
const pinnedSpecs = pinBuilderSpecs(buildersToAdd, builderPins);
|
|
1025
|
-
const installResult = await installBuilders2(
|
|
1026
|
-
buildersDir,
|
|
1027
|
-
new Set(
|
|
1028
|
-
Array.from(buildersToAdd, (spec) => pinnedSpecs.get(spec) ?? spec)
|
|
1029
|
-
),
|
|
1030
|
-
span,
|
|
1031
|
-
installReasons,
|
|
1032
|
-
pinnedSpecs
|
|
1033
|
-
);
|
|
1034
|
-
const allowedPinDriftSpecs = new Set(
|
|
1035
|
-
Array.from(pinnedSpecs.keys()).filter((spec) => installResult.has(spec))
|
|
1036
|
-
);
|
|
1037
|
-
importResult = await resolveBuilders(
|
|
1038
|
-
buildersDir,
|
|
1039
|
-
builderSpecs,
|
|
1040
|
-
resolveDependencies,
|
|
1041
|
-
installResult,
|
|
1042
|
-
allowedPinDriftSpecs
|
|
1043
|
-
);
|
|
1044
|
-
if ("buildersToAdd" in importResult) {
|
|
1045
|
-
const { buildersToAdd: failed, installReasons: reasons } = importResult;
|
|
1046
|
-
const failures = Array.from(failed, (spec) => {
|
|
1047
|
-
const reason = reasons.get(spec);
|
|
1048
|
-
return reason ? `${spec} (${reason})` : spec;
|
|
1049
|
-
});
|
|
1050
|
-
const err = new Error(
|
|
1051
|
-
`Failed to load Builders after installing them: ${failures.join(
|
|
1052
|
-
", "
|
|
1053
|
-
)}. Retry the build. If the failure persists, contact Vercel Support.`
|
|
1054
|
-
);
|
|
1055
|
-
Object.assign(err, {
|
|
1056
|
-
link: "https://vercel.link/builder-dependencies-install-failed"
|
|
1057
|
-
});
|
|
1058
|
-
throw err;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
const resolvedBuildersDebug = [];
|
|
1062
|
-
for (const [spec, builderSpec] of importResult.builders) {
|
|
1063
|
-
resolvedBuildersDebug.push(`${spec} => ${builderSpec.pkg.version}`);
|
|
1064
|
-
}
|
|
1065
|
-
debug(`Resolved builders: "${resolvedBuildersDebug.join(", ")}"`);
|
|
1066
|
-
return importResult.builders;
|
|
1067
|
-
};
|
|
1068
|
-
}
|
|
1069
|
-
function missingModuleId(err) {
|
|
1070
|
-
const match = /Cannot find module '([^']+)'/.exec(err.message);
|
|
1071
|
-
const id = match?.[1];
|
|
1072
|
-
if (!id) {
|
|
1073
|
-
return void 0;
|
|
1074
|
-
}
|
|
1075
|
-
if (id.startsWith("/") || id.startsWith(".") || /^[A-Za-z]:[\\/]/.test(id)) {
|
|
1076
|
-
return void 0;
|
|
1077
|
-
}
|
|
1078
|
-
return id.replace(/[,=]/g, "_").slice(0, 100);
|
|
1079
|
-
}
|
|
1080
|
-
async function resolveBuilders(buildersDir, builderSpecs, dependencies, resolvedSpecs, allowedPinDriftSpecs) {
|
|
1081
|
-
const builders = /* @__PURE__ */ new Map();
|
|
1082
|
-
const buildersToAdd = /* @__PURE__ */ new Set();
|
|
1083
|
-
const installReasons = /* @__PURE__ */ new Map();
|
|
1084
|
-
for (const spec of builderSpecs) {
|
|
1085
|
-
const resolvedSpec = resolvedSpecs?.get(spec) || spec;
|
|
1086
|
-
const parsed = (0, import_npm_package_arg2.default)(resolvedSpec);
|
|
1087
|
-
const { name } = parsed;
|
|
1088
|
-
if (!name) {
|
|
1089
|
-
buildersToAdd.add(spec);
|
|
1090
|
-
installReasons.set(spec, "url-spec");
|
|
1091
|
-
continue;
|
|
1092
|
-
}
|
|
1093
|
-
if ((0, import_fs_detectors.isStaticRuntime)(name)) {
|
|
1094
|
-
builders.set(name, {
|
|
1095
|
-
builder: dependencies.staticBuilder,
|
|
1096
|
-
pkg: { name },
|
|
1097
|
-
path: "",
|
|
1098
|
-
pkgPath: "",
|
|
1099
|
-
dynamicallyInstalled: false
|
|
1100
|
-
});
|
|
1101
|
-
continue;
|
|
1102
|
-
}
|
|
1103
|
-
let entrypointLoadFailed = false;
|
|
1104
|
-
try {
|
|
1105
|
-
let pkgPath;
|
|
1106
|
-
let builderPkg;
|
|
1107
|
-
try {
|
|
1108
|
-
pkgPath = (0, import_path.join)(buildersDir, "node_modules", name, "package.json");
|
|
1109
|
-
builderPkg = await (0, import_fs_extra.readJSON)(pkgPath);
|
|
1110
|
-
} catch (error) {
|
|
1111
|
-
if (!(0, import_error_utils.isErrnoException)(error)) {
|
|
1112
|
-
throw error;
|
|
1113
|
-
}
|
|
1114
|
-
if (error.code !== "ENOENT") {
|
|
1115
|
-
throw error;
|
|
1116
|
-
}
|
|
1117
|
-
if (dependencies.isNativeBinaryInstall()) {
|
|
1118
|
-
buildersToAdd.add(spec);
|
|
1119
|
-
installReasons.set(spec, "not-installed");
|
|
1120
|
-
continue;
|
|
1121
|
-
}
|
|
1122
|
-
pkgPath = dependencies.require.resolve(`${name}/package.json`);
|
|
1123
|
-
builderPkg = await (0, import_fs_extra.readJSON)(pkgPath);
|
|
1124
|
-
}
|
|
1125
|
-
if (!builderPkg || !pkgPath) {
|
|
1126
|
-
throw new Error(`Failed to load \`package.json\` for "${name}"`);
|
|
1127
|
-
}
|
|
1128
|
-
if (typeof builderPkg.version !== "string") {
|
|
1129
|
-
throw new Error(
|
|
1130
|
-
`\`package.json\` for "${name}" does not contain a "version" field`
|
|
1131
|
-
);
|
|
1132
|
-
}
|
|
1133
|
-
const peerVersion = dependencies.builderPins.get(name);
|
|
1134
|
-
if (isBareSpec(parsed) && peerVersion && (0, import_semver.valid)(peerVersion) && builderPkg.version !== peerVersion && !allowedPinDriftSpecs?.has(spec)) {
|
|
1135
|
-
dependencies.debug(
|
|
1136
|
-
`Resolved "${name}@${builderPkg.version}" does not match pin "${peerVersion}"`
|
|
1137
|
-
);
|
|
1138
|
-
buildersToAdd.add(spec);
|
|
1139
|
-
installReasons.set(spec, "pin-version-mismatch");
|
|
1140
|
-
continue;
|
|
1141
|
-
}
|
|
1142
|
-
if (isBareSpec(parsed) && peerVersion && isRemoteBuilderPin(peerVersion) && pkgPath.startsWith(buildersDir) && !allowedPinDriftSpecs?.has(spec)) {
|
|
1143
|
-
let installedSpec;
|
|
1144
|
-
try {
|
|
1145
|
-
const buildersPkg = await (0, import_fs_extra.readJSON)((0, import_path.join)(buildersDir, "package.json"));
|
|
1146
|
-
installedSpec = buildersPkg.dependencies?.[name];
|
|
1147
|
-
} catch (error) {
|
|
1148
|
-
if (!(0, import_error_utils.isErrnoException)(error) || error.code !== "ENOENT") {
|
|
1149
|
-
throw error;
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
if (installedSpec !== peerVersion) {
|
|
1153
|
-
dependencies.debug(
|
|
1154
|
-
`Installed source for "${name}@${builderPkg.version}" is "${installedSpec ?? "unknown"}", not pin "${peerVersion}"`
|
|
1155
|
-
);
|
|
1156
|
-
if (dependencies.isNativeBinaryInstall()) {
|
|
1157
|
-
buildersToAdd.add(spec);
|
|
1158
|
-
installReasons.set(spec, "preview-pack-mismatch");
|
|
1159
|
-
continue;
|
|
1160
|
-
}
|
|
1161
|
-
try {
|
|
1162
|
-
pkgPath = dependencies.require.resolve(`${name}/package.json`);
|
|
1163
|
-
builderPkg = await (0, import_fs_extra.readJSON)(pkgPath);
|
|
1164
|
-
} catch (resolveError) {
|
|
1165
|
-
if ((0, import_error_utils.isErrnoException)(resolveError) && (resolveError.code === "MODULE_NOT_FOUND" || resolveError.code === "ENOENT")) {
|
|
1166
|
-
buildersToAdd.add(spec);
|
|
1167
|
-
installReasons.set(spec, "preview-pack-mismatch");
|
|
1168
|
-
continue;
|
|
1169
|
-
}
|
|
1170
|
-
throw resolveError;
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
if (!builderPkg || !pkgPath) {
|
|
1175
|
-
throw new Error(`Failed to load \`package.json\` for "${name}"`);
|
|
1176
|
-
}
|
|
1177
|
-
if (typeof builderPkg.version !== "string") {
|
|
1178
|
-
throw new Error(
|
|
1179
|
-
`\`package.json\` for "${name}" does not contain a "version" field`
|
|
1180
|
-
);
|
|
1181
|
-
}
|
|
1182
|
-
if (parsed.type === "version" && parsed.rawSpec !== builderPkg.version) {
|
|
1183
|
-
dependencies.debug(
|
|
1184
|
-
`Installed version "${name}@${builderPkg.version}" does not match "${parsed.rawSpec}"`
|
|
1185
|
-
);
|
|
1186
|
-
buildersToAdd.add(spec);
|
|
1187
|
-
installReasons.set(spec, "version-mismatch");
|
|
1188
|
-
continue;
|
|
1189
|
-
}
|
|
1190
|
-
if (parsed.type === "range" && !(0, import_semver.satisfies)(builderPkg.version, parsed.rawSpec)) {
|
|
1191
|
-
dependencies.debug(
|
|
1192
|
-
`Installed version "${name}@${builderPkg.version}" is not compatible with "${parsed.rawSpec}"`
|
|
1193
|
-
);
|
|
1194
|
-
buildersToAdd.add(spec);
|
|
1195
|
-
installReasons.set(spec, "range-mismatch");
|
|
1196
|
-
continue;
|
|
1197
|
-
}
|
|
1198
|
-
const path = (0, import_path.join)((0, import_path.dirname)(pkgPath), builderPkg.main || "index.js");
|
|
1199
|
-
let builder;
|
|
1200
|
-
try {
|
|
1201
|
-
builder = dependencies.require(path);
|
|
1202
|
-
} catch (requireErr) {
|
|
1203
|
-
entrypointLoadFailed = true;
|
|
1204
|
-
throw requireErr;
|
|
1205
|
-
}
|
|
1206
|
-
const dynamicallyInstalled = pkgPath.startsWith(buildersDir);
|
|
1207
|
-
builders.set(spec, {
|
|
1208
|
-
builder,
|
|
1209
|
-
pkg: {
|
|
1210
|
-
name,
|
|
1211
|
-
...builderPkg
|
|
1212
|
-
},
|
|
1213
|
-
path,
|
|
1214
|
-
pkgPath,
|
|
1215
|
-
dynamicallyInstalled
|
|
1216
|
-
});
|
|
1217
|
-
dependencies.debug(
|
|
1218
|
-
`Imported Builder "${name}" from "${(0, import_path.dirname)(pkgPath)}"`
|
|
1219
|
-
);
|
|
1220
|
-
} catch (error) {
|
|
1221
|
-
if (!(error instanceof Error)) {
|
|
1222
|
-
throw error;
|
|
1223
|
-
}
|
|
1224
|
-
const err = error;
|
|
1225
|
-
if ((err.code === "MODULE_NOT_FOUND" || err.code === "ENOENT") && !resolvedSpecs) {
|
|
1226
|
-
dependencies.debug(`Failed to import "${name}": ${err}`);
|
|
1227
|
-
buildersToAdd.add(spec);
|
|
1228
|
-
if (entrypointLoadFailed) {
|
|
1229
|
-
const missing = missingModuleId(err);
|
|
1230
|
-
installReasons.set(
|
|
1231
|
-
spec,
|
|
1232
|
-
missing ? `entrypoint-load-failed:${missing}` : "entrypoint-load-failed"
|
|
1233
|
-
);
|
|
1234
|
-
} else {
|
|
1235
|
-
installReasons.set(spec, "not-installed");
|
|
1236
|
-
}
|
|
1237
|
-
} else {
|
|
1238
|
-
err.message = `Importing "${name}": ${err.message}`;
|
|
1239
|
-
throw err;
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
if (buildersToAdd.size > 0) {
|
|
1244
|
-
return { buildersToAdd, installReasons };
|
|
1245
|
-
}
|
|
1246
|
-
return { builders };
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
});
|
|
1250
|
-
|
|
1251
|
-
// ../../internals/builder-orchestration/dist/static-builder.js
|
|
1252
|
-
var require_static_builder = __commonJS({
|
|
1253
|
-
"../../internals/builder-orchestration/dist/static-builder.js"(exports, module) {
|
|
1254
|
-
"use strict";
|
|
1255
|
-
var __create = Object.create;
|
|
1256
|
-
var __defProp = Object.defineProperty;
|
|
1257
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1258
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1259
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
1260
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1261
|
-
var __export2 = (target, all) => {
|
|
1262
|
-
for (var name in all)
|
|
1263
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1264
|
-
};
|
|
1265
|
-
var __copyProps = (to, from, except, desc) => {
|
|
1266
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
1267
|
-
for (let key of __getOwnPropNames(from))
|
|
1268
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1269
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1270
|
-
}
|
|
1271
|
-
return to;
|
|
1272
|
-
};
|
|
1273
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
1274
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
1275
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
1276
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1277
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1278
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
1279
|
-
mod
|
|
1280
|
-
));
|
|
1281
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1282
|
-
var static_builder_exports2 = {};
|
|
1283
|
-
__export2(static_builder_exports2, {
|
|
1284
|
-
createStaticBuilder: () => createStaticBuilder2,
|
|
1285
|
-
version: () => version2
|
|
1286
|
-
});
|
|
1287
|
-
module.exports = __toCommonJS(static_builder_exports2);
|
|
1288
|
-
var import_minimatch = __toESM2(require_minimatch());
|
|
1289
|
-
var import_build_utils = __require("@vercel/build-utils");
|
|
1290
|
-
var version2 = 2;
|
|
1291
|
-
var ALWAYS_EXCLUDED_PREFIXES = [".git/", "node_modules/"];
|
|
1292
|
-
var DEFAULT_EXCLUDED_FILES = [
|
|
1293
|
-
".gitignore",
|
|
1294
|
-
"package.json",
|
|
1295
|
-
"package-lock.json",
|
|
1296
|
-
"yarn.lock",
|
|
1297
|
-
"pnpm-lock.yaml",
|
|
1298
|
-
"bun.lock",
|
|
1299
|
-
"bun.lockb",
|
|
1300
|
-
"README.md"
|
|
1301
|
-
];
|
|
1302
|
-
function createStaticBuilder2(vercelConfigExtensions) {
|
|
1303
|
-
const alwaysExcludedFiles = [
|
|
1304
|
-
"vercel.json",
|
|
1305
|
-
"vercel.toml",
|
|
1306
|
-
...vercelConfigExtensions.map((ext) => `vercel.${ext}`),
|
|
1307
|
-
".vercelignore",
|
|
1308
|
-
"now.json",
|
|
1309
|
-
".nowignore"
|
|
1310
|
-
];
|
|
1311
|
-
const build2 = async ({ entrypoint, files, config }) => {
|
|
1312
|
-
const output = {};
|
|
1313
|
-
const outputDirectory = config.zeroConfig ? config.outputDirectory : "";
|
|
1314
|
-
for (let [filename, fileFsRef] of Object.entries(files)) {
|
|
1315
|
-
if (ALWAYS_EXCLUDED_PREFIXES.some((prefix) => filename.startsWith(prefix)) || alwaysExcludedFiles.includes(filename) || DEFAULT_EXCLUDED_FILES.includes(filename) || filename.startsWith(".env")) {
|
|
1316
|
-
continue;
|
|
1317
|
-
}
|
|
1318
|
-
if (entrypoint && !(entrypoint === filename || (0, import_minimatch.default)(filename, entrypoint, { dot: true }))) {
|
|
1319
|
-
continue;
|
|
1320
|
-
}
|
|
1321
|
-
if (outputDirectory) {
|
|
1322
|
-
const outputMatch = outputDirectory + "/";
|
|
1323
|
-
if (filename.startsWith(outputMatch)) {
|
|
1324
|
-
filename = filename.slice(outputMatch.length);
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
output[filename] = fileFsRef;
|
|
1328
|
-
}
|
|
1329
|
-
return { output };
|
|
1330
|
-
};
|
|
1331
|
-
const shouldServe2 = (_opts) => {
|
|
1332
|
-
const opts = { ..._opts };
|
|
1333
|
-
const {
|
|
1334
|
-
config: { zeroConfig, outputDirectory }
|
|
1335
|
-
} = opts;
|
|
1336
|
-
if (zeroConfig && outputDirectory) {
|
|
1337
|
-
opts.entrypoint = `${outputDirectory}/${opts.entrypoint}`;
|
|
1338
|
-
opts.requestPath = `${outputDirectory}/${opts.requestPath}`;
|
|
1339
|
-
}
|
|
1340
|
-
return (0, import_build_utils.shouldServe)(opts);
|
|
1341
|
-
};
|
|
1342
|
-
return { version: version2, build: build2, shouldServe: shouldServe2 };
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
|
|
1347
|
-
// ../../internals/builder-orchestration/dist/install-builders.js
|
|
1348
|
-
var require_install_builders = __commonJS({
|
|
1349
|
-
"../../internals/builder-orchestration/dist/install-builders.js"(exports, module) {
|
|
1350
|
-
"use strict";
|
|
1351
|
-
var __create = Object.create;
|
|
1352
|
-
var __defProp = Object.defineProperty;
|
|
1353
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1354
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1355
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
1356
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1357
|
-
var __export2 = (target, all) => {
|
|
1358
|
-
for (var name in all)
|
|
1359
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1360
|
-
};
|
|
1361
|
-
var __copyProps = (to, from, except, desc) => {
|
|
1362
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
1363
|
-
for (let key of __getOwnPropNames(from))
|
|
1364
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1365
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1366
|
-
}
|
|
1367
|
-
return to;
|
|
1368
|
-
};
|
|
1369
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
1370
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
1371
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
1372
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1373
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1374
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
1375
|
-
mod
|
|
1376
|
-
));
|
|
1377
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1378
|
-
var install_builders_exports = {};
|
|
1379
|
-
__export2(install_builders_exports, {
|
|
1380
|
-
createInstallBuilders: () => createInstallBuilders2,
|
|
1381
|
-
getBuildUtilsSpec: () => getBuildUtilsSpec
|
|
1382
|
-
});
|
|
1383
|
-
module.exports = __toCommonJS(install_builders_exports);
|
|
1384
|
-
var import_url = __require("url");
|
|
1385
|
-
var import_pluralize = __toESM2(require_pluralize());
|
|
1386
|
-
var import_path = __require("path");
|
|
1387
|
-
var import_npm_package_arg2 = __toESM2(require_npa());
|
|
1388
|
-
var import_semver = require_semver();
|
|
1389
|
-
var import_fs_extra = require_lib();
|
|
1390
|
-
var import_error_utils = require_dist();
|
|
1391
|
-
function getBuildUtilsSpec(buildUtilsVersion) {
|
|
1392
|
-
if (!buildUtilsVersion)
|
|
1393
|
-
return "@vercel/build-utils";
|
|
1394
|
-
if ((0, import_semver.validRange)(buildUtilsVersion)) {
|
|
1395
|
-
return `@vercel/build-utils@${buildUtilsVersion}`;
|
|
1396
|
-
}
|
|
1397
|
-
try {
|
|
1398
|
-
if ((0, import_npm_package_arg2.default)(buildUtilsVersion).type === "remote") {
|
|
1399
|
-
return `@vercel/build-utils@${buildUtilsVersion}`;
|
|
1400
|
-
}
|
|
1401
|
-
} catch {
|
|
1402
|
-
}
|
|
1403
|
-
return "@vercel/build-utils";
|
|
1404
|
-
}
|
|
1405
|
-
function getErrorMessage(err, execaMessage) {
|
|
1406
|
-
if (!err || !("stderr" in err)) {
|
|
1407
|
-
return execaMessage;
|
|
1408
|
-
}
|
|
1409
|
-
if (typeof err.stderr === "string") {
|
|
1410
|
-
return err.stderr;
|
|
1411
|
-
}
|
|
1412
|
-
return execaMessage;
|
|
1413
|
-
}
|
|
1414
|
-
async function untracedInstallBuilders(buildersDir, buildersToAdd, dependencies) {
|
|
1415
|
-
const { buildUtilsVersion, code: code2, cmd: cmd2, output, readJSONFile: readJSONFile2, run } = dependencies;
|
|
1416
|
-
const resolvedSpecs = /* @__PURE__ */ new Map();
|
|
1417
|
-
const buildersPkgPath = (0, import_path.join)(buildersDir, "package.json");
|
|
1418
|
-
try {
|
|
1419
|
-
const emptyPkgJson = {
|
|
1420
|
-
private: true,
|
|
1421
|
-
license: "UNLICENSED"
|
|
1422
|
-
};
|
|
1423
|
-
await (0, import_fs_extra.outputJSON)(buildersPkgPath, emptyPkgJson, {
|
|
1424
|
-
flag: "wx"
|
|
1425
|
-
});
|
|
1426
|
-
} catch (error) {
|
|
1427
|
-
if (!(0, import_error_utils.isErrnoException)(error) || error.code !== "EEXIST")
|
|
1428
|
-
throw error;
|
|
1429
|
-
}
|
|
1430
|
-
output.log(
|
|
1431
|
-
`Installing ${(0, import_pluralize.default)("Builder", buildersToAdd.size)}: ${Array.from(
|
|
1432
|
-
buildersToAdd
|
|
1433
|
-
).join(", ")}`
|
|
1434
|
-
);
|
|
1435
|
-
const buildUtilsSpec = getBuildUtilsSpec(buildUtilsVersion);
|
|
1436
|
-
const installArgs = ["install", buildUtilsSpec, ...buildersToAdd];
|
|
1437
|
-
try {
|
|
1438
|
-
const { stderr } = await run("npm", installArgs, {
|
|
1439
|
-
cwd: buildersDir,
|
|
1440
|
-
stdio: "pipe",
|
|
1441
|
-
reject: true
|
|
1442
|
-
});
|
|
1443
|
-
stderr.split("/\r?\n/").filter((line) => line.includes("npm WARN deprecated")).forEach((line) => {
|
|
1444
|
-
output.warn(line);
|
|
1445
|
-
});
|
|
1446
|
-
} catch (err) {
|
|
1447
|
-
if ((0, import_error_utils.isError)(err)) {
|
|
1448
|
-
const execaMessage = err.message;
|
|
1449
|
-
let message = getErrorMessage(err, execaMessage);
|
|
1450
|
-
if (execaMessage.startsWith("Command failed with ENOENT")) {
|
|
1451
|
-
message = `Please install ${cmd2("npm")} before continuing`;
|
|
1452
|
-
} else {
|
|
1453
|
-
const notFound = /GET (.*) - Not found/.exec(message);
|
|
1454
|
-
const notFoundUrl = notFound?.[1];
|
|
1455
|
-
if (notFoundUrl) {
|
|
1456
|
-
const url = new import_url.URL(notFoundUrl);
|
|
1457
|
-
const packagePath = decodeURIComponent(url.pathname);
|
|
1458
|
-
const packageName = /(@[^/]+\/[^/]+)$/.exec(packagePath)?.[1] ?? packagePath.split("/").filter(Boolean).at(-1) ?? packagePath;
|
|
1459
|
-
message = `The package ${code2(
|
|
1460
|
-
packageName
|
|
1461
|
-
)} is not published on the npm registry`;
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
err.message = message;
|
|
1465
|
-
Object.assign(err, {
|
|
1466
|
-
link: "https://vercel.link/builder-dependencies-install-failed"
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
throw err;
|
|
1470
|
-
}
|
|
1471
|
-
const nowScopePath = (0, import_path.join)(buildersDir, "node_modules/@now");
|
|
1472
|
-
await (0, import_fs_extra.mkdirp)(nowScopePath);
|
|
1473
|
-
try {
|
|
1474
|
-
await (0, import_fs_extra.symlink)("../@vercel/build-utils", (0, import_path.join)(nowScopePath, "build-utils"));
|
|
1475
|
-
} catch (err) {
|
|
1476
|
-
if (!(0, import_error_utils.isErrnoException)(err) || err.code !== "EEXIST") {
|
|
1477
|
-
throw err;
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
const buildersPkg = await readJSONFile2(buildersPkgPath);
|
|
1481
|
-
if (dependencies.isCantParseJSONFile(buildersPkg))
|
|
1482
|
-
throw buildersPkg;
|
|
1483
|
-
if (!buildersPkg) {
|
|
1484
|
-
throw new Error(`Failed to load "${buildersPkgPath}"`);
|
|
1485
|
-
}
|
|
1486
|
-
for (const spec of buildersToAdd) {
|
|
1487
|
-
for (const [name, version2] of Object.entries(
|
|
1488
|
-
buildersPkg.dependencies || {}
|
|
1489
|
-
)) {
|
|
1490
|
-
if (version2 === spec) {
|
|
1491
|
-
output.debug(`Resolved Builder spec "${spec}" to name "${name}"`);
|
|
1492
|
-
resolvedSpecs.set(spec, name);
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
return resolvedSpecs;
|
|
1497
|
-
}
|
|
1498
|
-
function createInstallBuilders2(dependencies) {
|
|
1499
|
-
const { output } = dependencies;
|
|
1500
|
-
return async function installBuilders2(buildersDir, buildersToAdd, span, installReasons, pinnedSpecs) {
|
|
1501
|
-
const install = async () => {
|
|
1502
|
-
try {
|
|
1503
|
-
return await untracedInstallBuilders(
|
|
1504
|
-
buildersDir,
|
|
1505
|
-
buildersToAdd,
|
|
1506
|
-
dependencies
|
|
1507
|
-
);
|
|
1508
|
-
} catch (err) {
|
|
1509
|
-
if (!pinnedSpecs?.size) {
|
|
1510
|
-
throw err;
|
|
1511
|
-
}
|
|
1512
|
-
const fallbackSpecs = new Set(
|
|
1513
|
-
Array.from(buildersToAdd, (spec) => {
|
|
1514
|
-
for (const [originalSpec, pinnedSpec] of pinnedSpecs) {
|
|
1515
|
-
if (pinnedSpec === spec) {
|
|
1516
|
-
return originalSpec;
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
return spec;
|
|
1520
|
-
})
|
|
1521
|
-
);
|
|
1522
|
-
output.warn(
|
|
1523
|
-
"Could not install the Builder versions pinned by this Vercel CLI release. Retrying with versions allowed by your npm settings."
|
|
1524
|
-
);
|
|
1525
|
-
const resolvedSpecs = await untracedInstallBuilders(
|
|
1526
|
-
buildersDir,
|
|
1527
|
-
fallbackSpecs,
|
|
1528
|
-
dependencies
|
|
1529
|
-
);
|
|
1530
|
-
for (const originalSpec of pinnedSpecs.keys()) {
|
|
1531
|
-
if (fallbackSpecs.has(originalSpec)) {
|
|
1532
|
-
resolvedSpecs.set(originalSpec, originalSpec);
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
return resolvedSpecs;
|
|
1536
|
-
}
|
|
1537
|
-
};
|
|
1538
|
-
if (!span) {
|
|
1539
|
-
return install();
|
|
1540
|
-
}
|
|
1541
|
-
const attributes = {
|
|
1542
|
-
packages: Array.from(buildersToAdd).join(",")
|
|
1543
|
-
};
|
|
1544
|
-
if (installReasons && installReasons.size > 0) {
|
|
1545
|
-
attributes.reasons = Array.from(installReasons).map(([spec, reason]) => `${spec}=${reason}`).join(",");
|
|
1546
|
-
}
|
|
1547
|
-
if (pinnedSpecs && pinnedSpecs.size > 0) {
|
|
1548
|
-
attributes.pinned = "true";
|
|
1549
|
-
attributes.pinnedPackages = Array.from(pinnedSpecs.values()).join(",");
|
|
1550
|
-
}
|
|
1551
|
-
const installSpan = span.child("vc.installBuilders", attributes);
|
|
1552
|
-
return installSpan.trace(async (s) => {
|
|
1553
|
-
try {
|
|
1554
|
-
return await install();
|
|
1555
|
-
} catch (err) {
|
|
1556
|
-
s.setAttributes({
|
|
1557
|
-
error: (0, import_error_utils.isError)(err) ? err.message : String(err)
|
|
1558
|
-
});
|
|
1559
|
-
throw err;
|
|
1560
|
-
}
|
|
1561
|
-
});
|
|
1562
|
-
};
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
});
|
|
1566
|
-
|
|
1567
|
-
// src/builders/import-builders.ts
|
|
1568
|
-
var import_import_builders = __toESM(require_import_builders(), 1);
|
|
1569
|
-
|
|
1570
|
-
// src/builders/static-builder.ts
|
|
1571
|
-
var static_builder_exports = {};
|
|
1572
|
-
__export(static_builder_exports, {
|
|
1573
|
-
build: () => build,
|
|
1574
|
-
shouldServe: () => shouldServe,
|
|
1575
|
-
version: () => version
|
|
1576
|
-
});
|
|
1577
|
-
var import_static_builder = __toESM(require_static_builder(), 1);
|
|
1578
|
-
var { version, build, shouldServe } = (0, import_static_builder.createStaticBuilder)(
|
|
1579
|
-
VERCEL_CONFIG_EXTENSIONS
|
|
1580
|
-
);
|
|
1581
|
-
|
|
1582
|
-
// src/builders/install-builders.ts
|
|
1583
|
-
var import_install_builders = __toESM(require_install_builders(), 1);
|
|
1584
|
-
var import_execa = __toESM(require_execa(), 1);
|
|
1585
|
-
var installBuilders = (0, import_install_builders.createInstallBuilders)({
|
|
1586
|
-
buildUtilsVersion: pkg_default.dependencies?.["@vercel/build-utils"],
|
|
1587
|
-
code,
|
|
1588
|
-
cmd,
|
|
1589
|
-
isCantParseJSONFile: (value) => value instanceof CantParseJSONFile,
|
|
1590
|
-
output: output_manager_default,
|
|
1591
|
-
readJSONFile,
|
|
1592
|
-
run: import_execa.default
|
|
1593
|
-
});
|
|
1594
|
-
|
|
1595
|
-
// src/builders/import-builders.ts
|
|
1596
|
-
import { createRequire } from "module";
|
|
1597
|
-
|
|
1598
|
-
// src/builders/vlt-builder-graph.ts
|
|
1599
|
-
import { brotliDecompress } from "zlib";
|
|
1600
|
-
import { promisify } from "util";
|
|
1601
|
-
import { readFile } from "fs/promises";
|
|
1602
|
-
import { join } from "path";
|
|
1603
|
-
var decompress = promisify(brotliDecompress);
|
|
1604
|
-
var embeddedGraphs;
|
|
1605
|
-
function defaultGraphPaths() {
|
|
1606
|
-
return [
|
|
1607
|
-
join(__dirname, "builder-graph.json.br"),
|
|
1608
|
-
join(__dirname, "..", "builders", "builder-graph.json.br")
|
|
1609
|
-
];
|
|
1610
|
-
}
|
|
1611
|
-
async function readDefaultGraph() {
|
|
1612
|
-
let lastError;
|
|
1613
|
-
for (const path of defaultGraphPaths()) {
|
|
1614
|
-
try {
|
|
1615
|
-
return await readFile(path);
|
|
1616
|
-
} catch (error) {
|
|
1617
|
-
lastError = error;
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
throw lastError;
|
|
1621
|
-
}
|
|
1622
|
-
function loadEmbeddedBuilderGraphs(readGraph = readDefaultGraph) {
|
|
1623
|
-
embeddedGraphs ??= (async () => {
|
|
1624
|
-
try {
|
|
1625
|
-
const compressed = await readGraph();
|
|
1626
|
-
const graphs = JSON.parse(
|
|
1627
|
-
(await decompress(new Uint8Array(compressed))).toString("utf8")
|
|
1628
|
-
);
|
|
1629
|
-
if (graphs.schemaVersion !== 1 || !graphs.builders || typeof graphs.builders !== "object") {
|
|
1630
|
-
throw new Error("invalid schema");
|
|
1631
|
-
}
|
|
1632
|
-
return graphs;
|
|
1633
|
-
} catch (error) {
|
|
1634
|
-
embeddedGraphs = void 0;
|
|
1635
|
-
throw new Error("Could not load the embedded vlt Builder graphs.", {
|
|
1636
|
-
cause: error
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
})();
|
|
1640
|
-
return embeddedGraphs;
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
// src/builders/vlt-builder-routing.ts
|
|
1644
|
-
var import_npm_package_arg = __toESM(require_npa(), 1);
|
|
1645
|
-
function isManagedSpec(spec, managedNames) {
|
|
1646
|
-
const parsed = (0, import_npm_package_arg.default)(spec);
|
|
1647
|
-
return !!parsed.name && managedNames.has(parsed.name) && parsed.type === "tag" && (parsed.rawSpec === "" || parsed.rawSpec === "latest");
|
|
1648
|
-
}
|
|
1649
|
-
function partitionBuilderSpecs(specs, managedNames) {
|
|
1650
|
-
const managed = /* @__PURE__ */ new Map();
|
|
1651
|
-
const legacy = /* @__PURE__ */ new Set();
|
|
1652
|
-
for (const spec of specs) {
|
|
1653
|
-
if (isManagedSpec(spec, managedNames)) {
|
|
1654
|
-
managed.set(spec, (0, import_npm_package_arg.default)(spec).name);
|
|
1655
|
-
} else {
|
|
1656
|
-
legacy.add(spec);
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1659
|
-
return { managed, legacy };
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
// src/builders/import-builders.ts
|
|
1663
|
-
var require_ = createRequire(__filename);
|
|
1664
|
-
var legacyImportBuilders = (0, import_import_builders.createImportBuilders)({
|
|
1665
|
-
builderPins: pkg_default.builders ?? {},
|
|
1666
|
-
debug: (message) => output_manager_default.debug(message),
|
|
1667
|
-
installBuilders,
|
|
1668
|
-
isNativeBinaryInstall,
|
|
1669
|
-
require: require_,
|
|
1670
|
-
staticBuilder: static_builder_exports,
|
|
1671
|
-
vercelDir: VERCEL_DIR
|
|
1672
|
-
});
|
|
1673
|
-
var managedBuilderNames = new Set(Object.keys(pkg_default.builders ?? {}));
|
|
1674
|
-
async function importBuilders(builderSpecs, cwd, span) {
|
|
1675
|
-
if (!isNativeBinaryInstall() || process.env.VERCEL_EXPERIMENTAL_VLT_BUILDERS !== "1") {
|
|
1676
|
-
return legacyImportBuilders(builderSpecs, cwd, span);
|
|
1677
|
-
}
|
|
1678
|
-
const { managed, legacy } = partitionBuilderSpecs(
|
|
1679
|
-
builderSpecs,
|
|
1680
|
-
managedBuilderNames
|
|
1681
|
-
);
|
|
1682
|
-
output_manager_default.debug(
|
|
1683
|
-
`Builder import routing: vlt=[${[...managed].map(([spec]) => spec).join(", ")}], legacy=[${[...legacy].join(", ")}]`
|
|
1684
|
-
);
|
|
1685
|
-
if (managed.size === 0) {
|
|
1686
|
-
return legacyImportBuilders(legacy, cwd, span);
|
|
1687
|
-
}
|
|
1688
|
-
const [{ createVltBuilderImporter }, graphs] = await Promise.all([
|
|
1689
|
-
import("./vlt-builder-importer-USCFHWPL.js"),
|
|
1690
|
-
loadEmbeddedBuilderGraphs()
|
|
1691
|
-
]);
|
|
1692
|
-
const vltImportBuilders = createVltBuilderImporter({
|
|
1693
|
-
loadGraphs: async () => graphs,
|
|
1694
|
-
require: require_,
|
|
1695
|
-
debug: (message) => output_manager_default.debug(message)
|
|
1696
|
-
});
|
|
1697
|
-
const [vltBuilders, legacyBuilders] = await Promise.all([
|
|
1698
|
-
vltImportBuilders(managed),
|
|
1699
|
-
legacy.size ? legacyImportBuilders(legacy, cwd, span) : Promise.resolve(/* @__PURE__ */ new Map())
|
|
1700
|
-
]);
|
|
1701
|
-
return new Map([...vltBuilders, ...legacyBuilders]);
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
export {
|
|
1705
|
-
require_npa,
|
|
1706
|
-
import_import_builders,
|
|
1707
|
-
importBuilders
|
|
1708
|
-
};
|