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.33 to 0.0.0-alpha.34

38

lib/cli.js
import { $APP, shadow$provide, $jscomp } from "./transpiler.js";
const shadow_esm_import = function(x) { return import(x) };
'use strict';var wF=function(a,b){return $APP.t($APP.t(b)?$APP.Ik.h(b,""):b)?$APP.wq(a,new $APP.Vo(new $APP.Uo(b,$APP.G(b)))):null},yF=function(a){throw $APP.Fm.h(["Unexpected format: ",$APP.v.g(a)].join(""),new $APP.q(null,1,[xF,a],null));},zF=function(a){var b=JSON.parse(a);return $APP.Jd(b)?b:yF(a)},AF=function(a){var b=JSON.parse(a);return $APP.Nd(b)?b:yF(a)},BF=function(a){var b=JSON.parse(a);return $APP.Od(b)?b:yF(a)},CF=function(a){var b=JSON.parse(a);return"number"===typeof b?b:yF(a)},DF=
function(a){return $APP.H.h(":",0<a.length?a.charAt(0):null)?$APP.ii.g($APP.Yh.h(a,1)):$APP.ii.g(a)},EF=function(a){return $APP.yd(a)?$APP.D(a):a},FF=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.H.h("true",a)||$APP.H.h("false",a))var c=zF(a);else{if($APP.Ca(isNaN(a)))var d=CF(a);else{var e=$APP.H.h(":",b);var f=e?$APP.Wh(/:?[a-zA-Z0-9]+/,a):e;d=$APP.t(f)?DF(a):a}c=d}return c}catch(g){return a}else return a},KF=function(a,b){var c=function(){switch(b instanceof $APP.Q?
b.Na:null){case "boolean":return zF;case "int":case "long":return AF;case "double":return BF;case "number":return CF;case "symbol":return $APP.ti;case "keyword":return DF;case "string":return $APP.be;case "edn":return GF;case "auto":return FF;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a):c.call(null,a)}catch(e){d=HF}if($APP.H.h(HF,d))throw $APP.Fm.h(["Coerce failure: cannot transform input ",$APP.bm.l($APP.V.h([a],0)),b instanceof $APP.Q?" to ":" with ",$APP.v.g(b instanceof $APP.Q?
$APP.Ih(b):b)].join(""),new $APP.q(null,2,[IF,a,JF,b],null));return d}return a},LF=function(a,b,c){a=$APP.K.h(a,b);c=$APP.t(a)?a:$APP.yd(c)?$APP.od(c):null;return $APP.t(c)?$APP.yd(c)?$APP.Nk.h($APP.me,c):c:null},MF=function(a,b,c,d){return $APP.Ik.h(b,c)?$APP.hl.j(a,b,function(e){return null==e?$APP.t(d)?d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.t(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},NF=function(a,b,c,d,e){d=$APP.t($APP.t(d)?!$APP.yd(d):d)?KF(e,d):FF(e);return $APP.t(c)?$APP.hl.F(a,b,c,d):$APP.X.j(a,
b,d)},SF=function(a){return $APP.M.j(function(b,c){var d=$APP.I.j(c,0,null);c=$APP.I.j(c,1,null);c=$APP.Oe(c);var e=$APP.K.h(c,OF),f=$APP.K.h(c,PF);c=$APP.K.h(c,$APP.vn);b=$APP.t(e)?$APP.hl.J(b,OF,$APP.X,d,e):b;b=$APP.t(f)?$APP.hl.j(b,QF,function(g){if($APP.Qd(g,f))throw $APP.Fm.h(["Conflicting alias ",$APP.v.g(f)," between ",$APP.v.g($APP.K.h(g,f))," and ",$APP.v.g(d)].join(""),new $APP.q(null,1,[PF,f],null));return $APP.X.j(g,f,d)}):b;return $APP.t(c)?$APP.hl.J(b,RF,$APP.X,d,c):b},$APP.Ne,a)},eG=
function(){var a=process.argv.slice(2),b=new $APP.q(null,1,[QF,new $APP.q(null,1,[TF,UF],null)],null),c=VF.g(b);b=$APP.t(c)?$APP.Fl.l($APP.V.h([b,$APP.t(c)?SF(c):null],0)):b;var d=OF.g(b),e=QF.g(b),f=WF.g(b),g=RF.g(b),h=XF.g(b),l=$APP.H.h(!0,YF.g(b))?function(){var A=null==c?null:$APP.xh(c);A=null==A?null:$APP.Y.h(A,$APP.xh(e));A=null==A?null:$APP.Y.h(A,$APP.xh(d));return null==A?null:$APP.Gh(A)}():YF.g(b);a=$APP.Th(function(A){var B=$APP.t(h)?null:0==A.lastIndexOf(":",0);return!($APP.t(B)?B:0==A.lastIndexOf("-",
0))},a);var m=$APP.I.j(a,0,null),n=$APP.I.j(a,1,null);a=function(){var A=$APP.C(m);return null==A?null:$APP.Yf(A)}();var r=function(){for(var A=$APP.t(g)?g:$APP.Ne,B=null,F=null,O=$APP.t(h)?ZF:null,S=$APP.C(n);;){if($APP.Ca(S))return new $APP.T(null,3,5,$APP.U,[A,B,F],null);var W=$APP.D(S),ka=LF(f,B,$APP.K.h(d,B)),va=0<W.length?W.charAt(0):null,xb=$APP.H.h(va,"-"),Qb=function(){var hd=O;return $APP.t(hd)?hd:xb?ZF:null}(),na=$APP.H.h(":",va),Xb=$APP.Ik.h(ZF,Qb)&&na&&($APP.Ca(B)||$APP.H.h(F,B));va=
function(){var hd=Qb;return $APP.t(hd)?hd:Xb?$F:null}();if(xb||Xb){var Ta=(na=0==W.lastIndexOf("--",0))&&$APP.H.h("--",W);if(Ta){var zd=$APP.E(S);return new $APP.T(null,3,5,$APP.U,[function(){var hd=A;return zd?$APP.Hk.F(hd,$APP.fl,new $APP.T(null,2,5,$APP.U,[aG,bG],null),$APP.Yf(zd)):hd}(),B,F],null)}Ta=na?$APP.Yh.h(W,2):$APP.zo(W,/^(:|-|)/,"");na=na?$APP.Do(Ta,/=/):new $APP.T(null,1,5,$APP.U,[Ta],null);Ta=$APP.I.j(na,0,null);na=$APP.I.j(na,1,null);Ta=$APP.ii.g(Ta);Ta=$APP.K.j(e,Ta,Ta);if($APP.t($APP.t(l)?
$APP.Ca($APP.K.h(l,Ta)):l))throw $APP.Fm.h(["Unknown option ",$APP.v.g(W)].join(""),new $APP.q(null,1,[YF,l],null));$APP.t(na)?(B=MF(A,B,F,ka),F=Ta,S=$APP.P(na,$APP.Kc(S)),A=B,B=F,F=null,O=va):(B=MF(A,B,F,ka),W=Ta,S=$APP.E(S),A=B,B=W,O=va)}else{var Hc=$APP.K.h(d,B);if(Ta=$APP.H.h(cG,Hc)&&$APP.Ca(F)&&$APP.Ik.h(W,"true")&&$APP.Ik.h(W,"false")||$APP.H.h(F,B)&&$APP.Ca(ka))return new $APP.T(null,3,5,$APP.U,[$APP.Hk.F(A,$APP.fl,new $APP.T(null,2,5,$APP.U,[aG,bG],null),$APP.Yf(S)),B,null],null);F=NF(A,B,
ka,EF(Hc),W);W=$APP.H.h($F,va)&&na?null:B;ka=$APP.H.h($F,va)&&na?null:B;S=$APP.E(S);A=F;B=W;F=ka;O=va}}}();b=$APP.I.j(r,0,null);var u=$APP.I.j(r,1,null);r=$APP.I.j(r,2,null);var y=LF(f,u,$APP.K.h(KF,u));b=MF(b,u,r,y);return $APP.t(a)?$APP.Hk.F(b,$APP.fl,new $APP.T(null,2,5,$APP.U,[aG,dG],null),a):b},gG=function(){var a=eG(),b=aG.g($APP.ud(a));return $APP.X.j(b,fG,$APP.Zj.h(a,aG))},hG=function(a,b){var c=$APP.yf($APP.G(a),b);b=$APP.I.j(c,0,null);c=$APP.I.j(c,1,null);return $APP.H.h(b,a)?c:null},lG=
function(){var a=iG,b=gG(),c=$APP.Oe(b),d=$APP.K.h(c,dG),e=$APP.K.h(c,fG);$APP.M.j(function(f,g){f=$APP.Oe(g);var h=$APP.K.h(f,dG),l=$APP.K.h(f,$APP.ls),m=$APP.K.h(f,jG),n=hG(h,d);if($APP.t(n)){var r=function(){var A=null==n?null:$APP.C(n);return null==A?null:$APP.Yf(A)}();f=$APP.t($APP.t(r)?m:r)?function(){var A=$APP.G(r),B=$APP.G(m);return new $APP.T(null,2,5,$APP.U,[$APP.xf.h(A<B?A:B,r),$APP.Jh(m,r)],null)}():new $APP.T(null,2,5,$APP.U,[r,null],null);var u=$APP.I.j(f,0,null);f=$APP.I.j(f,1,null);
var y=$APP.t(f)?$APP.Fl.l($APP.V.h([e,f],0)):e;return $APP.Vc(function(){var A=$APP.X.l(c,kG,u,$APP.V.h([fG,y,$APP.Ls,h],0));return l.g?l.g(A):l.call(null,A)}())}return null},null,a)},mG=function(a){a=$APP.C(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.ca(null,d);$APP.gm.l($APP.V.h(["Transpiling CLJS file:",e],0));e=$APP.Dt(new $APP.q(null,1,[$APP.At,e],null));e=$APP.Oe(e);e=$APP.K.h(e,$APP.Bt);$APP.gm.l($APP.V.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.C(a))$APP.Hd(a)?(c=$APP.gc(a),a=$APP.hc(a),
b=c,c=$APP.G(c)):(e=$APP.D(a),$APP.gm.l($APP.V.h(["Transpiling CLJS file:",e],0)),b=$APP.Dt(new $APP.q(null,1,[$APP.At,e],null)),b=$APP.Oe(b),b=$APP.K.h(b,$APP.Bt),$APP.gm.l($APP.V.h(["Wrote JS file:",b],0)),a=$APP.E(a),b=null,c=0),d=0;else return null},GF=function GF(a){switch(arguments.length){case 1:return GF.g(arguments[0]);case 2:return GF.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.v.g(arguments.length)].join(""));}};
GF.g=function(a){return wF(new $APP.q(null,3,[$APP.vq,$APP.sb($APP.nF),$APP.vn,$APP.sb($APP.mF),$APP.np,null],null),a)};GF.h=function(a,b){return wF($APP.hl.j($APP.Fl.l($APP.V.h([new $APP.q(null,1,[$APP.vn,$APP.sb($APP.mF)],null),a],0)),$APP.vq,function(c){return $APP.Fl.l($APP.V.h([$APP.sb($APP.nF),c],0))}),b)};GF.v=2;
var VF=new $APP.Q(null,"spec","spec",347520401),cG=new $APP.Q(null,"boolean","boolean",-1919418404),fG=new $APP.Q(null,"opts","opts",155075701),UF=new $APP.Q(null,"help","help",-439233446),JF=new $APP.Q(null,"coerce-fn","coerce-fn",-821146515),XF=new $APP.Q(null,"no-keyword-opts","no-keyword-opts",761286018),kG=new $APP.Q(null,"rest-cmds","rest-cmds",-423198324),$F=new $APP.Q(null,"keywords","keywords",1526959054),dG=new $APP.Q(null,"cmds","cmds",-1841503952),QF=new $APP.Q(null,"aliases","aliases",
1346874714),WF=new $APP.Q(null,"collect","collect",-284321549),aG=new $APP.Q("org.babashka","cli","org.babashka/cli",1162430315),HF=new $APP.Q("babashka.cli","error","babashka.cli/error",-939678701),jG=new $APP.Q(null,"cmds-opts","cmds-opts",-390130362),RF=new $APP.Q(null,"exec-args","exec-args",-1860766354),IF=new $APP.Q(null,"input","input",556931961),OF=new $APP.Q(null,"coerce","coerce",1917884504),nG=new $APP.Q(null,"show","show",-576705889),YF=new $APP.Q(null,"closed","closed",-919675359),TF=
new $APP.Q(null,"h","h",1109658740),oG=new $APP.Q(null,"e","e",1381269198),xF=new $APP.Q(null,"s","s",1705939918),ZF=new $APP.Q(null,"hyphens","hyphens",2113533609),PF=new $APP.Q(null,"alias","alias",-2039751630),bG=new $APP.Q(null,"args","args",1315556576);var iG=new $APP.T(null,3,5,$APP.U,[new $APP.q(null,3,[dG,new $APP.T(null,1,5,$APP.U,["run"],null),$APP.ls,function(a){a=$APP.Oe(a);a=$APP.K.h(a,fG);a=$APP.Oe(a);a=$APP.K.h(a,$APP.gp);a=$APP.Dt(new $APP.q(null,1,[$APP.At,a],null));a=$APP.Oe(a);a=$APP.K.h(a,$APP.Bt);return shadow_esm_import([$APP.v.g(process.cwd()),"/",$APP.v.g(a)].join(""))},jG,new $APP.T(null,1,5,$APP.U,[$APP.gp],null)],null),new $APP.q(null,2,[dG,new $APP.T(null,1,5,$APP.U,["transpile"],null),$APP.ls,function(a){a=$APP.Oe(a);a=$APP.K.h(a,
kG);return mG(a)}],null),new $APP.q(null,2,[dG,$APP.Xf,$APP.ls,function(a){a=$APP.Oe(a);var b=$APP.K.h(a,kG),c=$APP.K.h(a,fG);a=oG.g(c);if($APP.t(a)){a=$APP.zt(a);var d=$APP.Ct.mkdtempSync(".tmp"),e=[$APP.v.g(d),"/cherry.mjs"].join("");$APP.Ct.writeFileSync(e,a,"utf-8");$APP.t(nG.g(c))&&$APP.gm.l($APP.V.h([a],0));return shadow_esm_import([$APP.v.g(process.cwd()),"/",e].join("")).finally(function(){return $APP.Ct.rmSync(d,{force:!0,recursive:!0})})}return $APP.t(function(){var f=UF.g(c);return $APP.t(f)?
f:$APP.H.h("help",$APP.D(b))||$APP.xd(b)}())?$APP.gm.l($APP.V.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)):mG(b)}],null)],null);try{lG()}catch(a){throw console.error("An error occurred when calling (cherry.internal.cli/init)"),a;};
'use strict';var xF=function(a,b){return $APP.t($APP.t(b)?$APP.Ik.h(b,""):b)?$APP.wq(a,new $APP.Vo(new $APP.Uo(b,$APP.G(b)))):null},zF=function(a){throw $APP.Fm.h(["Unexpected format: ",$APP.v.g(a)].join(""),new $APP.q(null,1,[yF,a],null));},AF=function(a){var b=JSON.parse(a);return $APP.Jd(b)?b:zF(a)},BF=function(a){var b=JSON.parse(a);return $APP.Nd(b)?b:zF(a)},CF=function(a){var b=JSON.parse(a);return $APP.Od(b)?b:zF(a)},DF=function(a){var b=JSON.parse(a);return"number"===typeof b?b:zF(a)},EF=
function(a){return $APP.H.h(":",0<a.length?a.charAt(0):null)?$APP.ii.g($APP.Yh.h(a,1)):$APP.ii.g(a)},FF=function(a){return $APP.yd(a)?$APP.D(a):a},GF=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.H.h("true",a)||$APP.H.h("false",a))var c=AF(a);else{if($APP.Ca(isNaN(a)))var d=DF(a);else{var e=$APP.H.h(":",b);var f=e?$APP.Wh(/:?[a-zA-Z0-9]+/,a):e;d=$APP.t(f)?EF(a):a}c=d}return c}catch(g){return a}else return a},LF=function(a,b){var c=function(){switch(b instanceof $APP.Q?
b.Na:null){case "boolean":return AF;case "int":case "long":return BF;case "double":return CF;case "number":return DF;case "symbol":return $APP.ti;case "keyword":return EF;case "string":return $APP.be;case "edn":return HF;case "auto":return GF;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a):c.call(null,a)}catch(e){d=IF}if($APP.H.h(IF,d))throw $APP.Fm.h(["Coerce failure: cannot transform input ",$APP.bm.l($APP.V.h([a],0)),b instanceof $APP.Q?" to ":" with ",$APP.v.g(b instanceof $APP.Q?
$APP.Ih(b):b)].join(""),new $APP.q(null,2,[JF,a,KF,b],null));return d}return a},MF=function(a,b,c){a=$APP.K.h(a,b);c=$APP.t(a)?a:$APP.yd(c)?$APP.od(c):null;return $APP.t(c)?$APP.yd(c)?$APP.Nk.h($APP.me,c):c:null},NF=function(a,b,c,d){return $APP.Ik.h(b,c)?$APP.hl.j(a,b,function(e){return null==e?$APP.t(d)?d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.t(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},OF=function(a,b,c,d,e){d=$APP.t($APP.t(d)?!$APP.yd(d):d)?LF(e,d):GF(e);return $APP.t(c)?$APP.hl.F(a,b,c,d):$APP.X.j(a,
b,d)},TF=function(a){return $APP.M.j(function(b,c){var d=$APP.I.j(c,0,null);c=$APP.I.j(c,1,null);c=$APP.Oe(c);var e=$APP.K.h(c,PF),f=$APP.K.h(c,QF);c=$APP.K.h(c,$APP.vn);b=$APP.t(e)?$APP.hl.J(b,PF,$APP.X,d,e):b;b=$APP.t(f)?$APP.hl.j(b,RF,function(g){if($APP.Qd(g,f))throw $APP.Fm.h(["Conflicting alias ",$APP.v.g(f)," between ",$APP.v.g($APP.K.h(g,f))," and ",$APP.v.g(d)].join(""),new $APP.q(null,1,[QF,f],null));return $APP.X.j(g,f,d)}):b;return $APP.t(c)?$APP.hl.J(b,SF,$APP.X,d,c):b},$APP.Ne,a)},fG=
function(){var a=process.argv.slice(2),b=new $APP.q(null,1,[RF,new $APP.q(null,1,[UF,VF],null)],null),c=WF.g(b);b=$APP.t(c)?$APP.Fl.l($APP.V.h([b,$APP.t(c)?TF(c):null],0)):b;var d=PF.g(b),e=RF.g(b),f=XF.g(b),g=SF.g(b),h=YF.g(b),l=$APP.H.h(!0,ZF.g(b))?function(){var A=null==c?null:$APP.xh(c);A=null==A?null:$APP.Y.h(A,$APP.xh(e));A=null==A?null:$APP.Y.h(A,$APP.xh(d));return null==A?null:$APP.Gh(A)}():ZF.g(b);a=$APP.Th(function(A){var B=$APP.t(h)?null:0==A.lastIndexOf(":",0);return!($APP.t(B)?B:0==A.lastIndexOf("-",
0))},a);var m=$APP.I.j(a,0,null),p=$APP.I.j(a,1,null);a=function(){var A=$APP.C(m);return null==A?null:$APP.Yf(A)}();var r=function(){for(var A=$APP.t(g)?g:$APP.Ne,B=null,F=null,O=$APP.t(h)?$F:null,S=$APP.C(p);;){if($APP.Ca(S))return new $APP.T(null,3,5,$APP.U,[A,B,F],null);var W=$APP.D(S),ka=MF(f,B,$APP.K.h(d,B)),va=0<W.length?W.charAt(0):null,xb=$APP.H.h(va,"-"),Qb=function(){var hd=O;return $APP.t(hd)?hd:xb?$F:null}(),na=$APP.H.h(":",va),Xb=$APP.Ik.h($F,Qb)&&na&&($APP.Ca(B)||$APP.H.h(F,B));va=
function(){var hd=Qb;return $APP.t(hd)?hd:Xb?aG:null}();if(xb||Xb){var Ta=(na=0==W.lastIndexOf("--",0))&&$APP.H.h("--",W);if(Ta){var zd=$APP.E(S);return new $APP.T(null,3,5,$APP.U,[function(){var hd=A;return zd?$APP.Hk.F(hd,$APP.fl,new $APP.T(null,2,5,$APP.U,[bG,cG],null),$APP.Yf(zd)):hd}(),B,F],null)}Ta=na?$APP.Yh.h(W,2):$APP.zo(W,/^(:|-|)/,"");na=na?$APP.Do(Ta,/=/):new $APP.T(null,1,5,$APP.U,[Ta],null);Ta=$APP.I.j(na,0,null);na=$APP.I.j(na,1,null);Ta=$APP.ii.g(Ta);Ta=$APP.K.j(e,Ta,Ta);if($APP.t($APP.t(l)?
$APP.Ca($APP.K.h(l,Ta)):l))throw $APP.Fm.h(["Unknown option ",$APP.v.g(W)].join(""),new $APP.q(null,1,[ZF,l],null));$APP.t(na)?(B=NF(A,B,F,ka),F=Ta,S=$APP.P(na,$APP.Kc(S)),A=B,B=F,F=null,O=va):(B=NF(A,B,F,ka),W=Ta,S=$APP.E(S),A=B,B=W,O=va)}else{var Hc=$APP.K.h(d,B);if(Ta=$APP.H.h(dG,Hc)&&$APP.Ca(F)&&$APP.Ik.h(W,"true")&&$APP.Ik.h(W,"false")||$APP.H.h(F,B)&&$APP.Ca(ka))return new $APP.T(null,3,5,$APP.U,[$APP.Hk.F(A,$APP.fl,new $APP.T(null,2,5,$APP.U,[bG,cG],null),$APP.Yf(S)),B,null],null);F=OF(A,B,
ka,FF(Hc),W);W=$APP.H.h(aG,va)&&na?null:B;ka=$APP.H.h(aG,va)&&na?null:B;S=$APP.E(S);A=F;B=W;F=ka;O=va}}}();b=$APP.I.j(r,0,null);var u=$APP.I.j(r,1,null);r=$APP.I.j(r,2,null);var y=MF(f,u,$APP.K.h(LF,u));b=NF(b,u,r,y);return $APP.t(a)?$APP.Hk.F(b,$APP.fl,new $APP.T(null,2,5,$APP.U,[bG,eG],null),a):b},hG=function(){var a=fG(),b=bG.g($APP.ud(a));return $APP.X.j(b,gG,$APP.Zj.h(a,bG))},iG=function(a,b){var c=$APP.yf($APP.G(a),b);b=$APP.I.j(c,0,null);c=$APP.I.j(c,1,null);return $APP.H.h(b,a)?c:null},mG=
function(){var a=jG,b=hG(),c=$APP.Oe(b),d=$APP.K.h(c,eG),e=$APP.K.h(c,gG);$APP.M.j(function(f,g){f=$APP.Oe(g);var h=$APP.K.h(f,eG),l=$APP.K.h(f,$APP.ls),m=$APP.K.h(f,kG),p=iG(h,d);if($APP.t(p)){var r=function(){var A=null==p?null:$APP.C(p);return null==A?null:$APP.Yf(A)}();f=$APP.t($APP.t(r)?m:r)?function(){var A=$APP.G(r),B=$APP.G(m);return new $APP.T(null,2,5,$APP.U,[$APP.xf.h(A<B?A:B,r),$APP.Jh(m,r)],null)}():new $APP.T(null,2,5,$APP.U,[r,null],null);var u=$APP.I.j(f,0,null);f=$APP.I.j(f,1,null);
var y=$APP.t(f)?$APP.Fl.l($APP.V.h([e,f],0)):e;return $APP.Vc(function(){var A=$APP.X.l(c,lG,u,$APP.V.h([gG,y,$APP.Ls,h],0));return l.g?l.g(A):l.call(null,A)}())}return null},null,a)},nG=function(a){a=$APP.C(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.ca(null,d);$APP.gm.l($APP.V.h(["Transpiling CLJS file:",e],0));e=$APP.Dt(new $APP.q(null,1,[$APP.At,e],null));e=$APP.Oe(e);e=$APP.K.h(e,$APP.Bt);$APP.gm.l($APP.V.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.C(a))$APP.Hd(a)?(c=$APP.gc(a),a=$APP.hc(a),
b=c,c=$APP.G(c)):(e=$APP.D(a),$APP.gm.l($APP.V.h(["Transpiling CLJS file:",e],0)),b=$APP.Dt(new $APP.q(null,1,[$APP.At,e],null)),b=$APP.Oe(b),b=$APP.K.h(b,$APP.Bt),$APP.gm.l($APP.V.h(["Wrote JS file:",b],0)),a=$APP.E(a),b=null,c=0),d=0;else return null},HF=function HF(a){switch(arguments.length){case 1:return HF.g(arguments[0]);case 2:return HF.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.v.g(arguments.length)].join(""));}};
HF.g=function(a){return xF(new $APP.q(null,3,[$APP.vq,$APP.sb($APP.oF),$APP.vn,$APP.sb($APP.nF),$APP.np,null],null),a)};HF.h=function(a,b){return xF($APP.hl.j($APP.Fl.l($APP.V.h([new $APP.q(null,1,[$APP.vn,$APP.sb($APP.nF)],null),a],0)),$APP.vq,function(c){return $APP.Fl.l($APP.V.h([$APP.sb($APP.oF),c],0))}),b)};HF.v=2;
var WF=new $APP.Q(null,"spec","spec",347520401),dG=new $APP.Q(null,"boolean","boolean",-1919418404),gG=new $APP.Q(null,"opts","opts",155075701),VF=new $APP.Q(null,"help","help",-439233446),KF=new $APP.Q(null,"coerce-fn","coerce-fn",-821146515),YF=new $APP.Q(null,"no-keyword-opts","no-keyword-opts",761286018),lG=new $APP.Q(null,"rest-cmds","rest-cmds",-423198324),aG=new $APP.Q(null,"keywords","keywords",1526959054),eG=new $APP.Q(null,"cmds","cmds",-1841503952),RF=new $APP.Q(null,"aliases","aliases",
1346874714),XF=new $APP.Q(null,"collect","collect",-284321549),bG=new $APP.Q("org.babashka","cli","org.babashka/cli",1162430315),IF=new $APP.Q("babashka.cli","error","babashka.cli/error",-939678701),kG=new $APP.Q(null,"cmds-opts","cmds-opts",-390130362),SF=new $APP.Q(null,"exec-args","exec-args",-1860766354),JF=new $APP.Q(null,"input","input",556931961),PF=new $APP.Q(null,"coerce","coerce",1917884504),oG=new $APP.Q(null,"show","show",-576705889),ZF=new $APP.Q(null,"closed","closed",-919675359),UF=
new $APP.Q(null,"h","h",1109658740),pG=new $APP.Q(null,"e","e",1381269198),yF=new $APP.Q(null,"s","s",1705939918),$F=new $APP.Q(null,"hyphens","hyphens",2113533609),QF=new $APP.Q(null,"alias","alias",-2039751630),cG=new $APP.Q(null,"args","args",1315556576);var jG=new $APP.T(null,3,5,$APP.U,[new $APP.q(null,3,[eG,new $APP.T(null,1,5,$APP.U,["run"],null),$APP.ls,function(a){a=$APP.Oe(a);a=$APP.K.h(a,gG);a=$APP.Oe(a);a=$APP.K.h(a,$APP.gp);a=$APP.Dt(new $APP.q(null,1,[$APP.At,a],null));a=$APP.Oe(a);a=$APP.K.h(a,$APP.Bt);return shadow_esm_import([$APP.v.g(process.cwd()),"/",$APP.v.g(a)].join(""))},kG,new $APP.T(null,1,5,$APP.U,[$APP.gp],null)],null),new $APP.q(null,2,[eG,new $APP.T(null,1,5,$APP.U,["transpile"],null),$APP.ls,function(a){a=$APP.Oe(a);a=$APP.K.h(a,
lG);return nG(a)}],null),new $APP.q(null,2,[eG,$APP.Xf,$APP.ls,function(a){a=$APP.Oe(a);var b=$APP.K.h(a,lG),c=$APP.K.h(a,gG);a=pG.g(c);if($APP.t(a)){a=$APP.zt(a);var d=$APP.Ct.mkdtempSync(".tmp"),e=[$APP.v.g(d),"/cherry.mjs"].join("");$APP.Ct.writeFileSync(e,a,"utf-8");$APP.t(oG.g(c))&&$APP.gm.l($APP.V.h([a],0));return shadow_esm_import([$APP.v.g(process.cwd()),"/",e].join("")).finally(function(){return $APP.Ct.rmSync(d,{force:!0,recursive:!0})})}return $APP.t(function(){var f=VF.g(c);return $APP.t(f)?
f:$APP.H.h("help",$APP.D(b))||$APP.xd(b)}())?$APP.gm.l($APP.V.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)):nG(b)}],null)],null);try{mG()}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.33",
"version": "0.0.0-alpha.34",
"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