Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "kgo", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Flow control the super easy way", | ||
@@ -5,0 +5,0 @@ "main": "kgo.js", |
10
run.js
var stackSlice = require('stack-slice'), | ||
ignoreDependency = /^\!.+/, | ||
errorDependency = /^\*/, | ||
errorSymbol = '*'; | ||
@@ -38,4 +37,3 @@ | ||
dependants = task.args, | ||
args = [], | ||
passError; | ||
args = []; | ||
@@ -117,4 +115,6 @@ if(dependants){ | ||
emitter._complete = true; | ||
emitter.emit('error', taskError, names); | ||
emitter.emit('complete'); | ||
if(!error){ | ||
emitter.emit('error', taskError, names); | ||
emitter.emit('complete'); | ||
} | ||
return; | ||
@@ -121,0 +121,0 @@ } |
@@ -93,2 +93,20 @@ var test = require('tape'), | ||
test('multiple errors 2', function(t){ | ||
t.plan(2); | ||
kgo | ||
('foo', function(done){ | ||
done(new Error('foo screwed up')); | ||
}) | ||
('bar', function(done){ | ||
done(new Error('bar screwed up')); | ||
}) | ||
.on('error', function(){ | ||
t.pass(); | ||
}) | ||
.on('complete', function(){ | ||
t.pass(); | ||
}); | ||
}); | ||
test('returnless', function(t){ | ||
@@ -95,0 +113,0 @@ t.plan(3); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23156
650