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 4.1.0 to 4.2.0

2

docs/assets/search_data.js

@@ -1,1 +0,1 @@

window.searchData = [{"t":"README.md","p":"README.md.html"},{"t":"HISTORY.md","p":"HISTORY.md.html"},{"t":"LICENSE.md","p":"LICENSE.md.html"}]
window.searchData = [{"t":"Task","p":"classes/Task.html"},{"t":"@isTask","h":"Task","p":"classes/Task.html#isTask-class"},{"t":"@create","h":"Task","p":"classes/Task.html#create-class"},{"t":".constructor","h":"Task","p":"classes/Task.html#constructor-instance"},{"t":".setConfig","h":"Task","p":"classes/Task.html#setConfig-instance"},{"t":".hasStarted","h":"Task","p":"classes/Task.html#hasStarted-instance"},{"t":".hasExited","h":"Task","p":"classes/Task.html#hasExited-instance"},{"t":".isDestroyed","h":"Task","p":"classes/Task.html#isDestroyed-instance"},{"t":".isComplete","h":"Task","p":"classes/Task.html#isComplete-instance"},{"t":".whenDone","h":"Task","p":"classes/Task.html#whenDone-instance"},{"t":".onceDone","h":"Task","p":"classes/Task.html#onceDone-instance"},{"t":".destroy","h":"Task","p":"classes/Task.html#destroy-instance"},{"t":".run","h":"Task","p":"classes/Task.html#run-instance"},{"t":"TaskGroup","p":"classes/TaskGroup.html"},{"t":"@isTaskGroup","h":"TaskGroup","p":"classes/TaskGroup.html#isTaskGroup-class"},{"t":"@create","h":"TaskGroup","p":"classes/TaskGroup.html#create-class"},{"t":".constructor","h":"TaskGroup","p":"classes/TaskGroup.html#constructor-instance"},{"t":".setNestedTaskConfig","h":"TaskGroup","p":"classes/TaskGroup.html#setNestedTaskConfig-instance"},{"t":".setNestedConfig","h":"TaskGroup","p":"classes/TaskGroup.html#setNestedConfig-instance"},{"t":".setConfig","h":"TaskGroup","p":"classes/TaskGroup.html#setConfig-instance"},{"t":".createTask","h":"TaskGroup","p":"classes/TaskGroup.html#createTask-instance"},{"t":".addTask","h":"TaskGroup","p":"classes/TaskGroup.html#addTask-instance"},{"t":".addTasks","h":"TaskGroup","p":"classes/TaskGroup.html#addTasks-instance"},{"t":".createGroup","h":"TaskGroup","p":"classes/TaskGroup.html#createGroup-instance"},{"t":".addGroup","h":"TaskGroup","p":"classes/TaskGroup.html#addGroup-instance"},{"t":".addGroups","h":"TaskGroup","p":"classes/TaskGroup.html#addGroups-instance"},{"t":".getItemsTotal","h":"TaskGroup","p":"classes/TaskGroup.html#getItemsTotal-instance"},{"t":".getItemNames","h":"TaskGroup","p":"classes/TaskGroup.html#getItemNames-instance"},{"t":".getItemTotals","h":"TaskGroup","p":"classes/TaskGroup.html#getItemTotals-instance"},{"t":".hasRunning","h":"TaskGroup","p":"classes/TaskGroup.html#hasRunning-instance"},{"t":".hasRemaining","h":"TaskGroup","p":"classes/TaskGroup.html#hasRemaining-instance"},{"t":".hasItems","h":"TaskGroup","p":"classes/TaskGroup.html#hasItems-instance"},{"t":".hasStarted","h":"TaskGroup","p":"classes/TaskGroup.html#hasStarted-instance"},{"t":".hasExited","h":"TaskGroup","p":"classes/TaskGroup.html#hasExited-instance"},{"t":".isEmpty","h":"TaskGroup","p":"classes/TaskGroup.html#isEmpty-instance"},{"t":".isComplete","h":"TaskGroup","p":"classes/TaskGroup.html#isComplete-instance"},{"t":".whenDone","h":"TaskGroup","p":"classes/TaskGroup.html#whenDone-instance"},{"t":".onceDone","h":"TaskGroup","p":"classes/TaskGroup.html#onceDone-instance"},{"t":".clear","h":"TaskGroup","p":"classes/TaskGroup.html#clear-instance"},{"t":".destroy","h":"TaskGroup","p":"classes/TaskGroup.html#destroy-instance"},{"t":".run","h":"TaskGroup","p":"classes/TaskGroup.html#run-instance"},{"t":"README.md","p":"README.md.html"},{"t":"HISTORY.md","p":"HISTORY.md.html"},{"t":"LICENSE.md","p":"LICENSE.md.html"}]
# History
## v4.2.0 February 2, 2015
- Reintroduced `try...catch` for Node v0.8 and browser environments with a workaround to prevent error suppression
- Thanks to [kksharma1618](https://github.com/kksharma1618) for [issue #17](https://github.com/bevry/taskgroup/issues/17)
- Closes [issue #18](https://github.com/bevry/taskgroup/issues/17)
- You can now ignore all the warnings from the v4.1.0 changelog as the behaviour is more or less the same as v4.0.5 but with added improvements
## v4.1.0 February 2, 2015

@@ -4,0 +10,0 @@ - This release fixes the errors in completion callbacks being swallowed/lost

@@ -357,4 +357,5 @@ // Generated by CoffeeScript 1.9.0

Task.prototype.fire = function() {
var args, complete, err, fire, me, _ref1;
var args, complete, completeOriginal, err, fireMethod, me, _ref1;
me = this;
args = (this.config.args || []).slice();
if ((((_ref1 = me.config.method) != null ? _ref1.bind : void 0) != null) === false) {

@@ -379,4 +380,3 @@ err = new Error("The task [" + (me.getNames()) + "] failed to run as no method was defined for it.");

}
args = (this.config.args || []).concat([complete]);
fire = function() {
fireMethod = function() {
var methodToFire;

@@ -399,6 +399,30 @@ methodToFire = me.config.method.bind(me);

me.emit(me.status = 'running');
if (this.taskDomain != null) {
this.taskDomain.run(fire);
if (process.browser || process.versions.node.substr(0, 3) === '0.8') {
completeOriginal = complete;
complete = function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
process.nextTick(function() {
return completeOriginal.apply(null, args);
});
return me;
};
args.push(complete);
try {
if (this.taskDomain != null) {
this.taskDomain.run(fireMethod);
} else {
fireMethod();
}
} catch (_error) {
err = _error;
me.exit(err);
}
} else {
fire();
args.push(complete);
if (this.taskDomain != null) {
this.taskDomain.run(fireMethod);
} else {
fireMethod();
}
}

@@ -405,0 +429,0 @@ return this;

{
"title": "TaskGroup",
"name": "taskgroup",
"version": "4.1.0",
"version": "4.2.0",
"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",

@@ -42,3 +42,3 @@ <!-- TITLE/ -->

- Install: `npm install --save taskgroup`
- CDN URL: `//wzrd.in/bundle/taskgroup@4.1.0`
- CDN URL: `//wzrd.in/bundle/taskgroup@4.2.0`

@@ -45,0 +45,0 @@ ### [Ender](http://ender.jit.su/)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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