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.20 to 0.0.0-alpha.21

README.md

36

lib/cli.js
import { $APP, shadow$provide, $jscomp } from "./transpiler.js";
const shadow_esm_import = function(x) { return import(x) };
'use strict';var yC=function(a){var b=/=/;a="/(?:)/"===$APP.A.g(b)?$APP.ie.h($APP.Tf($APP.S("",$APP.ci.h($APP.A,$APP.G(a)))),""):$APP.Tf($APP.A.g(a).split(b));if(1<$APP.K(a))a:for(;;)if(""===$APP.rd(a))a=$APP.sd(a);else break a;return a},zC=function(a,b){return $APP.u($APP.u(b)?$APP.Dk.h(b,""):b)?$APP.Op(a,new $APP.lo(new $APP.ko(b,$APP.K(b)))):null},BC=function(a){throw $APP.Bm.h(["Unexpected format: ",$APP.A.g(a)].join(""),new $APP.t(null,1,[AC,a],null));},CC=function(a){var b=JSON.parse(a);return $APP.Ed(b)?
b:BC(a)},DC=function(a){var b=JSON.parse(a);return $APP.Id(b)?b:BC(a)},EC=function(a){var b=JSON.parse(a);return $APP.Jd(b)?b:BC(a)},FC=function(a){var b=JSON.parse(a);return"number"===typeof b?b:BC(a)},GC=function(a){return $APP.M.h(":",0<a.length?a.charAt(0):null)?$APP.di.g($APP.Th.h(a,1)):$APP.di.g(a)},HC=function(a){return $APP.ud(a)?$APP.H(a):a},IC=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.M.h("true",a)||$APP.M.h("false",a))var c=CC(a);else{if($APP.Ba(isNaN(a)))var d=
FC(a);else{var e=$APP.M.h(":",b);var f=e?$APP.Rh(/:?[a-zA-Z0-9]+/,a):e;d=$APP.u(f)?GC(a):a}c=d}return c}catch(g){return a}else return a},NC=function(a,b){var c=function(){switch(b instanceof $APP.T?b.Ba:null){case "boolean":return CC;case "int":case "long":return DC;case "double":return EC;case "number":return FC;case "symbol":return $APP.qi;case "keyword":return GC;case "string":return $APP.Yd;case "edn":return JC;case "auto":return IC;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a):
c.call(null,a)}catch(e){d=KC}if($APP.M.h(KC,d))throw $APP.Bm.h(["Coerce failure: cannot transform input ",$APP.Yl.l($APP.X.h([a],0)),b instanceof $APP.T?" to ":" with ",$APP.A.g(b instanceof $APP.T?$APP.Dh(b):b)].join(""),new $APP.t(null,2,[LC,a,MC,b],null));return d}return a},OC=function(a,b,c){a=$APP.P.h(a,b);c=$APP.u(a)?a:$APP.ud(c)?$APP.kd(c):null;return $APP.u(c)?$APP.ud(c)?$APP.Jk.h($APP.ie,c):c:null},PC=function(a,b,c,d){return $APP.Dk.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},QC=function(a,b,c,d,e){d=$APP.u($APP.u(d)?!$APP.ud(d):d)?NC(e,d):IC(e);return $APP.u(c)?$APP.dl.G(a,b,c,d):$APP.Y.j(a,b,d)},VC=function(a){return $APP.Ud.j(function(b,c){var d=$APP.N.j(c,0,null);c=$APP.N.j(c,1,null);c=$APP.Ke(c);var e=$APP.P.h(c,RC),f=$APP.P.h(c,SC);c=$APP.P.h(c,$APP.vn);b=$APP.u(e)?$APP.dl.J(b,RC,$APP.Y,d,e):b;b=$APP.u(f)?$APP.dl.j(b,TC,function(g){if($APP.Ld(g,f))throw $APP.Bm.h(["Conflicting alias ",
$APP.A.g(f)," between ",$APP.A.g($APP.P.h(g,f))," and ",$APP.A.g(d)].join(""),new $APP.t(null,1,[SC,f],null));return $APP.Y.j(g,f,d)}):b;return $APP.u(c)?$APP.dl.J(b,UC,$APP.Y,d,c):b},$APP.Je,a)},hD=function(){var a=process.argv.slice(2),b=new $APP.t(null,1,[TC,new $APP.t(null,1,[WC,XC],null)],null),c=YC.g(b);b=$APP.u(c)?$APP.Bl.l($APP.X.h([b,$APP.u(c)?VC(c):null],0)):b;var d=RC.g(b),e=TC.g(b),f=ZC.g(b),g=UC.g(b),h=$C.g(b),l=$APP.M.h(!0,aD.g(b))?function(){var y=null==c?null:$APP.sh(c);y=null==y?
null:$APP.yk.h(y,$APP.sh(e));y=null==y?null:$APP.yk.h(y,$APP.sh(d));return null==y?null:$APP.Bh(y)}():aD.g(b);a=$APP.Oh(function(y){var z=$APP.u(h)?null:0==y.lastIndexOf(":",0);return!($APP.u(z)?z:0==y.lastIndexOf("-",0))},a);var m=$APP.N.j(a,0,null),n=$APP.N.j(a,1,null);a=function(){var y=$APP.G(m);return null==y?null:$APP.Tf(y)}();var p=function(){for(var y=$APP.u(g)?g:$APP.Je,z=null,B=null,I=$APP.u(h)?bD:null,R=$APP.G(n);;){if($APP.Ba(R))return new $APP.V(null,3,5,$APP.W,[y,z,B],null);var Z=$APP.H(R),
ma=OC(f,z,$APP.P.h(d,z)),ua=0<Z.length?Z.charAt(0):null,mb=$APP.M.h(ua,"-"),Db=function(){var Jc=I;return $APP.u(Jc)?Jc:mb?bD:null}(),ja=$APP.M.h(":",ua),Ib=$APP.Dk.h(bD,Db)&&ja&&($APP.Ba(z)||$APP.M.h(B,z));ua=function(){var Jc=Db;return $APP.u(Jc)?Jc:Ib?cD:null}();if(mb||Ib){var Na=(ja=0==Z.lastIndexOf("--",0))&&$APP.M.h("--",Z);if(Na){var cd=$APP.J(R);return new $APP.V(null,3,5,$APP.W,[function(){var Jc=y;return cd?$APP.Ck.G(Jc,$APP.bl,new $APP.V(null,2,5,$APP.W,[dD,eD],null),$APP.Tf(cd)):Jc}(),
z,B],null)}Na=ja?$APP.Th.h(Z,2):$APP.Un(Z,/^(:|-|)/,"");ja=ja?yC(Na):new $APP.V(null,1,5,$APP.W,[Na],null);Na=$APP.N.j(ja,0,null);ja=$APP.N.j(ja,1,null);Na=$APP.di.g(Na);Na=$APP.P.j(e,Na,Na);if($APP.u($APP.u(l)?$APP.Ba($APP.P.h(l,Na)):l))throw $APP.Bm.h(["Unknown option ",$APP.A.g(Z)].join(""),new $APP.t(null,1,[aD,l],null));$APP.u(ja)?(z=PC(y,z,B,ma),B=Na,R=$APP.S(ja,$APP.Fc(R)),y=z,z=B,B=null,I=ua):(z=PC(y,z,B,ma),Z=Na,R=$APP.J(R),y=z,z=Z,I=ua)}else{var uc=$APP.P.h(d,z);if(Na=$APP.M.h(fD,uc)&&$APP.Ba(B)&&
$APP.Dk.h(Z,"true")&&$APP.Dk.h(Z,"false")||$APP.M.h(B,z)&&$APP.Ba(ma))return new $APP.V(null,3,5,$APP.W,[$APP.Ck.G(y,$APP.bl,new $APP.V(null,2,5,$APP.W,[dD,eD],null),$APP.Tf(R)),z,null],null);B=QC(y,z,ma,HC(uc),Z);Z=$APP.M.h(cD,ua)&&ja?null:z;ma=$APP.M.h(cD,ua)&&ja?null:z;R=$APP.J(R);y=B;z=Z;B=ma;I=ua}}}();b=$APP.N.j(p,0,null);var r=$APP.N.j(p,1,null);p=$APP.N.j(p,2,null);var v=OC(f,r,$APP.P.h(NC,r));b=PC(b,r,p,v);return $APP.u(a)?$APP.Ck.G(b,$APP.bl,new $APP.V(null,2,5,$APP.W,[dD,gD],null),a):b},
jD=function(){var a=hD(),b=dD.g($APP.qd(a));return $APP.Y.j(b,iD,$APP.Tj.h(a,dD))},kD=function(a,b){var c=$APP.tf($APP.K(a),b);b=$APP.N.j(c,0,null);c=$APP.N.j(c,1,null);return $APP.M.h(b,a)?c:null},oD=function(){var a=lD,b=jD(),c=$APP.Ke(b),d=$APP.P.h(c,gD),e=$APP.P.h(c,iD);$APP.Ud.j(function(f,g){f=$APP.Ke(g);var h=$APP.P.h(f,gD),l=$APP.P.h(f,$APP.Dr),m=$APP.P.h(f,mD),n=kD(h,d);if($APP.u(n)){var p=function(){var y=null==n?null:$APP.G(n);return null==y?null:$APP.Tf(y)}();f=$APP.u($APP.u(p)?m:p)?function(){var y=
$APP.K(p),z=$APP.K(m);return new $APP.V(null,2,5,$APP.W,[$APP.sf.h(y<z?y:z,p),$APP.Eh(m,p)],null)}():new $APP.V(null,2,5,$APP.W,[p,null],null);var r=$APP.N.j(f,0,null);f=$APP.N.j(f,1,null);var v=$APP.u(f)?$APP.Bl.l($APP.X.h([e,f],0)):e;return $APP.Rc(function(){var y=$APP.Y.l(c,nD,r,$APP.X.h([iD,v,$APP.MA,h],0));return l.g?l.g(y):l.call(null,y)}())}return null},null,a)},pD=function(a){a=$APP.G(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.$(null,d);$APP.cm.l($APP.X.h(["Transpiling CLJS file:",e],0));
e=$APP.Cs(new $APP.t(null,1,[$APP.xs,e],null));e=$APP.Ke(e);e=$APP.P.h(e,$APP.ys);$APP.cm.l($APP.X.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.G(a))$APP.Cd(a)?(c=$APP.bc(a),a=$APP.cc(a),b=c,c=$APP.K(c)):(e=$APP.H(a),$APP.cm.l($APP.X.h(["Transpiling CLJS file:",e],0)),b=$APP.Cs(new $APP.t(null,1,[$APP.xs,e],null)),b=$APP.Ke(b),b=$APP.P.h(b,$APP.ys),$APP.cm.l($APP.X.h(["Wrote JS file:",b],0)),a=$APP.J(a),b=null,c=0),d=0;else return null},JC=function JC(a){switch(arguments.length){case 1:return JC.g(arguments[0]);
case 2:return JC.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.A.g(arguments.length)].join(""));}};JC.g=function(a){return zC(new $APP.t(null,3,[$APP.Np,$APP.C($APP.pC),$APP.vn,$APP.C($APP.oC),$APP.Fo,null],null),a)};JC.h=function(a,b){return zC($APP.dl.j($APP.Bl.l($APP.X.h([new $APP.t(null,1,[$APP.vn,$APP.C($APP.oC)],null),a],0)),$APP.Np,function(c){return $APP.Bl.l($APP.X.h([$APP.C($APP.pC),c],0))}),b)};JC.v=2;
var YC=new $APP.T(null,"spec","spec",347520401),fD=new $APP.T(null,"boolean","boolean",-1919418404),iD=new $APP.T(null,"opts","opts",155075701),XC=new $APP.T(null,"help","help",-439233446),MC=new $APP.T(null,"coerce-fn","coerce-fn",-821146515),$C=new $APP.T(null,"no-keyword-opts","no-keyword-opts",761286018),nD=new $APP.T(null,"rest-cmds","rest-cmds",-423198324),cD=new $APP.T(null,"keywords","keywords",1526959054),gD=new $APP.T(null,"cmds","cmds",-1841503952),TC=new $APP.T(null,"aliases","aliases",
1346874714),ZC=new $APP.T(null,"collect","collect",-284321549),dD=new $APP.T("org.babashka","cli","org.babashka/cli",1162430315),KC=new $APP.T("babashka.cli","error","babashka.cli/error",-939678701),mD=new $APP.T(null,"cmds-opts","cmds-opts",-390130362),UC=new $APP.T(null,"exec-args","exec-args",-1860766354),LC=new $APP.T(null,"input","input",556931961),RC=new $APP.T(null,"coerce","coerce",1917884504),aD=new $APP.T(null,"closed","closed",-919675359),WC=new $APP.T(null,"h","h",1109658740),AC=new $APP.T(null,
"s","s",1705939918),bD=new $APP.T(null,"hyphens","hyphens",2113533609),SC=new $APP.T(null,"alias","alias",-2039751630),eD=new $APP.T(null,"args","args",1315556576);var lD=new $APP.V(null,3,5,$APP.W,[new $APP.t(null,3,[gD,new $APP.V(null,1,5,$APP.W,["run"],null),$APP.Dr,function(a){a=$APP.Ke(a);a=$APP.P.h(a,iD);a=$APP.Ke(a);a=$APP.P.h(a,$APP.xo);a=$APP.Cs(new $APP.t(null,1,[$APP.xs,a],null));a=$APP.Ke(a);a=$APP.P.h(a,$APP.ys);return shadow_esm_import([$APP.A.g(process.cwd()),"/",$APP.A.g(a)].join(""))},mD,new $APP.V(null,1,5,$APP.W,[$APP.xo],null)],null),new $APP.t(null,2,[gD,new $APP.V(null,1,5,$APP.W,["transpile"],null),$APP.Dr,pD],null),new $APP.t(null,2,
[gD,$APP.Sf,$APP.Dr,function(a){var b=$APP.Ke(a);a=$APP.P.h(b,nD);b=$APP.P.h(b,iD);b=XC.g(b);b=$APP.u(b)?b:$APP.M.h("help",$APP.H(a))||$APP.td(a);return $APP.u(b)?$APP.cm.l($APP.X.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)):pD(a)}],null)],null);try{oD()}catch(a){throw console.error("An error occurred when calling (cherry.internal.cli/init)"),a;};
'use strict';var BD=function(a){var b=/=/;a="/(?:)/"===$APP.x.g(b)?$APP.le.h($APP.Wf($APP.P("",$APP.W.h($APP.x,$APP.E(a)))),""):$APP.Wf($APP.x.g(a).split(b));if(1<$APP.H(a))a:for(;;)if(""===$APP.ud(a))a=$APP.vd(a);else break a;return a},CD=function(a,b){return $APP.u($APP.u(b)?$APP.Ek.h(b,""):b)?$APP.Op(a,new $APP.lo(new $APP.ko(b,$APP.H(b)))):null},ED=function(a){throw $APP.Bm.h(["Unexpected format: ",$APP.x.g(a)].join(""),new $APP.r(null,1,[DD,a],null));},FD=function(a){var b=JSON.parse(a);return $APP.Hd(b)?
b:ED(a)},GD=function(a){var b=JSON.parse(a);return $APP.Ld(b)?b:ED(a)},HD=function(a){var b=JSON.parse(a);return $APP.Md(b)?b:ED(a)},ID=function(a){var b=JSON.parse(a);return"number"===typeof b?b:ED(a)},JD=function(a){return $APP.I.h(":",0<a.length?a.charAt(0):null)?$APP.fi.g($APP.Wh.h(a,1)):$APP.fi.g(a)},KD=function(a){return $APP.xd(a)?$APP.F(a):a},LD=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.I.h("true",a)||$APP.I.h("false",a))var c=FD(a);else{if($APP.Ca(isNaN(a)))var d=
ID(a);else{var e=$APP.I.h(":",b);var f=e?$APP.Uh(/:?[a-zA-Z0-9]+/,a):e;d=$APP.u(f)?JD(a):a}c=d}return c}catch(g){return a}else return a},QD=function(a,b){var c=function(){switch(b instanceof $APP.Q?b.Ba:null){case "boolean":return FD;case "int":case "long":return GD;case "double":return HD;case "number":return ID;case "symbol":return $APP.qi;case "keyword":return JD;case "string":return $APP.ae;case "edn":return MD;case "auto":return LD;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a):
c.call(null,a)}catch(e){d=ND}if($APP.I.h(ND,d))throw $APP.Bm.h(["Coerce failure: cannot transform input ",$APP.Yl.l($APP.V.h([a],0)),b instanceof $APP.Q?" to ":" with ",$APP.x.g(b instanceof $APP.Q?$APP.Gh(b):b)].join(""),new $APP.r(null,2,[OD,a,PD,b],null));return d}return a},RD=function(a,b,c){a=$APP.N.h(a,b);c=$APP.u(a)?a:$APP.xd(c)?$APP.nd(c):null;return $APP.u(c)?$APP.xd(c)?$APP.Jk.h($APP.le,c):c:null},SD=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},TD=function(a,b,c,d,e){d=$APP.u($APP.u(d)?!$APP.xd(d):d)?QD(e,d):LD(e);return $APP.u(c)?$APP.dl.G(a,b,c,d):$APP.X.j(a,b,d)},YD=function(a){return $APP.Xd.j(function(b,c){var d=$APP.J.j(c,0,null);c=$APP.J.j(c,1,null);c=$APP.Ne(c);var e=$APP.N.h(c,UD),f=$APP.N.h(c,VD);c=$APP.N.h(c,$APP.rn);b=$APP.u(e)?$APP.dl.J(b,UD,$APP.X,d,e):b;b=$APP.u(f)?$APP.dl.j(b,WD,function(g){if($APP.Od(g,f))throw $APP.Bm.h(["Conflicting alias ",
$APP.x.g(f)," between ",$APP.x.g($APP.N.h(g,f))," and ",$APP.x.g(d)].join(""),new $APP.r(null,1,[VD,f],null));return $APP.X.j(g,f,d)}):b;return $APP.u(c)?$APP.dl.J(b,XD,$APP.X,d,c):b},$APP.Me,a)},kE=function(){var a=process.argv.slice(2),b=new $APP.r(null,1,[WD,new $APP.r(null,1,[ZD,$D],null)],null),c=aE.g(b);b=$APP.u(c)?$APP.Bl.l($APP.V.h([b,$APP.u(c)?YD(c):null],0)):b;var d=UD.g(b),e=WD.g(b),f=bE.g(b),g=XD.g(b),h=cE.g(b),l=$APP.I.h(!0,dE.g(b))?function(){var y=null==c?null:$APP.vh(c);y=null==y?
null:$APP.Y.h(y,$APP.vh(e));y=null==y?null:$APP.Y.h(y,$APP.vh(d));return null==y?null:$APP.Eh(y)}():dE.g(b);a=$APP.Rh(function(y){var B=$APP.u(h)?null:0==y.lastIndexOf(":",0);return!($APP.u(B)?B:0==y.lastIndexOf("-",0))},a);var m=$APP.J.j(a,0,null),n=$APP.J.j(a,1,null);a=function(){var y=$APP.E(m);return null==y?null:$APP.Wf(y)}();var q=function(){for(var y=$APP.u(g)?g:$APP.Me,B=null,C=null,K=$APP.u(h)?eE:null,S=$APP.E(n);;){if($APP.Ca(S))return new $APP.T(null,3,5,$APP.U,[y,B,C],null);var ca=$APP.F(S),
oa=RD(f,B,$APP.N.h(d,B)),xa=0<ca.length?ca.charAt(0):null,nb=$APP.I.h(xa,"-"),Hb=function(){var Mc=K;return $APP.u(Mc)?Mc:nb?eE:null}(),la=$APP.I.h(":",xa),Mb=$APP.Ek.h(eE,Hb)&&la&&($APP.Ca(B)||$APP.I.h(C,B));xa=function(){var Mc=Hb;return $APP.u(Mc)?Mc:Mb?fE:null}();if(nb||Mb){var Pa=(la=0==ca.lastIndexOf("--",0))&&$APP.I.h("--",ca);if(Pa){var gd=$APP.G(S);return new $APP.T(null,3,5,$APP.U,[function(){var Mc=y;return gd?$APP.Dk.G(Mc,$APP.bl,new $APP.T(null,2,5,$APP.U,[gE,hE],null),$APP.Wf(gd)):Mc}(),
B,C],null)}Pa=la?$APP.Wh.h(ca,2):$APP.Un(ca,/^(:|-|)/,"");la=la?BD(Pa):new $APP.T(null,1,5,$APP.U,[Pa],null);Pa=$APP.J.j(la,0,null);la=$APP.J.j(la,1,null);Pa=$APP.fi.g(Pa);Pa=$APP.N.j(e,Pa,Pa);if($APP.u($APP.u(l)?$APP.Ca($APP.N.h(l,Pa)):l))throw $APP.Bm.h(["Unknown option ",$APP.x.g(ca)].join(""),new $APP.r(null,1,[dE,l],null));$APP.u(la)?(B=SD(y,B,C,oa),C=Pa,S=$APP.P(la,$APP.Ic(S)),y=B,B=C,C=null,K=xa):(B=SD(y,B,C,oa),ca=Pa,S=$APP.G(S),y=B,B=ca,K=xa)}else{var wc=$APP.N.h(d,B);if(Pa=$APP.I.h(iE,wc)&&
$APP.Ca(C)&&$APP.Ek.h(ca,"true")&&$APP.Ek.h(ca,"false")||$APP.I.h(C,B)&&$APP.Ca(oa))return new $APP.T(null,3,5,$APP.U,[$APP.Dk.G(y,$APP.bl,new $APP.T(null,2,5,$APP.U,[gE,hE],null),$APP.Wf(S)),B,null],null);C=TD(y,B,oa,KD(wc),ca);ca=$APP.I.h(fE,xa)&&la?null:B;oa=$APP.I.h(fE,xa)&&la?null:B;S=$APP.G(S);y=C;B=ca;C=oa;K=xa}}}();b=$APP.J.j(q,0,null);var t=$APP.J.j(q,1,null);q=$APP.J.j(q,2,null);var w=RD(f,t,$APP.N.h(QD,t));b=SD(b,t,q,w);return $APP.u(a)?$APP.Dk.G(b,$APP.bl,new $APP.T(null,2,5,$APP.U,[gE,
jE],null),a):b},mE=function(){var a=kE(),b=gE.g($APP.td(a));return $APP.X.j(b,lE,$APP.Vj.h(a,gE))},nE=function(a,b){var c=$APP.wf($APP.H(a),b);b=$APP.J.j(c,0,null);c=$APP.J.j(c,1,null);return $APP.I.h(b,a)?c:null},rE=function(){var a=oE,b=mE(),c=$APP.Ne(b),d=$APP.N.h(c,jE),e=$APP.N.h(c,lE);$APP.Xd.j(function(f,g){f=$APP.Ne(g);var h=$APP.N.h(f,jE),l=$APP.N.h(f,$APP.Dr),m=$APP.N.h(f,pE),n=nE(h,d);if($APP.u(n)){var q=function(){var y=null==n?null:$APP.E(n);return null==y?null:$APP.Wf(y)}();f=$APP.u($APP.u(q)?
m:q)?function(){var y=$APP.H(q),B=$APP.H(m);return new $APP.T(null,2,5,$APP.U,[$APP.vf.h(y<B?y:B,q),$APP.Hh(m,q)],null)}():new $APP.T(null,2,5,$APP.U,[q,null],null);var t=$APP.J.j(f,0,null);f=$APP.J.j(f,1,null);var w=$APP.u(f)?$APP.Bl.l($APP.V.h([e,f],0)):e;return $APP.Uc(function(){var y=$APP.X.l(c,qE,t,$APP.V.h([lE,w,$APP.pB,h],0));return l.g?l.g(y):l.call(null,y)}())}return null},null,a)},sE=function(a){a=$APP.E(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.$(null,d);$APP.cm.l($APP.V.h(["Transpiling CLJS file:",
e],0));e=$APP.Cs(new $APP.r(null,1,[$APP.xs,e],null));e=$APP.Ne(e);e=$APP.N.h(e,$APP.ys);$APP.cm.l($APP.V.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.E(a))$APP.Fd(a)?(c=$APP.ec(a),a=$APP.fc(a),b=c,c=$APP.H(c)):(e=$APP.F(a),$APP.cm.l($APP.V.h(["Transpiling CLJS file:",e],0)),b=$APP.Cs(new $APP.r(null,1,[$APP.xs,e],null)),b=$APP.Ne(b),b=$APP.N.h(b,$APP.ys),$APP.cm.l($APP.V.h(["Wrote JS file:",b],0)),a=$APP.G(a),b=null,c=0),d=0;else return null},MD=function MD(a){switch(arguments.length){case 1:return MD.g(arguments[0]);
case 2:return MD.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.x.g(arguments.length)].join(""));}};MD.g=function(a){return CD(new $APP.r(null,3,[$APP.Np,$APP.rb($APP.rD),$APP.rn,$APP.rb($APP.qD),$APP.Fo,null],null),a)};MD.h=function(a,b){return CD($APP.dl.j($APP.Bl.l($APP.V.h([new $APP.r(null,1,[$APP.rn,$APP.rb($APP.qD)],null),a],0)),$APP.Np,function(c){return $APP.Bl.l($APP.V.h([$APP.rb($APP.rD),c],0))}),b)};MD.v=2;
var aE=new $APP.Q(null,"spec","spec",347520401),iE=new $APP.Q(null,"boolean","boolean",-1919418404),lE=new $APP.Q(null,"opts","opts",155075701),$D=new $APP.Q(null,"help","help",-439233446),PD=new $APP.Q(null,"coerce-fn","coerce-fn",-821146515),cE=new $APP.Q(null,"no-keyword-opts","no-keyword-opts",761286018),qE=new $APP.Q(null,"rest-cmds","rest-cmds",-423198324),fE=new $APP.Q(null,"keywords","keywords",1526959054),jE=new $APP.Q(null,"cmds","cmds",-1841503952),WD=new $APP.Q(null,"aliases","aliases",
1346874714),bE=new $APP.Q(null,"collect","collect",-284321549),gE=new $APP.Q("org.babashka","cli","org.babashka/cli",1162430315),ND=new $APP.Q("babashka.cli","error","babashka.cli/error",-939678701),pE=new $APP.Q(null,"cmds-opts","cmds-opts",-390130362),XD=new $APP.Q(null,"exec-args","exec-args",-1860766354),OD=new $APP.Q(null,"input","input",556931961),UD=new $APP.Q(null,"coerce","coerce",1917884504),dE=new $APP.Q(null,"closed","closed",-919675359),ZD=new $APP.Q(null,"h","h",1109658740),DD=new $APP.Q(null,
"s","s",1705939918),eE=new $APP.Q(null,"hyphens","hyphens",2113533609),VD=new $APP.Q(null,"alias","alias",-2039751630),hE=new $APP.Q(null,"args","args",1315556576);var oE=new $APP.T(null,3,5,$APP.U,[new $APP.r(null,3,[jE,new $APP.T(null,1,5,$APP.U,["run"],null),$APP.Dr,function(a){a=$APP.Ne(a);a=$APP.N.h(a,lE);a=$APP.Ne(a);a=$APP.N.h(a,$APP.xo);a=$APP.Cs(new $APP.r(null,1,[$APP.xs,a],null));a=$APP.Ne(a);a=$APP.N.h(a,$APP.ys);return shadow_esm_import([$APP.x.g(process.cwd()),"/",$APP.x.g(a)].join(""))},pE,new $APP.T(null,1,5,$APP.U,[$APP.xo],null)],null),new $APP.r(null,2,[jE,new $APP.T(null,1,5,$APP.U,["transpile"],null),$APP.Dr,sE],null),new $APP.r(null,2,
[jE,$APP.Vf,$APP.Dr,function(a){var b=$APP.Ne(a);a=$APP.N.h(b,qE);b=$APP.N.h(b,lE);b=$D.g(b);b=$APP.u(b)?b:$APP.I.h("help",$APP.F(a))||$APP.wd(a);return $APP.u(b)?$APP.cm.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)):sE(a)}],null)],null);try{rE()}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.20",
"version": "0.0.0-alpha.21",
"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