Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "kgo", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Flow control the super easy way", | ||
@@ -5,0 +5,0 @@ "main": "kgo.js", |
@@ -113,3 +113,4 @@ var ignoreDependency = /^\!.+/; | ||
function checkDependencyIsDefined(dependencyName){ | ||
dependencyName = dependencyName.split('!').pop(); | ||
dependencyName = dependencyName.match(/\!?(.*)/)[1]; | ||
if(!(dependencyName in tasks) && !(dependencyName in results)){ | ||
@@ -116,0 +117,0 @@ throw new Error('No task or result has been defined for dependency: ' + dependencyName); |
@@ -294,2 +294,18 @@ var test = require('tape'), | ||
test('tasks with ! in dependency name', function(t){ | ||
t.plan(2); | ||
kgo | ||
('fo!o', function(done){ | ||
done(null, 'foo'); | ||
}) | ||
('ba!r', ['fo!o'], function(foo, done){ | ||
t.equal(foo, 'foo'); | ||
done(null, 'bar'); | ||
}) | ||
(['!fo!o', 'ba!r'], function(bar){ | ||
t.equal(bar, 'bar'); | ||
}); | ||
}); | ||
test('must have argmuents', function(t){ | ||
@@ -296,0 +312,0 @@ t.plan(2); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
18489
469
1