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:
renovate[bot]
2021-08-05 20:54:37 -05:00
committed by GitHub
parent d00b9ba081
commit c531169a37
3 changed files with 70 additions and 10 deletions

View File

@@ -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)