Skip to content

Commit 162e7f4

Browse files
hutzelknechtMichael Sinner
authored and
Michael Sinner
committed
in node 22 there is an error message by node with the code: [DEP0060].
See: https://nodejs.org/api/deprecations.html#dep0060-util_extend Signed-off-by: Michael Sinner <[email protected]>
1 parent 3315d59 commit 162e7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var formatters = {
2929

3030
function Logger(options) {
3131
var defaults = JSON.parse(JSON.stringify(Logger.DEFAULTS));
32-
options = util._extend(defaults, options || {});
32+
options = Object.assign(defaults, options ?? {});
3333
var catcher = deLiner();
3434
var emitter = catcher;
3535
var transforms = [

0 commit comments

Comments
 (0)