From 012f3fd702f6cfd70bb6cc29762412f78010daf7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 5 Aug 2021 20:55:23 -0500 Subject: [PATCH] fix(deps): update dependency create-torrent to v5 (#134) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): update dependency create-torrent to v5 * Update global.js Co-authored-by: Renovate Bot Co-authored-by: Diego Rodríguez Baquero --- lib/global.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/global.js b/lib/global.js index 6673590..50062df 100644 --- a/lib/global.js +++ b/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 diff --git a/package.json b/package.json index 60586f5..9dc6042 100644 --- a/package.json +++ b/package.json @@ -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"