in-parallel
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -0,1 +1,6 @@ | ||
function isFunction(functionToCheck) { | ||
var getType = {}; | ||
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; | ||
} | ||
module.exports = { | ||
@@ -38,3 +43,3 @@ showDebugMessages: true, | ||
if(showDebugMessages) { | ||
console.log("Provided collection is empty.", true); | ||
console.log("Provided collection is empty."); | ||
} | ||
@@ -50,3 +55,3 @@ if(isFunction(handleError)) { | ||
} else { | ||
if(showDebugMessages) console.log("Missing necessary arguments. No collection provided.", true); | ||
if(showDebugMessages) console.log("Missing necessary arguments. No collection provided."); | ||
if(isFunction(handleError)) handleError({message:"Missing necessary arguments: " + collection + " " + parallelAction + " " + onFinish}); | ||
@@ -53,0 +58,0 @@ } |
{ | ||
"name": "in-parallel", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "A small library for Runs a function on the elements of the provided collection in parallel ", | ||
@@ -21,7 +21,3 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/Lwdthe1/in-parallel#readme", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"mocha": "^2.4.5" | ||
} | ||
"homepage": "https://github.com/Lwdthe1/in-parallel#readme" | ||
} |
@@ -12,3 +12,3 @@ # in-parallel | ||
//the proceedAfterParallelAction() method is provided | ||
var inParallel = require('scapegoat'); | ||
var inParallel = require('in-parallel'); | ||
``` | ||
@@ -15,0 +15,0 @@ ###A Simple Example |
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
0
5420
5
54