Socket
Socket
Sign inDemoInstall

batch

Package Overview
Dependencies
77
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

5

History.md
0.0.3 / 2012-06-02
==================
* Callback results should be in the order of the queued functions.
0.0.2 / 2012-02-12

@@ -3,0 +8,0 @@ ==================

4

lib/batch.js

@@ -48,7 +48,7 @@

this.fns.forEach(function(fn){
this.fns.forEach(function(fn, index){
fn(function(err, res){
if (done) return;
if (err) return done = true, cb(err);
results.push(res);
results[index] = res;
--pending || cb(null, results);

@@ -55,0 +55,0 @@ });

{
"name": "batch"
, "version": "0.0.2"
, "version": "0.0.3"
, "description": "Simple async batch"

@@ -5,0 +5,0 @@ , "keywords": []

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc