Skip to content

Commit ec76a4f

Browse files
committed
chore(maintenance): drop support for Node.js 14 (#1802)
1 parent 12bd0e0 commit ec76a4f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@
7474
"engines": {
7575
"node": ">=16"
7676
}
77-
}
77+
}

Diff for: packages/logger/src/formatter/LogFormatter.ts

+4-3
Original file line numberDiff line numberDiff 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

Diff for: tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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",

0 commit comments

Comments
 (0)