Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "pudge", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "simple node.js hook utility", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha test" | ||
"test": "jest" | ||
}, | ||
@@ -26,8 +26,8 @@ "repository": { | ||
"debug": "4.1.1", | ||
"extend": "^3.0.0" | ||
"extend": "3.0.2" | ||
}, | ||
"devDependencies": { | ||
"mocha": "6.0.2", | ||
"jest": "24.9.0", | ||
"sinon": "7.3.0" | ||
} | ||
} |
30
test.js
@@ -82,22 +82,20 @@ "use strict"; | ||
it('should map the results', function() { | ||
it('should map the results', function(done) { | ||
pudge.register('ROOT', 'head', function() { | ||
return delay(10).then(function() { | ||
return "I_AM_HEAD"; | ||
}); | ||
it('should map the results', function(done) { | ||
pudge.register('ROOT', 'head', function() { | ||
return delay(10).then(function() { | ||
return "I_AM_HEAD"; | ||
}); | ||
}); | ||
pudge.register('ROOT', 'leg', function() { | ||
return delay(10).then(function() { | ||
return "I_AM_LEG"; | ||
}); | ||
pudge.register('ROOT', 'leg', function() { | ||
return delay(10).then(function() { | ||
return "I_AM_LEG"; | ||
}); | ||
}); | ||
pudge.run('ROOT').then(function(results) { | ||
assert(results.leg === "I_AM_LEG"); | ||
assert(results.head === "I_AM_HEAD"); | ||
done(); | ||
}).catch(done); | ||
}); | ||
pudge.run('ROOT').then(function(results) { | ||
assert(results.leg === "I_AM_LEG"); | ||
assert(results.head === "I_AM_HEAD"); | ||
done(); | ||
}).catch(done); | ||
}); | ||
@@ -104,0 +102,0 @@ |
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
0
14261
323
Updatedextend@3.0.2