Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

squint-cljs

Package Overview
Dependencies
Maintainers
0
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

squint-cljs - npm Package Compare versions

Comparing version 0.8.120 to 0.8.121

18

lib/cli.js

@@ -14,6 +14,6 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js";

else a=new $APP.I(null,2,5,$APP.N,[a,b],null);b=a;a=$APP.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[j$,a,l$,b],null)},u$=function(a,b,c,d,e){var f=Y9(a),k="string"===typeof a?$APP.B.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=X9($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?n$:null;f=$APP.A.g(":",f);c=$APP.Qh.g(n$,b)&&f&&($APP.A.g(o$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?p$:null;a=l?$APP.r(k)?$APP.Qh.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null,
5,[$APP.ix,d,q$,l,r$,a,s$,c,t$,f],null)},$ha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[v$,d,$APP.Xk,w$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=v$.h(b),e=$APP.r(d)?U9(b,$APP.F([Wha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Lr.h(e)}(),l=Xha.h(e),m=$APP.iF.h(e),h=g$.h(e),q=h$.h(e),p=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Yha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))),
5,[$APP.kx,d,q$,l,r$,a,s$,c,t$,f],null)},$ha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[v$,d,$APP.Xk,w$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=v$.h(b),e=$APP.r(d)?U9(b,$APP.F([Wha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Lr.h(e)}(),l=Xha.h(e),m=$APP.iF.h(e),h=g$.h(e),q=h$.h(e),p=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Yha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))),
D=$APP.A.g(!0,p)?v:null==p?null:$APP.Zh(p),J=f$.h(e),O=function(){var vb=Zha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Jc=$APP.fe.g(Zb,y$);throw $APP.cl.g(Jc,Zb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ha=$APP.fe.g(W,j$),oa=function(){var vb=l$.h(e);vb=$APP.r(vb)?vb:z$.h(e);return $APP.r(vb)?m$(ca,vb):new $APP.n(null,2,[l$,null,j$,ha],null)}(),pa=$APP.jf(oa),fa=$APP.fe.g(pa,j$),E=$APP.fe.g(pa,l$),C=$APP.Qh.g(fa,ha)?new $APP.I(null,2,5,$APP.N,[null,$APP.R.g(fa,ha)],null):
new $APP.I(null,2,5,$APP.N,[ca,ha],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Zb=null,Jc=null,Pe=$APP.r(q)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Zb,Jc],null);var pg=$APP.y(hd),Uc=pg instanceof $APP.H;if(Uc){Zb=c$(vb,Zb,Jc,null);var oe=pg;hd=$APP.z(hd);vb=Zb;Zb=oe}else{var Dl=!0===pg,Tf=$APP.t.h(pg);oe=b$(l,Zb,$APP.fe.g(f,Zb));var yi=$APP.fe.g(f,Zb),El=u$(Tf,Pe,Zb,yi,Jc),Lh=$APP.jf(El),Fl=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh,
r$),Gl=$APP.fe.g(Lh,s$),Uf=$APP.fe.g(Lh,$APP.ix),qk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Re=Fl;return $APP.r(Re)?Re:Gl}())){var Yc=$APP.qa(Tf,"--"),rk=Yc&&$APP.A.g("--",Tf);if(rk){var Hl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Re=vb;return Hl?$APP.jo.A(Re,$APP.bv,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Hl)):Re}(),Zb,Jc],null)}var sk=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),Af=Yc?$APP.Hr.g(sk,/=/):new $APP.I(null,1,5,$APP.N,[sk],null),Sd=$APP.B.j(Af,0,null),Ce=
r$),Gl=$APP.fe.g(Lh,s$),Uf=$APP.fe.g(Lh,$APP.kx),qk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Re=Fl;return $APP.r(Re)?Re:Gl}())){var Yc=$APP.qa(Tf,"--"),rk=Yc&&$APP.A.g("--",Tf);if(rk){var Hl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Re=vb;return Hl?$APP.jo.A(Re,$APP.bv,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Hl)):Re}(),Zb,Jc],null)}var sk=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),Af=Yc?$APP.Hr.g(sk,/=/):new $APP.I(null,1,5,$APP.N,[sk],null),Sd=$APP.B.j(Af,0,null),Ce=
$APP.B.j(Af,1,null),Vb=$APP.vi.h(Sd),Fc=$APP.fe.j(k,Vb,Vb);if($APP.r(Ce))Jc=c$(vb,Zb,Jc,oe),Zb=Fc,Pe=Uf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Qe=$APP.y(Ab),uw=u$(Qe,Uf,Zb,yi,Jc);if($APP.r(function(){var Re=q$.h(uw);return $APP.r(Re)?Re:$APP.Qd(Ab)}()))if($APP.r(Mh)){var vw=$APP.ai(Fc);Jc=$APP.Zp.l(function(){return function(Re){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Re)].join(""),!0],null)}}(vb,Zb,Jc,Pe,hd,Kg,vw,Ab,Qe,uw,sk,Af,Sd,Ce,Vb,Fc,Yc,rk,Dl,Tf,oe,yi,El,Lh,

@@ -34,5 +34,5 @@ Fl,Mh,Gl,Uf,qk,pg,Uc,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K),$APP.F([vw]));hd=$APP.R.g(Jc,Ab);Pe=Uf;Jc=Zb=null}else hd=$APP.he(v,Fc)?null:$APP.$G($APP.t.h(Fc),":no-"),Pe=$APP.r(hd)?$APP.vi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Zb=c$(vb,Zb,Jc,oe),oe=Pe,Pe=Uf,vb=Zb,Zb=oe;else Zb=c$(vb,Zb,Jc,oe),oe=Fc,Pe=Uf,hd=Ab,vb=Zb,Zb=oe}}else if(rk=$APP.A.g(o$,yi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Jc,Zb)&&$APP.Za(oe))if(Kg=$APP.r(hd)?$APP.r(Kg)?m$(hd,

esm_import$path.resolve(c,$APP.EH(b,d));c=esm_import$path.dirname(e);if($APP.r($APP.Ef(function(f){return f instanceof $APP.H?$APP.ii($APP.ki(["\\.",$APP.ai(f),"$"].join("")),e):"string"===typeof f?$APP.ii($APP.ki(f),e):null},a)))return $APP.r(esm_import$fs.existsSync(c))||($APP.QH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.QH.l($APP.F(["[squint] zCopying resource",b,"to",c])),esm_import$fs.copyFileSync(b,e)}return null},V$=function(a,b){var c=$APP.u($APP.tH),
d=$APP.Qk.l($APP.F([c,a])),e=$APP.sH.h(c),f=S$.h(c),k=$APP.JH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.JH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.QH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.QH(),$APP.QH.l($APP.F(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files\n--output-dir: output directory for JS files"]))):
d=$APP.Qk.l($APP.F([c,a])),e=$APP.sH.h(d),f=S$.h(d),k=$APP.JH.g(d,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.JH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.QH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.QH(),$APP.QH.l($APP.F(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files\n--paths: source paths to search for cljs/cljc files\n--output-dir: output directory for JS files"]))):
$APP.ne.j(function(l,m){return Promise.resolve(l).then(function(){return $APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(m))?($APP.QH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.KH($APP.Rh.l(d,$APP.FH,m,$APP.F([$APP.wr,function(h){return Q$(d,m,h)}])))):R$(f,m,k,e)}).then(function(h){h=$APP.jf(h);h=$APP.fe.g(h,$APP.HH);$APP.r(h)&&$APP.QH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},eia=function(a){var b=$APP.u($APP.tH),
c=$APP.Qk.l($APP.F([b,a])),d=$APP.sH.h(b),e=$APP.JH.g(b,"."),f=S$.h(b);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.QH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,q=0;;)if(q<h){var p=m.ba(null,q);(k.h?k.h(p):k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:
c=$APP.Qk.l($APP.F([b,a])),d=$APP.sH.h(c),e=$APP.JH.g(c,"."),f=S$.h(c);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.QH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,q=0;;)if(q<h){var p=m.ba(null,q);(k.h?k.h(p):k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:
$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(pa,new $APP.I(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(J,O,P,W,ca,ha,oa,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,q,p,k,b,c,d,e,f));q+=1}else{var v=$APP.x(l);if(v){var D=v;$APP.Zd(D)?(l=$APP.uc(D),h=$APP.vc(D),m=l,D=$APP.xd(l),l=h,h=D):(p=$APP.y(D),(k.h?k.h(p):

@@ -45,11 +45,11 @@ k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,pa,fa,E,C,ea,K){return function(M,da){return $APP.r(esm_import$fs.existsSync(da))?$APP.r(esm_import$fs.lstatSync(da).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),M)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(da))?V$(E,new $APP.I(null,1,5,$APP.N,[da],null)).catch(function(){return function(ia){return console.error(ia)}}(J,O,P,W,

-1111774387),Oha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),hia=new $APP.H(null,"h","h",1109658740),i$=new $APP.H(null,"cmds","cmds",-1841503952);var H$=$APP.Vi.h(""),F$=$APP.Vi.h(!1),G$=$APP.Vi.h($APP.or),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var L$=$APP.Vi.h(null),Z$=function Z$(a){switch(arguments.length){case 0:return Z$.v();case 1:return Z$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};Z$.v=function(){return Z$.h(null)};
Z$.h=function(a){$APP.or=$APP.py;$APP.cr=$APP.nr=!0;var b=function(){var d=$APP.SH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(dia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.QH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1;
Z$.h=function(a){$APP.or=$APP.ty;$APP.cr=$APP.nr=!0;var b=function(){var d=$APP.SH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(dia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.QH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1;
var $$=function $$(a){switch(arguments.length){case 0:return $$.v();case 1:return $$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$$.v=function(){return $$.h(null)};
$$.h=function(){$APP.or=$APP.py;$APP.cr=$APP.nr=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});O$(b,null);b.setPrompt([$APP.t.h($APP.u(G$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.lg($APP.Zp.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},iia=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);var b=$APP.u($APP.tH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k);
$$.h=function(){$APP.or=$APP.ty;$APP.cr=$APP.nr=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});O$(b,null);b.setPrompt([$APP.t.h($APP.u(G$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.lg($APP.Zp.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},iia=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);var b=$APP.u($APP.tH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k);
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.QH.l($APP.F(["[squint] Running",d]));return $APP.KH($APP.Rh.l(c,$APP.FH,d,$APP.F([$APP.wr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.HH);e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return shadow_esm_import(e)})},z$,new $APP.I(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["compile"],null),
$APP.yo,function(a){var b=$APP.jf(a);a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.TH);return V$(b,a)}],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.TH);return shadow_esm_import("./node.nrepl_server.js").then(function(c){c=c.startServer;return c.h?c.h(b):
c.call(null,b)})}],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);return eia(a)}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.TH);a=$APP.RE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.QH.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.r($APP.$p.h(c))?
$APP.Zj("(do %s\n)","%s",a):a;a=$APP.ZG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Ir,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.py],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.pu,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.pu.h(c):f}()])));a=$APP.r($APP.$p.h(c))?$APP.Zj("(async function() { %s })()","%s",a):a;var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(fia.h(c))&&$APP.QH.l($APP.F([a]));
if(!1===gia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.PH.l($APP.F([f])):null}).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Qd(b)}())?$APP.QH.l($APP.F(["Squint v0.8.120\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])):
c.call(null,b)})}],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);return eia(a)}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.TH);a=$APP.QE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.QH.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.r($APP.$p.h(c))?
$APP.Zj("(do %s\n)","%s",a):a;a=$APP.ZG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Ir,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ty],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.pu,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.pu.h(c):f}()])));a=$APP.r($APP.$p.h(c))?$APP.Zj("(async function() { %s })()","%s",a):a;var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(fia.h(c))&&$APP.QH.l($APP.F([a]));
if(!1===gia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.PH.l($APP.F([f])):null}).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Qd(b)}())?$APP.QH.l($APP.F(["Squint v0.8.121\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])):
V$(c,b)}],null)],null);(function(){var a=new $APP.n(null,2,[$APP.Lr,new $APP.n(null,1,[hia,U$],null),d$,new $APP.n(null,6,[$APP.pu,o$,$APP.Mr,o$,$APP.JH,$APP.nl,$APP.$p,o$,$APP.sH,new $APP.I(null,1,5,$APP.N,[$APP.nl],null),$APP.IH,$APP.nl],null)],null),b=k$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,i$),e=$APP.fe.g(c,j$);return $APP.ne.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,i$),m=$APP.fe.g(f,$APP.yo),h=bia(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.x(h);return null==v?null:$APP.lg(v)}();k=
$APP.R.g(k,e);f=aia(k,U9(a,$APP.F([f])));k=$APP.jf(f);var q=$APP.fe.g(k,$APP.TH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var p=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,p,$APP.F([W$,p,$APP.TH,q,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,iia)})();

