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

squint-cljs

Package Overview
Dependencies
Maintainers
1
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.0.7 to 0.0.8

node-api.js

9

core.js

@@ -223,3 +223,7 @@ // @ts-check

for (const x of rest) {
m.set(x[0], x[1]);
if (!(x instanceof Array))
iterable(x).forEach((kv) => {
m.set(kv[0], kv[1]);
});
else m.set(x[0], x[1]);
}

@@ -237,3 +241,4 @@

for (const x of rest) {
o2[x[0]] = x[1];
if (!(x instanceof Array)) Object.assign(o2, x);
else o2[x[0]] = x[1];
}

@@ -240,0 +245,0 @@

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

const shadow_esm_import = function(x) { return import(x) };
import*as esm_import$fs from"fs";import*as esm_import$readline from"readline";import*as esm_import$squint_cljs$core from"squint-cljs/core.js";import*as esm_import$process from"process";import*as esm_import$path from"path";
import*as esm_import$fs from"fs";import*as esm_import$readline from"readline";import*as esm_import$squint_cljs$core from"squint-cljs/core.js";import*as esm_import$process from"process";import*as esm_import$url from"url";import*as esm_import$path from"path";
var $8=function(a,b){return $APP.Je(a)&&$APP.Je(b)?$APP.np.j($APP.J.g([a,b],0)):$APP.Ae(a)&&($APP.He(a)||$APP.Be(a))&&$APP.Ae(b)&&($APP.He(b)||$APP.Be(b))?$APP.xj.g(a,b):b},a9=function(a,b){return $APP.qf.l(function(c,d){return $APP.op.j($8,$APP.J.g([c,d],0))},a,b)},c9=function(a){throw $APP.vq.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.p(null,1,[b9,a],null));},d9=function(a){var b=JSON.parse(a);return $APP.Te(b)?b:c9(a)},e9=function(a){var b=JSON.parse(a);return $APP.Ze(b)?b:c9(a)},

