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

async

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

13

lib/async.js

@@ -35,2 +35,7 @@ /*jshint onevar: false, indent:4 */

var _isFunction = function (obj) {
return obj instanceof Function ||
toString.call(obj) === '[object Function]';
};
var _each = function (arr, iterator) {

@@ -127,3 +132,3 @@ if (arr.forEach) {

if (completed >= arr.length) {
callback(null);
callback();
}

@@ -150,3 +155,3 @@ }

if (completed >= arr.length) {
callback(null);
callback();
}

@@ -410,3 +415,3 @@ else {

if (!remainingTasks) {
return callback(null);
return callback();
}

@@ -446,3 +451,3 @@

_each(keys, function (k) {
var task = (tasks[k] instanceof Function) ? [tasks[k]]: tasks[k];
var task = _isFunction(tasks[k]) ? [tasks[k]]: tasks[k];
var taskCallback = function (err) {

@@ -449,0 +454,0 @@ var args = Array.prototype.slice.call(arguments, 1);

@@ -6,3 +6,3 @@ {

"author": "Caolan McMahon",
"version": "0.6.0",
"version": "0.6.1",
"repository" : {

@@ -9,0 +9,0 @@ "type" : "git",

@@ -1143,2 +1143,3 @@ # Async.js

the `worker` has completed some tasks, each callback of those tasks is called.
Check out [this animation](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) for how `cargo` and `queue` work.

@@ -1145,0 +1146,0 @@ While [queue](#queue) passes only one task to one of a group of workers

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