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.1 to 0.6.2

11

lib/async.js

@@ -31,11 +31,8 @@ /*jshint onevar: false, indent:4 */

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

@@ -448,3 +445,3 @@ if (arr.forEach) {

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

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

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

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

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

@@ -1245,6 +1245,7 @@ # Async.js

* `tasks` - An object literal (containing named functions) or an array (of
requirements, with the function itself the last item in the array). The key
used for each function or array is used when specifying requirements. The
function receives two arguments: (1) a `callback(err, result)` which must be
* `tasks` - An object. Each of its properties is either a function or an array of
requirements, with the function itself the last item in the array. The object's key
of a property serves as the name of the task defined by that property,
i.e. can be used when specifying requirements for other tasks.
The function receives two arguments: (1) a `callback(err, result)` which must be
called when finished, passing an `error` (which can be `null`) and the result of

@@ -1251,0 +1252,0 @@ the function's execution, and (2) a `results` object, containing the results of

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