Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency create-torrent to v5 (#134)
* fix(deps): update dependency create-torrent to v5 * Update global.js Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
- Loading branch information
1 parent
f033d98
commit 012f3fd
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const createTorrent = require('create-torrent') | ||
const wrtc = require('wrtc') | ||
|
||
global.WEBTORRENT_ANNOUNCE = createTorrent.announceList | ||
globalThis.WEBTORRENT_ANNOUNCE = createTorrent.announceList | ||
.map(arr => arr[0]) | ||
.filter(url => url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0) | ||
|
||
global.WRTC = wrtc | ||
globalThis.WRTC = wrtc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters