Skip to content

Commit

Permalink
fix(deps): update dependency create-torrent to v5 (#134)
Browse files Browse the repository at this point in the history
* 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
3 people committed Aug 6, 2021
1 parent f033d98 commit 012f3fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/global.js
@@ -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
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/webtorrent/webtorrent-hybrid/issues"
},
"dependencies": {
"create-torrent": "^4.4.2",
"create-torrent": "^5.0.0",
"webtorrent": "^1.0.0",
"webtorrent-cli": "^3.2.0",
"wrtc": "^0.4.6"
Expand Down

0 comments on commit 012f3fd

Please sign in to comment.