New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodash

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodash - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

doc/Boolean/_AND.json

4

lib/coll/fold.js

@@ -11,3 +11,3 @@ /* vim: set et sw=2 ts=2: */

'foldl foldl\'': function (f, x, xs) {
'foldl foldl\' reduceLeft': function (f, x, xs) {
switch (typeOf(xs)) {

@@ -41,3 +41,3 @@ case 'array':

foldr: function (f, x, xs) {
'foldr reduceRight': function (f, x, xs) {
switch (typeOf(xs)) {

@@ -44,0 +44,0 @@ case 'array':

@@ -24,3 +24,3 @@ /* vim: set et sw=2 ts=2: */

1: id,
2: function (fn) {
2: function (__fn__) {
return function (a, b) {

@@ -30,9 +30,9 @@ switch (arguments.length) {

return function (b) {
return fn(a, b);
return __fn__(a, b);
};
}
return fn(a, b);
return __fn__(a, b);
};
},
3: function (fn) {
3: function (__fn__) {
return function (a, b, c) {

@@ -42,13 +42,13 @@ switch (arguments.length) {

return funcs[2](function (b, c) {
return fn(a, b, c);
return __fn__(a, b, c);
});
case 2:
return function (c) {
return fn(a, b, c);
return __fn__(a, b, c);
};
}
return fn(a, b, c);
return __fn__(a, b, c);
};
},
4: function (fn) {
4: function (__fn__) {
return function (a, b, c, d) {

@@ -58,17 +58,17 @@ switch (arguments.length) {

return funcs[3](function (b, c, d) {
return fn(a, b, c, d);
return __fn__(a, b, c, d);
});
case 2:
return funcs[2](function (c, d) {
return fn(a, b, c, d);
return __fn__(a, b, c, d);
});
case 3:
return function (d) {
return fn(a, b, c, d);
return __fn__(a, b, c, d);
};
}
return fn(a, b, c, d);
return __fn__(a, b, c, d);
};
},
5: function (fn) {
5: function (__fn__) {
return function (a, b, c, d, e) {

@@ -78,21 +78,21 @@ switch (arguments.length) {

return funcs[4](function (b, c, d, e) {
return fn(a, b, c, d, e);
return __fn__(a, b, c, d, e);
});
case 2:
return funcs[3](function (c, d, e) {
return fn(a, b, c, d, e);
return __fn__(a, b, c, d, e);
});
case 3:
return funcs[2](function (d, e) {
return fn(a, b, c, d, e);
return __fn__(a, b, c, d, e);
});
case 4:
return function (e) {
return fn(a, b, c, d, e);
return __fn__(a, b, c, d, e);
};
}
return fn(a, b, c, d, e);
return __fn__(a, b, c, d, e);
};
},
6: function (fn) {
6: function (__fn__) {
return function (a, b, c, d, e, f) {

@@ -102,22 +102,22 @@ switch (arguments.length) {

return funcs[5](function (b, c, d, e, f) {
return fn(a, b, c, d, e, f);
return __fn__(a, b, c, d, e, f);
});
case 2:
return funcs[4](function (c, d, e, f) {
return fn(a, b, c, d, e, f);
return __fn__(a, b, c, d, e, f);
});
case 3:
return funcs[3](function (d, e, f) {
return fn(a, b, c, d, e, f);
return __fn__(a, b, c, d, e, f);
});
case 4:
return funcs[2](function (e, f) {
return fn(a, b, c, d, e, f);
return __fn__(a, b, c, d, e, f);
});
case 5:
return function (f) {
return fn(a, b, c, d, e, f);
return __fn__(a, b, c, d, e, f);
};
}
return fn(a, b, c, d, e, f);
return __fn__(a, b, c, d, e, f);
};

@@ -124,0 +124,0 @@ }

@@ -58,2 +58,3 @@ /* vim: set et sw=2 ts=2: */

step = from < to ? step : -step;
to = step > 0 ? Math.floor(to) : Math.ceil(to);
var current = from;

@@ -85,3 +86,3 @@ function gen() {

'rangeStep': rangeStep,
rangeStep: rangeStep,

@@ -88,0 +89,0 @@ '.. range': function (from, to) {

{
"name": "nodash",
"version": "0.10.0",
"version": "0.10.1",
"description": "A port of the Haskell Prelude to JavaScript/NodeJS",

@@ -31,2 +31,3 @@ "main": "nodash.js",

"directorywalker": "^1.0.2",
"docco": "^0.7.0",
"filesize": "^3.1.3",

@@ -61,5 +62,4 @@ "gulp": "^3.9.0",

"dependencies": {
"docco": "^0.7.0",
"knuth-morris-pratt": "^1.0.0"
}
}

@@ -21,7 +21,11 @@ /* vim: set et sw=2 ts=2: */

function formatSource(func, name) {
var source = N.lines(func.toString().replace(/Nodash\./g, ""));
source[0] = source[0].replace(/^function +\(/, 'function ' + name + '(');
var source = func.toString();
if (source.indexOf('__fn__') > -1) {
return highlight('var ' + name + ' = /* this is a composed function */');
}
var sourceLines = N.lines(source.replace(/Nodash\./g, ""));
sourceLines[0] = sourceLines[0].replace(/^function +\(/, 'function ' + name + '(');
var indent = N.minimum(N.map(N.compose(N.length, N.takeWhile(N.eq(' '))),
N.filter(N.compose(N.not, N.isEmpty), N.tail(source))));
return highlight(N.unlines(N.cons(N.head(source), N.map(N.drop(indent), N.tail(source)))));
N.filter(N.compose(N.not, N.isEmpty), N.tail(sourceLines))));
return highlight(N.unlines(N.cons(N.head(sourceLines), N.map(N.drop(indent), N.tail(sourceLines)))));
}

@@ -100,3 +104,3 @@

} else {
functions[func].description = data;
functions[func].documentation = data;
}

@@ -103,0 +107,0 @@ } catch (err) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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