Skip to content

Commit

Permalink
refactor: replace util._extend with Object.assign due to runtime depr…
Browse files Browse the repository at this point in the history
…ecation
  • Loading branch information
prlanzarin committed Sep 6, 2024
1 parent 10f0841 commit 1d1852e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/environment.js
Original file line number Diff line number Diff line change
@@ -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'),
Expand Down

0 comments on commit 1d1852e

Please sign in to comment.