@visulima/vis 1.0.0-alpha.27 → 1.0.0-alpha.28
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 +7 -0
- package/LICENSE.md +3228 -110
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bin.js +468 -364
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/config.js +15 -15
- package/dist/packem_chunks/devtools.js +82 -0
- package/dist/packem_chunks/doctor-probe.js +1 -1
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler10.js +1 -1
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +1 -1
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +1 -1
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +1 -1
- package/dist/packem_chunks/handler20.js +1 -1
- package/dist/packem_chunks/handler21.js +3 -3
- package/dist/packem_chunks/handler22.js +1 -1
- package/dist/packem_chunks/handler23.js +2 -2
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler26.js +1 -1
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler29.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler30.js +6 -6
- package/dist/packem_chunks/handler31.js +2 -2
- package/dist/packem_chunks/handler33.js +1 -1
- package/dist/packem_chunks/handler34.js +4 -4
- package/dist/packem_chunks/handler35.js +2 -2
- package/dist/packem_chunks/handler36.js +1 -1
- package/dist/packem_chunks/handler37.js +4 -4
- package/dist/packem_chunks/handler38.js +2 -2
- package/dist/packem_chunks/handler39.js +5 -5
- package/dist/packem_chunks/handler4.js +5 -5
- package/dist/packem_chunks/handler40.js +18 -18
- package/dist/packem_chunks/handler41.js +1 -1
- package/dist/packem_chunks/handler42.js +25 -10
- package/dist/packem_chunks/handler43.js +10 -25
- package/dist/packem_chunks/handler44.js +11 -11
- package/dist/packem_chunks/handler45.js +15 -15
- package/dist/packem_chunks/handler46.js +19 -19
- package/dist/packem_chunks/handler47.js +16 -16
- package/dist/packem_chunks/handler48.js +3 -3
- package/dist/packem_chunks/handler49.js +12 -12
- package/dist/packem_chunks/handler5.js +7 -7
- package/dist/packem_chunks/handler50.js +70 -71
- package/dist/packem_chunks/handler51.js +23 -23
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +7 -17
- package/dist/packem_chunks/index.js +3 -3
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/list.js +2 -2
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/prune.js +1 -1
- package/dist/packem_chunks/run.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/sync2.js +1 -1
- package/dist/packem_chunks/tripwire.js +1 -1
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_shared/Table-CwC2kW07-EjFLNV0q.js +12 -0
- package/dist/packem_shared/_commonjsHelpers-CLblCigl.js +1 -0
- package/dist/packem_shared/{advisories-xIOdLbAI.js → advisories-BxXiKFbL.js} +1 -1
- package/dist/packem_shared/{ai-analysis-Csn82p17.js → ai-analysis-BnmDFqc8.js} +5 -5
- package/dist/packem_shared/{ai-fix-BlYyz5bI.js → ai-fix-BGbnrWCz.js} +7 -7
- package/dist/packem_shared/{cyclonedx-B3ILsY74.js → cyclonedx-C2k2HmvI.js} +1 -1
- package/dist/packem_shared/{dependency-scan-s2MD0vi-.js → dependency-scan-Bki15Yi-.js} +1 -1
- package/dist/packem_shared/{docker-BynKrOLe.js → docker-k-Sl8b-w.js} +1 -1
- package/dist/packem_shared/{failure-log-B0Uh-65U.js → failure-log-C3bG1bCA.js} +1 -1
- package/dist/packem_shared/index-2r730kXY.js +29 -0
- package/dist/packem_shared/{index-B_KtN1MB.js → index-DBq4TVu5.js} +1 -1
- package/dist/packem_shared/{lifecycle-CJRNbN3x.js → lifecycle-B91p_ra8.js} +2 -2
- package/dist/packem_shared/{lockfile-BG1HvBzH.js → lockfile-DmDfgKaT.js} +1 -1
- package/dist/packem_shared/{min-release-age-aEn0x8Vy.js → min-release-age-B1Jm1_JY.js} +1 -1
- package/dist/packem_shared/{native-config-sync-DdhTLlKL.js → native-config-sync-Cnpj2xcn.js} +6 -6
- package/dist/packem_shared/{osv-bloom-BJhlc_I2.js → osv-bloom-ep8GlDGT.js} +2 -2
- package/dist/packem_shared/pm-runner-COoPLGKi.js +1 -0
- package/dist/packem_shared/{provenance-BuiEsWbI.js → provenance-DbkJRDqt.js} +1 -1
- package/dist/packem_shared/{registry-keys-pemEkRM9.js → registry-keys-SylX07bs.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-RgRrUDZv.js → resolve-explicit-CJ_5wYSu.js} +1 -1
- package/dist/packem_shared/s1ngularity-DlS-4a6K.js +1 -0
- package/dist/packem_shared/scan-progress-CU4ttEHQ.js +2 -0
- package/dist/packem_shared/{signatures-LYMy8OR5.js → signatures-B-1u4t-c.js} +1 -1
- package/dist/packem_shared/spinner-B9ZPv1iT.js +1 -0
- package/dist/packem_shared/spinners-f91Rbo99-Bjf3NcO0.js +1 -0
- package/dist/packem_shared/tabs-C-qFIoUv.js +1 -0
- package/dist/packem_shared/typosquats-BxCOUvTJ.js +1 -0
- package/dist/packem_shared/use-measured-height-kIDCuc76.js +1 -0
- package/dist/packem_shared/vis-update-app-COYmjGKv.js +1 -0
- package/dist/packem_shared/{watch-loop-DLlMLg_J.js → watch-loop-CP318TfG.js} +2 -2
- package/index.js +26 -26
- package/package.json +9 -9
- package/dist/packem_shared/index-efSniSRN.js +0 -29
- package/dist/packem_shared/index.server-B7ETiT4C.js +0 -2
- package/dist/packem_shared/pm-runner-BwX5AL3W.js +0 -1
- package/dist/packem_shared/s1ngularity-Bs9fUf3q.js +0 -1
- package/dist/packem_shared/scan-progress-DjPT66jy.js +0 -2
- package/dist/packem_shared/typosquats-znskIR5j.js +0 -1
- package/dist/packem_shared/use-measured-height-DjYgUOKk.js +0 -1
- package/dist/packem_shared/vis-update-app-qhQPV97i.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var v=Object.defineProperty;var a=(r,e)=>v(r,"name",{value:e,configurable:!0});var o=Object.defineProperty,m=a((r,e)=>o(r,"name",{value:e,configurable:!0}),"a"),g=Object.defineProperty,t=m((r,e)=>g(r,"name",{value:e,configurable:!0}),"e"),c={interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},d={interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},u={interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},b={interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},p={interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},h={interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},w={interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},y={interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},k={interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},O={interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},S={interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},j={interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},B={interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},P={interval:80,frames:["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},x={interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},q={interval:80,frames:["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},M={interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},D={interval:130,frames:["-","\\","|","/"]},H={interval:100,frames:["⠂","-","–","—","–","-"]},C={interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},R={interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},z={interval:400,frames:[". ",".. ","..."," "]},A={interval:200,frames:[". ",".. ","..."," .."," ."," "]},F={interval:70,frames:["✶","✸","✹","✺","✹","✷"]},I={interval:80,frames:["+","x","*"]},L={interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},N={interval:100,frames:["☱","☲","☴"]},Q={interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},T={interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},V={interval:140,frames:[" ",".","o","O","@","*"," "]},W={interval:120,frames:[".","o","O","°","O","o","."]},$={interval:100,frames:["▓","▒","░"]},E={interval:120,frames:["⠁","⠂","⠄","⠂"]},G={interval:120,frames:["▖","▘","▝","▗"]},J={interval:100,frames:["▌","▀","▐","▄"]},K={interval:50,frames:["◢","◣","◤","◥"]},X={interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},Y={interval:100,frames:["◜","◠","◝","◞","◡","◟"]},Z={interval:120,frames:["◡","⊙","◠"]},U={interval:180,frames:["◰","◳","◲","◱"]},rr={interval:120,frames:["◴","◷","◶","◵"]},er={interval:50,frames:["◐","◓","◑","◒"]},_r={interval:100,frames:["╫","╪"]},ar={interval:250,frames:["⊶","⊷"]},tr={interval:80,frames:["▫","▪"]},nr={interval:120,frames:["□","■"]},lr={interval:100,frames:["■","□","▪","▫"]},sr={interval:100,frames:["▮","▯"]},ir={interval:300,frames:["ဝ","၀"]},mr={interval:80,frames:["⦾","⦿"]},fr={interval:100,frames:["◍","◌"]},vr={interval:100,frames:["◉","◎"]},or={interval:100,frames:["㊂","㊀","㊁"]},gr={interval:50,frames:["⧇","⧆"]},cr={interval:120,frames:["☗","☖"]},dr={interval:80,frames:["=","*","-"]},ur={interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},br={interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},pr={interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},hr={interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},wr={interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},yr={interval:200,frames:["😄 ","😝 "]},kr={interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},Or={interval:100,frames:["💛 ","💙 ","💜 ","💚 ","💗 "]},Sr={interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},jr={interval:180,frames:["🌍 ","🌎 ","🌏 "]},Br={interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},Pr={interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},xr={interval:140,frames:["🚶 ","🏃 "]},qr={interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},Mr={interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},Dr={interval:100,frames:["d","q","p","b"]},Hr={interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},Cr={interval:400,frames:["🌲","🎄"]},Rr={interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},zr={interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},Ar={interval:150,frames:["-","=","≡"]},Fr={interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},Ir={interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},Lr={interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},Nr={interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},Qr={interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},Tr={interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},Vr={interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},Wr={interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},$r={interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},Er={interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},Gr={interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},Jr={interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},Kr={interval:80,frames:["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]};const n={dots:c,dots2:d,dots3:u,dots4:b,dots5:p,dots6:h,dots7:w,dots8:y,dots9:k,dots10:O,dots11:S,dots12:j,dots13:B,dots14:P,dots8Bit:x,dotsCircle:q,sand:M,line:D,line2:H,rollingLine:C,pipe:R,simpleDots:z,simpleDotsScrolling:A,star:F,star2:I,flip:L,hamburger:N,growVertical:Q,growHorizontal:T,balloon:V,balloon2:W,noise:$,bounce:E,boxBounce:G,boxBounce2:J,triangle:K,binary:X,arc:Y,circle:Z,squareCorners:U,circleQuarters:rr,circleHalves:er,squish:_r,toggle:ar,toggle2:tr,toggle3:nr,toggle4:lr,toggle5:sr,toggle6:ir,toggle7:mr,toggle8:fr,toggle9:vr,toggle10:or,toggle11:gr,toggle12:cr,toggle13:dr,arrow:ur,arrow2:br,arrow3:pr,bouncingBar:hr,bouncingBall:wr,smiley:yr,monkey:kr,hearts:Or,clock:Sr,earth:jr,material:Br,moon:Pr,runner:xr,pong:qr,shark:Mr,dqpb:Dr,weather:Hr,christmas:Cr,grenade:Rr,point:zr,layer:Ar,betaWave:Fr,fingerDance:Ir,fistBump:Lr,soccerHeader:Nr,mindblown:Qr,speaker:Tr,orangePulse:Vr,bluePulse:Wr,orangeBluePulse:$r,timeTravel:Er,aesthetic:Gr,dwarfFortress:Jr,fish:Kr};var Xr=Object.defineProperty,Yr=t((r,e)=>Xr(r,"name",{value:e,configurable:!0}),"o");const i=Object.keys(n);function l(){const r=Math.floor(Math.random()*i.length),e=i[r];return n[e]}a(l,"i");m(l,"Ir");t(l,"randomSpinner");Yr(l,"randomSpinner");var Zr=Object.defineProperty,s=t((r,e)=>Zr(r,"name",{value:e,configurable:!0}),"r");const Ur={breathe:{frames:["⠀","⠂","⠌","⡑","⢕","⢝","⣫","⣟","⣿","⣟","⣫","⢝","⢕","⡑","⠌","⠂","⠀"],interval:100},cascade:{frames:["⠀⠀⠀⠀","⠁⠀⠀⠀","⠋⠀⠀⠀","⠞⠁⠀⠀","⡴⠋⠀⠀","⣠⠞⠁⠀","⢀⡴⠋⠀","⠀⣠⠞⠁","⠀⢀⡴⠋","⠀⠀⣠⠞","⠀⠀⢀⡴","⠀⠀⠀⣠","⠀⠀⠀⢀"],interval:60},checkerboard:{frames:["⢕⢕⢕","⡪⡪⡪","⢊⠔⡡","⡡⢊⠔"],interval:250},columns:{frames:["⡀⠀⠀","⡄⠀⠀","⡆⠀⠀","⡇⠀⠀","⣇⠀⠀","⣧⠀⠀","⣷⠀⠀","⣿⠀⠀","⣿⡀⠀","⣿⡄⠀","⣿⡆⠀","⣿⡇⠀","⣿⣇⠀","⣿⣧⠀","⣿⣷⠀","⣿⣿⠀","⣿⣿⡀","⣿⣿⡄","⣿⣿⡆","⣿⣿⡇","⣿⣿⣇","⣿⣿⣧","⣿⣿⣷","⣿⣿⣿","⣿⣿⣿","⠀⠀⠀"],interval:60},diagSwipe:{frames:["⠁⠀","⠋⠀","⠟⠁","⡿⠋","⣿⠟","⣿⡿","⣿⣿","⣿⣿","⣾⣿","⣴⣿","⣠⣾","⢀⣴","⠀⣠","⠀⢀","⠀⠀","⠀⠀"],interval:60},dna:{frames:["⠋⠉⠙⠚","⠉⠙⠚⠒","⠙⠚⠒⠂","⠚⠒⠂⠂","⠒⠂⠂⠒","⠂⠂⠒⠲","⠂⠒⠲⠴","⠒⠲⠴⠤","⠲⠴⠤⠄","⠴⠤⠄⠋","⠤⠄⠋⠉","⠄⠋⠉⠙"],interval:80},doubleArrow:{frames:["⇐","⇖","⇑","⇗","⇒","⇘","⇓","⇙"],interval:100},fillSweep:{frames:["⣀⣀","⣤⣤","⣶⣶","⣿⣿","⣿⣿","⣿⣿","⣶⣶","⣤⣤","⣀⣀","⠀⠀","⠀⠀"],interval:100},helix:{frames:["⢌⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉"],interval:80},infinity:{frames:["⢎⡱⣉⠆","⢎⡱⣈⠆","⢎⡱⣀⠆","⢎⡱⣀⠄","⢎⡱⣀ ","⢎⡱⡀ ","⢎⡱ ","⢎⡱ ","⢎⡡ ","⢎⡠ ","⢆⡠ ","⢄⡠ ","⢀⡠ "," ⡠ "," ⠠ "," ⠰ "," ⠐ "," ⠐⠁ "," ⠐⠉ "," ⠐⠉⠂"," ⠐⠉⠆"," ⠐⢉⠆"," ⠐⣉⠆"," ⠰⣉⠆"," ⠰⣉⠆"," ⠱⣉⠆","⠈⠱⣉⠆","⠊⠱⣉⠆","⠎⠱⣉⠆","⢎⠱⣉⠆","⢎⡱⣉⠆","⢎⡱⣉⠆"],interval:60},orbit:{frames:["⠃","⠉","⠘","⠰","⢠","⣀","⡄","⠆"],interval:100},pulse:{frames:["⠀⠶⠀","⠰⣿⠆","⢾⣉⡷","⣏⠀⣹","⡁⠀⢈"],interval:180},rain:{frames:["⢁⠂⠔⠈","⠂⠌⡠⠐","⠄⡐⢀⠡","⡈⠠⠀⢂","⠐⢀⠁⠄","⠠⠁⠊⡀","⢁⠂⠔⠈","⠂⠌⡠⠐","⠄⡐⢀⠡","⡈⠠⠀⢂","⠐⢀⠁⠄","⠠⠁⠊⡀"],interval:100},scan:{frames:["⠀⠀⠀⠀","⡇⠀⠀⠀","⣿⠀⠀⠀","⢸⡇⠀⠀","⠀⣿⠀⠀","⠀⢸⡇⠀","⠀⠀⣿⠀","⠀⠀⢸⡇","⠀⠀⠀⣿","⠀⠀⠀⢸"],interval:70},scanline:{frames:["⠉⠉⠉","⠓⠓⠓","⠦⠦⠦","⣄⣄⣄","⠦⠦⠦","⠓⠓⠓"],interval:120},snake:{frames:["⣁⡀","⣉⠀","⡉⠁","⠉⠉","⠈⠙","⠀⠛","⠐⠚","⠒⠒","⠖⠂","⠶⠀","⠦⠄","⠤⠤","⠠⢤","⠀⣤","⢀⣠","⣀⣀"],interval:80},sparkle:{frames:["⡡⠊⢔⠡","⠊⡰⡡⡘","⢔⢅⠈⢢","⡁⢂⠆⡍","⢔⠨⢑⢐","⠨⡑⡠⠊"],interval:150},wave:{frames:["⠁⠂⠄⡀","⠂⠄⡀⢀","⠄⡀⢀⠠","⡀⢀⠠⠐","⢀⠠⠐⠈","⠠⠐⠈⠁","⠐⠈⠁⠂","⠈⠁⠂⠄"],interval:100},waveRows:{frames:["⠖⠉⠉⠑","⡠⠖⠉⠉","⣠⡠⠖⠉","⣄⣠⡠⠖","⠢⣄⣠⡠","⠙⠢⣄⣠","⠉⠙⠢⣄","⠊⠉⠙⠢","⠜⠊⠉⠙","⡤⠜⠊⠉","⣀⡤⠜⠊","⢤⣀⡤⠜","⠣⢤⣀⡤","⠑⠣⢤⣀","⠉⠑⠣⢤","⠋⠉⠑⠣"],interval:90}},_={...n,...Ur},ee=s(r=>_[r],"getSpinner");s(()=>{const r=Object.keys(_),e=Math.floor(Math.random()*r.length),f=r[e];return _[f]},"getRandomSpinner");s(()=>Object.keys(_),"getSpinnerNames");export{ee as $};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var G=Object.defineProperty;var m=(e,o)=>G(e,"name",{value:o,configurable:!0});import{a5 as u,r as t,af as X,a6 as T,n as O}from"../packem_chunks/bin.js";var Y=Object.defineProperty,W=m((e,o)=>Y(e,"name",{value:o,configurable:!0}),"n"),Z=Object.defineProperty,q=W((e,o)=>Z(e,"name",{value:o,configurable:!0}),"a"),_=Object.defineProperty,ee=q((e,o)=>_(e,"name",{value:o,configurable:!0}),"t");function P({children:e}){return u.jsx(u.Fragment,{children:e})}m(P,"r");W(P,"c");q(P,"o");ee(P,"Tab");var re=Object.defineProperty,z=m((e,o)=>re(e,"name",{value:o,configurable:!0}),"A"),ne=Object.defineProperty,B=z((e,o)=>ne(e,"name",{value:o,configurable:!0}),"A"),oe=Object.defineProperty,v=B((e,o)=>oe(e,"name",{value:o,configurable:!0}),"b");const te=/^\d$/u,ce=v(e=>e!=null&&typeof e=="object"&&"props"in e&&"name"in e.props,"isTabElement"),ae=v(e=>{const o=[];for(const c of t.Children.toArray(e))ce(c)&&o.push(c);return o},"collectTabs"),V=v((e,o)=>e.some(c=>o[c]),"matchesAnyKey"),ue=v((e,o,c)=>e?o?{backgroundColor:c?.activeTab?.backgroundColor??"green",color:c?.activeTab?.color??"black"}:{backgroundColor:"gray",color:"black"}:{backgroundColor:void 0,color:void 0},"getActiveTabColors");function E({children:e,colors:o,defaultValue:c,flexDirection:g="row",isFocused:h,keyMap:l,onChange:M,showIndex:H=!0,value:j,width:y}){const s=ae(e),a=s.length,d=t.useRef(s);d.current=s;const i=g==="column"||g==="column-reverse",C=j!==void 0,[J,L]=t.useState(()=>{const r=j??c;if(r==null||a===0)return 0;const n=s.findIndex(p=>p.props.name===r);return n===-1?0:n}),x=C?Math.max(0,s.findIndex(r=>r.props.name===j)):J,Q=t.useCallback(()=>{},[]),f=C?Q:L,b=t.useRef(M);b.current=M,t.useEffect(()=>{if(C)return;const r=d.current[x];r&&b.current(r.props.name,r)},[]);const R=t.useMemo(()=>l?.previous??[i?"upArrow":"leftArrow"],[l?.previous,i]),I=t.useMemo(()=>l?.next??[i?"downArrow":"rightArrow"],[l?.next,i]),$=l?.useNumbers??!0,D=l?.useTab??!0,k=t.useRef(x);k.current=x;const F=t.useCallback(r=>{f(r);const n=d.current[r];n&&b.current(n.props.name,n)},[f]),w=t.useCallback(()=>{const r=(k.current+1)%a;f(r);const n=d.current[r];n&&b.current(n.props.name,n)},[a,f]),A=t.useCallback(()=>{const r=(k.current-1+a)%a;f(r);const n=d.current[r];n&&b.current(n.props.name,n)},[a,f]);X(t.useCallback((r,n)=>{if(V(R,n)){A();return}if(V(I,n)){w();return}if(n.tab&&D&&h==null){n.shift?A():w();return}if($&&n.meta&&te.test(r)){const p=r==="0"?9:Number.parseInt(r,10)-1;p<a&&F(p)}},[R,I,D,$,h,A,w,a,F]),{isActive:h!==!1});const K=typeof y=="number"?y:6,U=t.useMemo(()=>i?"─".repeat(K):" | ",[i,K]);return u.jsx(T,{flexDirection:g,width:y,children:s.map((r,n)=>{const{name:p}=r.props,N=ue(x===n,h!==!1,o);let S=null;return H&&(S=u.jsxs(O,{color:"grey",children:[n+1,"."," "]})),u.jsxs(T,{flexDirection:g,children:[n!==0&&u.jsx(O,{color:"dim",children:U}),u.jsxs(T,{children:[S,u.jsx(O,{backgroundColor:N.backgroundColor,color:N.color,children:r})]})]},p)})})}m(E,"g");z(E,"or");B(E,"W");v(E,"Tabs");export{E as g,P as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var $=Object.defineProperty;var l=(e,s)=>$(e,"name",{value:s,configurable:!0});import{createRequire as z}from"node:module";import{T as b,e as k}from"./Table-CwC2kW07-EjFLNV0q.js";import{M as C,i as D}from"./readFileSync-CGmzMUF2-D6rUjGDn.js";import{n as A}from"../packem_chunks/config.js";import{g as O}from"./_commonjsHelpers-CLblCigl.js";import{i as f,p as i}from"../packem_chunks/bin.js";const _=z(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,T=l(e=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[s,r]=m.versions.node.split(".").map(Number);if(s>22||s===22&&r>=3||s===20&&r>=16)return m.getBuiltinModule(e)}return _(e)},"__cjs_getBuiltinModule"),{createInterface:M}=T("node:readline");var F=["aj","aju","av","avj","ejv","jav","jv"],N=["angula","angular-node","angularjs"],P=["auto-prefixer"],B=["aaxios","aios","axio","axioos","axios-node","axioss","axis","axiso","axois","axos","axxios"],R=["abel","babbel","babe","babel-js","babel-node","babl","bable","bbael","bebel"],S=["bcrpyt","bcrypt-node","brcypt","crypt","dcrypt"],W=["bcryptjs-node","dcryptjs"],L=["bunan","bunya","bunyan-node","buynan"],E=["cai","cha","chaijs","chal","chi","chia","hai"],U=["cahlk","calk","cchalk","ch4lk","cha1k","chaalk","chaik","chak","chakl","chalk-node","chalkk","challk","chhalk","chlak","chlk","halk","hcalk"],V=["cheero","cherio"],I=["c0lor","ccolor","clor","colo","coloor","color-js","colorjs","colorr","colr","coolor","coolr"],J=["ccolors","colors-node","colorss","colorz","colrs","coolors"],Y=["c0mmander","ccommander","cmmander","cmomander","co-mmander","comamnder","comander","comm4nder","commaander","commader","commadner","commamder","command3r","commandder","commande","commandeer","commander-js","commanderr","commandr","commandre","commanedr","commaner","commannder","commender","commmander","commnader","commnder","coommander","ocmmander","ommander"],G=["cor","corss","cos","cosr","cros","crs","ors"],H=["days"],K=["d3bug","dbeug","dbug","ddebug","debbug","debg","debgu","debu","debu9","debug-js","debug-node","debugg","debugjs","debuug","deebug","deubg","deug","ebug","edbug"],Q=["dot-env","dotenv-node","dotenvjs","dotevn"],X=["3lectron","eectron","eelctron","eelectron","el3ctron","elcetron","elctron","elecctron","elecron","elecrton","electon","electorn","electr0n","electrn","electrno","electro","electrom","electron-node","electronn","electroon","electrron","electtron","eleectron","eletcron","eletron","ellectron","lectron","leectron"],Z=["asbuild","ebuild","esbuild-node","esbuildjs","ezbuild","sbuild"],ee=["aslint","elint","eslint-js","eslint-node","eslit","ezlint","slint"],oe=["eexpress","epress","epxress","experss","expess","exppress","expreess","expres","express-node","expressjs","expresss","exprress","exprses","exprss","exress","exrpess","exxpress","xepress","xpress"],se=["astify"],re=["firebasejs"],ae=["form1dable"],te=["glb","glo","glob-js","globjs","gob","golb","lob"],ne=["go","goot","gotjs","gott","gt","gto","ogt","ot","qot"],ce=["helmetjs","helnet"],ie=["homo","hon","hoo","hoon","ohno","ono"],de=["inquire","inquirer-js","nquirer"],me=["iredis"],le=["ejst","est","jast","jes","jestjs","jestt","jet","jets","jst"],pe=["imp","jim","jip","jmp"],ue=["ji","jio","jo","joii","jol","oi","oji"],ve=["jdom","jsdm","jsdo","jsdom-js","jsdon","jsom","sdom"],he=["jsonwebtoken-js","jsonwebtoken-node"],je=["ka","kao","ko","koaa","koajs","koe","oa","oka"],be=["1odash","iodash","l0dash","ldash","ldoash","llodash","lo-dash","loadsh","loash","lobash","lod4sh","lodaash","lodah","lodahs","lodas","lodash-node","lodashh","lodassh","loddash","lodesh","lodsah","lodsh","loodash","odash","oldash"],ke=["luca","luci","lucie"],ge=["luon","luxo","luxon-js"],fe=["imcromatch","mciromatch","micormatch","micrmoatch","micro-match","microamtch","micromacth","micromathc","micromtach","mircomatch"],ye=["minimath"],xe=["mcha","mmocha","moca","moch","mocha-js","moha","nocha","ocha"],we=["m0ment","mment","mmoent","mmoment","moemnt","moent","mom3nt","momeent","momemt","momen","momen7","momennt","moment-js","momentjs","momentt","momet","mometn","momment","momnet","momnt","monent","mooment","oment","omment"],qe=["mognoose","mogoose","mongoos","mongose","monqoose","moongoose"],$e=["moran","organ"],ze=["muler","multer-js","muter"],_e=["mysql"],Te=["ext","mext","n3xt","naxt","net","netx","nex","next-js","next-node","nextjs","nxt"],Me=["node-mailer","nodemailer-js"],Ce=["nodemo","nodemonjs","nodmeon"],De=["oar","or","ora-node","ore","ra","roa"],Ae=["arcel","parce","parceljs"],Oe=["passport-js"],Fe=["phase","phaser-node"],Ne=["ino","pimo","pin","pino-node","pinojs","pio","pion"],Pe=["playright","playwright-js"],Be=["postcss-js","postcss-node","potscss"],Re=["pettier","pprettier","pretier","prettierjs","prettierr","prtetier"],Se=["prima","prism","prisma-js","prismajs","prizma"],We=["pupeteer"],Le=["rada","rama","ramd","randa"],Ee=["eact","eract","r3act","raact","ract","raect","re4ct","reaact","reac","reac7","reacct","react-node","reactjs","reactt","reat","reatc","recat","rect","reeact","reect","rreact"],Ue=["erdis","radis","rdis","redi","redis-js","redis-node","rediss","rediz","reds","reis","rredis"],Ve=["resen","rsend"],Ie=["ollup","rollup-js","rollup-node"],Je=["ass","asss","sas","sass-node","sess","ssas","sss"],Ye=["emver","seemver","semver-node","semvre","senver","sever"],Ge=["sequelize-js","sequelize-node"],He=["harp","shap","shar","sharp-js","sharpjs"],Ke=["stipe","strip","stripe-node","tripe"],Qe=["supabase-js"],Xe=["suelte","svelt3","svelte-js","sveltejs","velte"],Ze=["tailwindcss-js"],eo=["auri","taui"],oo=["hree","htree","thee","there","three-js","three-node","tree"],so=["stx","sx","ts","tsxx","ttsx","tx","txs","tzx"],ro=["ttypescript","typecript","typescipt","typescript-node","typescriptjs","typescrit","typescritp"],ao=["udnerscore","undercore","underscoer","underscore-node","underscroe","undersocre","undesrcore"],to=["uid","uud","uudi","uui","uuid-js","uuid-node","uuidjs","vuid"],no=["ite","vie","vit","vita","vite-node","vitee","vlte","vte"],co=["itest","uitest","vitestjs","vitezt","vittest","vtest"],io=["ue","uue","uve","ve","veu","vu","vu3","vua","vue-node","vuee","vuejs","vuue","vve","vvue"],mo=["web-pack","weback","webpac","webpack-node","webpackjs","webpak","weebpack","wepack","wepback"],lo=["winson","winston-js","winstoon"],po=["up","uyp","yp","yu","yupjs","yupp"],uo=["od","zd","zdo","zo","zob","zod-js","zodjs"];const vo={ajv:F,angular:N,autoprefixer:P,"aws-sdk":["awssdk","ews-sdk"],axios:B,babel:R,bcrypt:S,bcryptjs:W,"body-parser":["body-paresr","body-parse","body-parser-js","body_parser"],bunyan:L,chai:E,chalk:U,cheerio:V,color:I,colors:J,commander:Y,"cookie-parser":["cookie-parse","cookieparser"],cors:G,"cross-env":["crossenv"],"date-fns":["data-fns","date-fn"],dayjs:H,debug:K,dotenv:Q,electron:X,esbuild:Z,eslint:ee,express:oe,fastify:se,firebase:re,formidable:ae,glob:te,got:ne,helmet:ce,hono:ie,inquirer:de,ioredis:me,jest:le,jimp:pe,joi:ue,jsdom:ve,jsonwebtoken:he,koa:je,lodash:be,lucia:ke,luxon:ge,micromatch:fe,minimatch:ye,mocha:xe,moment:we,mongoose:qe,morgan:$e,multer:ze,mysql2:_e,next:Te,"node-fetch":["node-fecth","node-fethc","node.fetch"],nodemailer:Me,nodemon:Ce,ora:De,parcel:Ae,passport:Oe,phaser:Fe,pino:Ne,playwright:Pe,postcss:Be,prettier:Re,prisma:Se,puppeteer:We,ramda:Le,react:Ee,"react-dom":["eact-dom","eract-dom","r3act-dom","ract-dom","raect-dom","re4ct-dom","reaact-dom","reac-dom","reac7-dom","reacct-dom","react-bom","react-d0m","react-ddom","react-dm","react-dmo","react-do","react-domm","react-don","react-doom","react-odm","react-om","react.dom","reactdom","reactt-dom","reat-dom","reatc-dom","recat-dom","rect-dom","reeact-dom","rreact-dom"],redis:Ue,resend:Ve,rollup:Ie,sass:Je,semver:Ye,sequelize:Ge,sharp:He,"socket.io":["ocket.io","oscket.io","scket.io","scoket.io","soccket.io","socekt.io","socet.io","sock3t.io","socke.io","socke7.io","sockeet.io","socket.1o","socket.i","socket.iio","socket.ioo","socket.lo","socket.o","socket.oi","sockett.io","sockket.io","sockt.io","sockte.io","sokcet.io","soket.io","soocket.io","ssocket.io"],stripe:Ke,supabase:Qe,svelte:Xe,tailwindcss:Ze,tauri:eo,three:oo,"ts-node":["tts-node"],tsx:so,typescript:ro,underscore:ao,uuid:to,vite:no,vitest:co,vue:io,webpack:mo,winston:lo,yup:po,zod:uo};var v,g;function ho(){return g||(g=1,v={"@tanstack/start":["start-tanstack-app","tanstack","tanstack-app","tanstack-start"]}),v}l(ho,"requireTyposquatsManual");var jo=ho();const bo=O(jo);var ko=Object.defineProperty,n=l((e,s)=>ko(e,"name",{value:s,configurable:!0}),"c");const go={a:["4","e"],b:["d"],d:["b"],e:["3","a"],g:["9","q"],i:["1","l"],l:["1","i"],m:["n"],n:["m"],o:["0"],s:["5","z"],t:["7"],u:["v"],v:["u"]},fo=["app","cli","core","kit","lib","pkg","sdk"],yo=n(e=>{const s=new Set;if(e.length<3)return s;for(let o=0;o<e.length;o++){const a=e[o],t=a==="-"||a==="."||a==="_";if(t||s.add(e.slice(0,o)+e.slice(o+1)),t||s.add(e.slice(0,o)+a+e.slice(o)),o<e.length-1&&e[o]!==e[o+1]){const u=e[o+1]==="-"||e[o+1]==="."||e[o+1]==="_";if(!t&&!u){const d=[...e];[d[o],d[o+1]]=[d[o+1],d[o]],s.add(d.join(""))}}const c=e[o].toLowerCase(),j=go[c];if(j)for(const u of j)s.add(e.slice(0,o)+u+e.slice(o+1))}const r=/[-._]/g;if(r.test(e))s.add(e.replaceAll(r,"")),s.add(e.replaceAll(r,"-")),s.add(e.replaceAll(r,".")),s.add(e.replaceAll(r,"_"));else if(e.length>5)for(let o=2;o<e.length-2;o++)s.add(`${e.slice(0,o)}-${e.slice(o)}`),s.add(`${e.slice(0,o)}.${e.slice(o)}`),s.add(`${e.slice(0,o)}_${e.slice(o)}`);if(e.startsWith("@")||(s.add(`${e}-js`),s.add(`${e}js`),s.add(`${e}-node`)),e.startsWith("@")){const o=e.indexOf("/");if(o>1&&o<e.length-1){const a=e.slice(1,o),t=e.slice(o+1);a.length>=3&&s.add(a);for(const c of["","-",".","_"])s.add(`${a}${c}${t}`),s.add(`${t}${c}${a}`);for(const c of fo)s.add(`${a}-${c}`),s.add(`${t}-${a}-${c}`),s.add(`${c}-${a}-${t}`)}}return s.delete(e),s},"generateVariants");let h,p;const y=n(()=>{if(!h){const e={};for(const s of[vo,bo])for(const[r,o]of Object.entries(s)){const a=e[r]??(e[r]=[]);for(const t of o)a.includes(t)||a.push(t)}h=e}return h},"loadBlocklist"),xo=n(()=>{if(!p){p=new Map;for(const[e,s]of Object.entries(y()))for(const r of s)p.set(r,e)}return p},"getReverseLookup"),wo=n(e=>e.startsWith("@")?e.split("/")[1]??e:e,"bareName"),qo=n(e=>{const s=wo(e),r=xo().get(s);if(r)return{input:e,legitimate:r,method:"blocklist"};for(const o of Object.keys(y()))if(yo(o).has(s))return{input:e,legitimate:o,method:"heuristic"}},"checkTyposquat"),x=n((e,s)=>{const r=s?new Set(s):void 0,o=[];for(const a of e){if(r?.has(a))continue;const t=qo(a);t&&o.push(t)}return o},"checkTyposquats"),w=n((e,s)=>{i.warn(""),i.warn(b(`Possible typosquat${e.length===1?"":"s"} ${s}:`));for(const r of e){const o=r.method==="blocklist"?"known typosquat":"similar name";i.warn(` ${k("⚠")} ${b(r.input)} — did you mean ${k(r.legitimate)}? (${o})`)}i.warn("")},"printTyposquatWarnings"),q=n(async e=>{if(!process.stdin.isTTY){i.warn("Aborting: potential typosquat detected in non-interactive mode. Use --no-typosquat-check to skip.");return}const s=M({input:process.stdin,output:process.stdout}),r=await new Promise(o=>{s.question(e,a=>{o(a.trim().toLowerCase())})});return s.close(),r},"askConfirmation"),No=n(async(e,s)=>{if(f("typosquats"))return{ok:!0,packages:e};const r=x(e,s);if(r.length===0)return{ok:!0,packages:e};w(r,"detected");const o=await q(`Use suggested package${r.length===1?"":"s"} instead? [S]uggested / [y]es, keep original / [N]o, abort (default: N) `);if(o===void 0)return{ok:!1,packages:e};if(o==="s"||o==="suggested"){const a=new Map(r.map(t=>[t.input,t.legitimate]));return{ok:!0,packages:e.map(t=>a.get(t)??t)}}return o==="y"||o==="yes"?{ok:!0,packages:e}:{ok:!1,packages:e}},"runTyposquatCheck"),$o=/^(?:npm|pnpm|yarn):(.+?)(?:@.*)?$/,zo=n(e=>$o.exec(e)?.[1],"parseAliasTarget"),_o=n(e=>{if(!D(e))return[];const s=A(e),r={...s.dependencies,...s.devDependencies,...s.optionalDependencies,...s.peerDependencies},o=new Set;for(const[a,t]of Object.entries(r)){o.add(a);const c=zo(t);c&&o.add(c)}return[...o]},"readDepsFromPackageJson"),Po=n(async(e,s)=>{if(f("typosquats"))return!0;const r=C(e,"package.json"),o=_o(r);if(o.length===0)return!0;const a=x(o,s);if(a.length===0)return!0;w(a,"in package.json dependencies"),i.warn("Fix the package name in package.json before proceeding.");const t=await q("Continue anyway? [y/N] ");return t==="y"||t==="yes"},"scanDepsForTyposquats");export{No as r,Po as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=Object.defineProperty;var n=(e,r)=>c(e,"name",{value:r,configurable:!0});import{r as s,Z as i}from"../packem_chunks/bin.js";var f=Object.defineProperty,g=n((e,r)=>f(e,"name",{value:r,configurable:!0}),"i");const d=g((e,r)=>{const u=s.useRef(null),[a,o]=s.useState(e);return s.useLayoutEffect(()=>{if(!u.current)return;const{height:t}=i(u.current);t>0&&t!==a&&(o(t),r?.(t))}),{measuredHeight:a,ref:u}},"useMeasuredHeight");export{d as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var me=Object.defineProperty;var b=(d,t)=>me(d,"name",{value:t,configurable:!0});import{aF as ue,a5 as e,a6 as l,n as r,K as xe,aG as fe,aH as ye,aI as we,r as j,af as Ce,aJ as _,aK as ce}from"../packem_chunks/bin.js";import{n as ke}from"./spinner-B9ZPv1iT.js";import{g as be,r as Te}from"./tabs-C-qFIoUv.js";import{u as Se}from"./use-measured-height-kIDCuc76.js";var ve=Object.defineProperty,Ee=b((d,t)=>ve(d,"name",{value:t,configurable:!0}),"a");const er=Ee(({current:d,total:t})=>{const{columns:s}=ue(),i=s||80,a=t>0?Math.min(1,d/t):0,h=`${String(Math.round(a*100)).padStart(3)}%`,f=`${String(d)}/${String(t)}`,y=Math.max(10,i-2-h.length-1),p=Math.round(y*a),g=y-p;return e.jsxs(l,{flexDirection:"column",paddingX:1,children:[e.jsxs(l,{children:[e.jsx(ke,{type:"dots"}),e.jsx(r,{children:" Checking catalog dependencies "}),e.jsx(r,{dimColor:!0,children:f})]}),e.jsxs(l,{children:[e.jsx(r,{color:"cyan",children:"━".repeat(p)}),e.jsx(r,{dimColor:!0,children:"─".repeat(g)}),e.jsxs(r,{dimColor:!0,children:[" ",h]})]})]})},"CheckProgressApp");var Re=Object.defineProperty,S=b((d,t)=>Re(d,"name",{value:t,configurable:!0}),"l");const J=["default","name","updateType","severity"],de=S(d=>{const t=d.vulnerabilities?.map(s=>s.severity)??[];return t.includes("CRITICAL")?4:t.includes("HIGH")?3:t.includes("MODERATE")?2:t.includes("LOW")?1:0},"severityRank"),ae={digest:0,major:3,minor:2,patch:1,pin:0,unknown:0},he=S((d,t)=>{if(t==="default")return d;const s=[...d];return t==="name"?s.sort((i,a)=>i.packageName.localeCompare(a.packageName)):t==="updateType"?s.sort((i,a)=>(ae[a.updateType]??0)-(ae[i.updateType]??0)||i.packageName.localeCompare(a.packageName)):s.sort((i,a)=>de(a)-de(i)||i.packageName.localeCompare(a.packageName)),s},"sortEntries"),Z=S(d=>`${d.ecosystem}|${d.file}:${String(d.line)}|${d.name}`,"ecosystemEntryKey"),W=S(d=>{const t=new Map;for(const s of d){const i=t.get(s.catalogName);i?i.push(s):t.set(s.catalogName,[s])}return t},"groupByCatalog"),G=S((d,t,s)=>{let i=d;if(t!=="all"&&(i=t==="security"?i.filter(a=>a.vulnerabilities&&a.vulnerabilities.length>0||a.socketReport&&a.socketReport.alerts.length>0):i.filter(a=>a.updateType===t)),s){const a=s.toLowerCase();i=i.filter(h=>h.packageName.toLowerCase().includes(a))}return i},"filterEntries");class rr{static{b(this,"UpdateStore")}static{S(this,"UpdateStore")}#e;#l=new Set;#t;#s;#i=null;constructor(t,s=null,i=[]){this.#t=t,this.#s=i,s&&(this.#i=new Map(s.recommendations.map(a=>[a.package,a]))),this.#e={aiResult:s,allChecked:!0,applyProgress:null,checkedEcosystemKeys:new Set(i.map(a=>Z(a))),checkedEntries:new Set(t.map(a=>a.packageName)),ecosystemEntries:i,entries:t,error:null,filterActive:!1,filterText:"",filterType:"all",focusedPanel:"list",groupedByCatalog:W(t),phase:"browsing",selectedIndex:0,sortMode:"default"}}getSnapshot=S(()=>this.#e,"getSnapshot");subscribe=S(t=>(this.#l.add(t),()=>{this.#l.delete(t)}),"subscribe");getFilteredEntries(){return he(G(this.#t,this.#e.filterType,this.#e.filterText),this.#e.sortMode)}setSortMode(t){if(t===this.#e.sortMode)return;const s=this.getFilteredEntries()[this.#e.selectedIndex]?.packageName,i=he(G(this.#t,this.#e.filterType,this.#e.filterText),t),a=s?Math.max(0,i.findIndex(h=>h.packageName===s)):0;this.#r({...this.#e,selectedIndex:a,sortMode:t})}cycleSortMode(){const t=J.indexOf(this.#e.sortMode),s=J[(t+1)%J.length]??"default";this.setSortMode(s)}getRecommendation(t){return this.#i?.get(t)}getCheckedEntries(){return this.#t.filter(t=>this.#e.checkedEntries.has(t.packageName))}getCheckedEcosystemEntries(){return this.#s.filter(t=>this.#e.checkedEcosystemKeys.has(Z(t)))}toggleEcosystemCheck(t){const s=new Set(this.#e.checkedEcosystemKeys);s.has(t)?s.delete(t):s.add(t),this.#r({...this.#e,checkedEcosystemKeys:s})}checkAllEcosystem(){this.#r({...this.#e,checkedEcosystemKeys:new Set(this.#s.map(t=>Z(t)))})}uncheckAllEcosystem(){this.#r({...this.#e,checkedEcosystemKeys:new Set})}setSelectedIndex(t){const s=this.getFilteredEntries(),i=Math.max(0,Math.min(t,s.length-1));i!==this.#e.selectedIndex&&this.#r({...this.#e,selectedIndex:i})}setFocusedPanel(t){t!==this.#e.focusedPanel&&this.#r({...this.#e,focusedPanel:t})}setFilterType(t){if(t!==this.#e.filterType){const s=G(this.#t,t,this.#e.filterText);this.#r({...this.#e,entries:s,filterType:t,groupedByCatalog:W(s),selectedIndex:0})}}setFilter(t){const s=G(this.#t,this.#e.filterType,t);this.#r({...this.#e,entries:s,filterText:t,groupedByCatalog:W(s),selectedIndex:0})}setFilterActive(t){if(t!==this.#e.filterActive)if(t)this.#r({...this.#e,filterActive:!0});else{const s=G(this.#t,this.#e.filterType,"");this.#r({...this.#e,entries:s,filterActive:!1,filterText:"",groupedByCatalog:W(s),selectedIndex:0})}}toggleCheck(t){const s=new Set(this.#e.checkedEntries);s.has(t)?s.delete(t):s.add(t),this.#r({...this.#e,allChecked:s.size===this.#t.length,checkedEntries:s})}checkAll(){this.#r({...this.#e,allChecked:!0,checkedEntries:new Set(this.#t.map(t=>t.packageName))})}uncheckAll(){this.#r({...this.#e,allChecked:!1,checkedEntries:new Set})}toggleAll(){this.#e.allChecked?this.uncheckAll():this.checkAll()}startApply(){const t=this.getCheckedEntries();this.#r({...this.#e,applyProgress:{current:0,total:t.length},phase:"applying"})}updateApplyProgress(t){this.#e.applyProgress&&this.#r({...this.#e,applyProgress:{...this.#e.applyProgress,current:t}})}markDone(){this.#r({...this.#e,phase:"done"})}setError(t){this.#r({...this.#e,error:t,phase:"error"})}#r(t){this.#e=t;for(const s of this.#l)try{s()}catch{}}}var Ae=Object.defineProperty,Ie=b((d,t)=>Ae(d,"name",{value:t,configurable:!0}),"d");const Me={major:"red",minor:"yellow",patch:"green"},De={CRITICAL:"red",HIGH:"red",LOW:"gray",MODERATE:"yellow",UNKNOWN:"gray"},Ne={critical:"red",high:"red",low:"gray",medium:"yellow"},Pe={critical:"red",high:"red",low:"green",medium:"yellow"},Le={defer:"gray",review:"yellow",skip:"red",update:"green"},Be=Ie(({changelogUrl:d,entry:t,focused:s,recommendation:i,scrollRef:a})=>{const h=s?"white":"gray";if(!t)return e.jsx(l,{alignItems:"center",borderColor:"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,justifyContent:"center",children:e.jsx(r,{dimColor:!0,children:"No package selected"})});const f=Me[t.updateType]??"white",y=t.vulnerabilities&&t.vulnerabilities.length>0,p=t.socketReport?.score.overall??0,g=t.socketReport?xe(p):"gray";return e.jsxs(l,{borderColor:h,borderStyle:"single",flexDirection:"column",flexGrow:1,children:[e.jsx(l,{flexShrink:0,paddingTop:1,paddingX:2,children:e.jsx(r,{bold:!0,color:"white",children:t.packageName})}),e.jsxs(fe,{flexGrow:1,flexShrink:1,paddingX:2,ref:a,scrollbar:!0,scrollbarColor:"gray",scrollbarStyle:"block",children:[e.jsx(r,{}),e.jsxs(l,{children:[e.jsx(l,{width:12,children:e.jsx(r,{dimColor:!0,children:"Current:"})}),e.jsx(r,{children:t.currentRange})]}),e.jsxs(l,{children:[e.jsx(l,{width:12,children:e.jsx(r,{dimColor:!0,children:"Target:"})}),e.jsx(r,{children:t.newRange}),e.jsxs(r,{bold:!0,color:f,children:[" ","(",t.updateType,")"]})]}),e.jsxs(l,{children:[e.jsx(l,{width:12,children:e.jsx(r,{dimColor:!0,children:"Version:"})}),e.jsx(r,{children:t.targetVersion})]}),e.jsxs(l,{children:[e.jsx(l,{width:12,children:e.jsx(r,{dimColor:!0,children:"Catalog:"})}),e.jsx(r,{children:t.catalogName})]}),t.acceptedRisk&&e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsx(r,{color:"gray",children:"── "}),e.jsx(r,{bold:!0,color:"gray",children:"ACKNOWLEDGED RISK"}),e.jsxs(l,{flexDirection:"column",paddingLeft:2,children:[e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Reason: "}),e.jsx(r,{children:t.acceptedRisk.reason})]}),e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Accepted: "}),e.jsx(r,{children:t.acceptedRisk.acceptedAt.slice(0,10)})]})]})]}),y&&e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"red",children:"SECURITY"}),e.jsx(r,{}),t.vulnerabilities.map(o=>e.jsxs(l,{flexDirection:"column",marginBottom:1,children:[e.jsxs(l,{gap:1,children:[e.jsxs(r,{bold:!0,color:De[o.severity]??"gray",children:["⚠"," ",o.severity]}),e.jsx(r,{bold:!0,children:o.id})]}),e.jsx(l,{paddingLeft:2,children:e.jsx(r,{children:o.summary})}),e.jsxs(l,{gap:2,paddingLeft:2,children:[o.cvssScore!==void 0&&e.jsxs(r,{dimColor:!0,children:["CVSS:",String(o.cvssScore)]}),o.fixedVersions.length>0&&e.jsxs(r,{dimColor:!0,children:["Fixed in:",o.fixedVersions.join(", ")]})]})]},o.id))]}),t.socketReport&&e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"cyan",children:"SOCKET.DEV"}),e.jsx(r,{}),e.jsxs(l,{gap:2,children:[e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Overall: "}),e.jsxs(r,{bold:!0,color:g,children:[String(Math.round(p*100)),"%"]})]}),e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Supply Chain: "}),e.jsxs(r,{children:[String(Math.round(t.socketReport.score.supplyChain*100)),"%"]})]}),e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Quality: "}),e.jsxs(r,{children:[String(Math.round(t.socketReport.score.quality*100)),"%"]})]})]}),e.jsxs(l,{gap:2,children:[e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Maintenance: "}),e.jsxs(r,{children:[String(Math.round(t.socketReport.score.maintenance*100)),"%"]})]}),e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Vulnerability: "}),e.jsxs(r,{children:[String(Math.round(t.socketReport.score.vulnerability*100)),"%"]})]}),e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"License: "}),e.jsxs(r,{children:[t.socketReport.license||"unknown"," ","(",String(Math.round(t.socketReport.score.license*100)),"%)"]})]})]}),t.socketReport.alerts.length>0&&e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsxs(r,{bold:!0,color:"yellow",children:["⚠"," ",String(t.socketReport.alerts.length)," ","alert",t.socketReport.alerts.length===1?"":"s",":"]}),t.socketReport.alerts.map(o=>e.jsxs(l,{gap:1,paddingLeft:2,children:[e.jsxs(r,{bold:!0,color:Ne[o.severity]??"gray",children:["[",o.severity.toUpperCase(),"]"]}),e.jsx(r,{children:o.type}),e.jsxs(r,{dimColor:!0,children:["(",o.category,")"]})]},o.key))]})]}),i&&e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"AI ANALYSIS"}),e.jsx(r,{}),e.jsxs(l,{gap:2,children:[e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Action: "}),e.jsx(r,{bold:!0,color:Le[i.action]??"white",children:i.action})]}),e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Risk: "}),e.jsx(r,{bold:!0,color:Pe[i.riskLevel]??"white",children:i.riskLevel})]}),e.jsxs(l,{children:[e.jsx(r,{dimColor:!0,children:"Effort: "}),e.jsx(r,{bold:!0,children:i.effort})]})]}),i.reason&&e.jsx(l,{marginTop:1,paddingLeft:2,children:e.jsx(r,{children:i.reason})}),i.breakingChanges.length>0&&e.jsxs(l,{flexDirection:"column",marginTop:1,paddingLeft:2,children:[e.jsx(r,{bold:!0,color:"yellow",children:"Breaking changes:"}),i.breakingChanges.map((o,I)=>e.jsxs(r,{children:[" ","•"," ",o]},String(I)))]})]}),d&&e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"CHANGELOG"}),e.jsx(l,{marginTop:1,paddingLeft:2,children:e.jsx(r,{color:"cyan",underline:!0,children:d})})]}),e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"LINKS"}),e.jsx(l,{flexDirection:"column",marginTop:1,paddingLeft:2,children:e.jsxs(r,{color:"cyan",underline:!0,children:["https://npmx.dev/",t.packageName]})})]}),!i&&e.jsxs(l,{flexDirection:"column",marginTop:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"GUIDANCE"}),e.jsxs(l,{flexDirection:"column",marginTop:1,paddingLeft:2,children:[t.updateType==="major"&&e.jsxs(e.Fragment,{children:[e.jsxs(r,{color:"red",children:["⚠"," ","Major update — likely contains breaking changes."]}),e.jsx(r,{dimColor:!0,children:" Review the changelog before updating."}),e.jsx(r,{dimColor:!0,children:" Use --changelog to fetch release URLs."})]}),t.updateType==="minor"&&e.jsxs(e.Fragment,{children:[e.jsxs(r,{color:"yellow",children:["ℹ"," ","Minor update — new features, backward compatible."]}),e.jsx(r,{dimColor:!0,children:" Generally safe to update."})]}),t.updateType==="patch"&&e.jsxs(e.Fragment,{children:[e.jsxs(r,{color:"green",children:["✓"," ","Patch update — bug fixes only."]}),e.jsx(r,{dimColor:!0,children:" Safe to update."})]}),!i&&e.jsx(r,{dimColor:!0,children:" Use --ai to get AI-powered analysis."})]})]})]})]})},"PackageDetailPanel");var $e=Object.defineProperty,ee=b((d,t)=>$e(d,"name",{value:t,configurable:!0}),"x");const Fe={major:"red",minor:"yellow",patch:"green"},Oe=[{id:"all",label:"All"},{id:"major",label:"Major"},{id:"minor",label:"Minor"},{id:"patch",label:"Patch"},{id:"security",label:"Security"}],Ue=ee(({checked:d,entry:t,isSelected:s})=>{const i=Fe[t.updateType]??"white",a=t.vulnerabilities&&t.vulnerabilities.length>0,h=t.socketReport&&t.socketReport.alerts.length>0,f=!!t.acceptedRisk,y=d?"☑":"☐",p=t.socketReport?`${String(Math.round(t.socketReport.score.overall*100))}%`:"",g=t.socketReport?xe(t.socketReport.score.overall):"gray";return e.jsxs(l,{flexShrink:0,height:1,children:[e.jsx(r,{children:s?">":" "}),e.jsxs(r,{color:d?"white":"gray",children:[" ",y," "]}),a||h?e.jsx(r,{color:f?"gray":"red",children:f?"✓ ":"⚠ "}):e.jsx(r,{children:" "}),e.jsx(l,{flexGrow:1,children:e.jsxs(r,{bold:s,inverse:s,wrap:"truncate",children:[t.packageName,f?" [ack]":""]})}),p&&e.jsxs(r,{color:g,children:[" ",p]}),e.jsxs(r,{dimColor:!0,children:[" ",t.currentRange]}),e.jsxs(r,{dimColor:!0,children:[" ","→"," "]}),e.jsxs(r,{children:[t.newRange," "]}),e.jsx(r,{bold:!0,color:i,children:t.updateType})]})},"PackageRow"),Ge=ee(({count:d,name:t})=>e.jsxs(l,{flexShrink:0,height:1,marginTop:1,children:[e.jsxs(r,{dimColor:!0,children:["▼"," "]}),e.jsx(r,{bold:!0,color:"white",children:t.toUpperCase()}),e.jsxs(r,{dimColor:!0,children:[" ","(",d,")"]})]}),"CatalogHeader"),He=ee(({checkedEntries:d,entries:t,filterActive:s,filteredOutCount:i,filterText:a,filterType:h,focused:f,groupedByCatalog:y,isDryRun:p,onViewportHeightChange:g,scrollOffset:o,selectedIndex:I,totalCatalogEntries:M,totalChecked:v,totalEntries:K,viewportHeight:B})=>{const $=f?"white":"gray",{measuredHeight:m,ref:E}=Se(B,g);let F=0,T=0,D=0,R=0;for(const x of t)x.updateType==="major"?F++:x.updateType==="minor"?T++:D++,(x.vulnerabilities&&x.vulnerabilities.length>0||x.socketReport&&x.socketReport.alerts.length>0)&&R++;const C=[];F>0&&C.push(`${F} major`),T>0&&C.push(`${T} minor`),D>0&&C.push(`${D} patch`),R>0&&C.push(`${R} vulnerable`);const N=C.length>0?` (${C.join(", ")})`:"";let k=0;for(const x of t)d.has(x.packageName)&&k++;const w=[];let V=0;for(const[x,A]of y){w.push(e.jsx(Ge,{count:A.length,name:x},`hdr-${x}`));for(const U of A){const P=V;w.push(e.jsx(Ue,{checked:d.has(U.packageName),entry:U,isSelected:P===I},U.packageName)),V++}}let O=0;for(const[,x]of y)O+=2+x.length;const q=O>m&&m>0;return e.jsxs(l,{borderColor:$,borderStyle:"single",flexDirection:"column",flexGrow:1,children:[e.jsxs(l,{flexShrink:0,gap:1,paddingX:1,children:[e.jsx(r,{bold:!0,inverse:!0,children:" VIS "}),e.jsxs(r,{wrap:"truncate",children:[K,v>0?`/${v}`:""," ","outdated",N,M>v?` · ${M-v} dupes`:""]}),!p&&k>0&&e.jsxs(r,{dimColor:!0,children:[" ","—",k," ","selected"]})]}),e.jsx(l,{flexShrink:0,paddingX:1,paddingY:1,children:e.jsx(be,{isFocused:f,keyMap:{next:[],previous:[],useNumbers:!1,useTab:!1},onChange:b(()=>{},"onChange"),showIndex:!1,value:h,children:Oe.map(({id:x,label:A})=>e.jsx(Te,{name:x,children:A},x))})}),s&&e.jsxs(l,{flexShrink:0,paddingX:1,children:[e.jsx(r,{bold:!0,color:"white",children:"/ "}),e.jsx(r,{children:a}),e.jsx(r,{inverse:!0,children:" "})]}),i>0&&e.jsx(l,{flexShrink:0,paddingX:1,children:e.jsxs(r,{color:"yellow",children:["⚠"," ",i," ","package",i===1?"":"s"," ","filtered out by target constraint — press"," ",e.jsx(r,{bold:!0,color:"white",children:"f"})," ","to view"]})}),e.jsxs(l,{flexDirection:"row",flexGrow:1,overflow:"hidden",ref:E,children:[e.jsx(l,{flexDirection:"column",flexGrow:1,overflow:"hidden",paddingLeft:1,children:e.jsx(l,{flexDirection:"column",marginTop:-o,children:w})}),q&&e.jsx(l,{flexShrink:0,marginLeft:1,marginRight:1,children:e.jsx(ye,{contentHeight:O,placement:"inset",scrollOffset:o,style:"block",viewportHeight:m})})]},`list-${h}-${a}`)]})},"PackageListPanel");var Ke=Object.defineProperty,Ve=b((d,t)=>Ke(d,"name",{value:t,configurable:!0}),"X");const qe=100,Xe=40,Ye=10,We=[],H=["all","major","minor","patch","security"],tr=Ve(({autoExitSeconds:d=0,changelogUrls:t,checkedCount:s=0,filteredOutEntries:i=We,isDryRun:a,store:h,totalCatalogEntries:f=0})=>{const{exit:y}=we(),{columns:p,rows:g}=ue(),o=j.useSyncExternalStore(h.subscribe,h.getSnapshot),[I,M]=j.useState(!1),[v,K]=j.useState(!1),B=j.useRef(null),$=j.useRef(null),m=j.useRef(null),E=j.useRef(null),[F,T]=j.useState(0),[D,R]=j.useState(!1),[C,N]=j.useState(!1),k=j.useMemo(()=>h.getFilteredEntries(),[o.entries,o.filterType,o.filterText,o.sortMode]),w=k[o.selectedIndex]??null,V=w?h.getRecommendation(w.packageName):void 0,O=w&&t?t.get(w.packageName):void 0,q=j.useCallback(n=>{let c=0,u=0;for(const[,Q]of o.groupedByCatalog){c+=2;for(let ne=0;ne<Q.length;ne++){if(u===n)return c;c+=1,u++}}return c},[o.groupedByCatalog]),x=Math.max(1,g-8-(o.filterActive?1:0)),[A,U]=j.useState(x),P=A>0?A:x,L=j.useCallback(n=>{const c=q(n);T(u=>c>u+P-2?Math.max(0,c-P+2):c<u+1?Math.max(0,c-1):u)},[q,P]);if(j.useEffect(()=>{m.current?.scrollToTop()},[w?.packageName]),Ce((n,c)=>{if(n==="c"&&c.ctrl){y();return}if(!C){if(v){c.escape||n==="f"||n==="q"?K(!1):c.downArrow||n==="j"?$.current?.scrollBy(1):(c.upArrow||n==="k")&&$.current?.scrollBy(-1);return}if(D){n==="u"||c.return?(R(!1),h.startApply(),y(h.getCheckedEntries())):c.escape||n==="q"?R(!1):c.downArrow||n==="j"?E.current?.scrollBy(1):c.upArrow||n==="k"?E.current?.scrollBy(-1):c.pageDown?E.current?.scrollBy(5):c.pageUp&&E.current?.scrollBy(-5);return}if(I){c.escape||n==="?"?M(!1):n==="q"?(M(!1),N(!0)):c.downArrow||n==="j"?B.current?.scrollBy(1):(c.upArrow||n==="k")&&B.current?.scrollBy(-1);return}if(n==="?"){M(!0);return}if(n==="q"){N(!0);return}if(c.tab){h.setFocusedPanel(o.focusedPanel==="list"?"detail":"list");return}if(o.focusedPanel==="list"&&(c.leftArrow||c.rightArrow)){const u=H.indexOf(o.filterType),Q=c.rightArrow?(u+1)%H.length:(u-1+H.length)%H.length;T(0),m.current?.scrollToTop(),h.setFilterType(H[Q]);return}if(n==="f"&&i.length>0){K(u=>!u);return}if(o.filterActive){if(c.escape){h.setFilterActive(!1);return}if(c.return){h.setFilterActive(!1);return}if(c.backspace){T(0),h.setFilter(o.filterText.slice(0,-1));return}if(n&&!c.ctrl&&!c.meta){T(0),h.setFilter(o.filterText+n);return}return}if(o.focusedPanel==="list"){if(c.downArrow||n==="j"){const u=Math.min(o.selectedIndex+1,k.length-1);h.setSelectedIndex(u),L(u);return}if(c.upArrow||n==="k"){const u=Math.max(o.selectedIndex-1,0);h.setSelectedIndex(u),L(u);return}if(c.pageDown){const u=Math.min(o.selectedIndex+10,k.length-1);h.setSelectedIndex(u),L(u);return}if(c.pageUp){const u=Math.max(o.selectedIndex-10,0);h.setSelectedIndex(u),L(u);return}if(c.home){h.setSelectedIndex(0),T(0);return}if(c.end){const u=k.length-1;h.setSelectedIndex(u),L(u);return}if(n===" "||c.return){w&&h.toggleCheck(w.packageName);return}if(n==="a"){h.toggleAll();return}if(n==="s"){h.cycleSortMode(),L(h.getSnapshot().selectedIndex);return}if(n==="/"){h.setFilterActive(!0);return}if(n==="u"&&!a&&o.checkedEntries.size>0){R(!0);return}if(c.rightArrow){h.setFocusedPanel("detail");return}return}if(o.focusedPanel==="detail"){if(c.escape||c.leftArrow){h.setFocusedPanel("list");return}if(c.downArrow||n==="j"){m.current?.scrollBy(1);return}if(c.upArrow||n==="k"){m.current?.scrollBy(-1);return}if(c.pageDown){m.current?.scrollBy(10);return}if(c.pageUp){m.current?.scrollBy(-10);return}if(c.home){m.current?.scrollToTop();return}c.end&&m.current?.scrollToBottom()}}},{isActive:!0}),p<Xe||g<Ye)return e.jsx(l,{alignItems:"center",height:g,justifyContent:"center",width:p,children:e.jsxs(r,{color:"yellow",children:["Terminal too small (",p,"x",g,")"]})});const pe=p>=qe,X=[e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"q"}),e.jsx(r,{dimColor:!0,children:"QUIT"})]},"q"),e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"?"}),e.jsx(r,{dimColor:!0,children:"HELP"})]},"?"),e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"↑↓"}),e.jsx(r,{dimColor:!0,children:"NAV"})]},"nav"),e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"Space"}),e.jsx(r,{dimColor:!0,children:"CHECK"})]},"sp"),e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"a"}),e.jsx(r,{dimColor:!0,children:"ALL"})]},"a")];!a&&o.checkedEntries.size>0&&X.push(e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"green",children:"u"}),e.jsx(r,{dimColor:!0,children:"APPLY"})]},"u")),i.length>0&&X.push(e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"yellow",children:"f"}),e.jsxs(r,{dimColor:!0,children:["FILTERED (",i.length,")"]})]},"fo")),X.push(e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"←→"}),e.jsx(r,{dimColor:!0,children:"FILTER"})]},"lr"),e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"/"}),e.jsx(r,{dimColor:!0,children:"SEARCH"})]},"f"),e.jsxs(l,{gap:1,children:[e.jsx(r,{bold:!0,color:"white",children:"Tab"}),e.jsx(r,{dimColor:!0,children:"PANEL"})]},"t"));const re=e.jsx(l,{borderBottom:!1,borderColor:"gray",borderLeft:!1,borderRight:!1,borderStyle:"single",flexShrink:0,children:e.jsx(l,{flexWrap:"wrap",gap:2,paddingX:1,children:X})}),te=e.jsxs(_,{footer:e.jsxs(r,{dimColor:!0,children:[e.jsx(r,{bold:!0,color:"white",children:"↑↓"})," ","scroll"," ",e.jsx(r,{bold:!0,color:"white",children:"?"}),"/",e.jsx(r,{bold:!0,color:"white",children:"Esc"})," ","close"]}),scrollRef:B,title:"KEYBOARD SHORTCUTS",visible:I,width:52,children:[e.jsxs(l,{flexDirection:"column",marginBottom:1,children:[e.jsxs(l,{marginBottom:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"NAVIGATION"})]}),e.jsxs(l,{children:[e.jsx(l,{width:24,children:e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","↑","/k"]}),e.jsx(r,{dimColor:!0,children:" Move up"})]})}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","↓","/j"]}),e.jsx(r,{dimColor:!0,children:" Move down"})]})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","Tab"]}),e.jsx(r,{dimColor:!0,children:" Switch panel"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","→","/","←"]}),e.jsx(r,{dimColor:!0,children:" Focus detail/list"})]})]}),e.jsxs(l,{flexDirection:"column",marginBottom:1,children:[e.jsxs(l,{marginBottom:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"SELECTION"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","Space"]}),e.jsx(r,{dimColor:!0,children:" Toggle check on package"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","a"]}),e.jsx(r,{dimColor:!0,children:" Toggle check all"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","s"]}),e.jsx(r,{dimColor:!0,children:" Cycle sort (default / name / type / severity)"})]})]}),e.jsxs(l,{flexDirection:"column",marginBottom:1,children:[e.jsxs(l,{marginBottom:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"FILTERS"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","←→"]}),e.jsx(r,{dimColor:!0,children:" Switch filter tab"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","/"]}),e.jsx(r,{dimColor:!0,children:" Text filter"})]}),i.length>0&&e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","f"]}),e.jsx(r,{dimColor:!0,children:" View filtered-out packages"})]})]}),e.jsxs(l,{flexDirection:"column",children:[e.jsxs(l,{marginBottom:1,children:[e.jsx(r,{dimColor:!0,children:"── "}),e.jsx(r,{bold:!0,color:"white",children:"ACTIONS"})]}),!a&&e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","u"]}),e.jsx(r,{dimColor:!0,children:" Apply selected updates"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","q"]}),e.jsx(r,{dimColor:!0,children:" Quit"})]}),e.jsxs(r,{children:[e.jsxs(r,{bold:!0,color:"white",children:[" ","?"]}),e.jsx(r,{dimColor:!0,children:" Toggle help"})]})]})]}),Y=h.getCheckedEntries(),z=Y.filter(n=>n.updateType==="major").length,ge=e.jsxs(l,{alignItems:"center",flexDirection:"column",children:[z>0&&e.jsx(l,{marginBottom:1,marginTop:1,children:e.jsxs(r,{color:"yellow",children:["⚠"," ",z," ","major update",z===1?"":"s"," ","— review breaking changes"]})}),e.jsxs(r,{dimColor:!0,children:["Press"," ",e.jsx(r,{bold:!0,color:"white",children:"u"})," ","or"," ",e.jsx(r,{bold:!0,color:"white",children:"Enter"})," ","to confirm,"," ",e.jsx(r,{bold:!0,color:"white",children:"Esc"})," ","to cancel"]})]}),le=e.jsx(_,{footer:ge,scrollRef:E,title:`Apply ${Y.length} update${Y.length===1?"":"s"}?`,visible:D,width:70,children:Y.map(n=>e.jsxs(l,{gap:1,children:[e.jsxs(r,{children:[" ",n.packageName]}),e.jsxs(r,{dimColor:!0,children:[n.currentRange," ","→"," ",n.newRange]}),e.jsx(r,{bold:!0,color:n.updateType==="major"?"red":n.updateType==="minor"?"yellow":"green",children:n.updateType})]},n.packageName))}),se=i.length>0?e.jsx(_,{footer:e.jsxs(r,{dimColor:!0,children:[e.jsx(r,{bold:!0,color:"white",children:"↑↓"})," ","scroll"," ",e.jsx(r,{bold:!0,color:"white",children:"f"}),"/",e.jsx(r,{bold:!0,color:"white",children:"Esc"})," ","close"]}),scrollRef:$,title:`${i.length} PACKAGE${i.length===1?"":"S"} FILTERED BY TARGET`,visible:v,width:70,children:e.jsxs(l,{flexDirection:"column",children:[e.jsx(l,{marginBottom:1,children:e.jsxs(r,{dimColor:!0,children:["These packages have newer versions available but are excluded by the current target constraint. Use"," ",e.jsx(r,{bold:!0,color:"white",children:"--target latest"})," ","to include them."]})}),i.map(n=>e.jsxs(l,{gap:1,children:[e.jsxs(r,{children:[" ",n.packageName]}),e.jsxs(r,{dimColor:!0,children:[n.currentRange," ","→"," ",n.newRange]}),e.jsx(r,{bold:!0,color:n.updateType==="major"?"red":n.updateType==="minor"?"yellow":"green",children:n.updateType})]},n.packageName))]})}):null,ie=e.jsx(He,{checkedEntries:o.checkedEntries,entries:k,filterActive:o.filterActive,filteredOutCount:i.length,filterText:o.filterText,filterType:o.filterType,focused:o.focusedPanel==="list",groupedByCatalog:o.groupedByCatalog,isDryRun:a,onViewportHeightChange:U,scrollOffset:F,selectedIndex:o.selectedIndex,totalCatalogEntries:f,totalChecked:s,totalEntries:k.length,viewportHeight:P}),oe=e.jsx(Be,{changelogUrl:O,entry:w,focused:o.focusedPanel==="detail",recommendation:V,scrollRef:m});if(pe){const n=Math.floor(p*.35);return e.jsxs(l,{flexDirection:"column",height:g,width:p,children:[e.jsxs(l,{flexDirection:"row",flexGrow:1,children:[e.jsx(l,{flexGrow:1,children:ie}),e.jsx(l,{width:n,children:oe})]}),re,le,se,e.jsx(ce,{autoExitSeconds:d||3,onCancel:b(()=>{N(!1)},"onCancel"),visible:C}),te]})}const je=Math.floor(g*.55);return e.jsxs(l,{flexDirection:"column",height:g,width:p,children:[e.jsx(l,{height:je,children:ie}),e.jsx(l,{flexGrow:1,children:oe}),re,le,se,e.jsx(ce,{autoExitSeconds:d||3,onCancel:b(()=>{N(!1)},"onCancel"),visible:C}),te]})},"VisUpdateApp");export{tr as C,rr as U,er as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var fe=Object.defineProperty;var g=(e,t)=>fe(e,"name",{value:t,configurable:!0});import{createRequire as pe}from"node:module";import{M as y,i as E,$ as me,a as j,K as Y,C as Z}from"./readFileSync-CGmzMUF2-D6rUjGDn.js";import{av as P}from"../packem_chunks/bin.js";import{n as ve,b as ee,d as $e}from"../packem_chunks/config.js";import{s as je}from"./watch-BSVsZ_1I.js";const ge=pe(import.meta.url),I=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,L=g(e=>{if(typeof I<"u"&&I.versions&&I.versions.node){const[t,r]=I.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return I.getBuiltinModule(e)}return ge(e)},"__cjs_getBuiltinModule"),{createHash:A}=L("node:crypto"),{fileURLToPath:he,pathToFileURL:ye}=L("node:url"),{spawnSync:te,spawn:xe}=L("node:child_process"),{openSync:we,writeSync:be,closeSync:Ce,readFileSync:re,statSync:Ae,mkdirSync:Se,writeFileSync:Fe}=L("node:fs"),{availableParallelism:N}=L("node:os");var ke=Object.defineProperty,q=g((e,t)=>ke(e,"name",{value:t,configurable:!0}),"o$4");const ne=q((e,t)=>{for(const r of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const n=e[r];if(n&&typeof n[t]=="string")return n[t]}},"declaredVersion"),K=q((e,t)=>{for(const r of t){const n=y(e,r);if(E(n))return n}},"findFirstConfig"),Oe=q(e=>{const t=y(e,"package.json");if(!E(t))return{};try{return ve(t)}catch{return{}}},"readRootPackageJson"),Lt=q((e,t)=>{const r=Oe(e),n=new Map;for(const o of t){const s=o.detect(e,r);s&&n.set(o.id,s)}return n},"detectAdapters");var Ie=Object.defineProperty,$=g((e,t)=>Ie(e,"name",{value:t,configurable:!0}),"o$3");const Re={error:"error",info:"info",information:"info",warning:"warning"},Tt={argsCheck:$((e,t)=>B(e,t,!1),"argsCheck"),argsFix:$((e,t)=>B(e,t,!0),"argsFix"),bin:$(()=>["pnpm","exec","biome"],"bin"),cacheKey:$((e,t)=>{const r=["biome",e.declaredVersion??"unknown",e.configFile??"no-config",t.maxWarnings===void 0?"":`mw=${t.maxWarnings}`,t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:$((e,t)=>{const r=ne(t,P.biome.packageNames[0]),n=K(e,P.biome.configFiles);if(!(!r&&!n))return{adapter:"biome",configFile:n,declared:!!r,declaredVersion:r,root:e}},"detect"),extensions:["astro","cjs","css","cts","js","json","jsonc","jsx","mjs","mts","svelte","ts","tsx","vue"],id:"biome",kind:"both",parse:$((e,t)=>{if(!e.stdout.trim())return[];let r;try{r=JSON.parse(e.stdout)}catch{return[{adapter:"biome",file:t.root,fixable:!1,message:`biome output was not valid JSON (exit ${e.exitCode})`,severity:"error"}]}const n=[];for(const o of r.diagnostics??[]){const s=o.location?.start,i=o.location?.end,a=Me(t.root,o.location?.path),c=o.category??"",l=c==="format"||c.startsWith("format/");n.push({adapter:"biome",column:s?.column&&s.column>0?s.column:void 0,endColumn:i?.column&&i.column>0?i.column:void 0,endLine:i?.line&&i.line>0?i.line:void 0,file:a,fixable:!0,line:s?.line&&s.line>0?s.line:void 0,message:l?"Code style issues would be auto-fixed":o.message??"",ruleId:c||void 0,severity:Re[o.severity??""]??"warning"})}return n},"parse")},B=$((e,t,r)=>{const n=["check","--reporter=json"];return r&&n.push("--write"),typeof t.maxWarnings=="number"&&n.push(`--max-diagnostics=${String(t.maxWarnings)}`),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildArgs"),Me=$((e,t)=>{const r=typeof t=="string"?t:t?.file;return r?r.startsWith("/")||/^[a-z]:[\\/]/i.test(r)?r:y(e,r):e},"resolvePath");var Pe=Object.defineProperty,h=g((e,t)=>Pe(e,"name",{value:t,configurable:!0}),"s$4");const se=h(e=>t=>{const r=K(t,P.deno.configFiles);if(r)return{adapter:e,configFile:r,declared:!1,root:t}},"detectDeno"),oe=h(e=>e.startsWith("/")||/^[a-z]:[\\/]/i.test(e),"isAbsolutePath"),qt={argsCheck:h((e,t)=>J(e,t,!1),"argsCheck"),argsFix:h((e,t)=>J(e,t,!0),"argsFix"),bin:h(()=>["deno","lint"],"bin"),cacheKey:h((e,t)=>{const r=["deno-lint",e.configFile??"no-config",t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:se("deno-lint"),extensions:["js","jsx","mjs","mts","ts","tsx"],id:"deno-lint",kind:"lint",parse:h((e,t)=>{if(!e.stdout.trim())return[];let r;try{r=JSON.parse(e.stdout)}catch{return[{adapter:"deno-lint",file:t.root,fixable:!1,message:`deno lint output was not valid JSON (exit ${e.exitCode})`,severity:"error"}]}const n=[];for(const o of r.diagnostics??[]){const s=o.range?.start,i=o.range?.end;n.push({adapter:"deno-lint",column:s?.col===void 0?void 0:s.col+1,endColumn:i?.col===void 0?void 0:i.col+1,endLine:i?.line===void 0?void 0:i.line+1,file:Le(o.filename??t.root,t.root),fixable:!1,line:s?.line===void 0?void 0:s.line+1,message:o.message??"",ruleId:o.code,severity:"warning"})}return n},"parse")},_t={argsCheck:h((e,t)=>V(e,t,!1),"argsCheck"),argsFix:h((e,t)=>V(e,t,!0),"argsFix"),bin:h(()=>["deno","fmt"],"bin"),cacheKey:h((e,t)=>{const r=["deno-fmt",e.configFile??"no-config",t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:se("deno-fmt"),extensions:["astro","cjs","css","cts","html","ipynb","js","json","jsonc","jsx","less","md","mjs","mts","sass","scss","sql","svelte","ts","tsx","vue","yaml","yml"],id:"deno-fmt",kind:"fmt",parse:h((e,t)=>{if(e.exitCode===0)return[];const r=[],n=new Set;for(const o of e.stdout.split(/\r?\n/)){const s=/^from (.+):$/.exec(o);if(!s)continue;const i=s[1];n.has(i)||(n.add(i),r.push({adapter:"deno-fmt",file:oe(i)?i:`${t.root}/${i}`,fixable:!0,message:"Code style issues would be auto-fixed",severity:"info"}))}return r},"parse")},J=h((e,t,r)=>{const n=["--json"];return r&&n.push("--fix"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildLintArgs"),V=h((e,t,r)=>{const n=[];return r||n.push("--check"),t.quiet&&n.push("--quiet"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildFmtArgs"),Le=h((e,t)=>e.startsWith("file://")?he(e):oe(e)?e:`${t}/${e}`,"resolveFilename");var Te=Object.defineProperty,p=g((e,t)=>Te(e,"name",{value:t,configurable:!0}),"r$1");const ie="pyproject.toml",qe=/^\[tool\.ruff(?:\.[\w-]+)*\]\s*$/m,_e=/^Would reformat:?\s+(.+)$/,De=p(e=>{const t=y(e,ie);if(!E(t))return!1;try{const r=me(t);return qe.test(r)}catch{return!1}},"pyprojectMentionsRuff"),ae=p(e=>(t,r)=>{const n=P.ruff.packageNames.map(a=>ne(r,a)).find(a=>a!==void 0),o=K(t,P.ruff.configFiles),s=o?void 0:De(t)?y(t,ie):void 0,i=o??s;if(!(!n&&!i))return{adapter:e,configFile:i,declared:!!n,declaredVersion:n,root:t}},"detectRuff"),We=p(e=>e.startsWith("/")||/^[a-z]:[\\/]/i.test(e),"isAbsolutePath"),ce=p((e,t)=>e?We(e)?e:y(t,e):t,"resolveFilename"),Ee=p(e=>_e.exec(e)?.[1]?.trim(),"matchReformatLine"),Dt={argsCheck:p((e,t)=>z(e,t,!1),"argsCheck"),argsFix:p((e,t)=>z(e,t,!0),"argsFix"),bin:p(()=>["ruff","check"],"bin"),cacheKey:p((e,t)=>{const r=["ruff-check",e.declaredVersion??"unknown",e.configFile??"no-config",t.maxWarnings===void 0?"":`mw=${t.maxWarnings}`,t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:ae("ruff-check"),extensions:["py","pyi"],id:"ruff-check",kind:"lint",parse:p((e,t)=>{if(!e.stdout.trim())return[];let r;try{r=JSON.parse(e.stdout)}catch{return[{adapter:"ruff-check",file:t.root,fixable:!1,message:`ruff check output was not valid JSON (exit ${e.exitCode})`,severity:"error"}]}const n=[];for(const o of r){const s=o.location,i=o.end_location;n.push({adapter:"ruff-check",column:s?.column,endColumn:i?.column,endLine:i?.row,file:ce(o.filename,t.root),fixable:!!o.fix,line:s?.row,message:o.message??"",ruleId:o.code,severity:"warning"})}return n},"parse")},Wt={argsCheck:p((e,t)=>G(e,t,!1),"argsCheck"),argsFix:p((e,t)=>G(e,t,!0),"argsFix"),bin:p(()=>["ruff","format"],"bin"),cacheKey:p((e,t)=>{const r=["ruff-fmt",e.declaredVersion??"unknown",e.configFile??"no-config",t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:ae("ruff-fmt"),extensions:["py","pyi"],id:"ruff-fmt",kind:"fmt",parse:p((e,t)=>{if(e.exitCode===0)return[];const r=[],n=new Set;for(const o of e.stdout.split(/\r?\n/)){const s=Ee(o);!s||n.has(s)||(n.add(s),r.push({adapter:"ruff-fmt",file:ce(s,t.root),fixable:!0,message:"Code style issues would be auto-fixed",severity:"info"}))}return r},"parse")},z=p((e,t,r)=>{const n=["--output-format=json"];return r&&n.push("--fix"),t.quiet&&n.push("--quiet"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildCheckArgs"),G=p((e,t,r)=>{const n=[];return r||n.push("--check"),t.quiet&&n.push("--quiet"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildFmtArgs");var Ke=Object.defineProperty,_=g((e,t)=>Ke(e,"name",{value:t,configurable:!0}),"o$2");const Et=_((e,t)=>{const r=R(e,["diff","--name-only","--diff-filter=ACMR","-z",`${t}...HEAD`]);if(r===void 0)return;const n=R(e,["diff","--name-only","--diff-filter=ACMR","-z"]),o=R(e,["diff","--name-only","--diff-filter=ACMR","--cached","-z"]),s=R(e,["ls-files","--others","--exclude-standard","-z"]),i=new Set;for(const a of[r,n??"",o??"",s??""])for(const c of a.split("\0"))c.length!==0&&i.add(j(c)?c:y(e,c));return[...i].sort()},"changedFilesSince"),Kt=_(e=>{const t=R(e,["diff","--name-only","--diff-filter=ACMR","--cached","-z"]);if(t===void 0)return;const r=new Set;for(const n of t.split("\0"))n.length!==0&&r.add(j(n)?n:y(e,n));return[...r].sort()},"stagedFiles"),R=_((e,t)=>{const r=te("git",[...t],{cwd:e,encoding:"utf8",timeout:1e4});if(r.status===0)return r.stdout},"runGit"),Nt=_((e,t)=>{const r=new Set(t.map(s=>s.toLowerCase())),n=[],o=new Set;for(const s of e){const i=s.lastIndexOf(".");if(i===-1||i===s.length-1)continue;const a=s.slice(i+1).toLowerCase();r.has(a)&&(o.has(s)||(o.add(s),n.push(s)))}return n},"filterByExtensions");var Ne=Object.defineProperty,x=g((e,t)=>Ne(e,"name",{value:t,configurable:!0}),"n");const le=new Set(["-","stdout"]),U=x(e=>({close:x(()=>{},"close"),write:x(t=>{e.write(t)},"write")}),"wrapStream"),Be=x(e=>{ee(Y(e));const t=we(e,"w");let r=[];return{close:x(()=>{r.length>0&&(be(t,r.join("")),r=[]),Ce(t)},"close"),write:x(n=>{r.push(n)},"write")}},"openFileSink"),Je=x(e=>{const{cwd:t,target:r}=e;if(r===void 0||le.has(r))return U(process.stdout);if(r==="stderr")return U(process.stderr);const n=j(r)?r:Z(t,r);return Be(n)},"resolveOutput");x(e=>{const{content:t,...r}=e;if(r.target!==void 0&&!le.has(r.target)&&r.target!=="stderr"){const o=j(r.target)?r.target:Z(r.cwd,r.target);ee(Y(o)),$e(o,t,{overwrite:!0});return}const n=Je(r);n.write(t),n.close()},"writeOutput");var Ve=Object.defineProperty,k=g((e,t)=>Ve(e,"name",{value:t,configurable:!0}),"s$3");const H=["oxlint","oxfmt","biome","eslint","dprint","prettier","stylelint","ruff-check","ruff-fmt","markdownlint","shellcheck","deno-lint","deno-fmt"],Bt=k((e,t)=>{const r=new Map(e.map(i=>[i.id,i])),n=[],o=new Set,s=t&&t.length>0?t:H;for(const i of s){const a=r.get(i);a&&!o.has(i)&&(n.push(a),o.add(i))}if(t&&t.length>0)for(const i of H){const a=r.get(i);a&&!o.has(i)&&(n.push(a),o.add(i))}for(const i of e)o.has(i.id)||(n.push(i),o.add(i.id));return n},"registerAdapters"),Jt=k((e,t,r)=>{const n=[];for(const o of t){const s=e.get(o.id);s&&ze(o.kind,r)&&n.push({adapter:o,presence:s})}return n},"adaptersByKind"),ze=k((e,t)=>e===t||e==="both","matchesKind"),Vt=k((e,t,r={})=>{const n=new Map;for(const o of e){const s=Ge(o),i=Ue(s,t,r);if(!i)continue;const a=n.get(i);a?a.push(o):n.set(i,[o])}return n},"routeFilesByExtension"),Ge=k(e=>{const t=e.lastIndexOf(".");return t===-1||t===e.length-1?"":e.slice(t+1).toLowerCase()},"extensionOf"),Ue=k((e,t,r)=>{const n=r[e];if(n&&t.some(o=>o.adapter.id===n))return n;for(const{adapter:o}of t)if(o.extensions.includes(e))return o.id},"resolveAdapterForExtension");var He=Object.defineProperty,S=g((e,t)=>He(e,"name",{value:t,configurable:!0}),"r");const Qe=S(e=>e==="error"?"error":e==="warning"?"warning":"notice","commandFor"),ue=S(e=>e.replaceAll("%","%25").replaceAll("\r","%0D").replaceAll(`
|
|
1
|
+
var fe=Object.defineProperty;var g=(e,t)=>fe(e,"name",{value:t,configurable:!0});import{createRequire as pe}from"node:module";import{M as y,i as E,$ as me,a as j,K as Y,C as Z}from"./readFileSync-CGmzMUF2-D6rUjGDn.js";import{aL as L}from"../packem_chunks/bin.js";import{n as ve,d as ee,B as $e}from"../packem_chunks/config.js";import{s as je}from"./watch-BSVsZ_1I.js";const ge=pe(import.meta.url),I=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,P=g(e=>{if(typeof I<"u"&&I.versions&&I.versions.node){const[t,r]=I.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return I.getBuiltinModule(e)}return ge(e)},"__cjs_getBuiltinModule"),{createHash:A}=P("node:crypto"),{fileURLToPath:he,pathToFileURL:ye}=P("node:url"),{spawnSync:te,spawn:xe}=P("node:child_process"),{openSync:we,writeSync:be,closeSync:Ce,readFileSync:re,statSync:Ae,mkdirSync:Se,writeFileSync:Fe}=P("node:fs"),{availableParallelism:N}=P("node:os");var ke=Object.defineProperty,q=g((e,t)=>ke(e,"name",{value:t,configurable:!0}),"o$4");const ne=q((e,t)=>{for(const r of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const n=e[r];if(n&&typeof n[t]=="string")return n[t]}},"declaredVersion"),K=q((e,t)=>{for(const r of t){const n=y(e,r);if(E(n))return n}},"findFirstConfig"),Oe=q(e=>{const t=y(e,"package.json");if(!E(t))return{};try{return ve(t)}catch{return{}}},"readRootPackageJson"),Pt=q((e,t)=>{const r=Oe(e),n=new Map;for(const o of t){const s=o.detect(e,r);s&&n.set(o.id,s)}return n},"detectAdapters");var Ie=Object.defineProperty,$=g((e,t)=>Ie(e,"name",{value:t,configurable:!0}),"o$3");const Re={error:"error",info:"info",information:"info",warning:"warning"},Tt={argsCheck:$((e,t)=>B(e,t,!1),"argsCheck"),argsFix:$((e,t)=>B(e,t,!0),"argsFix"),bin:$(()=>["pnpm","exec","biome"],"bin"),cacheKey:$((e,t)=>{const r=["biome",e.declaredVersion??"unknown",e.configFile??"no-config",t.maxWarnings===void 0?"":`mw=${t.maxWarnings}`,t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:$((e,t)=>{const r=ne(t,L.biome.packageNames[0]),n=K(e,L.biome.configFiles);if(!(!r&&!n))return{adapter:"biome",configFile:n,declared:!!r,declaredVersion:r,root:e}},"detect"),extensions:["astro","cjs","css","cts","js","json","jsonc","jsx","mjs","mts","svelte","ts","tsx","vue"],id:"biome",kind:"both",parse:$((e,t)=>{if(!e.stdout.trim())return[];let r;try{r=JSON.parse(e.stdout)}catch{return[{adapter:"biome",file:t.root,fixable:!1,message:`biome output was not valid JSON (exit ${e.exitCode})`,severity:"error"}]}const n=[];for(const o of r.diagnostics??[]){const s=o.location?.start,i=o.location?.end,a=Me(t.root,o.location?.path),c=o.category??"",l=c==="format"||c.startsWith("format/");n.push({adapter:"biome",column:s?.column&&s.column>0?s.column:void 0,endColumn:i?.column&&i.column>0?i.column:void 0,endLine:i?.line&&i.line>0?i.line:void 0,file:a,fixable:!0,line:s?.line&&s.line>0?s.line:void 0,message:l?"Code style issues would be auto-fixed":o.message??"",ruleId:c||void 0,severity:Re[o.severity??""]??"warning"})}return n},"parse")},B=$((e,t,r)=>{const n=["check","--reporter=json"];return r&&n.push("--write"),typeof t.maxWarnings=="number"&&n.push(`--max-diagnostics=${String(t.maxWarnings)}`),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildArgs"),Me=$((e,t)=>{const r=typeof t=="string"?t:t?.file;return r?r.startsWith("/")||/^[a-z]:[\\/]/i.test(r)?r:y(e,r):e},"resolvePath");var Le=Object.defineProperty,h=g((e,t)=>Le(e,"name",{value:t,configurable:!0}),"s$4");const se=h(e=>t=>{const r=K(t,L.deno.configFiles);if(r)return{adapter:e,configFile:r,declared:!1,root:t}},"detectDeno"),oe=h(e=>e.startsWith("/")||/^[a-z]:[\\/]/i.test(e),"isAbsolutePath"),qt={argsCheck:h((e,t)=>J(e,t,!1),"argsCheck"),argsFix:h((e,t)=>J(e,t,!0),"argsFix"),bin:h(()=>["deno","lint"],"bin"),cacheKey:h((e,t)=>{const r=["deno-lint",e.configFile??"no-config",t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:se("deno-lint"),extensions:["js","jsx","mjs","mts","ts","tsx"],id:"deno-lint",kind:"lint",parse:h((e,t)=>{if(!e.stdout.trim())return[];let r;try{r=JSON.parse(e.stdout)}catch{return[{adapter:"deno-lint",file:t.root,fixable:!1,message:`deno lint output was not valid JSON (exit ${e.exitCode})`,severity:"error"}]}const n=[];for(const o of r.diagnostics??[]){const s=o.range?.start,i=o.range?.end;n.push({adapter:"deno-lint",column:s?.col===void 0?void 0:s.col+1,endColumn:i?.col===void 0?void 0:i.col+1,endLine:i?.line===void 0?void 0:i.line+1,file:Pe(o.filename??t.root,t.root),fixable:!1,line:s?.line===void 0?void 0:s.line+1,message:o.message??"",ruleId:o.code,severity:"warning"})}return n},"parse")},_t={argsCheck:h((e,t)=>V(e,t,!1),"argsCheck"),argsFix:h((e,t)=>V(e,t,!0),"argsFix"),bin:h(()=>["deno","fmt"],"bin"),cacheKey:h((e,t)=>{const r=["deno-fmt",e.configFile??"no-config",t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:se("deno-fmt"),extensions:["astro","cjs","css","cts","html","ipynb","js","json","jsonc","jsx","less","md","mjs","mts","sass","scss","sql","svelte","ts","tsx","vue","yaml","yml"],id:"deno-fmt",kind:"fmt",parse:h((e,t)=>{if(e.exitCode===0)return[];const r=[],n=new Set;for(const o of e.stdout.split(/\r?\n/)){const s=/^from (.+):$/.exec(o);if(!s)continue;const i=s[1];n.has(i)||(n.add(i),r.push({adapter:"deno-fmt",file:oe(i)?i:`${t.root}/${i}`,fixable:!0,message:"Code style issues would be auto-fixed",severity:"info"}))}return r},"parse")},J=h((e,t,r)=>{const n=["--json"];return r&&n.push("--fix"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildLintArgs"),V=h((e,t,r)=>{const n=[];return r||n.push("--check"),t.quiet&&n.push("--quiet"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildFmtArgs"),Pe=h((e,t)=>e.startsWith("file://")?he(e):oe(e)?e:`${t}/${e}`,"resolveFilename");var Te=Object.defineProperty,p=g((e,t)=>Te(e,"name",{value:t,configurable:!0}),"r$1");const ie="pyproject.toml",qe=/^\[tool\.ruff(?:\.[\w-]+)*\]\s*$/m,_e=/^Would reformat:?\s+(.+)$/,De=p(e=>{const t=y(e,ie);if(!E(t))return!1;try{const r=me(t);return qe.test(r)}catch{return!1}},"pyprojectMentionsRuff"),ae=p(e=>(t,r)=>{const n=L.ruff.packageNames.map(a=>ne(r,a)).find(a=>a!==void 0),o=K(t,L.ruff.configFiles),s=o?void 0:De(t)?y(t,ie):void 0,i=o??s;if(!(!n&&!i))return{adapter:e,configFile:i,declared:!!n,declaredVersion:n,root:t}},"detectRuff"),We=p(e=>e.startsWith("/")||/^[a-z]:[\\/]/i.test(e),"isAbsolutePath"),ce=p((e,t)=>e?We(e)?e:y(t,e):t,"resolveFilename"),Ee=p(e=>_e.exec(e)?.[1]?.trim(),"matchReformatLine"),Dt={argsCheck:p((e,t)=>z(e,t,!1),"argsCheck"),argsFix:p((e,t)=>z(e,t,!0),"argsFix"),bin:p(()=>["ruff","check"],"bin"),cacheKey:p((e,t)=>{const r=["ruff-check",e.declaredVersion??"unknown",e.configFile??"no-config",t.maxWarnings===void 0?"":`mw=${t.maxWarnings}`,t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:ae("ruff-check"),extensions:["py","pyi"],id:"ruff-check",kind:"lint",parse:p((e,t)=>{if(!e.stdout.trim())return[];let r;try{r=JSON.parse(e.stdout)}catch{return[{adapter:"ruff-check",file:t.root,fixable:!1,message:`ruff check output was not valid JSON (exit ${e.exitCode})`,severity:"error"}]}const n=[];for(const o of r){const s=o.location,i=o.end_location;n.push({adapter:"ruff-check",column:s?.column,endColumn:i?.column,endLine:i?.row,file:ce(o.filename,t.root),fixable:!!o.fix,line:s?.row,message:o.message??"",ruleId:o.code,severity:"warning"})}return n},"parse")},Wt={argsCheck:p((e,t)=>G(e,t,!1),"argsCheck"),argsFix:p((e,t)=>G(e,t,!0),"argsFix"),bin:p(()=>["ruff","format"],"bin"),cacheKey:p((e,t)=>{const r=["ruff-fmt",e.declaredVersion??"unknown",e.configFile??"no-config",t.quiet?"q":"",...t.extraArgs??[]];return A("sha256").update(r.join("|")).digest("hex").slice(0,16)},"cacheKey"),detect:ae("ruff-fmt"),extensions:["py","pyi"],id:"ruff-fmt",kind:"fmt",parse:p((e,t)=>{if(e.exitCode===0)return[];const r=[],n=new Set;for(const o of e.stdout.split(/\r?\n/)){const s=Ee(o);!s||n.has(s)||(n.add(s),r.push({adapter:"ruff-fmt",file:ce(s,t.root),fixable:!0,message:"Code style issues would be auto-fixed",severity:"info"}))}return r},"parse")},z=p((e,t,r)=>{const n=["--output-format=json"];return r&&n.push("--fix"),t.quiet&&n.push("--quiet"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildCheckArgs"),G=p((e,t,r)=>{const n=[];return r||n.push("--check"),t.quiet&&n.push("--quiet"),t.extraArgs?.length&&n.push(...t.extraArgs),n.push(...e),n},"buildFmtArgs");var Ke=Object.defineProperty,_=g((e,t)=>Ke(e,"name",{value:t,configurable:!0}),"o$2");const Et=_((e,t)=>{const r=R(e,["diff","--name-only","--diff-filter=ACMR","-z",`${t}...HEAD`]);if(r===void 0)return;const n=R(e,["diff","--name-only","--diff-filter=ACMR","-z"]),o=R(e,["diff","--name-only","--diff-filter=ACMR","--cached","-z"]),s=R(e,["ls-files","--others","--exclude-standard","-z"]),i=new Set;for(const a of[r,n??"",o??"",s??""])for(const c of a.split("\0"))c.length!==0&&i.add(j(c)?c:y(e,c));return[...i].sort()},"changedFilesSince"),Kt=_(e=>{const t=R(e,["diff","--name-only","--diff-filter=ACMR","--cached","-z"]);if(t===void 0)return;const r=new Set;for(const n of t.split("\0"))n.length!==0&&r.add(j(n)?n:y(e,n));return[...r].sort()},"stagedFiles"),R=_((e,t)=>{const r=te("git",[...t],{cwd:e,encoding:"utf8",timeout:1e4});if(r.status===0)return r.stdout},"runGit"),Nt=_((e,t)=>{const r=new Set(t.map(s=>s.toLowerCase())),n=[],o=new Set;for(const s of e){const i=s.lastIndexOf(".");if(i===-1||i===s.length-1)continue;const a=s.slice(i+1).toLowerCase();r.has(a)&&(o.has(s)||(o.add(s),n.push(s)))}return n},"filterByExtensions");var Ne=Object.defineProperty,x=g((e,t)=>Ne(e,"name",{value:t,configurable:!0}),"n");const le=new Set(["-","stdout"]),U=x(e=>({close:x(()=>{},"close"),write:x(t=>{e.write(t)},"write")}),"wrapStream"),Be=x(e=>{ee(Y(e));const t=we(e,"w");let r=[];return{close:x(()=>{r.length>0&&(be(t,r.join("")),r=[]),Ce(t)},"close"),write:x(n=>{r.push(n)},"write")}},"openFileSink"),Je=x(e=>{const{cwd:t,target:r}=e;if(r===void 0||le.has(r))return U(process.stdout);if(r==="stderr")return U(process.stderr);const n=j(r)?r:Z(t,r);return Be(n)},"resolveOutput");x(e=>{const{content:t,...r}=e;if(r.target!==void 0&&!le.has(r.target)&&r.target!=="stderr"){const o=j(r.target)?r.target:Z(r.cwd,r.target);ee(Y(o)),$e(o,t,{overwrite:!0});return}const n=Je(r);n.write(t),n.close()},"writeOutput");var Ve=Object.defineProperty,k=g((e,t)=>Ve(e,"name",{value:t,configurable:!0}),"s$3");const H=["oxlint","oxfmt","biome","eslint","dprint","prettier","stylelint","ruff-check","ruff-fmt","markdownlint","shellcheck","deno-lint","deno-fmt"],Bt=k((e,t)=>{const r=new Map(e.map(i=>[i.id,i])),n=[],o=new Set,s=t&&t.length>0?t:H;for(const i of s){const a=r.get(i);a&&!o.has(i)&&(n.push(a),o.add(i))}if(t&&t.length>0)for(const i of H){const a=r.get(i);a&&!o.has(i)&&(n.push(a),o.add(i))}for(const i of e)o.has(i.id)||(n.push(i),o.add(i.id));return n},"registerAdapters"),Jt=k((e,t,r)=>{const n=[];for(const o of t){const s=e.get(o.id);s&&ze(o.kind,r)&&n.push({adapter:o,presence:s})}return n},"adaptersByKind"),ze=k((e,t)=>e===t||e==="both","matchesKind"),Vt=k((e,t,r={})=>{const n=new Map;for(const o of e){const s=Ge(o),i=Ue(s,t,r);if(!i)continue;const a=n.get(i);a?a.push(o):n.set(i,[o])}return n},"routeFilesByExtension"),Ge=k(e=>{const t=e.lastIndexOf(".");return t===-1||t===e.length-1?"":e.slice(t+1).toLowerCase()},"extensionOf"),Ue=k((e,t,r)=>{const n=r[e];if(n&&t.some(o=>o.adapter.id===n))return n;for(const{adapter:o}of t)if(o.extensions.includes(e))return o.id},"resolveAdapterForExtension");var He=Object.defineProperty,S=g((e,t)=>He(e,"name",{value:t,configurable:!0}),"r");const Qe=S(e=>e==="error"?"error":e==="warning"?"warning":"notice","commandFor"),ue=S(e=>e.replaceAll("%","%25").replaceAll("\r","%0D").replaceAll(`
|
|
2
2
|
`,"%0A"),"encodeMessage"),Q=S(e=>ue(e).replaceAll(",","%2C").replaceAll(":","%3A").replaceAll("=","%3D"),"encodeProperty"),Xe=S((e,t)=>t&&e.startsWith(`${t}/`)?e.slice(t.length+1):e,"relativeFile"),Ye=S((e,t)=>e.file!==t.file?e.file<t.file?-1:1:(e.line??0)-(t.line??0)||(e.column??0)-(t.column??0),"compareFindings"),Ze=S((e,t)=>{const r=Qe(e.severity),n=Xe(e.file,t),o=e.ruleId?`${e.adapter}(${e.ruleId})`:e.adapter,s=[`file=${Q(n)}`];return e.line!==void 0&&s.push(`line=${String(e.line)}`),e.endLine!==void 0&&s.push(`endLine=${String(e.endLine)}`),e.column!==void 0&&s.push(`col=${String(e.column)}`),e.endColumn!==void 0&&s.push(`endColumn=${String(e.endColumn)}`),s.push(`title=${Q(o)}`),`::${r} ${s.join(",")}::${ue(e.message)}
|
|
3
3
|
`},"renderFinding"),zt=S(e=>e.runs.flatMap(t=>[...t.findings]).sort(Ye).map(t=>Ze(t,e.workspaceRoot)).join(""),"emitGitHub");var et=Object.defineProperty,w=g((e,t)=>et(e,"name",{value:t,configurable:!0}),"s$2");const F=w(e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),"escapeAttribute"),tt=w(e=>`<![CDATA[${e.replaceAll("]]>","]]]]><![CDATA[>")}]]>`,"cdata"),rt=w((e,t)=>e.file!==t.file?e.file<t.file?-1:1:(e.line??0)-(t.line??0)||(e.column??0)-(t.column??0),"compareFindings"),nt=w(e=>e==="error"?"error":e==="warning"?"warning":"info","failureTypeFor"),st=w((e,t)=>{let{file:r}=e;return t&&e.file.startsWith(`${t}/`)&&(r=e.file.slice(t.length+1)),e.line===void 0?r:e.column===void 0?`${r}:${String(e.line)}`:`${r}:${String(e.line)}:${String(e.column)}`},"locationFor"),ot=w((e,t,r)=>{const n=st(e,r),o=nt(e.severity),s=e.ruleId?`[${e.ruleId}] ${e.message}`:e.message;return[` <testcase classname="${F(t)}" name="${F(n)}">`,` <failure type="${F(o)}" message="${F(s)}">${tt(e.message)}</failure>`," </testcase>",""].join(`
|
|
4
4
|
`)},"renderTestcase"),it=w((e,t,r)=>{const n=[...e.findings].sort(rt),o=n.filter(l=>l.severity==="error").length,s=n.filter(l=>l.severity==="warning").length,i=n.length,a=(e.durationMs/1e3).toFixed(3),c=n.map(l=>ot(l,e.adapter,r)).join("");return` <testsuite ${[`name="${F(e.adapter)}"`,`tests="${String(i)}"`,`failures="${String(o)}"`,'errors="0"',`skipped="${String(s)}"`,`time="${a}"`,`timestamp="${t}"`].join(" ")}>
|
|
@@ -8,4 +8,4 @@ ${c} </testsuite>
|
|
|
8
8
|
${n}</testsuites>
|
|
9
9
|
`},"emitJUnit");var at=Object.defineProperty,b=g((e,t)=>at(e,"name",{value:t,configurable:!0}),"i");const ct="2.1.0",lt="https://json.schemastore.org/sarif-2.1.0.json",ut=b(e=>e==="error"?"error":e==="warning"?"warning":"note","sarifLevelFor"),dt=b((e,t)=>t&&e.startsWith(`${t}/`)?{uri:e.slice(t.length+1),uriBaseId:"SRCROOT"}:{uri:e},"fileUri"),ft=b(e=>{const{href:t}=ye(e);return t.endsWith("/")?t:`${t}/`},"workspaceRootUri"),pt=b((e,t)=>e.file!==t.file?e.file<t.file?-1:1:(e.line??0)-(t.line??0)||(e.column??0)-(t.column??0),"compareFindings"),gt=b(e=>{const t=new Map;for(const r of e)r.ruleId&&(t.has(r.ruleId)||t.set(r.ruleId,{id:r.ruleId,name:r.ruleId}));return[...t.values()]},"collectRules"),mt=b((e,t)=>{const{uri:r,uriBaseId:n}=dt(e.file,t),o={artifactLocation:n?{uri:r,uriBaseId:n}:{uri:r}};if(e.line!==void 0){const i={startLine:e.line};e.column!==void 0&&(i.startColumn=e.column),e.endLine!==void 0&&(i.endLine=e.endLine),e.endColumn!==void 0&&(i.endColumn=e.endColumn),o.region=i}const s={level:ut(e.severity),locations:[{physicalLocation:o}],message:{text:e.message}};return e.ruleId&&(s.ruleId=e.ruleId),s},"buildResult"),ht=b((e,t)=>{const r=[...e.findings].sort(pt),n=gt(r),o={name:e.adapter,rules:n};e.presence?.declaredVersion&&(o.version=e.presence.declaredVersion);const s={results:r.map(i=>mt(i,t)),tool:{driver:o}};return t&&(s.originalUriBaseIds={SRCROOT:{uri:ft(t)}}),s},"buildRun"),Ut=b(e=>{const t={$schema:lt,runs:e.runs.map(r=>ht(r,e.workspaceRoot)),version:ct};return`${JSON.stringify(t,void 0,2)}
|
|
10
10
|
`},"emitSarif");var yt=Object.defineProperty,D=g((e,t)=>yt(e,"name",{value:t,configurable:!0}),"o");const T={error:3,info:1,warning:2};D((e,t)=>T[e]-T[t],"compareSeverity");const Ht=D(e=>{const t=[],r=[];let n,o=!1;for(const s of e){r.push({adapter:s.adapter,durationMs:s.durationMs,exitCode:s.exitCode,findingCount:s.findings.length}),s.exitCode!==0&&s.exitCode!==null&&s.findings.length===0&&(o=!0);for(const i of s.findings)t.push(i),(!n||T[i.severity]>T[n])&&(n=i.severity)}return{findings:t,hadProcessFailure:o,maxSeverity:n,runs:r}},"aggregate"),Qt=D(e=>{const t=new Map;for(const r of e){const n=t.get(r.file);n?n.push(r):t.set(r.file,[r])}return t},"groupFindingsByFile"),Xt=D(e=>e.hadProcessFailure||e.maxSeverity==="error"?1:0,"exitCodeFor");var vt=Object.defineProperty,O=g((e,t)=>vt(e,"name",{value:t,configurable:!0}),"a");const $t=O((e,t)=>{if(t==="fix"||process.env.VIS_NO_CACHE==="1"||e.length===0)return!1;for(const r of e)if(r==="."||r==="./"||r==="..")return!1;return!0},"cacheable"),xt=O(e=>{try{const t=re(e);return A("sha256").update(t).digest("hex")}catch{return}},"hashFile"),wt=O((e,t,r,n,o)=>{const s=e.cacheKey(t,n),i=[];for(const c of[...r].sort()){const l=j(c)?c:y(t.root,c);try{Ae(l)}catch{return}const m=xt(l);if(!m)return;i.push({hash:m,path:l})}const a=A("sha256");a.update(e.id),a.update("\0"),a.update(s),a.update("\0"),a.update(o);for(const c of i)a.update("\0"),a.update(c.path),a.update("\0"),a.update(c.hash);return{fileHashes:i,key:a.digest("hex")}},"computeCacheKey"),de=O((e,t)=>y(e,"lint-fmt",t),"adapterDir"),bt=O((e,t,r)=>{const n=y(de(e,t.id),`${r}.json`);try{const o=re(n,"utf8"),s=JSON.parse(o);return s.schema!==1?void 0:s}catch{return}},"readCacheEntry"),Ct=O((e,t,r,n,o)=>{const s=de(e,t.id),i={fileHashes:o,result:n,savedAt:Date.now(),schema:1};try{Se(s,{recursive:!0}),Fe(y(s,`${r}.json`),JSON.stringify(i))}catch{}},"writeCacheEntry");var At=Object.defineProperty,M=g((e,t)=>At(e,"name",{value:t,configurable:!0}),"h");M((e,t,r,n,o)=>{const s=e.bin(t),i=[...s.slice(1),...o==="fix"?e.argsFix(r,n):e.argsCheck(r,n)],a=Date.now();let c;try{c=te(s[0],i,{cwd:t.root,encoding:"utf8",timeout:6e4})}catch(l){return{durationMs:Date.now()-a,exitCode:null,stderr:l instanceof Error?l.message:String(l),stdout:""}}return c.error?{durationMs:Date.now()-a,exitCode:null,stderr:c.error.message,stdout:c.stdout??""}:{durationMs:Date.now()-a,exitCode:c.status,stderr:c.stderr??"",stdout:c.stdout??""}},"runAdapter");const X=M(async(e,t,r,n,o)=>{const s=e.bin(t),i=[...s.slice(1),...o==="fix"?e.argsFix(r,n):e.argsCheck(r,n)];return new Promise(a=>{const c=Date.now(),l=xe(s[0],i,{cwd:t.root}),m=[],u=[];let v=!1;const f=setTimeout(()=>{v=!0,l.kill("SIGKILL")},6e4);l.stdout.on("data",d=>m.push(d)),l.stderr.on("data",d=>u.push(d)),l.on("error",d=>{clearTimeout(f),a({durationMs:Date.now()-c,exitCode:null,stderr:d.message,stdout:""})}),l.on("close",d=>{clearTimeout(f),a({durationMs:Date.now()-c,exitCode:v?null:d,stderr:Buffer.concat(u).toString("utf8"),stdout:Buffer.concat(m).toString("utf8")})})})},"runAdapterAsync"),Yt=M(async(e,t,r,n=N())=>{if(e.length===0)return[];const{cacheRoot:o,concurrency:s}=typeof n=="number"?{concurrency:n}:{cacheRoot:n.cacheRoot,concurrency:n.concurrency??N()},i=M(async u=>{const v=u.options??t;if(o&&$t(u.files,r)){const f=wt(u.adapter,u.presence,u.files,v,r);if(f){const d=bt(o,u.adapter,f.key);if(d)return d.result;const W=await X(u.adapter,u.presence,u.files,v,r);return W.exitCode!==null&&Ct(o,u.adapter,f.key,W,f.fileHashes),W}}return X(u.adapter,u.presence,u.files,v,r)},"runOne");if(process.env.VIS_LINT_FMT_SERIAL==="1"){const u=[];for(const v of e)u.push(await i(v));return u}const a=Math.max(1,Math.min(s,e.length)),c=Array.from({length:e.length});let l=0;const m=M(async()=>{for(;;){const u=l;if(l+=1,u>=e.length)return;c[u]=await i(e[u])}},"worker");return await Promise.all(Array.from({length:a},()=>m())),c},"runAdaptersParallel");var St=Object.defineProperty,C=g((e,t)=>St(e,"name",{value:t,configurable:!0}),"s");const Ft=C(e=>{const t=new Set;for(const r of e)t.add(r.toLowerCase());return t},"buildExtensionSet"),jt=C((e,t)=>{const r=e.lastIndexOf(".");return r===-1||r===e.length-1?!1:t.has(e.slice(r+1).toLowerCase())},"hasMatchingExtension"),Zt=C(async e=>{const{extensions:t,initialFiles:r,label:n,log:o,runCycle:s,workspaceRoot:i}=e,a=o??(f=>{process.stdout.write(`${f}
|
|
11
|
-
`)}),c=Ft(t);await s(r),a(`▸ ${n}: watching workspace — press Ctrl-C to exit`);let l=new Set,m=!1;const u=C(async()=>{for(;l.size>0;){const f=[...l];l=new Set;try{await s(f)}catch(d){a(`✗ ${n}: watch cycle failed — ${d.message}`)}}},"consumePending"),v=je({debounceMs:200,filter:C(f=>jt(f,c),"filter"),onChange:C(async f=>{for(const d of f)l.add(j(d)?d:y(i,d));if(!m){m=!0;try{await u()}finally{m=!1}}},"onChange"),paths:[i]});await new Promise(f=>{const d=C(()=>{v.close(),process.off("SIGINT",d),process.off("SIGTERM",d),f()},"stop");process.once("SIGINT",d),process.once("SIGTERM",d)})},"runWatchLoop");export{Wt as a,Tt as b,_t as c,ne as d,
|
|
11
|
+
`)}),c=Ft(t);await s(r),a(`▸ ${n}: watching workspace — press Ctrl-C to exit`);let l=new Set,m=!1;const u=C(async()=>{for(;l.size>0;){const f=[...l];l=new Set;try{await s(f)}catch(d){a(`✗ ${n}: watch cycle failed — ${d.message}`)}}},"consumePending"),v=je({debounceMs:200,filter:C(f=>jt(f,c),"filter"),onChange:C(async f=>{for(const d of f)l.add(j(d)?d:y(i,d));if(!m){m=!0;try{await u()}finally{m=!1}}},"onChange"),paths:[i]});await new Promise(f=>{const d=C(()=>{v.close(),process.off("SIGINT",d),process.off("SIGTERM",d),f()},"stop");process.once("SIGINT",d),process.once("SIGTERM",d)})},"runWatchLoop");export{Wt as a,Tt as b,_t as c,ne as d,Pt as e,K as f,Jt as g,Et as h,Vt as i,Yt as j,Ht as k,Je as l,Ut as m,Gt as n,zt as o,Xt as p,Zt as q,Bt as r,Kt as s,Qt as t,Dt as u,qt as v,Nt as w};
|
package/index.js
CHANGED
|
@@ -87,7 +87,7 @@ function requireNative() {
|
|
|
87
87
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
88
88
|
) {
|
|
89
89
|
throw new Error(
|
|
90
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
90
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
return binding;
|
|
@@ -109,7 +109,7 @@ function requireNative() {
|
|
|
109
109
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
110
110
|
) {
|
|
111
111
|
throw new Error(
|
|
112
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
112
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
return binding;
|
|
@@ -136,7 +136,7 @@ function requireNative() {
|
|
|
136
136
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
137
137
|
) {
|
|
138
138
|
throw new Error(
|
|
139
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
139
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
142
|
return binding;
|
|
@@ -158,7 +158,7 @@ function requireNative() {
|
|
|
158
158
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
159
159
|
) {
|
|
160
160
|
throw new Error(
|
|
161
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
161
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
return binding;
|
|
@@ -181,7 +181,7 @@ function requireNative() {
|
|
|
181
181
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
182
182
|
) {
|
|
183
183
|
throw new Error(
|
|
184
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
184
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
185
185
|
);
|
|
186
186
|
}
|
|
187
187
|
return binding;
|
|
@@ -203,7 +203,7 @@ function requireNative() {
|
|
|
203
203
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
204
204
|
) {
|
|
205
205
|
throw new Error(
|
|
206
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
206
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
209
|
return binding;
|
|
@@ -224,7 +224,7 @@ function requireNative() {
|
|
|
224
224
|
const bindingPackageVersion = require("@visulima/vis-binding-darwin-universal/package.json").version;
|
|
225
225
|
if (bindingPackageVersion !== "1.0.0-alpha.24" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
226
226
|
throw new Error(
|
|
227
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
227
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
230
|
return binding;
|
|
@@ -246,7 +246,7 @@ function requireNative() {
|
|
|
246
246
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
247
247
|
) {
|
|
248
248
|
throw new Error(
|
|
249
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
249
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
252
|
return binding;
|
|
@@ -268,7 +268,7 @@ function requireNative() {
|
|
|
268
268
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
269
269
|
) {
|
|
270
270
|
throw new Error(
|
|
271
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
271
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
274
|
return binding;
|
|
@@ -294,7 +294,7 @@ function requireNative() {
|
|
|
294
294
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
295
295
|
) {
|
|
296
296
|
throw new Error(
|
|
297
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
297
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
298
298
|
);
|
|
299
299
|
}
|
|
300
300
|
return binding;
|
|
@@ -316,7 +316,7 @@ function requireNative() {
|
|
|
316
316
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
317
317
|
) {
|
|
318
318
|
throw new Error(
|
|
319
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
319
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
322
|
return binding;
|
|
@@ -343,7 +343,7 @@ function requireNative() {
|
|
|
343
343
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
344
344
|
) {
|
|
345
345
|
throw new Error(
|
|
346
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
346
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
return binding;
|
|
@@ -365,7 +365,7 @@ function requireNative() {
|
|
|
365
365
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
366
366
|
) {
|
|
367
367
|
throw new Error(
|
|
368
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
368
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
369
369
|
);
|
|
370
370
|
}
|
|
371
371
|
return binding;
|
|
@@ -389,7 +389,7 @@ function requireNative() {
|
|
|
389
389
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
390
390
|
) {
|
|
391
391
|
throw new Error(
|
|
392
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
392
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
395
|
return binding;
|
|
@@ -411,7 +411,7 @@ function requireNative() {
|
|
|
411
411
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
412
412
|
) {
|
|
413
413
|
throw new Error(
|
|
414
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
414
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
417
|
return binding;
|
|
@@ -435,7 +435,7 @@ function requireNative() {
|
|
|
435
435
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
436
436
|
) {
|
|
437
437
|
throw new Error(
|
|
438
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
438
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
441
|
return binding;
|
|
@@ -457,7 +457,7 @@ function requireNative() {
|
|
|
457
457
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
458
458
|
) {
|
|
459
459
|
throw new Error(
|
|
460
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
460
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
463
|
return binding;
|
|
@@ -481,7 +481,7 @@ function requireNative() {
|
|
|
481
481
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
482
482
|
) {
|
|
483
483
|
throw new Error(
|
|
484
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
484
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
485
485
|
);
|
|
486
486
|
}
|
|
487
487
|
return binding;
|
|
@@ -503,7 +503,7 @@ function requireNative() {
|
|
|
503
503
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
504
504
|
) {
|
|
505
505
|
throw new Error(
|
|
506
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
506
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
509
|
return binding;
|
|
@@ -527,7 +527,7 @@ function requireNative() {
|
|
|
527
527
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
528
528
|
) {
|
|
529
529
|
throw new Error(
|
|
530
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
530
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
533
|
return binding;
|
|
@@ -549,7 +549,7 @@ function requireNative() {
|
|
|
549
549
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
550
550
|
) {
|
|
551
551
|
throw new Error(
|
|
552
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
552
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
553
553
|
);
|
|
554
554
|
}
|
|
555
555
|
return binding;
|
|
@@ -572,7 +572,7 @@ function requireNative() {
|
|
|
572
572
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
573
573
|
) {
|
|
574
574
|
throw new Error(
|
|
575
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
575
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
576
576
|
);
|
|
577
577
|
}
|
|
578
578
|
return binding;
|
|
@@ -594,7 +594,7 @@ function requireNative() {
|
|
|
594
594
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
595
595
|
) {
|
|
596
596
|
throw new Error(
|
|
597
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
597
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
598
598
|
);
|
|
599
599
|
}
|
|
600
600
|
return binding;
|
|
@@ -620,7 +620,7 @@ function requireNative() {
|
|
|
620
620
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
621
621
|
) {
|
|
622
622
|
throw new Error(
|
|
623
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
623
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
624
624
|
);
|
|
625
625
|
}
|
|
626
626
|
return binding;
|
|
@@ -642,7 +642,7 @@ function requireNative() {
|
|
|
642
642
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
643
643
|
) {
|
|
644
644
|
throw new Error(
|
|
645
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
645
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
646
646
|
);
|
|
647
647
|
}
|
|
648
648
|
return binding;
|
|
@@ -664,7 +664,7 @@ function requireNative() {
|
|
|
664
664
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
665
665
|
) {
|
|
666
666
|
throw new Error(
|
|
667
|
-
`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
667
|
+
`Native binding package version mismatch, expected 1.0.0-alpha.28 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
668
668
|
);
|
|
669
669
|
}
|
|
670
670
|
return binding;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vis",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.28",
|
|
4
4
|
"description": "A monorepo dev toolkit — task runner, remote caching, security scanning, git hooks, and AI agent integrations — powered by @visulima/task-runner",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -110,14 +110,14 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"optionalDependencies": {
|
|
113
|
-
"@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.
|
|
114
|
-
"@visulima/vis-binding-
|
|
115
|
-
"@visulima/vis-binding-
|
|
116
|
-
"@visulima/vis-binding-linux-
|
|
117
|
-
"@visulima/vis-binding-linux-
|
|
118
|
-
"@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.
|
|
119
|
-
"@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.
|
|
120
|
-
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.
|
|
113
|
+
"@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.28",
|
|
114
|
+
"@visulima/vis-binding-linux-arm64-gnu": "1.0.0-alpha.28",
|
|
115
|
+
"@visulima/vis-binding-darwin-x64": "1.0.0-alpha.28",
|
|
116
|
+
"@visulima/vis-binding-linux-x64-gnu": "1.0.0-alpha.28",
|
|
117
|
+
"@visulima/vis-binding-linux-arm64-musl": "1.0.0-alpha.28",
|
|
118
|
+
"@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.28",
|
|
119
|
+
"@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.28",
|
|
120
|
+
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.28"
|
|
121
121
|
},
|
|
122
122
|
"engines": {
|
|
123
123
|
"node": "^22.14.0 || >=24.10.0"
|