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.7 to 0.1.8

16

lib/clojure.string.js

@@ -5,11 +5,11 @@ import { $APP, shadow$provide, $jscomp } from "./cljs.core.js";

hr=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.ir=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?gr(a,b,c):gr(a,b,hr(c));throw["Invalid match arg: ",$APP.u.h(b)].join("");};$APP.jr=function(a,b,c){return a.replace(b,c)};$APP.kr=function(a){return a.toUpperCase()};$APP.lr=function(a){return a.toLowerCase()};$APP.mr=function(a){return $APP.dr(a)};
or=function(a,b){if(0>=b||b>=2+$APP.Sd(a))return $APP.lg.g($APP.ef($APP.og("",$APP.Mk.g($APP.u,$APP.y(a)))),"");if($APP.r($APP.nr.g?$APP.nr.g(1,b):$APP.nr.call(null,1,b)))return new $APP.G(null,1,5,$APP.K,[a],null);if($APP.r($APP.nr.g?$APP.nr.g(2,b):$APP.nr.call(null,2,b)))return new $APP.G(null,2,5,$APP.K,["",a],null);b-=2;return $APP.lg.g($APP.ef($APP.og("",$APP.wo.l($APP.ef($APP.Mk.g($APP.u,$APP.y(a))),0,b))),$APP.Ck.g(a,b))};$APP.rr=function(a){return $APP.qr.g(a,/\n|\r\n/)};$APP.sr=function(a){return(0,$APP.Pm)(a)};
$APP.tr=function(a){return a.replace(/^[\s\xa0]+/,"")};$APP.ur=function(a){return a.replace(/[\s\xa0]+$/,"")};$APP.vr=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.wr=function(a){return/^[\s\xa0]*$/.test(null==a?"":String(a))};$APP.xr=function(a,b){for(var c=new $APP.ya,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.u.h(h)):c.append(f);e+=1}};
$APP.ir=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?gr(a,b,c):gr(a,b,hr(c));throw["Invalid match arg: ",$APP.t.h(b)].join("");};$APP.jr=function(a,b,c){return a.replace(b,c)};$APP.kr=function(a){return a.toUpperCase()};$APP.lr=function(a){return a.toLowerCase()};$APP.mr=function(a){return $APP.dr(a)};
or=function(a,b){if(0>=b||b>=2+$APP.Sd(a))return $APP.lg.g($APP.ef($APP.og("",$APP.Mk.g($APP.t,$APP.y(a)))),"");if($APP.r($APP.nr.g?$APP.nr.g(1,b):$APP.nr.call(null,1,b)))return new $APP.G(null,1,5,$APP.K,[a],null);if($APP.r($APP.nr.g?$APP.nr.g(2,b):$APP.nr.call(null,2,b)))return new $APP.G(null,2,5,$APP.K,["",a],null);b-=2;return $APP.lg.g($APP.ef($APP.og("",$APP.wo.l($APP.ef($APP.Mk.g($APP.t,$APP.y(a))),0,b))),$APP.Ck.g(a,b))};$APP.rr=function(a){return $APP.qr.g(a,/\n|\r\n/)};$APP.sr=function(a){return(0,$APP.Pm)(a)};
$APP.tr=function(a){return a.replace(/^[\s\xa0]+/,"")};$APP.ur=function(a){return a.replace(/[\s\xa0]+$/,"")};$APP.vr=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.wr=function(a){return/^[\s\xa0]*$/.test(null==a?"":String(a))};$APP.xr=function(a,b){for(var c=new $APP.ya,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.yr=function(a,b){return $APP.cr(a,b)};$APP.zr=function(a,b){return $APP.ka(a,b)};$APP.Ar=function(a,b){return-1!=a.indexOf(b)};$APP.nr=function nr(a){switch(arguments.length){case 1:return nr.h(arguments[0]);case 2:return nr.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 nr.j(arguments[0],arguments[1],new $APP.pd(c.slice(2),0,null))}};$APP.nr.h=function(){return!0};$APP.nr.g=function(a,b){return $APP.dc(a,b)};
$APP.nr.j=function(a,b,c){for(;;)if(a===b)if($APP.C(c))a=b,b=$APP.A(c),c=$APP.C(c);else return b===$APP.A(c);else return!1};$APP.nr.o=function(a){var b=$APP.A(a),c=$APP.C(a);a=$APP.A(c);c=$APP.C(c);return this.j(b,a,c)};$APP.nr.m=2;var er;er=RegExp("([\\uD800-\\uDBFF])([\\uDC00-\\uDFFF])","g");$APP.Br=function Br(a){switch(arguments.length){case 1:return Br.h(arguments[0]);case 2:return Br.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.u.h(arguments.length)].join(""));}};$APP.Br.h=function(a){var b=new $APP.ya;for(a=$APP.y(a);;)if(null!=a)b=b.append($APP.u.h($APP.A(a))),a=$APP.C(a);else return b.toString()};
$APP.Br.g=function(a,b){var c=new $APP.ya;for(b=$APP.y(b);;)if(null!=b)c.append($APP.u.h($APP.A(b))),b=$APP.C(b),null!=b&&c.append(a);else return c.toString()};$APP.Br.m=2;$APP.qr=function qr(a){switch(arguments.length){case 2:return qr.g(arguments[0],arguments[1]);case 3:return qr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.u.h(arguments.length)].join(""));}};$APP.qr.g=function(a,b){return $APP.qr.l(a,b,0)};
$APP.qr.l=function(a,b,c){if("/(?:)/"===$APP.u.h(b))b=or(a,c);else if(1>c)b=$APP.ef($APP.u.h(a).split(b));else a:for(var d=c,e=$APP.ci;;){if(1===d){b=$APP.lg.g(e,a);break a}var f=$APP.zk(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.qr.m=3;
$APP.Cr=function Cr(a){switch(arguments.length){case 2:return Cr.g(arguments[0],arguments[1]);case 3:return Cr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.u.h(arguments.length)].join(""));}};$APP.Cr.g=function(a,b){a=a.indexOf(b);return 0>a?null:a};$APP.Cr.l=function(a,b,c){a=a.indexOf(b,c);return 0>a?null:a};$APP.Cr.m=3;
$APP.Dr=function Dr(a){switch(arguments.length){case 2:return Dr.g(arguments[0],arguments[1]);case 3:return Dr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.u.h(arguments.length)].join(""));}};$APP.Dr.g=function(a,b){a=a.lastIndexOf(b);return 0>a?null:a};$APP.Dr.l=function(a,b,c){a=a.lastIndexOf(b,c);return 0>a?null:a};$APP.Dr.m=3;export let replace_first=$APP.jr;export let capitalize=$APP.mr;export let reverse=$APP.fr;export let join=$APP.Br;export let escape=$APP.xr;export let starts_with_QMARK_=$APP.yr;export let blank_QMARK_=$APP.wr;export let upper_case=$APP.kr;export let replace=$APP.ir;export let includes_QMARK_=$APP.Ar;export let index_of=$APP.Cr;export let trim_newline=$APP.vr;export let lower_case=$APP.lr;export let split_lines=$APP.rr;export let split=$APP.qr;export let ends_with_QMARK_=$APP.zr;
$APP.nr.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.nr.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.nr.m=2;var er;er=RegExp("([\\uD800-\\uDBFF])([\\uDC00-\\uDFFF])","g");$APP.Br=function Br(a){switch(arguments.length){case 1:return Br.h(arguments[0]);case 2:return Br.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.Br.h=function(a){var b=new $APP.ya;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.Br.g=function(a,b){var c=new $APP.ya;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.Br.m=2;$APP.qr=function qr(a){switch(arguments.length){case 2:return qr.g(arguments[0],arguments[1]);case 3:return qr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.qr.g=function(a,b){return $APP.qr.l(a,b,0)};
$APP.qr.l=function(a,b,c){if("/(?:)/"===$APP.t.h(b))b=or(a,c);else if(1>c)b=$APP.ef($APP.t.h(a).split(b));else a:for(var d=c,e=$APP.ci;;){if(1===d){b=$APP.lg.g(e,a);break a}var f=$APP.zk(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.qr.m=3;
$APP.Cr=function Cr(a){switch(arguments.length){case 2:return Cr.g(arguments[0],arguments[1]);case 3:return Cr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.Cr.g=function(a,b){a=a.indexOf(b);return 0>a?null:a};$APP.Cr.l=function(a,b,c){a=a.indexOf(b,c);return 0>a?null:a};$APP.Cr.m=3;
$APP.Dr=function Dr(a){switch(arguments.length){case 2:return Dr.g(arguments[0],arguments[1]);case 3:return Dr.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.Dr.g=function(a,b){a=a.lastIndexOf(b);return 0>a?null:a};$APP.Dr.l=function(a,b,c){a=a.lastIndexOf(b,c);return 0>a?null:a};$APP.Dr.m=3;export let replace_first=$APP.jr;export let capitalize=$APP.mr;export let reverse=$APP.fr;export let join=$APP.Br;export let escape=$APP.xr;export let starts_with_QMARK_=$APP.yr;export let blank_QMARK_=$APP.wr;export let upper_case=$APP.kr;export let replace=$APP.ir;export let includes_QMARK_=$APP.Ar;export let index_of=$APP.Cr;export let trim_newline=$APP.vr;export let lower_case=$APP.lr;export let split_lines=$APP.rr;export let split=$APP.qr;export let ends_with_QMARK_=$APP.zr;
export let trimr=$APP.ur;export let last_index_of=$APP.Dr;export let trim=$APP.sr;export let triml=$APP.tr;

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

"sideEffects": false,
"version": "0.1.7",
"version": "0.1.8",
"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