@ibm-functions/composer
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -345,3 +345,3 @@ /* | ||
const handler = chain(compile(json.handler, path + '.handler'), [{ type: 'pass', path }]) | ||
var fsm = [[{ type: 'try', path }], body].reduce(chain) | ||
var fsm = [[{ type: 'try', path }], body, [{ type: 'exit', path }]].reduce(chain) | ||
fsm[0].catch = fsm.length | ||
@@ -348,0 +348,0 @@ fsm.slice(-1)[0].next = handler.length |
{ | ||
"name": "@ibm-functions/composer", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Composer is an IBM Cloud Functions programming model for composing individual functions into larger applications.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ibm-functions/composer", |
@@ -430,2 +430,7 @@ const assert = require('assert') | ||
it('retain', function () { | ||
return invoke(composer.retain(composer.try(() => ({ p: 4 }))), { n: 3 }) | ||
.then(activation => assert.deepEqual(activation.response.result, { params: { n: 3 }, result: { p: 4 } })) | ||
}) | ||
it('invalid options', function () { | ||
@@ -432,0 +437,0 @@ try { |
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
102605
1082
0