Comparing version 1.1.1 to 1.1.2
@@ -23,2 +23,6 @@ var run = require('./run'), | ||
if(typeof fn !== 'function'){ | ||
throw new Error('No function provided for task number ' + Object.keys(tasks).length + ' (' + name + ')'); | ||
} | ||
tasks[name] = { | ||
@@ -30,4 +34,5 @@ name: name, | ||
return kgoFn | ||
}; | ||
return kgoFn; | ||
} | ||
for(var key in EventEmitter.prototype){ | ||
@@ -34,0 +39,0 @@ kgoFn[key] = EventEmitter.prototype[key]; |
{ | ||
"name": "kgo", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Flow control the super easy way", | ||
@@ -5,0 +5,0 @@ "main": "kgo.js", |
@@ -10,2 +10,10 @@ var test = require('grape'), | ||
test('no function', function(t){ | ||
t.plan(1); | ||
t.throws(function(){ | ||
kgo('things'); | ||
}); | ||
}); | ||
test('waterfall', function(t){ | ||
@@ -12,0 +20,0 @@ t.plan(1); |
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
10455
7
215