putil-waterfall
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -82,6 +82,14 @@ /* putil-waterfall | ||
/** | ||
* | ||
* @param {number} op | ||
* @param {Array} values | ||
* @param {Function} fn | ||
* @param {Function} callback | ||
* @return {Promise|undefined} | ||
*/ | ||
function iterateValues(op, values, fn, callback) { | ||
if (!Array.isArray(values)) | ||
throw new Error('Invalid argument. Array value are required as first argument'); | ||
throw new Error('Invalid argument. Array value required as first argument'); | ||
@@ -94,5 +102,2 @@ if (callback && typeof callback !== 'function') | ||
/* istanbul ignore next */ | ||
callback = callback || (() => {}); | ||
values = values.slice(0); | ||
@@ -99,0 +104,0 @@ let index = -1; |
{ | ||
"name": "putil-waterfall", | ||
"description": "Simple, fast async waterfall NodeJs module for JavaScript", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Panates Ltd.", | ||
@@ -21,7 +21,7 @@ "contributors": [ | ||
"dependencies": { | ||
"putil-promisify": "^1.2.0" | ||
"putil-promisify": "^1.3.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^10.0.1", | ||
"eslint": "^5.7.0", | ||
"eslint": "^5.9.0", | ||
"eslint-config-google": "^0.11.0", | ||
@@ -43,3 +43,3 @@ "nyc": "^13.1.0", | ||
"nyc": { | ||
"temp-directory": "./coverage/.nyc_output" | ||
"temp-dir": "./coverage/.nyc_output" | ||
}, | ||
@@ -46,0 +46,0 @@ "scripts": { |
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
8881
116
Updatedputil-promisify@^1.3.0