fwsp-logger
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -122,7 +122,14 @@ 'use strict'; | ||
errSerializer(err) { | ||
return err instanceof Error ? { | ||
type: err.name || err.constructor.name, | ||
message: err.message, | ||
stack: err.stack | ||
} : err; | ||
let ret = err; | ||
if (err instanceof Error) { | ||
ret = Object.assign( | ||
JSON.parse(JSON.stringify(err)), | ||
{ | ||
type: err.name || err.constructor.name, | ||
message: err.message, | ||
stack: err.stack | ||
} | ||
); | ||
} | ||
return ret; | ||
} | ||
@@ -129,0 +136,0 @@ |
{ | ||
"name": "fwsp-logger", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Eric Adum", |
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
17452
359