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.1.15 to 0.1.16

lib/clojure.set.js

8

lib/clojure.string.js
import { $APP, shadow$provide, $jscomp } from "./cljs.core.js";
const shadow_esm_import = function(x) { return import(x) };
var mr,nr,vr;$APP.ir=function(a,b){return 0==a.lastIndexOf(b,0)};$APP.jr=function(a){return String(a.charAt(0)).toUpperCase()+String(a.slice(1)).toLowerCase()};$APP.lr=function(a){return a.replace(kr,"$2$1").split("").reverse().join("")};mr=function(a,b,c){var d=RegExp,e=b.source,f=$APP.r(b.ignoreCase)?"gi":"g";f=$APP.r(b.multiline)?[f,"m"].join(""):f;b=$APP.r(b.unicode)?[f,"u"].join(""):f;return a.replace(new d(e,b),c)};
nr=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.pd(f,0,null)}return c.call(this,e)}function c(d){d=$APP.eo.g(2,d);if($APP.Td.g($APP.Sd(d),1))return d=$APP.A(d),a.h?a.h(d):a.call(null,d);d=$APP.ef(d);return a.h?a.h(d):a.call(null,d)}b.m=0;b.o=function(d){d=$APP.z(d);return c(d)};b.j=c;return b}()};
nr=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.pd(f,0,null)}return c.call(this,e)}function c(d){d=$APP.eo.g(2,d);if($APP.Td.g($APP.Sd(d),1))return d=$APP.A(d),a.h?a.h(d):a.call(null,d);d=$APP.ef(d);return a.h?a.h(d):a.call(null,d)}b.m=0;b.o=function(d){d=$APP.y(d);return c(d)};b.j=c;return b}()};
$APP.or=function(a,b,c){if("string"===typeof b)return a.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c);if(b instanceof RegExp)return"string"===typeof c?mr(a,b,c):mr(a,b,nr(c));throw["Invalid match arg: ",$APP.t.h(b)].join("");};$APP.qr=function(a,b,c){return a.replace(b,c)};$APP.rr=function(a){return a.toUpperCase()};$APP.sr=function(a){return a.toLowerCase()};$APP.tr=function(a){return $APP.jr(a)};
vr=function(a,b){if(0>=b||b>=2+$APP.Sd(a))return $APP.lg.g($APP.ef($APP.og("",$APP.Jk.g($APP.t,$APP.z(a)))),"");if($APP.r($APP.ur.g?$APP.ur.g(1,b):$APP.ur.call(null,1,b)))return new $APP.K(null,1,5,$APP.O,[a],null);if($APP.r($APP.ur.g?$APP.ur.g(2,b):$APP.ur.call(null,2,b)))return new $APP.K(null,2,5,$APP.O,["",a],null);b-=2;return $APP.lg.g($APP.ef($APP.og("",$APP.wo.l($APP.ef($APP.Jk.g($APP.t,$APP.z(a))),0,b))),$APP.zk.g(a,b))};$APP.xr=function(a){return $APP.wr.g(a,/\n|\r\n/)};$APP.yr=function(a){return(0,$APP.Om)(a)};
vr=function(a,b){if(0>=b||b>=2+$APP.Sd(a))return $APP.lg.g($APP.ef($APP.og("",$APP.Jk.g($APP.t,$APP.y(a)))),"");if($APP.r($APP.ur.g?$APP.ur.g(1,b):$APP.ur.call(null,1,b)))return new $APP.J(null,1,5,$APP.O,[a],null);if($APP.r($APP.ur.g?$APP.ur.g(2,b):$APP.ur.call(null,2,b)))return new $APP.J(null,2,5,$APP.O,["",a],null);b-=2;return $APP.lg.g($APP.ef($APP.og("",$APP.wo.l($APP.ef($APP.Jk.g($APP.t,$APP.y(a))),0,b))),$APP.zk.g(a,b))};$APP.xr=function(a){return $APP.wr.g(a,/\n|\r\n/)};$APP.yr=function(a){return(0,$APP.Om)(a)};
$APP.zr=function(a){return a.replace(/^[\s\xa0]+/,"")};$APP.Ar=function(a){return a.replace(/[\s\xa0]+$/,"")};$APP.Br=function(a){for(var b=a.length;;){if(0===b)return"";var c=$APP.Se.g(a,b-1);if("\n"===c||"\r"===c)--b;else return a.substring(0,b)}};$APP.Cr=function(a){return/^[\s\xa0]*$/.test(null==a?"":String(a))};$APP.Dr=function(a,b){for(var c=new $APP.xa,d=a.length,e=0;;){if(d===e)return c.toString();var f=a.charAt(e),h=$APP.Se.g(b,f);null!=h?c.append($APP.t.h(h)):c.append(f);e+=1}};
$APP.Er=function(a,b){return $APP.ir(a,b)};$APP.Fr=function(a,b){return $APP.ka(a,b)};$APP.Gr=function(a,b){return-1!=a.indexOf(b)};$APP.ur=function ur(a){switch(arguments.length){case 1:return ur.h(arguments[0]);case 2:return ur.g(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ur.j(arguments[0],arguments[1],new $APP.pd(c.slice(2),0,null))}};$APP.ur.h=function(){return!0};$APP.ur.g=function(a,b){return $APP.dc(a,b)};
$APP.ur.j=function(a,b,c){for(;;)if(a===b)if($APP.B(c))a=b,b=$APP.A(c),c=$APP.B(c);else return b===$APP.A(c);else return!1};$APP.ur.o=function(a){var b=$APP.A(a),c=$APP.B(a);a=$APP.A(c);c=$APP.B(c);return this.j(b,a,c)};$APP.ur.m=2;var kr;kr=RegExp("([\\uD800-\\uDBFF])([\\uDC00-\\uDFFF])","g");$APP.Hr=function Hr(a){switch(arguments.length){case 1:return Hr.h(arguments[0]);case 2:return Hr.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.Hr.h=function(a){var b=new $APP.xa;for(a=$APP.z(a);;)if(null!=a)b=b.append($APP.t.h($APP.A(a))),a=$APP.B(a);else return b.toString()};
$APP.Hr.g=function(a,b){var c=new $APP.xa;for(b=$APP.z(b);;)if(null!=b)c.append($APP.t.h($APP.A(b))),b=$APP.B(b),null!=b&&c.append(a);else return c.toString()};$APP.Hr.m=2;$APP.wr=function wr(a){switch(arguments.length){case 2:return wr.g(arguments[0],arguments[1]);case 3:return wr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.wr.g=function(a,b){return $APP.wr.l(a,b,0)};
$APP.ur.j=function(a,b,c){for(;;)if(a===b)if($APP.B(c))a=b,b=$APP.A(c),c=$APP.B(c);else return b===$APP.A(c);else return!1};$APP.ur.o=function(a){var b=$APP.A(a),c=$APP.B(a);a=$APP.A(c);c=$APP.B(c);return this.j(b,a,c)};$APP.ur.m=2;var kr;kr=RegExp("([\\uD800-\\uDBFF])([\\uDC00-\\uDFFF])","g");$APP.Hr=function Hr(a){switch(arguments.length){case 1:return Hr.h(arguments[0]);case 2:return Hr.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.Hr.h=function(a){var b=new $APP.xa;for(a=$APP.y(a);;)if(null!=a)b=b.append($APP.t.h($APP.A(a))),a=$APP.B(a);else return b.toString()};
$APP.Hr.g=function(a,b){var c=new $APP.xa;for(b=$APP.y(b);;)if(null!=b)c.append($APP.t.h($APP.A(b))),b=$APP.B(b),null!=b&&c.append(a);else return c.toString()};$APP.Hr.m=2;$APP.wr=function wr(a){switch(arguments.length){case 2:return wr.g(arguments[0],arguments[1]);case 3:return wr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.wr.g=function(a,b){return $APP.wr.l(a,b,0)};
$APP.wr.l=function(a,b,c){if("/(?:)/"===$APP.t.h(b))b=vr(a,c);else if(1>c)b=$APP.ef($APP.t.h(a).split(b));else a:for(var d=c,e=$APP.$h;;){if(1===d){b=$APP.lg.g(e,a);break a}var f=$APP.wk(b,a);if(null!=f){var h=a.indexOf(f);f=a.substring(h+$APP.Sd(f));--d;e=$APP.lg.g(e,a.substring(0,h));a=f}else{b=$APP.lg.g(e,a);break a}}if(0===c&&1<$APP.Sd(b))a:for(c=b;;)if(""===$APP.le(c))c=$APP.me(c);else break a;else c=b;return c};$APP.wr.m=3;

@@ -12,0 +12,0 @@ $APP.Ir=function Ir(a){switch(arguments.length){case 2:return Ir.g(arguments[0],arguments[1]);case 3:return Ir.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.Ir.g=function(a,b){a=a.indexOf(b);return 0>a?null:a};$APP.Ir.l=function(a,b,c){a=a.indexOf(b,c);return 0>a?null:a};$APP.Ir.m=3;

import { $APP, shadow$provide, $jscomp } from "./cljs.core.js";
const shadow_esm_import = function(x) { return import(x) };
$APP.Kr=function(a,b,c){if($APP.hg(c)){var d=$APP.Bh.g($APP.Q,$APP.Jk.g(a,c));return b.h?b.h(d):b.call(null,d)}return $APP.oi(c)?(d=new $APP.Ve(function(){var e=$APP.Qb(c);return a.h?a.h(e):a.call(null,e)}(),function(){var e=$APP.Rb(c);return a.h?a.h(e):a.call(null,e)}(),null),b.h?b.h(d):b.call(null,d)):$APP.Ie(c)?(d=$APP.zp.h($APP.Jk.g(a,c)),b.h?b.h(d):b.call(null,d)):$APP.ye(c)?(d=$APP.cf.l(function(e,f){return $APP.lg.g(e,a.h?a.h(f):a.call(null,f))},c,c),b.h?b.h(d):b.call(null,d)):$APP.oe(c)?(d=
$APP.$i.g($APP.ee(c),$APP.Jk.g(a,c)),b.h?b.h(d):b.call(null,d)):b.h?b.h(c):b.call(null,c)};$APP.Mr=function(a){function b(c){var d=$APP.D.l(c,0,null);c=$APP.D.l(c,1,null);return"string"===typeof d?new $APP.K(null,2,5,$APP.O,[$APP.Kk.h(d),c],null):new $APP.K(null,2,5,$APP.O,[d,c],null)}return $APP.Lr(function(c){return $APP.xe(c)?$APP.$i.g($APP.$g,$APP.Jk.g(b,c)):c},a)};
$APP.Nr=function(a){function b(c){var d=$APP.D.l(c,0,null);c=$APP.D.l(c,1,null);return d instanceof $APP.G?new $APP.K(null,2,5,$APP.O,[$APP.hk(d),c],null):new $APP.K(null,2,5,$APP.O,[d,c],null)}return $APP.Lr(function(c){return $APP.xe(c)?$APP.$i.g($APP.$g,$APP.Jk.g(b,c)):c},a)};$APP.Pr=function(a,b){return $APP.Or(function(c){return $APP.Ue(a,c)?a.h?a.h(c):a.call(null,c):c},b)};$APP.Qr=function(a,b){return $APP.Lr(function(c){return $APP.Ue(a,c)?a.h?a.h(c):a.call(null,c):c},b)};$APP.Lr=function Lr(a,b){return $APP.Kr($APP.Vn.g(Lr,a),a,b)};$APP.Or=function Or(a,b){return $APP.Kr($APP.Vn.g(Or,a),$APP.kf,a.h?a.h(b):a.call(null,b))};export const walk=$APP.Kr;export const postwalk=$APP.Lr;export const prewalk=$APP.Or;export const stringify_keys=$APP.Nr;export const keywordize_keys=$APP.Mr;export const prewalk_replace=$APP.Pr;export const postwalk_replace=$APP.Qr;
$APP.Kr=function(a,b,c){if($APP.hg(c)){var d=$APP.Bh.g($APP.Q,$APP.Jk.g(a,c));return b.h?b.h(d):b.call(null,d)}return $APP.oi(c)?(d=new $APP.Ve(function(){var e=$APP.Qb(c);return a.h?a.h(e):a.call(null,e)}(),function(){var e=$APP.Rb(c);return a.h?a.h(e):a.call(null,e)}(),null),b.h?b.h(d):b.call(null,d)):$APP.Ie(c)?(d=$APP.hp.h($APP.Jk.g(a,c)),b.h?b.h(d):b.call(null,d)):$APP.ye(c)?(d=$APP.cf.l(function(e,f){return $APP.lg.g(e,a.h?a.h(f):a.call(null,f))},c,c),b.h?b.h(d):b.call(null,d)):$APP.oe(c)?(d=
$APP.$i.g($APP.ee(c),$APP.Jk.g(a,c)),b.h?b.h(d):b.call(null,d)):b.h?b.h(c):b.call(null,c)};$APP.Mr=function(a){function b(c){var d=$APP.D.l(c,0,null);c=$APP.D.l(c,1,null);return"string"===typeof d?new $APP.J(null,2,5,$APP.O,[$APP.Kk.h(d),c],null):new $APP.J(null,2,5,$APP.O,[d,c],null)}return $APP.Lr(function(c){return $APP.xe(c)?$APP.$i.g($APP.$g,$APP.Jk.g(b,c)):c},a)};
$APP.Nr=function(a){function b(c){var d=$APP.D.l(c,0,null);c=$APP.D.l(c,1,null);return d instanceof $APP.G?new $APP.J(null,2,5,$APP.O,[$APP.hk(d),c],null):new $APP.J(null,2,5,$APP.O,[d,c],null)}return $APP.Lr(function(c){return $APP.xe(c)?$APP.$i.g($APP.$g,$APP.Jk.g(b,c)):c},a)};$APP.Pr=function(a,b){return $APP.Or(function(c){return $APP.Ue(a,c)?a.h?a.h(c):a.call(null,c):c},b)};$APP.Qr=function(a,b){return $APP.Lr(function(c){return $APP.Ue(a,c)?a.h?a.h(c):a.call(null,c):c},b)};$APP.Lr=function Lr(a,b){return $APP.Kr($APP.Vn.g(Lr,a),a,b)};$APP.Or=function Or(a,b){return $APP.Kr($APP.Vn.g(Or,a),$APP.kf,a.h?a.h(b):a.call(null,b))};export const walk=$APP.Kr;export const postwalk=$APP.Lr;export const prewalk=$APP.Or;export const stringify_keys=$APP.Nr;export const keywordize_keys=$APP.Mr;export const prewalk_replace=$APP.Pr;export const postwalk_replace=$APP.Qr;

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

"sideEffects": false,
"version": "0.1.15",
"version": "0.1.16",
"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

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