curlrequest
Advanced tools
Comparing version 0.1.6 to 0.1.7
24
index.js
@@ -255,1 +255,25 @@ var child = require('child_process') | ||
/** | ||
* A helper for handling async concurrency. | ||
*/ | ||
module.exports.concurrent = function (input, concurrency, fn) { | ||
if (arguments.length === 3) { | ||
for (var i = 0; i < concurrency; i++) { | ||
(function exec() { | ||
check(input.shift(), function () { | ||
process.nextTick(exec); | ||
}); | ||
})(); | ||
} | ||
} else { | ||
for (var i = 0; i < concurrency; i++) { | ||
(function exec() { | ||
check(function () { | ||
process.nextTick(exec); | ||
}); | ||
})(); | ||
} | ||
} | ||
}; | ||
{ "name" : "curlrequest", | ||
"description" : "A curl wrapper for node", | ||
"version" : "0.1.6", | ||
"version" : "0.1.7", | ||
"homepage" : "https://github.com/chriso/curlrequest", | ||
@@ -5,0 +5,0 @@ "author" : "Chris O'Hara <cohara87@gmail.com>", |
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
11356
257