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.5 to 3.3.6

4

History.md
# History
- v3.3.6 November 29, 2013
- Properly fixed v3.3.3 issue while maintaining node.js v0.8 and browserify support
- Thanks to [pflannery](https://github.com/pflannery) for [pull request #11](https://github.com/bevry/taskgroup/pull/11)
- v3.3.5 November 28, 2013

@@ -4,0 +8,0 @@ - Re-added Node.js v0.8 support (regression since v3.3.3)

35

out/lib/taskgroup.js
// Generated by CoffeeScript 1.6.3
(function() {
var EventEmitter, Task, TaskGroup, ambi, domain, err, events, setImmediate,
var EventEmitter, Task, TaskGroup, ambi, domain, events, setImmediate, _ref,
__hasProp = {}.hasOwnProperty,

@@ -8,3 +8,3 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },

setImmediate = setImmediate || process.nextTick;
setImmediate = (typeof global !== "undefined" && global !== null ? global.setImmediate : void 0) || process.nextTick;

@@ -15,10 +15,7 @@ ambi = require('ambi');

domain = (function() {
domain = (_ref = ((function() {
try {
return require('domain');
} catch (_error) {
err = _error;
return null;
}
})();
} catch (_error) {}
})())) != null ? _ref : null;

@@ -118,3 +115,3 @@ EventEmitter = events.EventEmitter;

Task.prototype.uncaughtExceptionCallback = function() {
var args;
var args, err;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

@@ -130,3 +127,3 @@ err = args[0];

Task.prototype.completionCallback = function() {
var args;
var args, err;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

@@ -164,2 +161,3 @@ if (!this.completed) {

fire = function() {
var err;
try {

@@ -181,2 +179,3 @@ return ambi.apply(null, [me.config.method.bind(me)].concat(__slice.call(args)));

Task.prototype.run = function() {
var err;
if (this.completed) {

@@ -441,3 +440,3 @@ err = new Error("A task was about to run but it has already completed, this is unexpected");

TaskGroup.prototype.createTask = function() {
var args, _ref;
var args, _ref1;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

@@ -447,3 +446,3 @@ if (!args[0]) {

}
if (((_ref = args[0]) != null ? _ref.type : void 0) === 'task') {
if (((_ref1 = args[0]) != null ? _ref1.type : void 0) === 'task') {
return args[0];

@@ -482,3 +481,3 @@ }

TaskGroup.prototype.createGroup = function() {
var args, _ref;
var args, _ref1;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

@@ -488,3 +487,3 @@ if (!args[0]) {

}
if (((_ref = args[0]) != null ? _ref.type : void 0) === 'taskgroup') {
if (((_ref1 = args[0]) != null ? _ref1.type : void 0) === 'taskgroup') {
return args[0];

@@ -575,6 +574,6 @@ }

TaskGroup.prototype.clear = function() {
var item, _i, _len, _ref;
_ref = this.remaining.splice(0);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i];
var item, _i, _len, _ref1;
_ref1 = this.remaining.splice(0);
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
item = _ref1[_i];
item.destroy();

@@ -581,0 +580,0 @@ }

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