lambda-log-wrapper
Advanced tools
Comparing version
@@ -31,5 +31,9 @@ 'use strict'; | ||
event.caller = caller; | ||
event.Caller = caller; | ||
// Copy by reference then delete the FunctionName property from the event (it is repetetative) | ||
var eventCopy = JSON.parse(JSON.stringify(event)); | ||
delete event.FunctionName; | ||
const request = { | ||
FunctionName: event.FunctionName, | ||
FunctionName: eventCopy.FunctionName, | ||
InvocationType: 'RequestResponse', | ||
@@ -36,0 +40,0 @@ Payload: JSON.stringify(event), |
{ | ||
"name": "lambda-log-wrapper", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "This is wrapper around node lambda which calls and logs ", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
7361
2.99%112
2.75%