just-bash 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/bin/chunks/{awk2-DZN2ZRSE.js → awk2-C4A37H5N.js} +1 -1
- package/dist/bin/{shell/chunks/base64-TP4NUOEB.js → chunks/base64-FLJ4YPHB.js} +1 -1
- package/dist/bin/chunks/{cat-A3REFE6L.js → cat-2J5MA5PY.js} +1 -1
- package/dist/bin/{shell/chunks/chmod-PHPDPTZD.js → chunks/chmod-ZM5WLMZI.js} +1 -1
- package/dist/bin/chunks/{chunk-ODPB5AH7.js → chunk-2HFDEZUY.js} +1 -1
- package/dist/bin/chunks/{chunk-DX5LO7JF.js → chunk-2INNLNI5.js} +1 -1
- package/dist/bin/chunks/{chunk-57BWX3A3.js → chunk-2ND6MMXN.js} +1 -1
- package/dist/bin/chunks/{chunk-QUWWWM4E.js → chunk-2ORJ5HTY.js} +1 -1
- package/dist/bin/chunks/{chunk-SOKKZSUV.js → chunk-3SCW7PD5.js} +1 -1
- package/dist/bin/chunks/{chunk-TKBTWIXO.js → chunk-42AMF6EE.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-NFYXRUSI.js → chunks/chunk-44MQ5AXA.js} +1 -1
- package/dist/bin/chunks/{chunk-GE5ERIO2.js → chunk-4APSDE57.js} +1 -1
- package/dist/bin/chunks/{chunk-ODCVIRIN.js → chunk-74TZ7ZF7.js} +1 -1
- package/dist/bin/chunks/{chunk-OD2SHTFL.js → chunk-7WBCA2BB.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-MOCKUJD6.js → chunks/chunk-APV27ZZW.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-YB3A42T5.js → chunks/chunk-BCQSUELK.js} +1 -1
- package/dist/bin/chunks/{chunk-FC5CC5UP.js → chunk-BJRT4VKD.js} +1 -1
- package/dist/bin/chunks/{chunk-6WNZWDBA.js → chunk-BOYPCOSV.js} +1 -1
- package/dist/bin/chunks/{chunk-KHS7PCAP.js → chunk-BZWGVRFA.js} +2 -2
- package/dist/bin/chunks/{chunk-BPMGKB5E.js → chunk-EXGPMLIE.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-MLJZPRDV.js → chunks/chunk-FB44CW33.js} +1 -1
- package/dist/bin/chunks/{chunk-35BSNGJK.js → chunk-GRP7L2EL.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-3DCUOX7D.js → chunks/chunk-GTULZ3ZD.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-O5R7J45W.js → chunks/chunk-HL7NFZVQ.js} +1 -1
- package/dist/bin/chunks/chunk-HWI42GQO.js +7 -0
- package/dist/bin/{shell/chunks/chunk-TY77F4UM.js → chunks/chunk-ISOWCECJ.js} +1 -1
- package/dist/bin/chunks/{chunk-TIYIKCEZ.js → chunk-JQM3DKCH.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-NWBQ75GZ.js → chunks/chunk-MF3GVFLC.js} +1 -1
- package/dist/bin/chunks/{chunk-6KTOOQK6.js → chunk-MHAGHCSO.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-62NF3462.js → chunks/chunk-MNSMZU47.js} +1 -1
- package/dist/bin/chunks/{chunk-GGPUS2B4.js → chunk-MRPJL3ZK.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-IHS3YLRI.js → chunks/chunk-MYEPQX6Y.js} +1 -1
- package/dist/bin/chunks/{chunk-EJIZDPMG.js → chunk-PPVF2N6C.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-7NMBLWZ5.js → chunks/chunk-QFTZKD5O.js} +1 -1
- package/dist/bin/chunks/{chunk-YABXNPH6.js → chunk-TIHFGNPS.js} +1 -1
- package/dist/bin/chunks/{chunk-YBTJPT3R.js → chunk-UHNV55NF.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-XG7YUZ3R.js → chunks/chunk-UNKX6YM6.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-BXDEO6VY.js → chunks/chunk-VKTV45AP.js} +1 -1
- package/dist/bin/{shell/chunks/expr-FAB3XEIB.js → chunks/expr-TDF3B6QJ.js} +1 -1
- package/dist/bin/{shell/chunks/file-ZHL2YACR.js → chunks/file-AJGG7RYT.js} +1 -1
- package/dist/bin/chunks/{flag-coverage-SPPGTKG3.js → flag-coverage-DOLZIUQ7.js} +1 -1
- package/dist/bin/{shell/chunks/grep-FBVRTH4M.js → chunks/grep-WUZMZDGY.js} +1 -1
- package/dist/bin/chunks/{gzip-AWQGRTSF.js → gzip-JA7JQBUS.js} +1 -1
- package/dist/bin/chunks/{head-A7CPWX7R.js → head-YGKW3HS4.js} +1 -1
- package/dist/bin/{shell/chunks/html-to-markdown-EMODJ24M.js → chunks/html-to-markdown-ZWL7LZIP.js} +1 -1
- package/dist/bin/chunks/{jq-DXL4NMI5.js → jq-5MI4V3G5.js} +1 -1
- package/dist/bin/chunks/{js-exec-BFLXGNPQ.js → js-exec-DJQLXWCS.js} +1 -1
- package/dist/bin/chunks/js-exec-worker.js +60 -4
- package/dist/bin/{shell/chunks/od-ZPR6FUOW.js → chunks/od-YCY27MMO.js} +1 -1
- package/dist/bin/{shell/chunks/paste-RQKXCKQO.js → chunks/paste-ACKOG3XS.js} +1 -1
- package/dist/bin/{shell/chunks/python3-WKVKCO33.js → chunks/python3-JCJHSX4Z.js} +1 -1
- package/dist/bin/chunks/{rg-34TWIR7N.js → rg-A3E7YM2A.js} +1 -1
- package/dist/bin/{shell/chunks/sed-SW74NKGU.js → chunks/sed-KJWKB22J.js} +1 -1
- package/dist/bin/chunks/{sleep-J2AVORMB.js → sleep-DVFE2GSF.js} +1 -1
- package/dist/bin/chunks/{split-EDDYGW4A.js → split-XMXBXL5Q.js} +1 -1
- package/dist/bin/chunks/{sqlite3-AZ27WWV7.js → sqlite3-DNH2VLVN.js} +1 -1
- package/dist/bin/chunks/sqlite3-worker.js +60 -4
- package/dist/bin/{shell/chunks/stat-XNGV2W6W.js → chunks/stat-5PUSTPTK.js} +1 -1
- package/dist/bin/chunks/{tail-H2WOZSEI.js → tail-4MB7HHIZ.js} +1 -1
- package/dist/bin/chunks/{tar-MZP7QXR4.js → tar-FRDUJZDN.js} +1 -1
- package/dist/bin/{shell/chunks/timeout-GH6S72QX.js → chunks/timeout-YGFHQJKX.js} +1 -1
- package/dist/bin/chunks/{tr-RVCBERJ4.js → tr-Z6N34HZM.js} +1 -1
- package/dist/bin/chunks/worker.js +60 -4
- package/dist/bin/chunks/{xan-BSNJF6SH.js → xan-VSF6ZQGZ.js} +1 -1
- package/dist/bin/chunks/{xan-view-H3LNQ72O.js → xan-view-UEFBHYVN.js} +1 -1
- package/dist/bin/chunks/{yq-GNMXK6OP.js → yq-K5N5JD4N.js} +1 -1
- package/dist/bin/just-bash.js +1 -1
- package/dist/bin/shell/chunks/{awk2-DZN2ZRSE.js → awk2-C4A37H5N.js} +1 -1
- package/dist/bin/{chunks/base64-TP4NUOEB.js → shell/chunks/base64-FLJ4YPHB.js} +1 -1
- package/dist/bin/shell/chunks/{cat-A3REFE6L.js → cat-2J5MA5PY.js} +1 -1
- package/dist/bin/{chunks/chmod-PHPDPTZD.js → shell/chunks/chmod-ZM5WLMZI.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-ODPB5AH7.js → chunk-2HFDEZUY.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-DX5LO7JF.js → chunk-2INNLNI5.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-57BWX3A3.js → chunk-2ND6MMXN.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-QUWWWM4E.js → chunk-2ORJ5HTY.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-SOKKZSUV.js → chunk-3SCW7PD5.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-TKBTWIXO.js → chunk-42AMF6EE.js} +1 -1
- package/dist/bin/{chunks/chunk-NFYXRUSI.js → shell/chunks/chunk-44MQ5AXA.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-GE5ERIO2.js → chunk-4APSDE57.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-ODCVIRIN.js → chunk-74TZ7ZF7.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-OD2SHTFL.js → chunk-7WBCA2BB.js} +1 -1
- package/dist/bin/{chunks/chunk-MOCKUJD6.js → shell/chunks/chunk-APV27ZZW.js} +1 -1
- package/dist/bin/{chunks/chunk-YB3A42T5.js → shell/chunks/chunk-BCQSUELK.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-FC5CC5UP.js → chunk-BJRT4VKD.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-6WNZWDBA.js → chunk-BOYPCOSV.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-KHS7PCAP.js → chunk-BZWGVRFA.js} +2 -2
- package/dist/bin/shell/chunks/{chunk-BPMGKB5E.js → chunk-EXGPMLIE.js} +1 -1
- package/dist/bin/{chunks/chunk-MLJZPRDV.js → shell/chunks/chunk-FB44CW33.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-35BSNGJK.js → chunk-GRP7L2EL.js} +1 -1
- package/dist/bin/{chunks/chunk-3DCUOX7D.js → shell/chunks/chunk-GTULZ3ZD.js} +1 -1
- package/dist/bin/{chunks/chunk-O5R7J45W.js → shell/chunks/chunk-HL7NFZVQ.js} +1 -1
- package/dist/bin/shell/chunks/chunk-HWI42GQO.js +7 -0
- package/dist/bin/{chunks/chunk-TY77F4UM.js → shell/chunks/chunk-ISOWCECJ.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-TIYIKCEZ.js → chunk-JQM3DKCH.js} +1 -1
- package/dist/bin/{chunks/chunk-NWBQ75GZ.js → shell/chunks/chunk-MF3GVFLC.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-6KTOOQK6.js → chunk-MHAGHCSO.js} +1 -1
- package/dist/bin/{chunks/chunk-62NF3462.js → shell/chunks/chunk-MNSMZU47.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-GGPUS2B4.js → chunk-MRPJL3ZK.js} +1 -1
- package/dist/bin/{chunks/chunk-IHS3YLRI.js → shell/chunks/chunk-MYEPQX6Y.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-EJIZDPMG.js → chunk-PPVF2N6C.js} +1 -1
- package/dist/bin/{chunks/chunk-7NMBLWZ5.js → shell/chunks/chunk-QFTZKD5O.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-YABXNPH6.js → chunk-TIHFGNPS.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-YBTJPT3R.js → chunk-UHNV55NF.js} +1 -1
- package/dist/bin/{chunks/chunk-XG7YUZ3R.js → shell/chunks/chunk-UNKX6YM6.js} +1 -1
- package/dist/bin/{chunks/chunk-BXDEO6VY.js → shell/chunks/chunk-VKTV45AP.js} +1 -1
- package/dist/bin/{chunks/expr-FAB3XEIB.js → shell/chunks/expr-TDF3B6QJ.js} +1 -1
- package/dist/bin/{chunks/file-ZHL2YACR.js → shell/chunks/file-AJGG7RYT.js} +1 -1
- package/dist/bin/shell/chunks/{flag-coverage-SPPGTKG3.js → flag-coverage-DOLZIUQ7.js} +1 -1
- package/dist/bin/{chunks/grep-FBVRTH4M.js → shell/chunks/grep-WUZMZDGY.js} +1 -1
- package/dist/bin/shell/chunks/{gzip-AWQGRTSF.js → gzip-JA7JQBUS.js} +1 -1
- package/dist/bin/shell/chunks/{head-A7CPWX7R.js → head-YGKW3HS4.js} +1 -1
- package/dist/bin/{chunks/html-to-markdown-EMODJ24M.js → shell/chunks/html-to-markdown-ZWL7LZIP.js} +1 -1
- package/dist/bin/shell/chunks/{jq-DXL4NMI5.js → jq-5MI4V3G5.js} +1 -1
- package/dist/bin/shell/chunks/{js-exec-BFLXGNPQ.js → js-exec-DJQLXWCS.js} +1 -1
- package/dist/bin/{chunks/od-ZPR6FUOW.js → shell/chunks/od-YCY27MMO.js} +1 -1
- package/dist/bin/{chunks/paste-RQKXCKQO.js → shell/chunks/paste-ACKOG3XS.js} +1 -1
- package/dist/bin/{chunks/python3-WKVKCO33.js → shell/chunks/python3-JCJHSX4Z.js} +1 -1
- package/dist/bin/shell/chunks/{rg-34TWIR7N.js → rg-A3E7YM2A.js} +1 -1
- package/dist/bin/{chunks/sed-SW74NKGU.js → shell/chunks/sed-KJWKB22J.js} +1 -1
- package/dist/bin/shell/chunks/{sleep-J2AVORMB.js → sleep-DVFE2GSF.js} +1 -1
- package/dist/bin/shell/chunks/{split-EDDYGW4A.js → split-XMXBXL5Q.js} +1 -1
- package/dist/bin/shell/chunks/{sqlite3-AZ27WWV7.js → sqlite3-DNH2VLVN.js} +1 -1
- package/dist/bin/{chunks/stat-XNGV2W6W.js → shell/chunks/stat-5PUSTPTK.js} +1 -1
- package/dist/bin/shell/chunks/{tail-H2WOZSEI.js → tail-4MB7HHIZ.js} +1 -1
- package/dist/bin/shell/chunks/{tar-MZP7QXR4.js → tar-FRDUJZDN.js} +1 -1
- package/dist/bin/{chunks/timeout-GH6S72QX.js → shell/chunks/timeout-YGFHQJKX.js} +1 -1
- package/dist/bin/shell/chunks/{tr-RVCBERJ4.js → tr-Z6N34HZM.js} +1 -1
- package/dist/bin/shell/chunks/{xan-BSNJF6SH.js → xan-VSF6ZQGZ.js} +1 -1
- package/dist/bin/shell/chunks/{xan-view-H3LNQ72O.js → xan-view-UEFBHYVN.js} +1 -1
- package/dist/bin/shell/chunks/{yq-GNMXK6OP.js → yq-K5N5JD4N.js} +1 -1
- package/dist/bin/shell/shell.js +1 -1
- package/dist/bundle/browser.js +446 -444
- package/dist/bundle/chunks/{awk2-IDCJYLV2.js → awk2-NPLZQ3K7.js} +1 -1
- package/dist/bundle/chunks/{base64-3XQZ3ADB.js → base64-2BAITDZF.js} +1 -1
- package/dist/bundle/chunks/{cat-XWS72C47.js → cat-33KGN4MZ.js} +1 -1
- package/dist/bundle/chunks/{chmod-6FVWFWKL.js → chmod-APOXUPXW.js} +1 -1
- package/dist/bundle/chunks/{chunk-JQL34RLH.js → chunk-3CBCABOZ.js} +1 -1
- package/dist/bundle/chunks/{chunk-EZFSCUSP.js → chunk-5ELNHAAJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-M7DIEMEN.js → chunk-6DTD75TR.js} +1 -1
- package/dist/bundle/chunks/{chunk-5GI2HJYO.js → chunk-6KK46B7Q.js} +1 -1
- package/dist/bundle/chunks/{chunk-264HW33U.js → chunk-7IFSXTCJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-4MPKG4PJ.js → chunk-A3D7NRT6.js} +1 -1
- package/dist/bundle/chunks/{chunk-EVJMYTCY.js → chunk-ALOFNPKY.js} +2 -2
- package/dist/bundle/chunks/{chunk-QKQP2SCP.js → chunk-BKUWXPEM.js} +1 -1
- package/dist/bundle/chunks/{chunk-W4IV5QW4.js → chunk-CFBEDNHJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-CVMQI27W.js → chunk-DMWNBCXJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-VQCA62JK.js → chunk-FNEG7DFQ.js} +1 -1
- package/dist/bundle/chunks/{chunk-ENMIHC6G.js → chunk-GVKYQN5J.js} +1 -1
- package/dist/bundle/chunks/{chunk-QNXJ5FEA.js → chunk-ICQYTW7W.js} +1 -1
- package/dist/bundle/chunks/{chunk-4X2R47I5.js → chunk-JA6EY7US.js} +1 -1
- package/dist/bundle/chunks/{chunk-XJWBSZIU.js → chunk-MHY57JTL.js} +1 -1
- package/dist/bundle/chunks/{chunk-XZZSXYTK.js → chunk-N3A4JVFJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-HZYCWAEC.js → chunk-N3FZSEG7.js} +1 -1
- package/dist/bundle/chunks/{chunk-MP3NNO6W.js → chunk-Q6JV5CBB.js} +1 -1
- package/dist/bundle/chunks/{chunk-2TLWENMK.js → chunk-QE275OWT.js} +1 -1
- package/dist/bundle/chunks/{chunk-GP3D65AC.js → chunk-QPZVR6ZN.js} +1 -1
- package/dist/bundle/chunks/{chunk-CA7HMEGG.js → chunk-SI5VPVOA.js} +1 -1
- package/dist/bundle/chunks/{chunk-LDCENVG4.js → chunk-TVJ6JVK4.js} +1 -1
- package/dist/bundle/chunks/{chunk-UGU4ZDZA.js → chunk-UL6YJ7FT.js} +1 -1
- package/dist/bundle/chunks/{chunk-CYCUGNN7.js → chunk-USNDURQI.js} +1 -1
- package/dist/bundle/chunks/{chunk-VPJHPG6G.js → chunk-UXHSH7BM.js} +1 -1
- package/dist/bundle/chunks/{chunk-6D2ZCRTO.js → chunk-V2SOLEQN.js} +1 -1
- package/dist/bundle/chunks/{chunk-QXYDKHGI.js → chunk-WXPNKIIH.js} +1 -1
- package/dist/bundle/chunks/{chunk-XW6UBSKO.js → chunk-X3TZEFQG.js} +1 -1
- package/dist/bundle/chunks/{chunk-73DVPW3C.js → chunk-XMMV24SP.js} +1 -1
- package/dist/bundle/chunks/{chunk-FFNWVPYL.js → chunk-XPDOK3XY.js} +1 -1
- package/dist/bundle/chunks/{chunk-MMSRUX6V.js → chunk-XV2V56NQ.js} +1 -1
- package/dist/bundle/chunks/{chunk-XOBSBDA5.js → chunk-YDR2IWKO.js} +1 -1
- package/dist/bundle/chunks/{chunk-KESUKNUF.js → chunk-YJKHREBZ.js} +1 -1
- package/dist/bundle/chunks/chunk-ZBUZKIPX.js +6 -0
- package/dist/bundle/chunks/{expr-VKQHAJNO.js → expr-UMT2OHZ7.js} +1 -1
- package/dist/bundle/chunks/{file-WGI2QYXG.js → file-VEGKTTSF.js} +1 -1
- package/dist/bundle/chunks/{flag-coverage-6LWPOTGE.js → flag-coverage-I6UJUKQ4.js} +1 -1
- package/dist/bundle/chunks/{grep-SAEHL7UZ.js → grep-5UPEO42U.js} +1 -1
- package/dist/bundle/chunks/{gzip-2SHFSHNB.js → gzip-ZINVK3M6.js} +1 -1
- package/dist/bundle/chunks/{head-RMKV5HCV.js → head-CFENJILH.js} +1 -1
- package/dist/bundle/chunks/{html-to-markdown-GEKF6U7Z.js → html-to-markdown-GGVR4YGL.js} +1 -1
- package/dist/bundle/chunks/{jq-MW2VEOCW.js → jq-X2P7Q64K.js} +1 -1
- package/dist/bundle/chunks/{js-exec-J4DLDAWY.js → js-exec-XKF2B7C3.js} +1 -1
- package/dist/bundle/chunks/js-exec-worker.js +60 -4
- package/dist/bundle/chunks/{od-26HTHXXM.js → od-BI6XJPXY.js} +1 -1
- package/dist/bundle/chunks/{paste-WIDT5N6N.js → paste-LLZ3ZQR2.js} +1 -1
- package/dist/bundle/chunks/{python3-4Q7M5CDT.js → python3-F5S5TYGS.js} +1 -1
- package/dist/bundle/chunks/{rg-IA4UE2UF.js → rg-UQE6KUBP.js} +1 -1
- package/dist/bundle/chunks/{sed-LSWWSQ6J.js → sed-JW2JDLSI.js} +1 -1
- package/dist/bundle/chunks/{sleep-YMKR4HFQ.js → sleep-PPRBTSVR.js} +1 -1
- package/dist/bundle/chunks/{split-EATPU6Q7.js → split-2SD6EP72.js} +1 -1
- package/dist/bundle/chunks/{sqlite3-XXXHFJGP.js → sqlite3-UVVRYDAL.js} +1 -1
- package/dist/bundle/chunks/sqlite3-worker.js +60 -4
- package/dist/bundle/chunks/{stat-AKB6X3TV.js → stat-6KILP5AL.js} +1 -1
- package/dist/bundle/chunks/{tail-OEM7DTYC.js → tail-BDNMS4FR.js} +1 -1
- package/dist/bundle/chunks/{tar-26DH77YN.js → tar-6365WH6H.js} +1 -1
- package/dist/bundle/chunks/{timeout-FOKHN3GQ.js → timeout-C6WDYPLV.js} +1 -1
- package/dist/bundle/chunks/{tr-VUNRKFC3.js → tr-3I4MDKIF.js} +1 -1
- package/dist/bundle/chunks/worker.js +60 -4
- package/dist/bundle/chunks/{xan-LUEGYXLV.js → xan-HUOXKUQA.js} +1 -1
- package/dist/bundle/chunks/{xan-view-MDMZTFFI.js → xan-view-RT2WKDOQ.js} +1 -1
- package/dist/bundle/chunks/{yq-B7E6UX7Y.js → yq-MI27NZ2U.js} +1 -1
- package/dist/bundle/index.cjs +874 -872
- package/dist/bundle/index.js +1 -1
- package/dist/commands/sqlite3/worker.js +60 -4
- package/package.json +1 -1
- package/dist/bin/chunks/chunk-SHAOH2UJ.js +0 -5
- package/dist/bin/shell/chunks/chunk-SHAOH2UJ.js +0 -5
- package/dist/bundle/chunks/chunk-RT7ROXPF.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a as A,b as B}from"./chunk-
|
|
3
|
+
import{a as A,b as B}from"./chunk-JQM3DKCH.js";import{a as F}from"./chunk-7WBCA2BB.js";import"./chunk-3MRB66F4.js";import"./chunk-O2BCKSMK.js";import"./chunk-TW2IJRUF.js";import{a as j,b as v}from"./chunk-PPVF2N6C.js";import{a as q}from"./chunk-MROECM42.js";import{b as C}from"./chunk-HWI42GQO.js";import{b as E}from"./chunk-CPKBPQ2C.js";import{a as W,b as h}from"./chunk-PBOVSFTJ.js";import{a as S}from"./chunk-I4IRHQDW.js";import{b as M}from"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";import{AsyncLocalStorage as H}from"node:async_hooks";import{fileURLToPath as I}from"node:url";import{Worker as L}from"node:worker_threads";var O=new H,P=`js-exec - Sandboxed JavaScript/TypeScript runtime with Node.js-compatible APIs
|
|
4
4
|
|
|
5
5
|
Usage: js-exec [OPTIONS] [-c CODE | FILE] [ARGS...]
|
|
6
6
|
|
|
@@ -18,6 +18,11 @@ import * as nodeAsyncHooks from "node:async_hooks";
|
|
|
18
18
|
import * as nodeModule from "node:module";
|
|
19
19
|
|
|
20
20
|
// src/security/blocked-globals.ts
|
|
21
|
+
var blockedGlobalViolationTypes;
|
|
22
|
+
function getBlockedGlobalViolationTypes() {
|
|
23
|
+
if (!blockedGlobalViolationTypes) getBlockedGlobals();
|
|
24
|
+
return blockedGlobalViolationTypes;
|
|
25
|
+
}
|
|
21
26
|
function getBlockedGlobals() {
|
|
22
27
|
const globals = [
|
|
23
28
|
// Direct code execution vectors
|
|
@@ -77,6 +82,7 @@ function getBlockedGlobals() {
|
|
|
77
82
|
"NODE_DEBUG",
|
|
78
83
|
"NODE_DEBUG_NATIVE",
|
|
79
84
|
"NODE_COMPILE_CACHE",
|
|
85
|
+
"NODE_ENV",
|
|
80
86
|
"WATCH_REPORT_DEPENDENCIES",
|
|
81
87
|
// Dependencies
|
|
82
88
|
"FORCE_COLOR",
|
|
@@ -490,13 +496,49 @@ function getBlockedGlobals() {
|
|
|
490
496
|
}
|
|
491
497
|
} catch {
|
|
492
498
|
}
|
|
493
|
-
|
|
499
|
+
const availableGlobals = globals.filter((g) => {
|
|
494
500
|
try {
|
|
495
501
|
return g.target[g.prop] !== void 0;
|
|
496
502
|
} catch {
|
|
497
503
|
return false;
|
|
498
504
|
}
|
|
499
505
|
});
|
|
506
|
+
blockedGlobalViolationTypes ??= new Set(
|
|
507
|
+
availableGlobals.map(({ violationType }) => violationType)
|
|
508
|
+
);
|
|
509
|
+
return availableGlobals;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
// src/security/safe-timestamp.ts
|
|
513
|
+
var performanceTimeOrigin = performance.timeOrigin;
|
|
514
|
+
var performanceNow = performance.now.bind(performance);
|
|
515
|
+
function getSafeTimestamp() {
|
|
516
|
+
return Math.floor(performanceTimeOrigin + performanceNow());
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// src/security/violation-error-message.ts
|
|
520
|
+
var NON_EXCLUDABLE_VIOLATION_TYPES = /* @__PURE__ */ new Set([
|
|
521
|
+
"function_constructor",
|
|
522
|
+
"async_function_constructor",
|
|
523
|
+
"generator_function_constructor",
|
|
524
|
+
"async_generator_function_constructor"
|
|
525
|
+
]);
|
|
526
|
+
function assertExcludableViolationTypes(violationTypes) {
|
|
527
|
+
const nonExcludable = violationTypes?.find(
|
|
528
|
+
(type) => NON_EXCLUDABLE_VIOLATION_TYPES.has(type)
|
|
529
|
+
);
|
|
530
|
+
if (nonExcludable) {
|
|
531
|
+
throw new RangeError(
|
|
532
|
+
`defenseInDepth.excludeViolationTypes cannot disable the non-excludable "${nonExcludable}" protection`
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
var DEFENSE_IN_DEPTH_NOTICE = "\n\nThis is a defense-in-depth measure and indicates a bug in just-bash. Please report this at security@vercel.com";
|
|
537
|
+
function formatViolationErrorMessage(message, violationType, canExclude) {
|
|
538
|
+
const exclusionHint = canExclude && !NON_EXCLUDABLE_VIOLATION_TYPES.has(violationType) ? `
|
|
539
|
+
|
|
540
|
+
If this access is required by trusted host-runtime code, add "${violationType}" to defenseInDepth.excludeViolationTypes.` : "";
|
|
541
|
+
return message + DEFENSE_IN_DEPTH_NOTICE + exclusionHint;
|
|
500
542
|
}
|
|
501
543
|
|
|
502
544
|
// src/security/defense-in-depth-box.ts
|
|
@@ -515,10 +557,23 @@ if (!IS_BROWSER) {
|
|
|
515
557
|
var executionContext = !IS_BROWSER && AsyncLocalStorageClass ? new AsyncLocalStorageClass() : null;
|
|
516
558
|
|
|
517
559
|
// src/security/worker-defense-in-depth.ts
|
|
518
|
-
var
|
|
560
|
+
var WORKER_SPECIAL_EXCLUDABLE_VIOLATION_TYPES = /* @__PURE__ */ new Set([
|
|
561
|
+
"error_prepare_stack_trace",
|
|
562
|
+
"module_load",
|
|
563
|
+
"module_resolve_filename",
|
|
564
|
+
"process_main_module",
|
|
565
|
+
"process_exec_path",
|
|
566
|
+
"process_connected"
|
|
567
|
+
]);
|
|
519
568
|
var WorkerSecurityViolationError = class extends Error {
|
|
520
569
|
constructor(message, violation) {
|
|
521
|
-
super(
|
|
570
|
+
super(
|
|
571
|
+
formatViolationErrorMessage(
|
|
572
|
+
message,
|
|
573
|
+
violation.type,
|
|
574
|
+
WORKER_SPECIAL_EXCLUDABLE_VIOLATION_TYPES.has(violation.type) || getBlockedGlobalViolationTypes().has(violation.type)
|
|
575
|
+
)
|
|
576
|
+
);
|
|
522
577
|
this.violation = violation;
|
|
523
578
|
this.name = "WorkerSecurityViolationError";
|
|
524
579
|
}
|
|
@@ -577,6 +632,7 @@ var WorkerDefenseInDepth = class {
|
|
|
577
632
|
* @param config - Configuration for the defense layer
|
|
578
633
|
*/
|
|
579
634
|
constructor(config) {
|
|
635
|
+
assertExcludableViolationTypes(config.excludeViolationTypes);
|
|
580
636
|
this.originalProxy = Proxy;
|
|
581
637
|
this.config = config;
|
|
582
638
|
this.executionId = generateExecutionId();
|
|
@@ -660,7 +716,7 @@ var WorkerDefenseInDepth = class {
|
|
|
660
716
|
*/
|
|
661
717
|
recordViolation(type, path, message) {
|
|
662
718
|
const violation = {
|
|
663
|
-
timestamp:
|
|
719
|
+
timestamp: getSafeTimestamp(),
|
|
664
720
|
type,
|
|
665
721
|
message,
|
|
666
722
|
path,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-MNSMZU47.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-CPTQXTBJ.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as od};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-GTULZ3ZD.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-CPTQXTBJ.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-NE4R2FVV.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as pasteCommand};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a as Q,b as W}from"./chunk-
|
|
3
|
+
import{a as Q,b as W}from"./chunk-JQM3DKCH.js";import{a as I}from"./chunk-7WBCA2BB.js";import"./chunk-3MRB66F4.js";import"./chunk-O2BCKSMK.js";import"./chunk-TW2IJRUF.js";import"./chunk-PPVF2N6C.js";import{a as F}from"./chunk-MROECM42.js";import{c as w}from"./chunk-42AMF6EE.js";import{b as M}from"./chunk-HWI42GQO.js";import{b as C}from"./chunk-CPKBPQ2C.js";import{a as A,b as d}from"./chunk-PBOVSFTJ.js";import{a as E}from"./chunk-I4IRHQDW.js";import{a as P,b as D}from"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";import{fileURLToPath as B}from"node:url";import{Worker as L}from"node:worker_threads";var z={name:"python3",summary:"Execute Python code via CPython Emscripten",usage:"python3 [OPTIONS] [-c CODE | -m MODULE | FILE] [ARGS...]",description:["Execute Python code using CPython compiled to WebAssembly via Emscripten.","","This command runs Python in an isolated environment with access to","the virtual filesystem. Standard library modules are available."],options:["-c CODE Execute CODE as Python script","-m MODULE Run library module as a script","--version Show Python version","--help Show this help"],examples:['python3 -c "print(1 + 2)"','python3 -c "import sys; print(sys.version)"',"python3 script.py","python3 script.py arg1 arg2",`echo 'print("hello")' | python3`],notes:["CPython runs in WebAssembly, so execution may be slower than native Python.","Standard library modules are available (no pip install).","Maximum execution time is 30 seconds by default."]};function _(t){let e={code:null,module:null,scriptFile:null,showVersion:!1,scriptArgs:[]};if(t.length===0)return e;let r=t.findIndex(n=>!n.startsWith("-")||n==="-"||n==="--");for(let n=0;n<(r===-1?t.length:r);n++){let i=t[n];if(i==="-c")return n+1>=t.length?{stdout:"",stderr:`python3: option requires an argument -- 'c'
|
|
4
4
|
`,exitCode:2}:(e.code=t[n+1],e.scriptArgs=t.slice(n+2),e);if(i==="-m")return n+1>=t.length?{stdout:"",stderr:`python3: option requires an argument -- 'm'
|
|
5
5
|
`,exitCode:2}:(e.module=t[n+1],e.scriptArgs=t.slice(n+2),e);if(i==="--version"||i==="-V")return e.showVersion=!0,e;if(i.startsWith("-")&&i!=="-")return{stdout:"",stderr:`python3: unrecognized option '${i}'
|
|
6
6
|
`,exitCode:2}}if(r!==-1){let n=t[r];n==="--"?r+1<t.length&&(e.scriptFile=t[r+1],e.scriptArgs=t.slice(r+2)):(e.scriptFile=n,e.scriptArgs=t.slice(r+1))}return e}var b=new WeakMap;function R(t){let e=b.get(t);return e||(e={executionQueue:[],activeExecution:null,poisonedError:null},b.set(t,e)),e}function ne(){b=new WeakMap}var H=B(new URL("./worker.js",import.meta.url));function U(t,e){if(!t||typeof t!="object")return{success:!1,error:"Malformed worker response"};let r=t;return typeof r.protocolToken!="string"||r.protocolToken!==e?{success:!1,error:"Malformed worker response: invalid protocol token"}:r.type==="security-violation"?{success:!1,error:`Security violation: ${typeof r.violation?.type=="string"?r.violation.type:"unknown"}`}:typeof r.success!="boolean"?{success:!1,error:"Malformed worker response: missing success flag"}:r.success?{success:!0}:{success:!1,error:typeof r.error=="string"&&r.error.length>0?r.error:"Worker execution failed"}}function k(t){if(t.poisonedError!==null){for(let o of t.executionQueue.splice(0))o.state==="queued"&&(o.state="settled",o.stopBridge(),o.settle({success:!1,error:t.poisonedError}));return}if(t.activeExecution!==null||t.executionQueue.length===0)return;for(;t.executionQueue.length>0&&t.executionQueue[0]?.state!=="queued";)t.executionQueue.shift();if(t.executionQueue.length===0)return;let e=t.executionQueue.shift();if(!e)return;e.state="running",t.activeExecution=e;let r;try{r=M.runTrusted(()=>new L(H,{workerData:e.input}))}catch(o){let s=o instanceof Error?o.message:String(o);e.state="settled",e.settle({success:!1,error:d(s)}),t.activeExecution===e&&(t.activeExecution=null,k(t));return}e.worker=r;let n=!0,i=()=>{n&&(n=!1,r.removeListener("message",u),r.removeListener("error",g),r.removeListener("exit",v))},c=async(o,s)=>{if(!(t.activeExecution?.executionId!==e.executionId||e.state!=="running")){if(e.state="terminating",i(),e.settle(o),s&&!await e.controller.terminate(r)){let f="Worker termination was not acknowledged";e.worker=null,e.state="settled",t.poisonedError=f,t.activeExecution?.executionId===e.executionId&&(t.activeExecution=null),k(t);return}e.worker=null,e.state="settled",t.activeExecution?.executionId===e.executionId&&(t.activeExecution=null,k(t))}};e.cancel=o=>{c(o,!0)};let p=w(e.requireDefenseContext,"python3","worker message callback",o=>{try{e.controller.assertMessageSize(o,"response")}catch(s){c({success:!1,error:d(E(s))},!0);return}c(U(o,e.input.protocolToken),!0)}),h=w(e.requireDefenseContext,"python3","worker error callback",o=>{let s=d(E(o));c({success:!1,error:s},!0)}),a=w(e.requireDefenseContext,"python3","worker exit callback",()=>{c({success:!1,error:"Worker exited unexpectedly"},!1)}),u=o=>{try{p(o)}catch(s){let l=s instanceof Error?s.message:String(s);c({success:!1,error:d(l)},!0)}},g=o=>{try{h(o)}catch(s){let l=s instanceof Error?s.message:String(s);c({success:!1,error:d(l)},!0)}},v=()=>{try{a()}catch(o){let s=o instanceof Error?o.message:String(o);c({success:!1,error:d(s)},!0)}};r.on("message",u),r.on("error",g),r.on("exit",v)}async function N(t,e,r,n,i=[]){let c=Q(),p=new W(c,r.fs,r.cwd,"python3",r.fetch,r.limits.maxOutputSize),h=r.limits.maxPythonTimeoutMs,a=R(r.fs);if(a.poisonedError!==null)return{stdout:"",stderr:`python3: ${a.poisonedError}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-MRPJL3ZK.js";import"./chunk-WDV2ECOC.js";import"./chunk-3MRB66F4.js";import"./chunk-ROFYAVPF.js";import"./chunk-XBX7KFWK.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-CPTQXTBJ.js";import"./chunk-H4BRFPKY.js";import"./chunk-43E7AR6A.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-PBOVSFTJ.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as rgCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-MHAGHCSO.js";import"./chunk-42AMF6EE.js";import"./chunk-XBX7KFWK.js";import"./chunk-HWI42GQO.js";import"./chunk-VLWZ6L7C.js";import"./chunk-CPTQXTBJ.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-PBOVSFTJ.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as sedCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-MF3GVFLC.js";import"./chunk-B2DRBHGQ.js";import"./chunk-PPVF2N6C.js";import"./chunk-HWI42GQO.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as sleepCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-FB44CW33.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-H4BRFPKY.js";import"./chunk-43E7AR6A.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-PBOVSFTJ.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as split};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b,c}from"./chunk-
|
|
3
|
+
import{a,b,c}from"./chunk-BCQSUELK.js";import"./chunk-7WBCA2BB.js";import"./chunk-PPVF2N6C.js";import"./chunk-42AMF6EE.js";import"./chunk-HWI42GQO.js";import"./chunk-H4BRFPKY.js";import"./chunk-43E7AR6A.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-PBOVSFTJ.js";import"./chunk-I4IRHQDW.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{a as _internals,c as flagsForFuzzing,b as sqlite3Command};
|
|
@@ -39,6 +39,11 @@ import * as nodeAsyncHooks from "node:async_hooks";
|
|
|
39
39
|
import * as nodeModule from "node:module";
|
|
40
40
|
|
|
41
41
|
// src/security/blocked-globals.ts
|
|
42
|
+
var blockedGlobalViolationTypes;
|
|
43
|
+
function getBlockedGlobalViolationTypes() {
|
|
44
|
+
if (!blockedGlobalViolationTypes) getBlockedGlobals();
|
|
45
|
+
return blockedGlobalViolationTypes;
|
|
46
|
+
}
|
|
42
47
|
function getBlockedGlobals() {
|
|
43
48
|
const globals = [
|
|
44
49
|
// Direct code execution vectors
|
|
@@ -98,6 +103,7 @@ function getBlockedGlobals() {
|
|
|
98
103
|
"NODE_DEBUG",
|
|
99
104
|
"NODE_DEBUG_NATIVE",
|
|
100
105
|
"NODE_COMPILE_CACHE",
|
|
106
|
+
"NODE_ENV",
|
|
101
107
|
"WATCH_REPORT_DEPENDENCIES",
|
|
102
108
|
// Dependencies
|
|
103
109
|
"FORCE_COLOR",
|
|
@@ -511,13 +517,49 @@ function getBlockedGlobals() {
|
|
|
511
517
|
}
|
|
512
518
|
} catch {
|
|
513
519
|
}
|
|
514
|
-
|
|
520
|
+
const availableGlobals = globals.filter((g) => {
|
|
515
521
|
try {
|
|
516
522
|
return g.target[g.prop] !== void 0;
|
|
517
523
|
} catch {
|
|
518
524
|
return false;
|
|
519
525
|
}
|
|
520
526
|
});
|
|
527
|
+
blockedGlobalViolationTypes ??= new Set(
|
|
528
|
+
availableGlobals.map(({ violationType }) => violationType)
|
|
529
|
+
);
|
|
530
|
+
return availableGlobals;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// src/security/safe-timestamp.ts
|
|
534
|
+
var performanceTimeOrigin = performance.timeOrigin;
|
|
535
|
+
var performanceNow = performance.now.bind(performance);
|
|
536
|
+
function getSafeTimestamp() {
|
|
537
|
+
return Math.floor(performanceTimeOrigin + performanceNow());
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// src/security/violation-error-message.ts
|
|
541
|
+
var NON_EXCLUDABLE_VIOLATION_TYPES = /* @__PURE__ */ new Set([
|
|
542
|
+
"function_constructor",
|
|
543
|
+
"async_function_constructor",
|
|
544
|
+
"generator_function_constructor",
|
|
545
|
+
"async_generator_function_constructor"
|
|
546
|
+
]);
|
|
547
|
+
function assertExcludableViolationTypes(violationTypes) {
|
|
548
|
+
const nonExcludable = violationTypes?.find(
|
|
549
|
+
(type) => NON_EXCLUDABLE_VIOLATION_TYPES.has(type)
|
|
550
|
+
);
|
|
551
|
+
if (nonExcludable) {
|
|
552
|
+
throw new RangeError(
|
|
553
|
+
`defenseInDepth.excludeViolationTypes cannot disable the non-excludable "${nonExcludable}" protection`
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
var DEFENSE_IN_DEPTH_NOTICE = "\n\nThis is a defense-in-depth measure and indicates a bug in just-bash. Please report this at security@vercel.com";
|
|
558
|
+
function formatViolationErrorMessage(message, violationType, canExclude) {
|
|
559
|
+
const exclusionHint = canExclude && !NON_EXCLUDABLE_VIOLATION_TYPES.has(violationType) ? `
|
|
560
|
+
|
|
561
|
+
If this access is required by trusted host-runtime code, add "${violationType}" to defenseInDepth.excludeViolationTypes.` : "";
|
|
562
|
+
return message + DEFENSE_IN_DEPTH_NOTICE + exclusionHint;
|
|
521
563
|
}
|
|
522
564
|
|
|
523
565
|
// src/security/defense-in-depth-box.ts
|
|
@@ -536,10 +578,23 @@ if (!IS_BROWSER) {
|
|
|
536
578
|
var executionContext = !IS_BROWSER && AsyncLocalStorageClass ? new AsyncLocalStorageClass() : null;
|
|
537
579
|
|
|
538
580
|
// src/security/worker-defense-in-depth.ts
|
|
539
|
-
var
|
|
581
|
+
var WORKER_SPECIAL_EXCLUDABLE_VIOLATION_TYPES = /* @__PURE__ */ new Set([
|
|
582
|
+
"error_prepare_stack_trace",
|
|
583
|
+
"module_load",
|
|
584
|
+
"module_resolve_filename",
|
|
585
|
+
"process_main_module",
|
|
586
|
+
"process_exec_path",
|
|
587
|
+
"process_connected"
|
|
588
|
+
]);
|
|
540
589
|
var WorkerSecurityViolationError = class extends Error {
|
|
541
590
|
constructor(message, violation) {
|
|
542
|
-
super(
|
|
591
|
+
super(
|
|
592
|
+
formatViolationErrorMessage(
|
|
593
|
+
message,
|
|
594
|
+
violation.type,
|
|
595
|
+
WORKER_SPECIAL_EXCLUDABLE_VIOLATION_TYPES.has(violation.type) || getBlockedGlobalViolationTypes().has(violation.type)
|
|
596
|
+
)
|
|
597
|
+
);
|
|
543
598
|
this.violation = violation;
|
|
544
599
|
this.name = "WorkerSecurityViolationError";
|
|
545
600
|
}
|
|
@@ -598,6 +653,7 @@ var WorkerDefenseInDepth = class {
|
|
|
598
653
|
* @param config - Configuration for the defense layer
|
|
599
654
|
*/
|
|
600
655
|
constructor(config) {
|
|
656
|
+
assertExcludableViolationTypes(config.excludeViolationTypes);
|
|
601
657
|
this.originalProxy = Proxy;
|
|
602
658
|
this.config = config;
|
|
603
659
|
this.executionId = generateExecutionId();
|
|
@@ -681,7 +737,7 @@ var WorkerDefenseInDepth = class {
|
|
|
681
737
|
*/
|
|
682
738
|
recordViolation(type, path, message) {
|
|
683
739
|
const violation = {
|
|
684
|
-
timestamp:
|
|
740
|
+
timestamp: getSafeTimestamp(),
|
|
685
741
|
type,
|
|
686
742
|
message,
|
|
687
743
|
path,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-UNKX6YM6.js";import"./chunk-BIJXTWZ4.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-NE4R2FVV.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as statCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-MYEPQX6Y.js";import"./chunk-GRP7L2EL.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-CPTQXTBJ.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as tailCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-TIHFGNPS.js";import"./chunk-QES5OSUC.js";import"./chunk-BIJXTWZ4.js";import"./chunk-XBX7KFWK.js";import"./chunk-HWI42GQO.js";import"./chunk-CPTQXTBJ.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as tarCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-QFTZKD5O.js";import"./chunk-B2DRBHGQ.js";import"./chunk-3MRB66F4.js";import"./chunk-3PCPQIUD.js";import"./chunk-PPVF2N6C.js";import"./chunk-HWI42GQO.js";import"./chunk-CPKBPQ2C.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as timeoutCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-2INNLNI5.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-PBOVSFTJ.js";import"./chunk-NE4R2FVV.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as trCommand};
|
|
@@ -40,6 +40,11 @@ import * as nodeAsyncHooks from "node:async_hooks";
|
|
|
40
40
|
import * as nodeModule from "node:module";
|
|
41
41
|
|
|
42
42
|
// src/security/blocked-globals.ts
|
|
43
|
+
var blockedGlobalViolationTypes;
|
|
44
|
+
function getBlockedGlobalViolationTypes() {
|
|
45
|
+
if (!blockedGlobalViolationTypes) getBlockedGlobals();
|
|
46
|
+
return blockedGlobalViolationTypes;
|
|
47
|
+
}
|
|
43
48
|
function getBlockedGlobals() {
|
|
44
49
|
const globals = [
|
|
45
50
|
// Direct code execution vectors
|
|
@@ -99,6 +104,7 @@ function getBlockedGlobals() {
|
|
|
99
104
|
"NODE_DEBUG",
|
|
100
105
|
"NODE_DEBUG_NATIVE",
|
|
101
106
|
"NODE_COMPILE_CACHE",
|
|
107
|
+
"NODE_ENV",
|
|
102
108
|
"WATCH_REPORT_DEPENDENCIES",
|
|
103
109
|
// Dependencies
|
|
104
110
|
"FORCE_COLOR",
|
|
@@ -512,13 +518,49 @@ function getBlockedGlobals() {
|
|
|
512
518
|
}
|
|
513
519
|
} catch {
|
|
514
520
|
}
|
|
515
|
-
|
|
521
|
+
const availableGlobals = globals.filter((g) => {
|
|
516
522
|
try {
|
|
517
523
|
return g.target[g.prop] !== void 0;
|
|
518
524
|
} catch {
|
|
519
525
|
return false;
|
|
520
526
|
}
|
|
521
527
|
});
|
|
528
|
+
blockedGlobalViolationTypes ??= new Set(
|
|
529
|
+
availableGlobals.map(({ violationType }) => violationType)
|
|
530
|
+
);
|
|
531
|
+
return availableGlobals;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// src/security/safe-timestamp.ts
|
|
535
|
+
var performanceTimeOrigin = performance.timeOrigin;
|
|
536
|
+
var performanceNow = performance.now.bind(performance);
|
|
537
|
+
function getSafeTimestamp() {
|
|
538
|
+
return Math.floor(performanceTimeOrigin + performanceNow());
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// src/security/violation-error-message.ts
|
|
542
|
+
var NON_EXCLUDABLE_VIOLATION_TYPES = /* @__PURE__ */ new Set([
|
|
543
|
+
"function_constructor",
|
|
544
|
+
"async_function_constructor",
|
|
545
|
+
"generator_function_constructor",
|
|
546
|
+
"async_generator_function_constructor"
|
|
547
|
+
]);
|
|
548
|
+
function assertExcludableViolationTypes(violationTypes) {
|
|
549
|
+
const nonExcludable = violationTypes?.find(
|
|
550
|
+
(type) => NON_EXCLUDABLE_VIOLATION_TYPES.has(type)
|
|
551
|
+
);
|
|
552
|
+
if (nonExcludable) {
|
|
553
|
+
throw new RangeError(
|
|
554
|
+
`defenseInDepth.excludeViolationTypes cannot disable the non-excludable "${nonExcludable}" protection`
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
var DEFENSE_IN_DEPTH_NOTICE = "\n\nThis is a defense-in-depth measure and indicates a bug in just-bash. Please report this at security@vercel.com";
|
|
559
|
+
function formatViolationErrorMessage(message, violationType, canExclude) {
|
|
560
|
+
const exclusionHint = canExclude && !NON_EXCLUDABLE_VIOLATION_TYPES.has(violationType) ? `
|
|
561
|
+
|
|
562
|
+
If this access is required by trusted host-runtime code, add "${violationType}" to defenseInDepth.excludeViolationTypes.` : "";
|
|
563
|
+
return message + DEFENSE_IN_DEPTH_NOTICE + exclusionHint;
|
|
522
564
|
}
|
|
523
565
|
|
|
524
566
|
// src/security/defense-in-depth-box.ts
|
|
@@ -537,10 +579,23 @@ if (!IS_BROWSER) {
|
|
|
537
579
|
var executionContext = !IS_BROWSER && AsyncLocalStorageClass ? new AsyncLocalStorageClass() : null;
|
|
538
580
|
|
|
539
581
|
// src/security/worker-defense-in-depth.ts
|
|
540
|
-
var
|
|
582
|
+
var WORKER_SPECIAL_EXCLUDABLE_VIOLATION_TYPES = /* @__PURE__ */ new Set([
|
|
583
|
+
"error_prepare_stack_trace",
|
|
584
|
+
"module_load",
|
|
585
|
+
"module_resolve_filename",
|
|
586
|
+
"process_main_module",
|
|
587
|
+
"process_exec_path",
|
|
588
|
+
"process_connected"
|
|
589
|
+
]);
|
|
541
590
|
var WorkerSecurityViolationError = class extends Error {
|
|
542
591
|
constructor(message, violation) {
|
|
543
|
-
super(
|
|
592
|
+
super(
|
|
593
|
+
formatViolationErrorMessage(
|
|
594
|
+
message,
|
|
595
|
+
violation.type,
|
|
596
|
+
WORKER_SPECIAL_EXCLUDABLE_VIOLATION_TYPES.has(violation.type) || getBlockedGlobalViolationTypes().has(violation.type)
|
|
597
|
+
)
|
|
598
|
+
);
|
|
544
599
|
this.violation = violation;
|
|
545
600
|
this.name = "WorkerSecurityViolationError";
|
|
546
601
|
}
|
|
@@ -599,6 +654,7 @@ var WorkerDefenseInDepth = class {
|
|
|
599
654
|
* @param config - Configuration for the defense layer
|
|
600
655
|
*/
|
|
601
656
|
constructor(config) {
|
|
657
|
+
assertExcludableViolationTypes(config.excludeViolationTypes);
|
|
602
658
|
this.originalProxy = Proxy;
|
|
603
659
|
this.config = config;
|
|
604
660
|
this.executionId = generateExecutionId();
|
|
@@ -682,7 +738,7 @@ var WorkerDefenseInDepth = class {
|
|
|
682
738
|
*/
|
|
683
739
|
recordViolation(type, path, message) {
|
|
684
740
|
const violation = {
|
|
685
|
-
timestamp:
|
|
741
|
+
timestamp: getSafeTimestamp(),
|
|
686
742
|
type,
|
|
687
743
|
message,
|
|
688
744
|
path,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-BZWGVRFA.js";import"./chunk-4APSDE57.js";import"./chunk-KP2UH5CJ.js";import"./chunk-HL7NFZVQ.js";import"./chunk-WDV2ECOC.js";import"./chunk-MROECM42.js";import"./chunk-42AMF6EE.js";import"./chunk-XBX7KFWK.js";import"./chunk-O74FSWB4.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-VLWZ6L7C.js";import"./chunk-CPTQXTBJ.js";import"./chunk-7JZKVC3F.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as xanCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{k as a,l as b}from"./chunk-
|
|
3
|
+
import{k as a,l as b}from"./chunk-4APSDE57.js";import"./chunk-KP2UH5CJ.js";import"./chunk-74TZ7ZF7.js";import"./chunk-HWI42GQO.js";import"./chunk-CPTQXTBJ.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-DN2YCFOR.js";export{a as cmdFlatten,b as cmdView};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-2ORJ5HTY.js";import"./chunk-KP2UH5CJ.js";import"./chunk-HL7NFZVQ.js";import"./chunk-WDV2ECOC.js";import"./chunk-MROECM42.js";import"./chunk-42AMF6EE.js";import"./chunk-XBX7KFWK.js";import"./chunk-HWI42GQO.js";import"./chunk-VLWZ6L7C.js";import"./chunk-CPTQXTBJ.js";import"./chunk-LCP3IKI7.js";import"./chunk-CPKBPQ2C.js";import"./chunk-PBOVSFTJ.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{b as flagsForFuzzing,a as yqCommand};
|