lambda-wrapper
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -60,3 +60,5 @@ 'use strict'; | ||
} | ||
if (data.FunctionError) { | ||
return callback(Object.assign(new Error(JSON.parse(data.Payload).errorMessage), data)); | ||
} | ||
return callback(null, JSON.parse(data.Payload)); | ||
@@ -66,4 +68,3 @@ }); | ||
} catch (ex) { | ||
callback(ex); | ||
throw (ex); | ||
return callback(ex); | ||
} | ||
@@ -70,0 +71,0 @@ }); |
{ | ||
"name": "lambda-wrapper", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Wrapper for running Amazon Lambda modules locally", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
8761
113
0