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

cherry-cljs

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cherry-cljs - npm Package Compare versions

Comparing version 0.0.0-alpha.23 to 0.0.0-alpha.24

38

lib/cli.js
import { $APP, shadow$provide, $jscomp } from "./transpiler.js";
const shadow_esm_import = function(x) { return import(x) };
'use strict';var ZD=function(a){var b=/=/;a="/(?:)/"===$APP.y.g(b)?$APP.ke.h($APP.Vf($APP.Q("",$APP.ei.h($APP.y,$APP.F(a)))),""):$APP.Vf($APP.y.g(a).split(b));if(1<$APP.I(a))a:for(;;)if(""===$APP.td(a))a=$APP.ud(a);else break a;return a},$D=function(a,b){return $APP.u($APP.u(b)?$APP.Ek.h(b,""):b)?$APP.Pp(a,new $APP.mo(new $APP.lo(b,$APP.I(b)))):null},bE=function(a){throw $APP.Bm.h(["Unexpected format: ",$APP.y.g(a)].join(""),new $APP.r(null,1,[aE,a],null));},cE=function(a){var b=JSON.parse(a);return $APP.Gd(b)?
b:bE(a)},dE=function(a){var b=JSON.parse(a);return $APP.Kd(b)?b:bE(a)},eE=function(a){var b=JSON.parse(a);return $APP.Ld(b)?b:bE(a)},fE=function(a){var b=JSON.parse(a);return"number"===typeof b?b:bE(a)},gE=function(a){return $APP.J.h(":",0<a.length?a.charAt(0):null)?$APP.fi.g($APP.Vh.h(a,1)):$APP.fi.g(a)},hE=function(a){return $APP.wd(a)?$APP.G(a):a},iE=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.J.h("true",a)||$APP.J.h("false",a))var c=cE(a);else{if($APP.Ca(isNaN(a)))var d=
fE(a);else{var e=$APP.J.h(":",b);var f=e?$APP.Th(/:?[a-zA-Z0-9]+/,a):e;d=$APP.u(f)?gE(a):a}c=d}return c}catch(g){return a}else return a},nE=function(a,b){var c=function(){switch(b instanceof $APP.R?b.Ba:null){case "boolean":return cE;case "int":case "long":return dE;case "double":return eE;case "number":return fE;case "symbol":return $APP.qi;case "keyword":return gE;case "string":return $APP.$d;case "edn":return jE;case "auto":return iE;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a):
c.call(null,a)}catch(e){d=kE}if($APP.J.h(kE,d))throw $APP.Bm.h(["Coerce failure: cannot transform input ",$APP.Yl.l($APP.W.h([a],0)),b instanceof $APP.R?" to ":" with ",$APP.y.g(b instanceof $APP.R?$APP.Fh(b):b)].join(""),new $APP.r(null,2,[lE,a,mE,b],null));return d}return a},oE=function(a,b,c){a=$APP.O.h(a,b);c=$APP.u(a)?a:$APP.wd(c)?$APP.md(c):null;return $APP.u(c)?$APP.wd(c)?$APP.Jk.h($APP.ke,c):c:null},pE=function(a,b,c,d){return $APP.Ek.h(b,c)?$APP.dl.j(a,b,function(e){return null==e?$APP.u(d)?
d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.u(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},qE=function(a,b,c,d,e){d=$APP.u($APP.u(d)?!$APP.wd(d):d)?nE(e,d):iE(e);return $APP.u(c)?$APP.dl.G(a,b,c,d):$APP.X.j(a,b,d)},vE=function(a){return $APP.Wd.j(function(b,c){var d=$APP.K.j(c,0,null);c=$APP.K.j(c,1,null);c=$APP.Le(c);var e=$APP.O.h(c,rE),f=$APP.O.h(c,sE);c=$APP.O.h(c,$APP.rn);b=$APP.u(e)?$APP.dl.J(b,rE,$APP.X,d,e):b;b=$APP.u(f)?$APP.dl.j(b,tE,function(g){if($APP.Nd(g,f))throw $APP.Bm.h(["Conflicting alias ",
$APP.y.g(f)," between ",$APP.y.g($APP.O.h(g,f))," and ",$APP.y.g(d)].join(""),new $APP.r(null,1,[sE,f],null));return $APP.X.j(g,f,d)}):b;return $APP.u(c)?$APP.dl.J(b,uE,$APP.X,d,c):b},$APP.Ke,a)},IE=function(){var a=process.argv.slice(2),b=new $APP.r(null,1,[tE,new $APP.r(null,1,[wE,xE],null)],null),c=yE.g(b);b=$APP.u(c)?$APP.Bl.l($APP.W.h([b,$APP.u(c)?vE(c):null],0)):b;var d=rE.g(b),e=tE.g(b),f=zE.g(b),g=uE.g(b),h=AE.g(b),l=$APP.J.h(!0,BE.g(b))?function(){var z=null==c?null:$APP.uh(c);z=null==z?
null:$APP.Y.h(z,$APP.uh(e));z=null==z?null:$APP.Y.h(z,$APP.uh(d));return null==z?null:$APP.Dh(z)}():BE.g(b);a=$APP.Qh(function(z){var B=$APP.u(h)?null:0==z.lastIndexOf(":",0);return!($APP.u(B)?B:0==z.lastIndexOf("-",0))},a);var m=$APP.K.j(a,0,null),n=$APP.K.j(a,1,null);a=function(){var z=$APP.F(m);return null==z?null:$APP.Vf(z)}();var q=function(){for(var z=$APP.u(g)?g:$APP.Ke,B=null,C=null,M=$APP.u(h)?CE:null,T=$APP.F(n);;){if($APP.Ca(T))return new $APP.U(null,3,5,$APP.V,[z,B,C],null);var ba=$APP.G(T),
oa=oE(f,B,$APP.O.h(d,B)),xa=0<ba.length?ba.charAt(0):null,pb=$APP.J.h(xa,"-"),Fb=function(){var Pc=M;return $APP.u(Pc)?Pc:pb?CE:null}(),ka=$APP.J.h(":",xa),Ob=$APP.Ek.h(CE,Fb)&&ka&&($APP.Ca(B)||$APP.J.h(C,B));xa=function(){var Pc=Fb;return $APP.u(Pc)?Pc:Ob?DE:null}();if(pb||Ob){var Pa=(ka=0==ba.lastIndexOf("--",0))&&$APP.J.h("--",ba);if(Pa){var kd=$APP.H(T);return new $APP.U(null,3,5,$APP.V,[function(){var Pc=z;return kd?$APP.Dk.G(Pc,$APP.bl,new $APP.U(null,2,5,$APP.V,[EE,FE],null),$APP.Vf(kd)):Pc}(),
B,C],null)}Pa=ka?$APP.Vh.h(ba,2):$APP.Vn(ba,/^(:|-|)/,"");ka=ka?ZD(Pa):new $APP.U(null,1,5,$APP.V,[Pa],null);Pa=$APP.K.j(ka,0,null);ka=$APP.K.j(ka,1,null);Pa=$APP.fi.g(Pa);Pa=$APP.O.j(e,Pa,Pa);if($APP.u($APP.u(l)?$APP.Ca($APP.O.h(l,Pa)):l))throw $APP.Bm.h(["Unknown option ",$APP.y.g(ba)].join(""),new $APP.r(null,1,[BE,l],null));$APP.u(ka)?(B=pE(z,B,C,oa),C=Pa,T=$APP.Q(ka,$APP.Hc(T)),z=B,B=C,C=null,M=xa):(B=pE(z,B,C,oa),ba=Pa,T=$APP.H(T),z=B,B=ba,M=xa)}else{var yc=$APP.O.h(d,B);if(Pa=$APP.J.h(GE,yc)&&
$APP.Ca(C)&&$APP.Ek.h(ba,"true")&&$APP.Ek.h(ba,"false")||$APP.J.h(C,B)&&$APP.Ca(oa))return new $APP.U(null,3,5,$APP.V,[$APP.Dk.G(z,$APP.bl,new $APP.U(null,2,5,$APP.V,[EE,FE],null),$APP.Vf(T)),B,null],null);C=qE(z,B,oa,hE(yc),ba);ba=$APP.J.h(DE,xa)&&ka?null:B;oa=$APP.J.h(DE,xa)&&ka?null:B;T=$APP.H(T);z=C;B=ba;C=oa;M=xa}}}();b=$APP.K.j(q,0,null);var t=$APP.K.j(q,1,null);q=$APP.K.j(q,2,null);var w=oE(f,t,$APP.O.h(nE,t));b=pE(b,t,q,w);return $APP.u(a)?$APP.Dk.G(b,$APP.bl,new $APP.U(null,2,5,$APP.V,[EE,
HE],null),a):b},KE=function(){var a=IE(),b=EE.g($APP.sd(a));return $APP.X.j(b,JE,$APP.Vj.h(a,EE))},LE=function(a,b){var c=$APP.vf($APP.I(a),b);b=$APP.K.j(c,0,null);c=$APP.K.j(c,1,null);return $APP.J.h(b,a)?c:null},PE=function(){var a=ME,b=KE(),c=$APP.Le(b),d=$APP.O.h(c,HE),e=$APP.O.h(c,JE);$APP.Wd.j(function(f,g){f=$APP.Le(g);var h=$APP.O.h(f,HE),l=$APP.O.h(f,$APP.Er),m=$APP.O.h(f,NE),n=LE(h,d);if($APP.u(n)){var q=function(){var z=null==n?null:$APP.F(n);return null==z?null:$APP.Vf(z)}();f=$APP.u($APP.u(q)?
m:q)?function(){var z=$APP.I(q),B=$APP.I(m);return new $APP.U(null,2,5,$APP.V,[$APP.uf.h(z<B?z:B,q),$APP.Gh(m,q)],null)}():new $APP.U(null,2,5,$APP.V,[q,null],null);var t=$APP.K.j(f,0,null);f=$APP.K.j(f,1,null);var w=$APP.u(f)?$APP.Bl.l($APP.W.h([e,f],0)):e;return $APP.Tc(function(){var z=$APP.X.l(c,OE,t,$APP.W.h([JE,w,$APP.LB,h],0));return l.g?l.g(z):l.call(null,z)}())}return null},null,a)},QE=function(a){a=$APP.F(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.$(null,d);$APP.cm.l($APP.W.h(["Transpiling CLJS file:",
e],0));e=$APP.Us(new $APP.r(null,1,[$APP.Rs,e],null));e=$APP.Le(e);e=$APP.O.h(e,$APP.Ss);$APP.cm.l($APP.W.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.F(a))$APP.Ed(a)?(c=$APP.dc(a),a=$APP.ec(a),b=c,c=$APP.I(c)):(e=$APP.G(a),$APP.cm.l($APP.W.h(["Transpiling CLJS file:",e],0)),b=$APP.Us(new $APP.r(null,1,[$APP.Rs,e],null)),b=$APP.Le(b),b=$APP.O.h(b,$APP.Ss),$APP.cm.l($APP.W.h(["Wrote JS file:",b],0)),a=$APP.H(a),b=null,c=0),d=0;else return null},jE=function jE(a){switch(arguments.length){case 1:return jE.g(arguments[0]);
case 2:return jE.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.y.g(arguments.length)].join(""));}};jE.g=function(a){return $D(new $APP.r(null,3,[$APP.Op,$APP.qb($APP.RD),$APP.rn,$APP.qb($APP.QD),$APP.Go,null],null),a)};jE.h=function(a,b){return $D($APP.dl.j($APP.Bl.l($APP.W.h([new $APP.r(null,1,[$APP.rn,$APP.qb($APP.QD)],null),a],0)),$APP.Op,function(c){return $APP.Bl.l($APP.W.h([$APP.qb($APP.RD),c],0))}),b)};jE.v=2;
var yE=new $APP.R(null,"spec","spec",347520401),GE=new $APP.R(null,"boolean","boolean",-1919418404),JE=new $APP.R(null,"opts","opts",155075701),xE=new $APP.R(null,"help","help",-439233446),mE=new $APP.R(null,"coerce-fn","coerce-fn",-821146515),AE=new $APP.R(null,"no-keyword-opts","no-keyword-opts",761286018),OE=new $APP.R(null,"rest-cmds","rest-cmds",-423198324),DE=new $APP.R(null,"keywords","keywords",1526959054),HE=new $APP.R(null,"cmds","cmds",-1841503952),tE=new $APP.R(null,"aliases","aliases",
1346874714),zE=new $APP.R(null,"collect","collect",-284321549),EE=new $APP.R("org.babashka","cli","org.babashka/cli",1162430315),kE=new $APP.R("babashka.cli","error","babashka.cli/error",-939678701),NE=new $APP.R(null,"cmds-opts","cmds-opts",-390130362),uE=new $APP.R(null,"exec-args","exec-args",-1860766354),lE=new $APP.R(null,"input","input",556931961),rE=new $APP.R(null,"coerce","coerce",1917884504),RE=new $APP.R(null,"show","show",-576705889),BE=new $APP.R(null,"closed","closed",-919675359),wE=
new $APP.R(null,"h","h",1109658740),SE=new $APP.R(null,"e","e",1381269198),aE=new $APP.R(null,"s","s",1705939918),CE=new $APP.R(null,"hyphens","hyphens",2113533609),sE=new $APP.R(null,"alias","alias",-2039751630),FE=new $APP.R(null,"args","args",1315556576);var ME=new $APP.U(null,3,5,$APP.V,[new $APP.r(null,3,[HE,new $APP.U(null,1,5,$APP.V,["run"],null),$APP.Er,function(a){a=$APP.Le(a);a=$APP.O.h(a,JE);a=$APP.Le(a);a=$APP.O.h(a,$APP.yo);a=$APP.Us(new $APP.r(null,1,[$APP.Rs,a],null));a=$APP.Le(a);a=$APP.O.h(a,$APP.Ss);return shadow_esm_import([$APP.y.g(process.cwd()),"/",$APP.y.g(a)].join(""))},NE,new $APP.U(null,1,5,$APP.V,[$APP.yo],null)],null),new $APP.r(null,2,[HE,new $APP.U(null,1,5,$APP.V,["transpile"],null),$APP.Er,QE],null),new $APP.r(null,2,
[HE,$APP.Uf,$APP.Er,function(a){a=$APP.Le(a);var b=$APP.O.h(a,OE),c=$APP.O.h(a,JE);a=SE.g(c);if($APP.u(a)){a=$APP.Qs(a);var d=$APP.Ts.mkdtempSync(".tmp"),e=[$APP.y.g(d),"/cherry.mjs"].join("");$APP.Ts.writeFileSync(e,a,"utf-8");$APP.u(RE.g(c))&&$APP.cm.l($APP.W.h([a],0));return shadow_esm_import([$APP.y.g(process.cwd()),"/",e].join("")).finally(function(){return $APP.Ts.rmSync(d,{force:!0,recursive:!0})})}return $APP.u(function(){var f=xE.g(c);return $APP.u(f)?f:$APP.J.h("help",$APP.G(b))||$APP.vd(b)}())?
$APP.cm.l($APP.W.h(["Cherry v0.0.0\n\nUsage:\n\nrun \x3cfile.cljs\x3e Transpile and run a file\ntranspile \x3cfile.cljs\x3e ... Transpile file(s)\nhelp Print this help"],0)):QE(b)}],null)],null);try{PE()}catch(a){throw console.error("An error occurred when calling (cherry.internal.cli/init)"),a;};
'use strict';var YD=function(a){var b=/=/;a="/(?:)/"===$APP.y.g(b)?$APP.ke.h($APP.Vf($APP.Q("",$APP.ei.h($APP.y,$APP.F(a)))),""):$APP.Vf($APP.y.g(a).split(b));if(1<$APP.I(a))a:for(;;)if(""===$APP.td(a))a=$APP.ud(a);else break a;return a},ZD=function(a,b){return $APP.u($APP.u(b)?$APP.Ek.h(b,""):b)?$APP.Pp(a,new $APP.mo(new $APP.lo(b,$APP.I(b)))):null},aE=function(a){throw $APP.Bm.h(["Unexpected format: ",$APP.y.g(a)].join(""),new $APP.r(null,1,[$D,a],null));},bE=function(a){var b=JSON.parse(a);return $APP.Gd(b)?
b:aE(a)},cE=function(a){var b=JSON.parse(a);return $APP.Kd(b)?b:aE(a)},dE=function(a){var b=JSON.parse(a);return $APP.Ld(b)?b:aE(a)},eE=function(a){var b=JSON.parse(a);return"number"===typeof b?b:aE(a)},fE=function(a){return $APP.J.h(":",0<a.length?a.charAt(0):null)?$APP.fi.g($APP.Vh.h(a,1)):$APP.fi.g(a)},gE=function(a){return $APP.wd(a)?$APP.G(a):a},hE=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.J.h("true",a)||$APP.J.h("false",a))var c=bE(a);else{if($APP.Ca(isNaN(a)))var d=
eE(a);else{var e=$APP.J.h(":",b);var f=e?$APP.Th(/:?[a-zA-Z0-9]+/,a):e;d=$APP.u(f)?fE(a):a}c=d}return c}catch(g){return a}else return a},mE=function(a,b){var c=function(){switch(b instanceof $APP.R?b.Ba:null){case "boolean":return bE;case "int":case "long":return cE;case "double":return dE;case "number":return eE;case "symbol":return $APP.qi;case "keyword":return fE;case "string":return $APP.$d;case "edn":return iE;case "auto":return hE;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a):
c.call(null,a)}catch(e){d=jE}if($APP.J.h(jE,d))throw $APP.Bm.h(["Coerce failure: cannot transform input ",$APP.Yl.l($APP.W.h([a],0)),b instanceof $APP.R?" to ":" with ",$APP.y.g(b instanceof $APP.R?$APP.Fh(b):b)].join(""),new $APP.r(null,2,[kE,a,lE,b],null));return d}return a},nE=function(a,b,c){a=$APP.O.h(a,b);c=$APP.u(a)?a:$APP.wd(c)?$APP.md(c):null;return $APP.u(c)?$APP.wd(c)?$APP.Jk.h($APP.ke,c):c:null},oE=function(a,b,c,d){return $APP.Ek.h(b,c)?$APP.dl.j(a,b,function(e){return null==e?$APP.u(d)?
d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.u(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},pE=function(a,b,c,d,e){d=$APP.u($APP.u(d)?!$APP.wd(d):d)?mE(e,d):hE(e);return $APP.u(c)?$APP.dl.G(a,b,c,d):$APP.X.j(a,b,d)},uE=function(a){return $APP.Wd.j(function(b,c){var d=$APP.K.j(c,0,null);c=$APP.K.j(c,1,null);c=$APP.Le(c);var e=$APP.O.h(c,qE),f=$APP.O.h(c,rE);c=$APP.O.h(c,$APP.rn);b=$APP.u(e)?$APP.dl.J(b,qE,$APP.X,d,e):b;b=$APP.u(f)?$APP.dl.j(b,sE,function(g){if($APP.Nd(g,f))throw $APP.Bm.h(["Conflicting alias ",
$APP.y.g(f)," between ",$APP.y.g($APP.O.h(g,f))," and ",$APP.y.g(d)].join(""),new $APP.r(null,1,[rE,f],null));return $APP.X.j(g,f,d)}):b;return $APP.u(c)?$APP.dl.J(b,tE,$APP.X,d,c):b},$APP.Ke,a)},HE=function(){var a=process.argv.slice(2),b=new $APP.r(null,1,[sE,new $APP.r(null,1,[vE,wE],null)],null),c=xE.g(b);b=$APP.u(c)?$APP.Bl.l($APP.W.h([b,$APP.u(c)?uE(c):null],0)):b;var d=qE.g(b),e=sE.g(b),f=yE.g(b),g=tE.g(b),h=zE.g(b),l=$APP.J.h(!0,AE.g(b))?function(){var z=null==c?null:$APP.uh(c);z=null==z?
null:$APP.Y.h(z,$APP.uh(e));z=null==z?null:$APP.Y.h(z,$APP.uh(d));return null==z?null:$APP.Dh(z)}():AE.g(b);a=$APP.Qh(function(z){var B=$APP.u(h)?null:0==z.lastIndexOf(":",0);return!($APP.u(B)?B:0==z.lastIndexOf("-",0))},a);var m=$APP.K.j(a,0,null),n=$APP.K.j(a,1,null);a=function(){var z=$APP.F(m);return null==z?null:$APP.Vf(z)}();var q=function(){for(var z=$APP.u(g)?g:$APP.Ke,B=null,C=null,M=$APP.u(h)?BE:null,T=$APP.F(n);;){if($APP.Ca(T))return new $APP.U(null,3,5,$APP.V,[z,B,C],null);var ba=$APP.G(T),
oa=nE(f,B,$APP.O.h(d,B)),xa=0<ba.length?ba.charAt(0):null,pb=$APP.J.h(xa,"-"),Fb=function(){var Pc=M;return $APP.u(Pc)?Pc:pb?BE:null}(),ka=$APP.J.h(":",xa),Ob=$APP.Ek.h(BE,Fb)&&ka&&($APP.Ca(B)||$APP.J.h(C,B));xa=function(){var Pc=Fb;return $APP.u(Pc)?Pc:Ob?CE:null}();if(pb||Ob){var Pa=(ka=0==ba.lastIndexOf("--",0))&&$APP.J.h("--",ba);if(Pa){var kd=$APP.H(T);return new $APP.U(null,3,5,$APP.V,[function(){var Pc=z;return kd?$APP.Dk.G(Pc,$APP.bl,new $APP.U(null,2,5,$APP.V,[DE,EE],null),$APP.Vf(kd)):Pc}(),
B,C],null)}Pa=ka?$APP.Vh.h(ba,2):$APP.Vn(ba,/^(:|-|)/,"");ka=ka?YD(Pa):new $APP.U(null,1,5,$APP.V,[Pa],null);Pa=$APP.K.j(ka,0,null);ka=$APP.K.j(ka,1,null);Pa=$APP.fi.g(Pa);Pa=$APP.O.j(e,Pa,Pa);if($APP.u($APP.u(l)?$APP.Ca($APP.O.h(l,Pa)):l))throw $APP.Bm.h(["Unknown option ",$APP.y.g(ba)].join(""),new $APP.r(null,1,[AE,l],null));$APP.u(ka)?(B=oE(z,B,C,oa),C=Pa,T=$APP.Q(ka,$APP.Hc(T)),z=B,B=C,C=null,M=xa):(B=oE(z,B,C,oa),ba=Pa,T=$APP.H(T),z=B,B=ba,M=xa)}else{var yc=$APP.O.h(d,B);if(Pa=$APP.J.h(FE,yc)&&
$APP.Ca(C)&&$APP.Ek.h(ba,"true")&&$APP.Ek.h(ba,"false")||$APP.J.h(C,B)&&$APP.Ca(oa))return new $APP.U(null,3,5,$APP.V,[$APP.Dk.G(z,$APP.bl,new $APP.U(null,2,5,$APP.V,[DE,EE],null),$APP.Vf(T)),B,null],null);C=pE(z,B,oa,gE(yc),ba);ba=$APP.J.h(CE,xa)&&ka?null:B;oa=$APP.J.h(CE,xa)&&ka?null:B;T=$APP.H(T);z=C;B=ba;C=oa;M=xa}}}();b=$APP.K.j(q,0,null);var t=$APP.K.j(q,1,null);q=$APP.K.j(q,2,null);var w=nE(f,t,$APP.O.h(mE,t));b=oE(b,t,q,w);return $APP.u(a)?$APP.Dk.G(b,$APP.bl,new $APP.U(null,2,5,$APP.V,[DE,
GE],null),a):b},JE=function(){var a=HE(),b=DE.g($APP.sd(a));return $APP.X.j(b,IE,$APP.Vj.h(a,DE))},KE=function(a,b){var c=$APP.vf($APP.I(a),b);b=$APP.K.j(c,0,null);c=$APP.K.j(c,1,null);return $APP.J.h(b,a)?c:null},OE=function(){var a=LE,b=JE(),c=$APP.Le(b),d=$APP.O.h(c,GE),e=$APP.O.h(c,IE);$APP.Wd.j(function(f,g){f=$APP.Le(g);var h=$APP.O.h(f,GE),l=$APP.O.h(f,$APP.Er),m=$APP.O.h(f,ME),n=KE(h,d);if($APP.u(n)){var q=function(){var z=null==n?null:$APP.F(n);return null==z?null:$APP.Vf(z)}();f=$APP.u($APP.u(q)?
m:q)?function(){var z=$APP.I(q),B=$APP.I(m);return new $APP.U(null,2,5,$APP.V,[$APP.uf.h(z<B?z:B,q),$APP.Gh(m,q)],null)}():new $APP.U(null,2,5,$APP.V,[q,null],null);var t=$APP.K.j(f,0,null);f=$APP.K.j(f,1,null);var w=$APP.u(f)?$APP.Bl.l($APP.W.h([e,f],0)):e;return $APP.Tc(function(){var z=$APP.X.l(c,NE,t,$APP.W.h([IE,w,$APP.LB,h],0));return l.g?l.g(z):l.call(null,z)}())}return null},null,a)},PE=function(a){a=$APP.F(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.$(null,d);$APP.cm.l($APP.W.h(["Transpiling CLJS file:",
e],0));e=$APP.Us(new $APP.r(null,1,[$APP.Rs,e],null));e=$APP.Le(e);e=$APP.O.h(e,$APP.Ss);$APP.cm.l($APP.W.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.F(a))$APP.Ed(a)?(c=$APP.dc(a),a=$APP.ec(a),b=c,c=$APP.I(c)):(e=$APP.G(a),$APP.cm.l($APP.W.h(["Transpiling CLJS file:",e],0)),b=$APP.Us(new $APP.r(null,1,[$APP.Rs,e],null)),b=$APP.Le(b),b=$APP.O.h(b,$APP.Ss),$APP.cm.l($APP.W.h(["Wrote JS file:",b],0)),a=$APP.H(a),b=null,c=0),d=0;else return null},iE=function iE(a){switch(arguments.length){case 1:return iE.g(arguments[0]);
case 2:return iE.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.y.g(arguments.length)].join(""));}};iE.g=function(a){return ZD(new $APP.r(null,3,[$APP.Op,$APP.qb($APP.QD),$APP.rn,$APP.qb($APP.PD),$APP.Go,null],null),a)};iE.h=function(a,b){return ZD($APP.dl.j($APP.Bl.l($APP.W.h([new $APP.r(null,1,[$APP.rn,$APP.qb($APP.PD)],null),a],0)),$APP.Op,function(c){return $APP.Bl.l($APP.W.h([$APP.qb($APP.QD),c],0))}),b)};iE.v=2;
var xE=new $APP.R(null,"spec","spec",347520401),FE=new $APP.R(null,"boolean","boolean",-1919418404),IE=new $APP.R(null,"opts","opts",155075701),wE=new $APP.R(null,"help","help",-439233446),lE=new $APP.R(null,"coerce-fn","coerce-fn",-821146515),zE=new $APP.R(null,"no-keyword-opts","no-keyword-opts",761286018),NE=new $APP.R(null,"rest-cmds","rest-cmds",-423198324),CE=new $APP.R(null,"keywords","keywords",1526959054),GE=new $APP.R(null,"cmds","cmds",-1841503952),sE=new $APP.R(null,"aliases","aliases",
1346874714),yE=new $APP.R(null,"collect","collect",-284321549),DE=new $APP.R("org.babashka","cli","org.babashka/cli",1162430315),jE=new $APP.R("babashka.cli","error","babashka.cli/error",-939678701),ME=new $APP.R(null,"cmds-opts","cmds-opts",-390130362),tE=new $APP.R(null,"exec-args","exec-args",-1860766354),kE=new $APP.R(null,"input","input",556931961),qE=new $APP.R(null,"coerce","coerce",1917884504),QE=new $APP.R(null,"show","show",-576705889),AE=new $APP.R(null,"closed","closed",-919675359),vE=
new $APP.R(null,"h","h",1109658740),RE=new $APP.R(null,"e","e",1381269198),$D=new $APP.R(null,"s","s",1705939918),BE=new $APP.R(null,"hyphens","hyphens",2113533609),rE=new $APP.R(null,"alias","alias",-2039751630),EE=new $APP.R(null,"args","args",1315556576);var LE=new $APP.U(null,3,5,$APP.V,[new $APP.r(null,3,[GE,new $APP.U(null,1,5,$APP.V,["run"],null),$APP.Er,function(a){a=$APP.Le(a);a=$APP.O.h(a,IE);a=$APP.Le(a);a=$APP.O.h(a,$APP.yo);a=$APP.Us(new $APP.r(null,1,[$APP.Rs,a],null));a=$APP.Le(a);a=$APP.O.h(a,$APP.Ss);return shadow_esm_import([$APP.y.g(process.cwd()),"/",$APP.y.g(a)].join(""))},ME,new $APP.U(null,1,5,$APP.V,[$APP.yo],null)],null),new $APP.r(null,2,[GE,new $APP.U(null,1,5,$APP.V,["transpile"],null),$APP.Er,PE],null),new $APP.r(null,2,
[GE,$APP.Uf,$APP.Er,function(a){a=$APP.Le(a);var b=$APP.O.h(a,NE),c=$APP.O.h(a,IE);a=RE.g(c);if($APP.u(a)){a=$APP.Qs(a);var d=$APP.Ts.mkdtempSync(".tmp"),e=[$APP.y.g(d),"/cherry.mjs"].join("");$APP.Ts.writeFileSync(e,a,"utf-8");$APP.u(QE.g(c))&&$APP.cm.l($APP.W.h([a],0));return shadow_esm_import([$APP.y.g(process.cwd()),"/",e].join("")).finally(function(){return $APP.Ts.rmSync(d,{force:!0,recursive:!0})})}return $APP.u(function(){var f=wE.g(c);return $APP.u(f)?f:$APP.J.h("help",$APP.G(b))||$APP.vd(b)}())?
$APP.cm.l($APP.W.h(["Cherry v0.0.0\n\nUsage:\n\nrun \x3cfile.cljs\x3e Transpile and run a file\ntranspile \x3cfile.cljs\x3e ... Transpile file(s)\nhelp Print this help"],0)):PE(b)}],null)],null);try{OE()}catch(a){throw console.error("An error occurred when calling (cherry.internal.cli/init)"),a;};
export { $APP, shadow$provide, $jscomp };

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

"sideEffects": false,
"version": "0.0.0-alpha.23",
"version": "0.0.0-alpha.24",
"files": [

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

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