baggywrinkle
Advanced tools
Comparing version 1.1.0 to 1.2.0
11
index.js
const machineAsAction = require('machine-as-action'); | ||
const statuses = require('statuses'); | ||
module.exports = function machineAsLambda(optsOrMachineDefOrMachine, bootstrap) { | ||
module.exports = function machineAsLambda(optsOrMachineDefOrMachine, bootstrap, teardown) { | ||
@@ -73,2 +73,11 @@ // MAAify the passed-in machine (or machine def), unless it's already been done. | ||
} | ||
if (teardown) { | ||
return teardown(() => { | ||
callback(null, { | ||
statusCode: statusCode, | ||
headers: headers, | ||
body: body | ||
}); | ||
}) | ||
} | ||
callback(null, { | ||
@@ -75,0 +84,0 @@ statusCode: statusCode, |
{ | ||
"name": "baggywrinkle", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Run a machine from an AWS Lambda function.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
19040
113