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

async-waterfall

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-waterfall - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

bower.json
{
"name": "async-waterfall",
"repo": "es128/async-waterfall",
"description": "Simple, isolated async waterfall module for JavaScript",
"version": "0.1.1",
"keywords": ["async", "waterfall"],
"description": "Runs a list of async tasks, passing the results of each into the next one",
"version": "0.1.2",
"keywords": ["async", "waterfall", "tasks", "control", "flow"],
"main": "index.js",

@@ -8,0 +8,0 @@ "scripts": ["index.js"],

{
"name": "async-waterfall",
"repo": "es128/async-waterfall",
"description": "Simple, isolated async waterfall module for JavaScript",
"version": "0.1.1",
"keywords": ["async", "waterfall"],
"description": "Runs a list of async tasks, passing the results of each into the next one",
"version": "0.1.2",
"keywords": ["async", "waterfall", "tasks", "control", "flow"],
"main": "index.js",

@@ -8,0 +8,0 @@ "scripts": ["index.js"],

@@ -6,6 +6,8 @@ // MIT license (by Elan Shanker).

var nextTick = function (fn) {
if (typeof process === 'undefined' || !(process.nextTick)) {
if (typeof setImmediate === 'function') {
setImmediate(fn);
} else if (typeof process !== 'undefined' && process.nextTick) {
process.nextTick(fn);
} else {
setTimeout(fn, 0);
} else {
process.nextTick(fn);
}

@@ -44,4 +46,3 @@ };

callback = function () {};
}
else {
} else {
var args = Array.prototype.slice.call(arguments, 1);

@@ -51,4 +52,3 @@ var next = iterator.next();

args.push(wrapIterator(next));
}
else {
} else {
args.push(callback);

@@ -55,0 +55,0 @@ }

{
"name": "async-waterfall",
"version": "0.1.1",
"description": "Simple, isolated async waterfall module for JavaScript",
"version": "0.1.2",
"description": "Runs a list of async tasks, passing the results of each into the next one",
"author": {

@@ -18,4 +18,4 @@ "name": "Elan Shanker",

"main": "./index",
"keywords": ["async", "waterfall"],
"keywords": ["async", "waterfall", "tasks", "control", "flow"],
"dependencies": {}
}

@@ -35,14 +35,14 @@ # async-waterfall

waterfall([
function(callback){
callback(null, 'one', 'two');
},
function(arg1, arg2, callback){
callback(null, 'three');
},
function(arg1, callback){
// arg1 now equals 'three'
callback(null, 'done');
}
function(callback){
callback(null, 'one', 'two');
},
function(arg1, arg2, callback){
callback(null, 'three');
},
function(arg1, callback){
// arg1 now equals 'three'
callback(null, 'done');
}
], function (err, result) {
// result now equals 'done'
// result now equals 'done'
});

@@ -49,0 +49,0 @@ ```

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