baggywrinkle
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -91,2 +91,11 @@ const machineAsAction = require('machine-as-action'); | ||
}, | ||
badRequest: (output) => { | ||
return res.json(output.stack, 400); | ||
}, | ||
forbidden: (output) => { | ||
return res.json(output.stack, 403); | ||
}, | ||
notFound: (output) => { | ||
return res.json(output.stack, 404); | ||
}, | ||
// Allow setting context for AWS response (mainly for use in authorizers). | ||
@@ -93,0 +102,0 @@ context: {} |
{ | ||
"name": "baggywrinkle", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Run a machine from an AWS Lambda function.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
23614
186