@@ -11,5 +11,5 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js";

BH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Ir);a=$APP.jp($APP.hp(a),$APP.mu);if($APP.be(a)&&$APP.A.g($APP.Dj,$APP.y(a))){a=$APP.x(a);$APP.y(a);a=$APP.z(a);var d=$APP.y(a);a=$APP.z(a);a=$APP.Ef(function(k){var l=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);return $APP.be(l)&&$APP.A.g(vH,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.wH.j(2,1,a));var e=$APP.B.j(a,0,null),f=$APP.B.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.xH.h($APP.u($APP.yH));
return $APP.ne.j(function(l,m){return l.then(function(){var h=$APP.x(m),q=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var p=$APP.fe.g(h,$APP.Dr),v=$APP.fe.g(h,$APP.Er);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.pF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,q,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.I(null,1,5,$APP.N,[$APP.zH],null)):O}();k.h?k.h(D):k.call(null,D);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null,
return $APP.ne.j(function(l,m){return l.then(function(){var h=$APP.x(m),q=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var p=$APP.fe.g(h,$APP.Dr),v=$APP.fe.g(h,$APP.Er);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.oF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,q,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.I(null,1,5,$APP.N,[$APP.zH],null)):O}();k.h?k.h(D):k.call(null,D);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null,
AH,null,1,null),new $APP.G(null,$APP.S.h($APP.x($APP.R.g(new $APP.G(null,$APP.Mj,null,1,null),new $APP.G(null,q,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Kh(J);J=$APP.Oh(J);J=$APP.ui.g($APP.od,J);return $APP.bi(D,J)}()).then(function(D){return $APP.Wi.g(c,function(J){J=$APP.bv(J,new $APP.I(null,2,5,$APP.N,[$APP.Rt,q],null),D);J=$APP.r(v)?$APP.bv(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Lr,v],null),q):J;return $APP.r(p)?$APP.bv(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Jr],
null),$APP.bi(p,$APP.Kr.h(q))):J})})})},Promise.resolve(null),e)}):null}return null};CH=function(a){var b=$APP.Rh.j;var c=$APP.Ir.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.py],null));return b.call($APP.Rh,a,$APP.Ir,c)};DH=function(a,b){var c=CH(b);return Promise.resolve(BH(a,c)).then(function(){return $APP.zu(a,c,null)})};
null),$APP.bi(p,$APP.Kr.h(q))):J})})})},Promise.resolve(null),e)}):null}return null};CH=function(a){var b=$APP.Rh.j;var c=$APP.Ir.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ty],null));return b.call($APP.Rh,a,$APP.Ir,c)};DH=function(a,b){var c=CH(b);return Promise.resolve(BH(a,c)).then(function(){return $APP.zu(a,c,null)})};
$APP.EH=function(a,b){return $APP.ne.j(function(c,d){a:{var e=esm_import$path.resolve(d).split(esm_import$path.sep);for(var f=esm_import$path.resolve(a).split(esm_import$path.sep);;){var k=$APP.Qd(e);if(k){e=k;break a}if(k=$APP.x(f))if(k=$APP.A.g($APP.y(e),$APP.y(f)))e=$APP.cd(e),f=$APP.cd(f);else{e=k;break a}else{e=k;break a}}}return e?$APP.ld(esm_import$path.relative(d,a)):c},a,b)};

