Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

in-parallel

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

in-parallel - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

9

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc