From edc8538b3613a37dee063e8dfb8a01062b355aa1 Mon Sep 17 00:00:00 2001 From: Maysara <56265744+maysara-elshewehy@users.noreply.github.com> Date: Sun, 23 Jun 2024 00:09:50 +0300 Subject: [PATCH] Fix error [DEP0060] in Tsifier.js Fix Error : (node:12920) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead. (Use `node --trace-deprecation ...` to show where the warning was created) --- lib/Tsifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Tsifier.js b/lib/Tsifier.js index 8e84002..ebc9f4b 100644 --- a/lib/Tsifier.js +++ b/lib/Tsifier.js @@ -2,7 +2,7 @@ var convert = require('convert-source-map'); var events = require('events'); -var extend = require('util')._extend; +var extend = Object.assign; var fs = require('fs'); var realpath = require('fs.realpath'); var log = require('util').debuglog(require('../package').name);