Socket
Socket
Sign inDemoInstall

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.0.1 to 4.0.2

81

out/lib/taskgroup.js

@@ -174,3 +174,3 @@ // Generated by CoffeeScript 1.7.1

}
this.events.push('error', 'started', 'running', 'failed', 'passed', 'completed', 'destroyed');
this.events.push('error', 'started', 'running', 'failed', 'passed', 'completed', 'done', 'destroyed');
this.setConfig(args);

@@ -181,3 +181,3 @@ this;

Task.prototype.setConfig = function(opts) {
var arg, args, key, value, _i, _len;
var arg, args, key, value, _i, _key, _len, _value;
if (opts == null) {

@@ -214,2 +214,27 @@ opts = {};

switch (key) {
case 'on':
for (_key in value) {
if (!__hasProp.call(value, _key)) continue;
_value = value[_key];
if (value) {
this.on(_key, _value);
}
}
break;
case 'once':
for (_key in value) {
if (!__hasProp.call(value, _key)) continue;
_value = value[_key];
if (value) {
this.once(_key, _value);
}
}
break;
case 'whenDone':
if (value) {
this.whenDone(value);
}
break;
case 'onceDone':
case 'done':
case 'next':

@@ -257,7 +282,3 @@ if (value) {

}
if (this.err != null) {
this.status = 'failed';
} else {
this.status = 'passed';
}
this.status = (this.err != null ? 'failed' : 'passed');
this.emit(this.status, this.err);

@@ -349,4 +370,3 @@ this.complete();

methodToFire = me.config.method.bind(me);
me.status = 'running';
me.emit(me.status);
me.emit(me.status = 'running');
if (me.config.timeout) {

@@ -386,4 +406,3 @@ me.timeout = setTimeout(function() {

} else {
_this.status = 'started';
_this.emit(_this.status);
_this.emit(_this.status = 'started');
return _this.fire();

@@ -466,3 +485,3 @@ }

}
this.events.push('error', 'started', 'running', 'passed', 'failed', 'completed', 'destroyed');
this.events.push('error', 'started', 'running', 'passed', 'failed', 'completed', 'done', 'destroyed');
this.setConfig(args);

@@ -507,3 +526,3 @@ queue(this.autoRun.bind(this));

TaskGroup.prototype.setConfig = function(opts) {
var arg, args, key, value, _i, _len;
var arg, args, key, value, _i, _key, _len, _value;
if (opts == null) {

@@ -540,2 +559,27 @@ opts = {};

switch (key) {
case 'on':
for (_key in value) {
if (!__hasProp.call(value, _key)) continue;
_value = value[_key];
if (value) {
this.on(_key, _value);
}
}
break;
case 'once':
for (_key in value) {
if (!__hasProp.call(value, _key)) continue;
_value = value[_key];
if (value) {
this.once(_key, _value);
}
}
break;
case 'whenDone':
if (value) {
this.whenDone(value);
}
break;
case 'onceDone':
case 'done':
case 'next':

@@ -1004,4 +1048,6 @@ if (value) {

return function() {
_this.status = 'destroyed';
_this.emit(_this.status);
if (_this.status === 'destroyed') {
return;
}
_this.emit(_this.status = 'destroyed');
_this.resetResults();

@@ -1020,3 +1066,3 @@ return _this.removeAllListeners();

}
this.status = this.err != null ? 'failed' : 'passed';
this.status = (this.err != null ? 'failed' : 'passed');
this.emit(this.status, this.err);

@@ -1032,4 +1078,3 @@ this.complete();

return function() {
_this.status = 'started';
_this.emit(_this.status);
_this.emit(_this.status = 'started');
return _this.fire();

@@ -1036,0 +1081,0 @@ };

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

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