File tree 3 files changed +6
-5
lines changed
packages/logger/src/formatter
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 74
74
"engines" : {
75
75
"node" : " >=16"
76
76
}
77
- }
77
+ }
Original file line number Diff line number Diff line change @@ -65,10 +65,11 @@ abstract class LogFormatter implements LogFormatterInterface {
65
65
location : this . getCodeLocation ( error . stack ) ,
66
66
message : error . message ,
67
67
stack : error . stack ,
68
- cause :
69
- error . cause instanceof Error
68
+ cause : isErrorWithCause ( error )
69
+ ? error . cause instanceof Error
70
70
? this . formatError ( error . cause )
71
- : error . cause ,
71
+ : error . cause
72
+ : undefined ,
72
73
} ;
73
74
}
74
75
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"incremental" : true ,
4
4
"composite" : true ,
5
- "target" : " ES2022 " , // Node.js 16
5
+ "target" : " ES2021 " , // Node.js 16
6
6
"experimentalDecorators" : true ,
7
7
"module" : " commonjs" ,
8
8
"moduleResolution" : " node" ,
You can’t perform that action at this time.
0 commit comments