fix(deps): update dependency create-torrent to v5 (#2034)
* fix(deps): update dependency create-torrent to v5 * Update webtorrent.js Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
This commit is contained in:
@@ -17,7 +17,7 @@ const { TorrentKeyNotFoundError } = require('./lib/errors')
|
||||
const torrentPoster = require('./lib/torrent-poster')
|
||||
|
||||
// Force use of webtorrent trackers on all torrents
|
||||
global.WEBTORRENT_ANNOUNCE = defaultAnnounceList
|
||||
globalThis.WEBTORRENT_ANNOUNCE = defaultAnnounceList
|
||||
.map((arr) => arr[0])
|
||||
.filter((url) => url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user