squint-cljs
Advanced tools
Comparing version 0.0.8 to 0.0.9
17
core.js
@@ -276,10 +276,19 @@ // @ts-check | ||
export function dissoc_BANG_(m, k) { | ||
delete m[k]; | ||
export function dissoc_BANG_(m, ...ks) { | ||
for (const k of ks) { | ||
delete m[k]; | ||
} | ||
return m; | ||
} | ||
export function dissoc(m, k) { | ||
export function dissoc(m, ...ks) { | ||
let m2 = { ...m }; | ||
return dissoc_BANG_(m2, k); | ||
for (const k of ks) { | ||
delete m2[k]; | ||
} | ||
return m2; | ||
} | ||
@@ -286,0 +295,0 @@ |
@@ -34,3 +34,3 @@ import { $APP, shadow$provide, $jscomp } from "./cljs_core.js"; | ||
"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.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, | ||
o$.h=function(){$APP.uy=$APP.jA;$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"], | ||
@@ -37,0 +37,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.8", | ||
"version": "0.0.9", | ||
"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
1139937
5860