Comparing version 2.0.0 to 2.1.0
@@ -71,2 +71,6 @@ var cq = require('concurrent-queue'), | ||
return function partialInvoke (msgBody, cb) { | ||
if (typeof msgBody === 'function') { | ||
cb = msgBody | ||
msgBody = {} | ||
} | ||
return stream.invoke(assign({}, partialBody, msgBody), cb) | ||
@@ -73,0 +77,0 @@ } |
{ | ||
"name": "argosy", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A modular, pipable, micro-service framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ var test = require('tape'), | ||
test('invoke-partial', function (t) { | ||
t.plan(3) | ||
t.plan(5) | ||
@@ -24,2 +24,8 @@ var client = argosy() | ||
}) | ||
var random5 = client.invoke.partial({ get: 'random-number', min: 1, max: 5 }) | ||
random5(function (err, result) { | ||
t.false(err, 'function when called should not produce error') | ||
t.ok(result >= 1 && result <= 5, 'function should not require a match object') | ||
}) | ||
}) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34438
460
6