putil-waterfall
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -35,5 +35,6 @@ /* putil-waterfall | ||
try { | ||
const o = fn(...args, next); | ||
const o = fn(next, ...args); | ||
if (o && (o instanceof Promise || | ||
(typeof o.then === 'function' && typeof o.catch === 'function'))) { | ||
(typeof o.then === 'function' && | ||
typeof o.catch === 'function'))) { | ||
o.catch(err => { | ||
@@ -40,0 +41,0 @@ callback(err); |
{ | ||
"name": "putil-waterfall", | ||
"description": "Simple, fast async waterfall NodeJs module for ES6.", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -35,3 +35,3 @@ # putil-waterfall | ||
}, | ||
function(arg1, arg2, next) { | ||
function(next, arg1, arg2) { | ||
let sum = arg1 + arg2; | ||
@@ -41,3 +41,3 @@ console.log('Current sum: ', sum); | ||
}, | ||
function(arg1, arg2, arg3, next) { | ||
function(next, arg1, arg2, arg3) { | ||
let sum = arg1 + arg2 + arg3; | ||
@@ -44,0 +44,0 @@ console.log('Current sum: ', sum); |
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
6499
44