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

taskgroup

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taskgroup - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

5

History.md
## History
- v3.3.1 November 6, 2013
- Fixed child event bubbling by using duck typing (regression since v3.3.0)
- Better error handling on uncaught task exceptions
- Tasks will now get a default name set to ease debugging
- v3.3.0 November 1, 2013

@@ -4,0 +9,0 @@ - Bindings are now more explicit

50

out/lib/taskgroup.js

@@ -47,3 +47,3 @@ // Generated by CoffeeScript 1.6.3

function Task() {
var arg, args, key, opts, value, _base, _i, _len;
var arg, args, key, opts, value, _base, _base1, _i, _len;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

@@ -54,5 +54,8 @@ Task.__super__.constructor.apply(this, arguments);

}
if ((_base = this.config).run == null) {
_base.run = false;
if ((_base = this.config).name == null) {
_base.name = "Task " + (Math.random());
}
if ((_base1 = this.config).run == null) {
_base1.run = false;
}
opts = {};

@@ -218,3 +221,3 @@ for (_i = 0, _len = args.length; _i < _len; _i++) {

function TaskGroup() {
var arg, args, key, me, opts, value, _base, _base1, _base2, _i, _len;
var arg, args, key, me, opts, value, _base, _base1, _base2, _base3, _i, _len;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

@@ -226,11 +229,14 @@ me = this;

}
if ((_base = this.config).concurrency == null) {
_base.concurrency = 1;
if ((_base = this.config).name == null) {
_base.name = "Task Group " + (Math.random());
}
if ((_base1 = this.config).pauseOnError == null) {
_base1.pauseOnError = true;
if ((_base1 = this.config).concurrency == null) {
_base1.concurrency = 1;
}
if ((_base2 = this.config).run == null) {
_base2.run = false;
if ((_base2 = this.config).pauseOnError == null) {
_base2.pauseOnError = true;
}
if ((_base3 = this.config).run == null) {
_base3.run = false;
}
if (this.results == null) {

@@ -266,6 +272,3 @@ this.results = [];

this.on('item.complete', this.itemCompletionCallback.bind(this));
this.on('item.error', function(item, err) {
me.stop();
return me.emit('error', err);
});
this.on('item.error', this.itemUncaughtExceptionCallback.bind(this));
this;

@@ -354,2 +357,7 @@ }

TaskGroup.prototype.itemUncaughtExceptionCallback = function(item, err) {
this.exit(err);
return this;
};
TaskGroup.prototype.getTotals = function() {

@@ -375,3 +383,3 @@ var completed, remaining, running, total;

});
if (item instanceof Task) {
if (item.type === 'task') {
this.bubbleEvents.forEach(function(bubbleEvent) {

@@ -386,3 +394,3 @@ return item.on(bubbleEvent, function() {

}
if (item instanceof TaskGroup) {
if (item.type === 'taskgroup') {
this.bubbleEvents.forEach(function(bubbleEvent) {

@@ -430,4 +438,7 @@ return item.on(bubbleEvent, function() {

TaskGroup.prototype.createTask = function() {
var args;
var args, _ref;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (((_ref = args[0]) != null ? _ref.type : void 0) === 'task') {
return args[0];
}
return (function(func, args, ctor) {

@@ -464,4 +475,7 @@ ctor.prototype = func.prototype;

TaskGroup.prototype.createGroup = function() {
var args;
var args, _ref;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (((_ref = args[0]) != null ? _ref.type : void 0) === 'taskgroup') {
return args[0];
}
return (function(func, args, ctor) {

@@ -468,0 +482,0 @@ ctor.prototype = func.prototype;

{
"title": "TaskGroup",
"name": "taskgroup",
"version": "3.3.0",
"version": "3.3.1",
"description": "Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/bevry/taskgroup",

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