Skip to content

Commit

Permalink
in node 22 there is an error message by node with the code: [DEP0060].
Browse files Browse the repository at this point in the history
  • Loading branch information
hutzelknecht authored and Michael Sinner committed Apr 25, 2024
1 parent b7a9137 commit 945982c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var formatters = {

function Logger(options) {
var defaults = JSON.parse(JSON.stringify(Logger.DEFAULTS));
options = Object.assign(defaults, options || {});
options = Object.assign(defaults, options ?? {});
var catcher = deLiner();
var emitter = catcher;
var transforms = [
Expand Down

0 comments on commit 945982c

Please sign in to comment.