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

functional-lite

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

functional-lite - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

8

dist/index-min.js
/*! litejs.com/MIT-LICENSE.txt */
!function(p,g){function r(a,c,b){if(a&&a.constructor===g){c={};for(b in a)k.call(a,b)&&(c[b]=r(a[b]));a=c}return a}function t(){for(var a=this.length,c=n(arguments),b=-1;a--;)~c.indexOf(this[a])&&this.splice(b=a,1);return b}function q(a,c){for(var b=["_"],d=a,f=a.split("->");1<f.length;)d=f.pop(),b=f.pop().match(/\w+/g)||[],f.length&&f.push("(function("+b+"){return("+d+")})");return new Function(b,(c&&(a=a.replace(x,"").match(/\b[a-z]\w*|\b_\w+/g))?(t.apply(a,b),a[0]?"var "+a.uniq().join("='',")+
"='';":"")+"with("+c+"||{})":"")+"return("+d+")")}function u(a){function c(){var c=arguments;c.length&&(d=c);!--b&&a&&a.apply(this,d)}var b=1,d=[];c.wait=function(){b++;return c};return c}function y(){return!0}function z(){return!1}var e=Array.prototype,h=Function.prototype,v=String.prototype,k=g.prototype.hasOwnProperty,n=h.call.bind(e.slice),w={},x=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|arguments|false|function|new|this|true|window|\.\w+|\w+:/g;h.partial=function(){var a=this,c=n(arguments);return function(){return a.apply(this,
c.concat.apply(c,arguments))}};h.byWords=function(a,c){var b=this;return function(){var d=this,f=d,e=arguments;(e[a|=0]||"").replace(c||/\S+/g,function(c){e[a]=c;f=b.apply(d,e)});return f}};h.byKeyVal=function(){var a=this;return function(c){var b,d=n(arguments);if("object"==typeof c)for(b in c)d[0]=b,d[1]=c[b],b=a.apply(this,d);else b=a.apply(this,d);return b}};h.cache=function(a,c,b){function d(){var b=arguments,l=!!a||this instanceof d,m=c?c.apply(f,b):l+":"+b.length+":"+n(b);if(m in e)m=e[m];
else{var h=e;if(l)var l=f,k=void 0,l=(k=b.length)?(w[k]||(w[k]=q("t a->new t(a["+g.keys(b).join("],a[")+"])")))(l,b):new l;else l=f.apply(this,b);m=h[m]=l}return m}var f=d.origin=this,e=d.cached=b||{};d.extend=function(){return f.extend.apply(f,arguments).cache(a,c,b)};d.prototype=f.prototype;return d};h.extend=function(){function a(){return b.apply(this,arguments)}var c,b=this,d=0;for(a.prototype=g.create(b.prototype);c=arguments[d++];)g.merge(a.prototype,c);return a.prototype.constructor=a};g.each=
function(a,c,b,d){if(a)for(d in a)k.call(a,d)&&c.call(b,a[d],d,a)};g.merge=function(a,c){for(var b,d=1;c=arguments[d++];)for(b in c)k.call(c,b)&&(a[b]=c[b]);return a};g.values=function(a){return g.keys(a||{}).map(function(c){return a[c]})};g.clone=r;g.zip=function(a,c){return a.fold(function(a,d,f){a[d]=c[f];return a},{})};e.remove=t;e.each=e.forEach;e.fold=e.reduce;e.foldr=e.reduceRight;e.uniq=e.filter.partial(function(a,c,b){return c==b.indexOf(a)});e.pushUniq=function(a){return-1==this.indexOf(a)?
"='';":"")+"with("+c+"||{})":"")+"return("+d+")")}function u(a){function c(){var c=arguments;c.length&&(d=c);!--b&&a&&a.apply(this,d)}var b=1,d=[];c.wait=function(){b++;return c};return c}function y(){return!0}function z(){return!1}var e=Array.prototype,h=Function.prototype,v=String.prototype,k=g.prototype.hasOwnProperty,n=h.call.bind(e.slice),w={},x=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|arguments|false|function|new|null|this|true|undefined|window|\.\w+|\w+:/g;h.partial=function(){var a=this,c=n(arguments);
return function(){return a.apply(this,c.concat.apply(c,arguments))}};h.byWords=function(a,c){var b=this;return function(){var d=this,f=d,e=arguments;(e[a|=0]||"").replace(c||/\S+/g,function(c){e[a]=c;f=b.apply(d,e)});return f}};h.byKeyVal=function(){var a=this;return function(c){var b,d=n(arguments);if("object"==typeof c)for(b in c)d[0]=b,d[1]=c[b],b=a.apply(this,d);else b=a.apply(this,d);return b}};h.cache=function(a,c,b){function d(){var b=arguments,l=!!a||this instanceof d,m=c?c.apply(f,b):l+":"+
b.length+":"+n(b);if(m in e)m=e[m];else{var h=e;if(l)var l=f,k=void 0,l=(k=b.length)?(w[k]||(w[k]=q("t a->new t(a["+g.keys(b).join("],a[")+"])")))(l,b):new l;else l=f.apply(this,b);m=h[m]=l}return m}var f=d.origin=this,e=d.cached=b||{};d.extend=function(){return f.extend.apply(f,arguments).cache(a,c,b)};d.prototype=f.prototype;return d};h.extend=function(){function a(){return b.apply(this,arguments)}var c,b=this,d=0;for(a.prototype=g.create(b.prototype);c=arguments[d++];)g.merge(a.prototype,c);return a.prototype.constructor=
a};g.each=function(a,c,b,d){if(a)for(d in a)k.call(a,d)&&c.call(b,a[d],d,a)};g.merge=function(a,c){for(var b,d=1;c=arguments[d++];)for(b in c)k.call(c,b)&&(a[b]=c[b]);return a};g.values=function(a){return g.keys(a||{}).map(function(c){return a[c]})};g.clone=r;g.zip=function(a,c){return a.fold(function(a,d,f){a[d]=c[f];return a},{})};e.remove=t;e.each=e.forEach;e.fold=e.reduce;e.foldr=e.reduceRight;e.uniq=e.filter.partial(function(a,c,b){return c==b.indexOf(a)});e.pushUniq=function(a){return-1==this.indexOf(a)?
this.push(a):!1};!function(a){h[a]=v[a]=function(){var c=arguments,b=c[0];c[0]=this.fn();return e[a].apply(b,c)}}.byWords()("every filter each map fold foldr some");h.fn=function(){return this};v.fn=function(a){return q(this,a)};Boolean.prototype.fn=function(){return this.valueOf()?y:z};p.Fn=q.cache();p.Fn.wait=u;p.Fn.hold=function(a){var c,b=this,d=[],f=[],e=u(function(){for(var a,c=b,e=f.length;e--;e--)f[e]?b[f[e-1]]=f[e]:delete b[f[e-1]];for(;a=d[++e];)c=c[a].apply(c,d[++e])||c;d=f=null});a=a||
b.syncMethods||[];for(c in b)"function"==typeof b[c]&&-1==a.indexOf(c)&&!function(a){f.push(a,k.call(b,a)&&b[a]);b[a]=function(){d.push(a,arguments);return b}}(c);b.wait=e.wait;return e}}(this,Object);

@@ -5,4 +5,4 @@

/*
* @version 0.4.1
* @date 2015-07-01
* @version 0.4.2
* @date 2015-09-16
* @stability 2 - Unstable

@@ -21,3 +21,3 @@ * @author Lauri Rooden <lauri@rooden.ee>

, fns = {}
, fnRe = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|arguments|false|function|new|this|true|window|\.\w+|\w+:/g
, fnRe = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|arguments|false|function|new|null|this|true|undefined|window|\.\w+|\w+:/g

@@ -24,0 +24,0 @@

{
"name": "functional-lite",
"version": "0.4.1",
"version": "0.4.2",
"stability": 2,

@@ -21,3 +21,3 @@ "author": "Lauri Rooden <lauri@rooden.ee>",

"build": "node node_modules/buildman/index.js --all",
"test": "node tests/run.js"
"test": "node tests/index.js"
},

@@ -24,0 +24,0 @@ "repository": "git://github.com/litejs/functional-lite.git",

@@ -13,4 +13,4 @@ [GitHub repo]: https://github.com/litejs/functional-lite

@version 0.4.1
@date 2015-07-01
@version 0.4.2
@date 2015-09-16
@stability 2 - Unstable

@@ -17,0 +17,0 @@

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