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

76
package-lock.json generated
View File

@@ -16,7 +16,7 @@
"capture-frame": "4.0.0", "capture-frame": "4.0.0",
"chokidar": "3.5.2", "chokidar": "3.5.2",
"chromecasts": "1.10.0", "chromecasts": "1.10.0",
"create-torrent": "4.7.2", "create-torrent": "5.0.0",
"debounce": "1.2.1", "debounce": "1.2.1",
"dlnacasts": "0.1.0", "dlnacasts": "0.1.0",
"drag-drop": "7.2.0", "drag-drop": "7.2.0",
@@ -4106,9 +4106,9 @@
} }
}, },
"node_modules/create-torrent": { "node_modules/create-torrent": {
"version": "4.7.2", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/create-torrent/-/create-torrent-4.7.2.tgz", "resolved": "https://registry.npmjs.org/create-torrent/-/create-torrent-5.0.0.tgz",
"integrity": "sha512-8T5zMK0WhOfm2QubE/ZFVxaoCmhZk6I01ze53MIIe1HI0dxsvYohkNtFXEHL5oXi1vkbJOD/yLVJuUc4cCziog==", "integrity": "sha512-FpflZjocxYhunHsfSSd2BS+M+YtmzBpgo4nrc+NmVHfFmzFs1XXsJS/+h2EPtIxezkIRIg0u/htIpVOmrbHuSg==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
@@ -4142,7 +4142,7 @@
"create-torrent": "bin/cmd.js" "create-torrent": "bin/cmd.js"
}, },
"engines": { "engines": {
"node": ">=4" "node": ">=12"
} }
}, },
"node_modules/create-torrent/node_modules/readable-stream": { "node_modules/create-torrent/node_modules/readable-stream": {
@@ -15758,6 +15758,46 @@
"utp-native": "^2.5.3" "utp-native": "^2.5.3"
} }
}, },
"node_modules/webtorrent/node_modules/create-torrent": {
"version": "4.7.2",
"resolved": "https://registry.npmjs.org/create-torrent/-/create-torrent-4.7.2.tgz",
"integrity": "sha512-8T5zMK0WhOfm2QubE/ZFVxaoCmhZk6I01ze53MIIe1HI0dxsvYohkNtFXEHL5oXi1vkbJOD/yLVJuUc4cCziog==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"dependencies": {
"bencode": "^2.0.2",
"block-stream2": "^2.1.0",
"filestream": "^5.0.0",
"is-file": "^1.0.0",
"junk": "^3.1.0",
"minimist": "^1.2.5",
"multistream": "^4.1.0",
"once": "^1.4.0",
"piece-length": "^2.0.1",
"queue-microtask": "^1.2.3",
"readable-stream": "^3.6.0",
"run-parallel": "^1.2.0",
"simple-sha1": "^3.1.0"
},
"bin": {
"create-torrent": "bin/cmd.js"
},
"engines": {
"node": ">=4"
}
},
"node_modules/webtorrent/node_modules/debug": { "node_modules/webtorrent/node_modules/debug": {
"version": "4.3.2", "version": "4.3.2",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
@@ -19498,9 +19538,9 @@
} }
}, },
"create-torrent": { "create-torrent": {
"version": "4.7.2", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/create-torrent/-/create-torrent-4.7.2.tgz", "resolved": "https://registry.npmjs.org/create-torrent/-/create-torrent-5.0.0.tgz",
"integrity": "sha512-8T5zMK0WhOfm2QubE/ZFVxaoCmhZk6I01ze53MIIe1HI0dxsvYohkNtFXEHL5oXi1vkbJOD/yLVJuUc4cCziog==", "integrity": "sha512-FpflZjocxYhunHsfSSd2BS+M+YtmzBpgo4nrc+NmVHfFmzFs1XXsJS/+h2EPtIxezkIRIg0u/htIpVOmrbHuSg==",
"requires": { "requires": {
"bencode": "^2.0.2", "bencode": "^2.0.2",
"block-stream2": "^2.1.0", "block-stream2": "^2.1.0",
@@ -28625,6 +28665,26 @@
"utp-native": "^2.5.3" "utp-native": "^2.5.3"
}, },
"dependencies": { "dependencies": {
"create-torrent": {
"version": "4.7.2",
"resolved": "https://registry.npmjs.org/create-torrent/-/create-torrent-4.7.2.tgz",
"integrity": "sha512-8T5zMK0WhOfm2QubE/ZFVxaoCmhZk6I01ze53MIIe1HI0dxsvYohkNtFXEHL5oXi1vkbJOD/yLVJuUc4cCziog==",
"requires": {
"bencode": "^2.0.2",
"block-stream2": "^2.1.0",
"filestream": "^5.0.0",
"is-file": "^1.0.0",
"junk": "^3.1.0",
"minimist": "^1.2.5",
"multistream": "^4.1.0",
"once": "^1.4.0",
"piece-length": "^2.0.1",
"queue-microtask": "^1.2.3",
"readable-stream": "^3.6.0",
"run-parallel": "^1.2.0",
"simple-sha1": "^3.1.0"
}
},
"debug": { "debug": {
"version": "4.3.2", "version": "4.3.2",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",

View File

@@ -29,7 +29,7 @@
"capture-frame": "4.0.0", "capture-frame": "4.0.0",
"chokidar": "3.5.2", "chokidar": "3.5.2",
"chromecasts": "1.10.0", "chromecasts": "1.10.0",
"create-torrent": "4.7.2", "create-torrent": "5.0.0",
"debounce": "1.2.1", "debounce": "1.2.1",
"dlnacasts": "0.1.0", "dlnacasts": "0.1.0",
"drag-drop": "7.2.0", "drag-drop": "7.2.0",

View File

@@ -17,7 +17,7 @@ const { TorrentKeyNotFoundError } = require('./lib/errors')
const torrentPoster = require('./lib/torrent-poster') const torrentPoster = require('./lib/torrent-poster')
// Force use of webtorrent trackers on all torrents // Force use of webtorrent trackers on all torrents
global.WEBTORRENT_ANNOUNCE = defaultAnnounceList globalThis.WEBTORRENT_ANNOUNCE = defaultAnnounceList
.map((arr) => arr[0]) .map((arr) => arr[0])
.filter((url) => url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0) .filter((url) => url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0)