pn-lambda-logger
Advanced tools
Comparing version
@@ -177,2 +177,9 @@ "use strict"; | ||
preProcessErrorProperties(logInput) { | ||
if (logInput instanceof Error) { | ||
return Object.assign({}, logInput, { | ||
name: logInput.name, | ||
message: logInput.message, | ||
stack: logInput.stack ? logInput.stack.split('\n') : '' | ||
}); | ||
} | ||
for (let prop of Object.keys(logInput)) { | ||
@@ -179,0 +186,0 @@ if (logInput[prop] instanceof Error) { |
@@ -68,4 +68,4 @@ export interface LogOutput { | ||
*/ | ||
'stack': string; | ||
'stack'?: string[]; | ||
[x: string]: any; | ||
} |
{ | ||
"name": "pn-lambda-logger", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Logger for AWS Lambda nodejs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
116559
1.74%1069
0.66%