File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
packages/logger/src/formatter Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 7474 "engines" : {
7575 "node" : " >=16"
7676 }
77- }
77+ }
Original file line number Diff line number Diff line change @@ -65,10 +65,11 @@ abstract class LogFormatter implements LogFormatterInterface {
6565 location : this . getCodeLocation ( error . stack ) ,
6666 message : error . message ,
6767 stack : error . stack ,
68- cause :
69- error . cause instanceof Error
68+ cause : isErrorWithCause ( error )
69+ ? error . cause instanceof Error
7070 ? this . formatError ( error . cause )
71- : error . cause ,
71+ : error . cause
72+ : undefined ,
7273 } ;
7374 }
7475
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "incremental" : true ,
44 "composite" : true ,
5- "target" : " ES2022 " , // Node.js 16
5+ "target" : " ES2021 " , // Node.js 16
66 "experimentalDecorators" : true ,
77 "module" : " commonjs" ,
88 "moduleResolution" : " node" ,
You can’t perform that action at this time.
0 commit comments