@@ -11,6 +11,6 @@ f9=function(a){var b=JSON.parse(a);return $APP.df(b)?b:c9(a)},g9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:c9(a)},h9=function(a){return $APP.ee.g(":",0<a.length?a.charAt(0):null)?$APP.nl.h($APP.cl.g(a,1)):$APP.nl.h(a)},i9=function(a){return $APP.Ae(a)?$APP.x(a):a},j9=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.ee.g("true",a)||$APP.ee.g("false",a))var c=d9(a);else{if($APP.bb(isNaN(a)))var d=g9(a);else{var e=$APP.ee.g(":",b);var f=e?$APP.Zk(/:?[a-zA-Z0-9]+/,

$APP.Pp.j($APP.J.g([a],0)),b instanceof $APP.D?" to ":" with ",$APP.t.h(b instanceof $APP.D?$APP.Lk(b):b)].join(""),new $APP.p(null,2,[l9,a,m9,b],null));return d}return a},o9=function(a,b,c){a=$APP.ef.g(a,b);c=$APP.r(a)?a:$APP.Ae(c)?$APP.pe(c):null;return $APP.r(c)?$APP.Ae(c)?$APP.wo.g($APP.Bg,c):c:null},p9=function(a,b,c,d){return $APP.Ak.g(b,c)?(c=$APP.jf(a,b),$APP.r(c)?($APP.A.l(c,0,null),c=$APP.A.l(c,1,null),$APP.Bk.l(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.Bk.l(a,b,$APP.r(d)?
d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},q9=function(a,b,c,d,e){d=$APP.r($APP.r(d)?!$APP.Ae(d):d)?n9(e,d):j9(e);return $APP.r(c)?$APP.Qo.B(a,b,c,d):$APP.Bk.l(a,b,d)},v9=function(a){return $APP.qf.l(function(b,c){var d=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);var e=$APP.uh(c),f=$APP.ef.g(e,r9),l=$APP.ef.g(e,s9);c=$APP.ef.g(e,$APP.Bt);var k=$APP.ef.g(e,$APP.KE);e=$APP.ef.g(e,t9);b=$APP.r(f)?$APP.Qo.G(b,r9,$APP.Bk,d,f):b;b=$APP.r(l)?$APP.Qo.l(b,s9,function(m){if($APP.gf(m,l))throw $APP.vq.g(["Conflicting alias ",
$APP.t.h(l)," between ",$APP.t.h($APP.ef.g(m,l))," and ",$APP.t.h(d)].join(""),new $APP.p(null,1,[s9,l],null));return $APP.Bk.l(m,l,d)}):b;b=$APP.r(k)?$APP.Qo.l(b,$APP.KE,$APP.wo.g(function(m){return $APP.Bg.g(m,d)},$APP.Fk)):b;b=$APP.r(e)?$APP.Qo.G(b,t9,$APP.Bk,d,e):b;return $APP.r(c)?$APP.Qo.G(b,u9,$APP.Bk,d,c):b},$APP.th,a)},z9=function(a,b){b=$APP.uh(b);var c=$APP.ef.g(b,w9);b=$APP.Wk(function(d){var e=$APP.r(c)?null:$APP.nr(d,":");return!($APP.r(e)?e:$APP.nr(d,"-"))},a);a=$APP.A.l(b,0,null);
d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},q9=function(a,b,c,d,e){d=$APP.r($APP.r(d)?!$APP.Ae(d):d)?n9(e,d):j9(e);return $APP.r(c)?$APP.Qo.B(a,b,c,d):$APP.Bk.l(a,b,d)},v9=function(a){return $APP.qf.l(function(b,c){var d=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);var e=$APP.uh(c),f=$APP.ef.g(e,r9),l=$APP.ef.g(e,s9);c=$APP.ef.g(e,$APP.Bt);var k=$APP.ef.g(e,$APP.LE);e=$APP.ef.g(e,t9);b=$APP.r(f)?$APP.Qo.G(b,r9,$APP.Bk,d,f):b;b=$APP.r(l)?$APP.Qo.l(b,s9,function(m){if($APP.gf(m,l))throw $APP.vq.g(["Conflicting alias ",
$APP.t.h(l)," between ",$APP.t.h($APP.ef.g(m,l))," and ",$APP.t.h(d)].join(""),new $APP.p(null,1,[s9,l],null));return $APP.Bk.l(m,l,d)}):b;b=$APP.r(k)?$APP.Qo.l(b,$APP.LE,$APP.wo.g(function(m){return $APP.Bg.g(m,d)},$APP.Fk)):b;b=$APP.r(e)?$APP.Qo.G(b,t9,$APP.Bk,d,e):b;return $APP.r(c)?$APP.Qo.G(b,u9,$APP.Bk,d,c):b},$APP.th,a)},z9=function(a,b){b=$APP.uh(b);var c=$APP.ef.g(b,w9);b=$APP.Wk(function(d){var e=$APP.r(c)?null:$APP.nr(d,":");return!($APP.r(e)?e:$APP.nr(d,"-"))},a);a=$APP.A.l(b,0,null);
b=$APP.A.l(b,1,null);return new $APP.p(null,2,[x9,a,y9,b],null)},B9=function(a,b){if($APP.r(b))if($APP.w(a)){var c=$APP.de(a),d=$APP.ih(c,b);c=c<d?c:d;a=new $APP.F(null,2,5,$APP.G,[$APP.N.g($APP.Io.g(b,a),$APP.hi.g(c,a)),$APP.hi.g(c,b)],null)}else a=new $APP.F(null,2,5,$APP.G,[a,b],null);else a=new $APP.F(null,2,5,$APP.G,[a,b],null);b=a;a=$APP.A.l(b,0,null);b=$APP.A.l(b,1,null);return new $APP.p(null,2,[y9,a,A9,b],null)},S9=function(a,b){function c(eb){eb=$APP.np.j($APP.J.g([new $APP.p(null,2,[C9,
d,$APP.hs,D9],null),eb],0));return H.h?H.h(eb):H.call(null,eb)}var d=C9.h(b),e=$APP.r(d)?a9(b,$APP.J.g([v9(d)],0)):b,f=r9.h(e),l=function(){var eb=s9.h(e);return $APP.r(eb)?eb:$APP.XI.h(e)}(),k=E9.h(e),m=$APP.KE.h(e),h=u9.h(e),q=w9.h(e),n=function(){var eb=F9.h(e);return $APP.r(eb)?eb:G9.h(e)}(),v=$APP.ee.g(!0,n)?function(){var eb=null==d?null:$APP.wk(d);eb=null==eb?null:$APP.N.g(eb,$APP.wk(f));return null==eb?null:$APP.Jk(eb)}():null==n?null:$APP.Jk(n),C=t9.h(e),H=function(){var eb=H9.h(e);return $APP.r(eb)?
d,$APP.hs,D9],null),eb],0));return H.h?H.h(eb):H.call(null,eb)}var d=C9.h(b),e=$APP.r(d)?a9(b,$APP.J.g([v9(d)],0)):b,f=r9.h(e),l=function(){var eb=s9.h(e);return $APP.r(eb)?eb:$APP.XI.h(e)}(),k=E9.h(e),m=$APP.LE.h(e),h=u9.h(e),q=w9.h(e),n=function(){var eb=F9.h(e);return $APP.r(eb)?eb:G9.h(e)}(),v=$APP.ee.g(!0,n)?function(){var eb=null==d?null:$APP.wk(d);eb=null==eb?null:$APP.N.g(eb,$APP.wk(f));return null==eb?null:$APP.Jk(eb)}():null==n?null:$APP.Jk(n),C=t9.h(e),H=function(){var eb=H9.h(e);return $APP.r(eb)?
eb:function(bc){bc=$APP.uh(bc);var yc=$APP.ef.g(bc,I9);throw $APP.vq.g(yc,bc);}}(),O=z9(a,null),P=$APP.uh(O),V=$APP.ef.g(P,x9),aa=$APP.ef.g(P,y9),da=function(){var eb=A9.h(e);eb=$APP.r(eb)?eb:J9.h(e);return $APP.r(eb)?B9(V,eb):new $APP.p(null,2,[A9,null,y9,aa],null)}(),ia=$APP.uh(da),na=$APP.ef.g(ia,y9),ca=$APP.ef.g(ia,A9),E=$APP.Ak.g(na,aa)?new $APP.F(null,2,5,$APP.G,[null,$APP.N.g(na,aa)],null):new $APP.F(null,2,5,$APP.G,[V,aa],null),z=$APP.A.l(E,0,null),ba=$APP.A.l(E,1,null),I=function(){for(var eb=

@@ -22,4 +22,4 @@ $APP.r(h)?h:$APP.th,bc=null,yc=null,Wf=$APP.r(q)?K9:null,sd=$APP.w(ba),Xf=ca;;){if($APP.bb(sd))return new $APP.F(null,3,5,$APP.G,[eb,bc,yc],null);var Bc=$APP.x(sd),Og=Bc instanceof $APP.D;if(Og){var Pc=p9(eb,bc,yc,null),Cb=yc,Yf=Wf;sd=$APP.y(sd);eb=Pc;bc=Bc;yc=Cb;Wf=Yf}else{Pc=Og?null:o9(k,bc,$APP.ef.g(f,bc));Cb=Og?null:0<Bc.length?Bc.charAt(0):null;var dk=Og?null:$APP.ee.g(Cb,"-"),ek=function(){var zc=Wf;return $APP.r(zc)?zc:$APP.r(dk)?K9:null}(),gj=Og?null:$APP.ee.g(":",Cb),fk=Og?null:function(){var zc=

sd=$APP.y(sd);eb=Qg;bc=Pc;yc=Bc;Wf=Cb}}}}(),K=$APP.A.l(I,0,null),ea=$APP.A.l(I,1,null),ja=$APP.A.l(I,2,null),ha=o9(k,ea,$APP.ef.g(n9,ea)),pa=function(){var eb=p9(K,ea,ja,ha);return $APP.w(z)?$APP.ro.B(eb,$APP.Po,new $APP.F(null,2,5,$APP.G,[D9,y9],null),function(bc){return $APP.xj.g($APP.sf(z),bc)}):eb}();if($APP.r(v)){a=$APP.w($APP.wk(pa));b=null;for(var ra=0,ua=0;;)if(ua<ra){var va=b.S(null,ua);$APP.gf(v,va)||c(new $APP.p(null,4,[N9,F9,I9,["Unknown option: ",$APP.t.h(va)].join(""),F9,v,O9,va],null));
ua+=1}else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.gf(v,a)||c(new $APP.p(null,4,[N9,F9,I9,["Unknown option: ",$APP.t.h(a)].join(""),F9,v,O9,a],null)),a=$APP.y(b),b=null,ra=0),ua=0;else break}if($APP.r(m))for(a=$APP.w(m),b=null,ua=ra=0;;)if(ua<ra)va=b.S(null,ua),$APP.r($APP.jf(pa,va))||c(new $APP.p(null,4,[N9,$APP.KE,I9,["Required option: ",$APP.t.h(va)].join(""),$APP.KE,m,O9,va],null)),ua+=1;else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),
ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.r($APP.jf(pa,a))||c(new $APP.p(null,4,[N9,$APP.KE,I9,["Required option: ",$APP.t.h(a)].join(""),$APP.KE,m,O9,a],null)),a=$APP.y(b),b=null,ra=0),ua=0;else break;if($APP.r(C))for(var Aa=$APP.w(C),Ea=null,xa=0,wa=0;;)if(wa<xa){var Ka=Ea.S(null,wa),Pa=$APP.A.l(Ka,0,null),Wa=$APP.A.l(Ka,1,null),hb=function(){var eb=(eb=$APP.Je(Wa))?Q9.h(Wa):eb;return $APP.r(eb)?eb:Wa}(),mb=$APP.jf(pa,Pa);if($APP.r(mb)){var Jb=mb,Xb=$APP.A.l(Jb,0,null),rc=$APP.A.l(Jb,
ua+=1}else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.gf(v,a)||c(new $APP.p(null,4,[N9,F9,I9,["Unknown option: ",$APP.t.h(a)].join(""),F9,v,O9,a],null)),a=$APP.y(b),b=null,ra=0),ua=0;else break}if($APP.r(m))for(a=$APP.w(m),b=null,ua=ra=0;;)if(ua<ra)va=b.S(null,ua),$APP.r($APP.jf(pa,va))||c(new $APP.p(null,4,[N9,$APP.LE,I9,["Required option: ",$APP.t.h(va)].join(""),$APP.LE,m,O9,va],null)),ua+=1;else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),
ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.r($APP.jf(pa,a))||c(new $APP.p(null,4,[N9,$APP.LE,I9,["Required option: ",$APP.t.h(a)].join(""),$APP.LE,m,O9,a],null)),a=$APP.y(b),b=null,ra=0),ua=0;else break;if($APP.r(C))for(var Aa=$APP.w(C),Ea=null,xa=0,wa=0;;)if(wa<xa){var Ka=Ea.S(null,wa),Pa=$APP.A.l(Ka,0,null),Wa=$APP.A.l(Ka,1,null),hb=function(){var eb=(eb=$APP.Je(Wa))?Q9.h(Wa):eb;return $APP.r(eb)?eb:Wa}(),mb=$APP.jf(pa,Pa);if($APP.r(mb)){var Jb=mb,Xb=$APP.A.l(Jb,0,null),rc=$APP.A.l(Jb,
1,null);if(!$APP.r(hb.h?hb.h(rc):hb.call(null,rc))){var zb=function(){var eb=R9.h(Wa);return $APP.r(eb)?eb:function(){return function(bc){var yc=$APP.uh(bc);bc=$APP.ef.g(yc,O9);yc=$APP.ef.g(yc,P9);return["Invalid value for option ",$APP.t.h(bc),": ",$APP.t.h(yc)].join("")}}(Aa,Ea,xa,wa,eb,Jb,Xb,rc,mb,hb,Ka,Pa,Wa,d,e,f,l,k,m,h,q,n,v,C,H,c,O,P,V,aa,da,ia,na,ca,E,z,ba,I,K,ea,ja,ha,pa)}();c(new $APP.p(null,5,[N9,t9,I9,function(){var eb=new $APP.p(null,2,[O9,Pa,P9,rc],null);return zb.h?zb.h(eb):zb.call(null,

@@ -29,5 +29,5 @@ eb)}(),t9,C,O9,Pa,P9,rc],null))}}wa+=1}else{var Ne=$APP.w(Aa);if(Ne){var Mg=Ne;if($APP.Me(Mg))ra=$APP.Yc(Mg),a=$APP.Zc(Mg),b=ra,ra=$APP.de(ra),Aa=a,Ea=b,xa=ra;else{var ak=$APP.x(Mg),ej=$APP.A.l(ak,0,null),xh=$APP.A.l(ak,1,null),fj=function(){var eb=(eb=$APP.Je(xh))?Q9.h(xh):eb;return $APP.r(eb)?eb:xh}(),bk=$APP.jf(pa,ej);if($APP.r(bk)){var ck=bk,Um=$APP.A.l(ck,0,null),hc=$APP.A.l(ck,1,null);if(!$APP.r(fj.h?fj.h(hc):fj.call(null,hc))){var Ng=function(){var eb=R9.h(xh);return $APP.r(eb)?eb:function(){return function(bc){var yc=

return $APP.Bk.l(b,$APP.kJ,$APP.In.g(a,D9))},U9=function(a,b){var c=$APP.ni($APP.de(a),b);b=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);return $APP.ee.g(b,a)?c:null},Y9=function(a,b){$APP.bi(V9,!1);a.setPrompt([$APP.t.h($APP.uy),"\x3d\x3e "].join(""));a.prompt();return $APP.oG($APP.ec(W9))?null:X9.g?X9.g(b,a):X9.call(null,b,a)},Z9=function(a){var b=$APP.Sr(a);a=$APP.Tr(a);var c=$APP.nG($APP.ec(W9));b=$APP.hi.g(b-1,c);c=$APP.w(b);b=$APP.x(c);c=$APP.y(c);a=$APP.r(b)?$APP.cl.g(b,a):null;$APP.bi(W9,$APP.dw.g("\n",
$APP.Eg(a,c)))},$9=function(a){var b=[".repl/",$APP.t.h($APP.$p.v()),".mjs"].join("");$APP.r(esm_import$fs.existsSync(".repl"))||esm_import$fs.mkdirSync(".repl");esm_import$fs.writeFileSync(b,a);return shadow_esm_import(esm_import$path.resolve(esm_import$process.cwd(),b)).finally(function(){return esm_import$fs.unlinkSync(b)})},b$=function(a,b,c){var d=function(){var f=$APP.uy;$APP.uy=$APP.ec(a$);try{return $APP.zy($APP.Pp.j($APP.J.g([a],0)),null)}finally{$APP.uy=f}}(),e=$APP.uh(d);d=$APP.ef.g(e,
$APP.yy);e=$APP.ef.g(e,$APP.R);$APP.bi(a$,e);return $9(d).then(function(){esm_import$squint_cljs$core.println(globalThis._repl);return Y9(b,c)}).catch(function(f){esm_import$squint_cljs$core.println(f);return Y9(b,c)})},X9=function(a,b){if($APP.r(function(){var e=$APP.ec(V9);return $APP.r(e)?e:$APP.oG($APP.ec(W9))}()))return null;$APP.bi(V9,!0);var c=$APP.Tv($APP.ec(W9)),d=function(){try{return $APP.Vv(c,$APP.Sv($APP.th))}catch(f){var e=f;if(-1!=$APP.xm(e).indexOf("EOF while reading"))return c$;Z9(c);
$APP.Wp.j($APP.J.g([$APP.t.h(e)],0));return d$}}();if($APP.ee.g(d$,d))return Y9(b,a);if($APP.ee.g(c$,d))return $APP.bi(V9,!1);Z9(c);return $APP.ee.g($APP.Uv,d)?$APP.bi(V9,!1):b$(d,b,a)},e$=function(a){a.on("line",function(b){$APP.Tl.B(W9,$APP.t,b,"\n");return X9(null,a)})},g$=function(a,b){return $APP.r(f$.h(a))?($APP.Up.j($APP.J.g(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"],0)),$APP.Up(),$APP.Up.j($APP.J.g(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files"],
$APP.Eg(a,c)))},$9=function(a){var b=[".repl/",$APP.t.h($APP.$p.v()),".mjs"].join("");$APP.r(esm_import$fs.existsSync(".repl"))||esm_import$fs.mkdirSync(".repl");esm_import$fs.writeFileSync(b,a);return shadow_esm_import($APP.t.h(esm_import$url.pathToFileURL(esm_import$path.resolve(esm_import$process.cwd(),b)))).finally(function(){return esm_import$fs.unlinkSync(b)})},b$=function(a,b,c){var d=function(){var f=$APP.uy;$APP.uy=$APP.ec(a$);try{return $APP.zy($APP.Pp.j($APP.J.g([a],0)),null)}finally{$APP.uy=
f}}(),e=$APP.uh(d);d=$APP.ef.g(e,$APP.yy);e=$APP.ef.g(e,$APP.R);$APP.bi(a$,e);return $9(d).then(function(){esm_import$squint_cljs$core.println(globalThis._repl);return Y9(b,c)}).catch(function(f){esm_import$squint_cljs$core.println(f);return Y9(b,c)})},X9=function(a,b){if($APP.r(function(){var e=$APP.ec(V9);return $APP.r(e)?e:$APP.oG($APP.ec(W9))}()))return null;$APP.bi(V9,!0);var c=$APP.Tv($APP.ec(W9)),d=function(){try{return $APP.Vv(c,$APP.Sv($APP.th))}catch(f){var e=f;if(-1!=$APP.xm(e).indexOf("EOF while reading"))return c$;
Z9(c);$APP.Wp.j($APP.J.g([$APP.t.h(e)],0));return d$}}();if($APP.ee.g(d$,d))return Y9(b,a);if($APP.ee.g(c$,d))return $APP.bi(V9,!1);Z9(c);return $APP.ee.g($APP.Uv,d)?$APP.bi(V9,!1):b$(d,b,a)},e$=function(a){a.on("line",function(b){$APP.Tl.B(W9,$APP.t,b,"\n");return X9(null,a)})},g$=function(a,b){return $APP.r(f$.h(a))?($APP.Up.j($APP.J.g(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"],0)),$APP.Up(),$APP.Up.j($APP.J.g(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files"],
0))):$APP.qf.l(function(c,d){return Promise.resolve(c).then(function(){$APP.Up.j($APP.J.g(["[squint] Compiling CLJS file:",d],0));return $APP.HM($APP.Bk.l(a,$APP.DM,d))}).then(function(e){e=$APP.uh(e);e=$APP.ef.g(e,$APP.FM);$APP.Up.j($APP.J.g(["[squint] Wrote JS file:",e],0));return e})},null,b)},K9=new $APP.D(null,"hyphens","hyphens",2113533609),C9=new $APP.D(null,"spec","spec",347520401),r9=new $APP.D(null,"coerce","coerce",1917884504),F9=new $APP.D(null,"restrict","restrict",-1071101511),L9=new $APP.D(null,

@@ -38,3 +38,3 @@ "keywords","keywords",1526959054),d$=new $APP.D("squint.repl.node","continue","squint.repl.node/continue",1558138730),I9=new $APP.D(null,"msg","msg",-1386103444),h$=new $APP.D(null,"show","show",-576705889),M9=new $APP.D(null,"boolean","boolean",-1919418404),l9=new $APP.D(null,"input","input",556931961),i$=new $APP.D(null,"rest-cmds","rest-cmds",-423198324),D9=new $APP.D("org.babashka","cli","org.babashka/cli",1162430315),A9=new $APP.D(null,"args-\x3eopts","args-\x3eopts",964391046),s9=new $APP.D(null,

"cmds-opts","cmds-opts",-390130362),k$=new $APP.D(null,"h","h",1109658740),l$=new $APP.D(null,"e","e",1381269198),x9=new $APP.D(null,"cmds","cmds",-1841503952);var W9=$APP.Sl.h(""),V9=$APP.Sl.h(!1),m$,n$=process.stdout.isTTY;m$=$APP.r(n$)?process.stdin.setRawMode:n$;process.binding("contextify");var a$=$APP.Sl.h($APP.uy),o$=function o$(a){switch(arguments.length){case 0:return o$.v();case 1:return o$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};o$.v=function(){return o$.h(null)};
o$.h=function(){$APP.uy=$APP.lA;$APP.zw=$APP.gw=!0;$APP.r(m$)&&process.stdin.setRawMode(!0);return $9("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});e$(b);b.setPrompt([$APP.t.h($APP.uy),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};o$.m=1;var p$=new $APP.F(null,4,5,$APP.G,[new $APP.p(null,3,[x9,new $APP.F(null,1,5,$APP.G,["run"],null),$APP.nv,function(a){a=$APP.uh(a);a=$APP.ef.g(a,$APP.kJ);var b=$APP.uh(a),c=$APP.ef.g(b,$APP.ks);b=$APP.ef.g(b,f$);if($APP.r(b))return null;$APP.Up.j($APP.J.g(["[squint] Running",c],0));return $APP.HM($APP.Bk.l(a,$APP.DM,c)).then(function(d){d=$APP.uh(d);d=$APP.ef.g(d,$APP.FM);d=$APP.r(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},J9,
o$.h=function(){$APP.uy=$APP.mA;$APP.zw=$APP.gw=!0;$APP.r(m$)&&process.stdin.setRawMode(!0);return $9("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});e$(b);b.setPrompt([$APP.t.h($APP.uy),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};o$.m=1;var p$=new $APP.F(null,4,5,$APP.G,[new $APP.p(null,3,[x9,new $APP.F(null,1,5,$APP.G,["run"],null),$APP.nv,function(a){a=$APP.uh(a);a=$APP.ef.g(a,$APP.kJ);var b=$APP.uh(a),c=$APP.ef.g(b,$APP.ks);b=$APP.ef.g(b,f$);if($APP.r(b))return null;$APP.Up.j($APP.J.g(["[squint] Running",c],0));return $APP.HM($APP.Bk.l(a,$APP.DM,c)).then(function(d){d=$APP.uh(d);d=$APP.ef.g(d,$APP.FM);d=$APP.r(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},J9,
new $APP.F(null,1,5,$APP.G,[$APP.ks],null)],null),new $APP.p(null,3,[x9,new $APP.F(null,1,5,$APP.G,["compile"],null),r9,new $APP.p(null,2,[$APP.qy,M9,$APP.ry,M9],null),$APP.nv,function(a){var b=$APP.uh(a);a=$APP.ef.g(b,i$);b=$APP.ef.g(b,$APP.kJ);return g$(b,a)}],null),new $APP.p(null,2,[x9,new $APP.F(null,1,5,$APP.G,["repl"],null),$APP.nv,o$],null),new $APP.p(null,2,[x9,$APP.wi,$APP.nv,function(a){a=$APP.uh(a);var b=$APP.ef.g(a,i$),c=$APP.ef.g(a,$APP.kJ);a=l$.h(c);if($APP.r(a)){if($APP.r(f$.h(c)))return $APP.Up.j($APP.J.g(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"],

@@ -41,0 +41,0 @@ 0));a=$APP.hG.h(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(h$.h(c))&&$APP.Up.j($APP.J.g([a],0));if($APP.r(j$.h(c)))return null;a=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return shadow_esm_import(a).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=f$.h(c);return $APP.r(f)?f:$APP.ee.g("help",$APP.x(b))||$APP.ze(b)}())?

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

"sideEffects": false,
"version": "0.0.7",
"version": "0.0.8",
"files": [

@@ -13,3 +13,3 @@ "core.js",

"index.js",
"node.js"
"node-api.js"
],

@@ -32,5 +32,4 @@ "bin": {

"shadow-cljs": "^2.19.8",
"source-maps": "^1.0.12",
"squint-cljs": "."
}
}

@@ -13,5 +13,2 @@ ## Squint

Squint was previously called ClavaScript and the name may appear in some places
in this README. Please file an issue or PR if you spot one.
## Quickstart

@@ -60,2 +57,8 @@

## Talk
[![ClojureScript re-imagined at Dutch Clojure Days 2022](https://img.youtube.com/vi/oCd74TQ-gf4/0.jpg)](https://www.youtube.com/watch?v=oCd74TQ-gf4)
([slides](https://www.dropbox.com/s/955jgzy6hgpx67r/dcd2022-cljs-reimagined.pdf?dl=0))
## Differences with ClojureScript

@@ -75,2 +78,4 @@

If you are looking for ClojureScrip semantics, take a look at [cherry](https://github.com/squint-cljs/cherry).
### Seqs

@@ -178,29 +183,5 @@

## Roadmap
In arbitrary order, these features are planned:
- Macros
- REPL
- Protocols
## Presentations
See [slides](https://www.dropbox.com/s/955jgzy6hgpx67r/dcd2022-cljs-reimagined.pdf?dl=0) of a presentation given at Dutch Clojure Days 2022 about cherry and squint.
## Development
Development happens in [compiler-common](https://github.com/squint-cljs/compiler-common).
## Core team
The core team consists of:
- Michiel Borkent ([@borkdude](https://github.com/borkdude))
- Will Acton ([@lilactown](https://github.com/lilactown))
- Cora Sutton ([@corasaurus-hex](https://github.com/corasaurus-hex))
License
=======
Squint is licensed under the EPL, the same as Clojure core and [Scriptjure](https://github.com/arohner/scriptjure). See epl-v10.html in the root directory for more information.
Squint is licensed under the EPL. See epl-v10.html in the root directory for more information.

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