putil-waterfall
Advanced tools
Comparing version 1.1.6 to 1.2.0
@@ -67,10 +67,9 @@ /* putil-waterfall | ||
let index = -1; | ||
const next = function(error) { | ||
const args = Array.prototype.slice.call(arguments, 1); | ||
const next = function(error, value) { | ||
const args = Array.prototype.slice.call(arguments); | ||
index++; | ||
setImmediate(function() { | ||
if (error) | ||
return callback(error); | ||
if (!arr.length) | ||
return callback(); | ||
if (error || !arr.length) | ||
return callback.apply(null, args); | ||
args.shift(); // remove error arg | ||
const v = arr.shift(); | ||
@@ -77,0 +76,0 @@ try { |
{ | ||
"name": "putil-waterfall", | ||
"description": "Simple, fast async waterfall NodeJs module for JavaScript", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8422
80