Socket
Socket
Sign inDemoInstall

batch

Package Overview
Dependencies
0
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.3 to 0.6.0

LICENSE

2

component.json

@@ -5,3 +5,3 @@ {

"description": "Async task batching",
"version": "0.5.2",
"version": "0.6.0",
"keywords": ["batch", "async", "utility", "concurrency", "concurrent"],

@@ -8,0 +8,0 @@ "dependencies": {

@@ -0,2 +1,19 @@

0.6.0 / 2017-03-25
==================
* always invoke end callback asynchronously
* fix compatibility with component v1
* fix license field
0.5.3 / 2015-10-01
==================
* fix for browserify
0.5.2 / 2014-12-22
==================
* add brower field
* add license to package.json
0.5.1 / 2014-06-19

@@ -3,0 +20,0 @@ ==================

@@ -7,2 +7,3 @@ /**

var EventEmitter = require('events').EventEmitter;
if (!EventEmitter) throw new Error();
} catch (err) {

@@ -13,2 +14,10 @@ var Emitter = require('emitter');

/**
* Defer.
*/
var defer = typeof process === 'undefined' || typeof process !== 'function'
? function(fn){ setTimeout(fn); }
: process.nextTick;
/**
* Noop.

@@ -110,3 +119,5 @@ */

// empty
if (!fns.length) return cb(null, results);
if (!fns.length) return defer(function(){
cb(null, results);
});

@@ -128,3 +139,5 @@ // process

if (done) return;
if (err && throws) return done = true, cb(err);
if (err && throws) return done = true, defer(function(){
cb(err);
});
var complete = total - pending + 1;

@@ -150,4 +163,6 @@ var end = new Date;

if (--pending) next();
else if(!throws) cb(errors, results);
else cb(null, results);
else defer(function(){
if(!throws) cb(errors, results);
else cb(null, results);
});
}

@@ -154,0 +169,0 @@ }

{
"name": "batch",
"version": "0.5.3",
"licenses": [
{
"type": "MIT"
}
],
"description": "Simple async batch",
"description": "Simple async batch with concurrency control and progress reporting.",
"version": "0.6.0",
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"license": "MIT",
"devDependencies": {

@@ -12,0 +8,0 @@ "mocha": "*",

@@ -53,23 +53,2 @@

(The MIT License)
Copyright (c) 2013 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[MIT](LICENSE)
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