putil-waterfall
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -47,5 +47,4 @@ /* putil-waterfall | ||
typeof o.then === 'function' && typeof o.catch === 'function') { | ||
o.catch(e => { | ||
callback.call(null, e, ...args); | ||
}); | ||
o.then(() => next(null, ...args)) | ||
.catch(e => callback.call(null, e, ...args)); | ||
} | ||
@@ -56,3 +55,3 @@ } catch (e) { | ||
} else | ||
callback.call(null, undefined, ...args); | ||
callback.call(null, null, ...args); | ||
}; | ||
@@ -59,0 +58,0 @@ |
{ | ||
"name": "putil-waterfall", | ||
"description": "Simple, fast async waterfall NodeJs module for JavaScript", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
8684
92