@@ -25,5 +25,5 @@ $APP.KH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.FH),c=$APP.fe.g(a,GH),d=$APP.fe.g(a,$APP.HH),e=$APP.fe.g(a,$APP.IH),f=$APP.fe.j(a,$APP.JH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");a=CH(a);return DH(c,a).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.yu),m=$APP.fe.g(k,$APP.zq),h=$APP.sH.g($APP.u($APP.tH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),q=esm_import$path,p=q.resolve;$APP.r(d)?h=d:(h=$APP.EH(b,h),$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Zj(e,/^\./,"")].join(""):

arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.wH.g=function(a,b){return $APP.wH.j(a,a,b)};$APP.wH.j=function(a,b,c){return new $APP.Ne(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.wH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.wH.m=3;$APP.lH.prototype.nb=function(){$APP.r(this.f)&&(this.value=this.f.v?this.f.v():this.f.call(null),this.f=null);return this.value};$APP.lH.prototype.$c=function(){return $APP.Za(this.f)};
$APP.lH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.GD,null==this.f?$APP.Lw:$APP.pB,$APP.tv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.RH=function RH(a){switch(arguments.length){case 1:return RH.h(arguments[0]);case 2:return RH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.lH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.HD,null==this.f?$APP.Mw:$APP.tB,$APP.tv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.RH=function RH(a){switch(arguments.length){case 1:return RH.h(arguments[0]);case 2:return RH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.RH.h=function(a){return qH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.aG),$APP.Dm,$APP.u($APP.$F),$APP.il,null],null),a)};$APP.RH.g=function(a,b){return qH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.$F)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.aG),c]))}),b)};$APP.RH.m=2;$APP.SH=new $APP.H(null,"port","port",1534937262);$APP.zH=new $APP.H(null,"reload","reload",863702807);$APP.TH=new $APP.H(null,"opts","opts",155075701);
$APP.JH=new $APP.H(null,"output-dir","output-dir",-290956991);vH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.UH=new $APP.H(null,"message","message",-406056002);$APP.FH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.VH=new $APP.H(null,"id","id",-1388402092);AH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.sH=new $APP.H(null,"paths","paths",-1807389588);$APP.WH=new $APP.H(null,"eval","eval",-1103567905);
$APP.xH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.HH=new $APP.H(null,"out-file","out-file",-1187066405);GH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.IH=new $APP.H(null,"extension","extension",1453374065);$APP.tH=new $APP.lH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.RH.h(a)}else a=null;return a},null);var XH;$APP.yH=$APP.Vi.h(null);XH=MH(DH);export const compileFile=MH($APP.KH);export const compileString=XH;

@@ -5,3 +5,3 @@ {

"sideEffects": false,
"version": "0.8.120",
"version": "0.8.121",
"files": [

@@ -8,0 +8,0 @@ "core.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc