New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3.3 to 0.3.4

12

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

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

/*
* @version 0.3.3
* @date 2015-05-14
* @version 0.3.4
* @date 2015-05-19
* @stability 2 - Unstable

@@ -260,2 +260,35 @@ * @author Lauri Rooden <lauri@rooden.ee>

exports.Fn.wait = fnWait
function fnWait(ignore) {
var k
, obj = this
, hooks = []
, hooked = []
ignore = ignore || []
for (k in obj) if (typeof obj[k] == "function" && obj[k] !== fnWait && ignore.indexOf(k) == -1) !function(k) {
hooked.push(k, hasOwn.call(obj, k) && obj[k])
obj[k] = function() {
hooks.push(k, arguments)
return obj
}
}(k)
obj.resume = function() {
delete obj.resume
for (var v, i = hooked.length; i--; i--) {
if (hooked[i]) obj[hooked[i-1]] = hooked[i]
else delete obj[hooked[i-1]]
}
// i == -1 from previous loop
for (; v = hooks[++i]; ) {
obj[v].apply(obj, hooks[++i])
}
hooks = hooked = null
return obj
}
return obj
}
function True() {

@@ -262,0 +295,0 @@ return true

{
"name": "functional-lite",
"version": "0.3.3",
"version": "0.3.4",
"stability": 2,

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

"iter.js",
"lazy.js",
"timing.js"

@@ -20,0 +19,0 @@ ],

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

@version 0.3.3
@date 2015-05-14
@version 0.3.4
@date 2015-05-19
@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