From 1d1852e9bb85770833b5c4390590597fb3e362ca Mon Sep 17 00:00:00 2001 From: prlanzarin <4529051+prlanzarin@users.noreply.github.com> Date: Fri, 6 Sep 2024 00:05:06 +0000 Subject: [PATCH] refactor: replace util._extend with Object.assign due to runtime deprecation --- src/environment.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/environment.js b/src/environment.js index e3e4d6665..568bfd9eb 100644 --- a/src/environment.js +++ b/src/environment.js @@ -1,9 +1,8 @@ "use strict"; -var extend = require('util')._extend; -extend(exports, require('./environment_browser')); +Object.assign(exports, require('./environment_browser')); -extend(exports, { +Object.assign(exports, { TransportUDP: require('./TransportUDP'), TransportTCP: require('./TransportTCP'), WebSocket: require('ws'),