From 3b2dedb4151615831ca12d3d0a830354b1c04e68 Mon Sep 17 00:00:00 2001 From: Cas <6506529+ThaUnknown@users.noreply.github.com> Date: Sat, 27 May 2023 19:14:52 +0200 Subject: [PATCH] fix: replace simple-peer with maintained one (#466) --- client.js | 2 +- lib/client/websocket-tracker.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.js b/client.js index 5279a8e..9942f36 100644 --- a/client.js +++ b/client.js @@ -2,7 +2,7 @@ import Debug from 'debug' import EventEmitter from 'events' import once from 'once' import parallel from 'run-parallel' -import Peer from 'simple-peer' +import Peer from '@thaunknown/simple-peer' import queueMicrotask from 'queue-microtask' import { hex2arr, hex2bin, text2arr, arr2hex, arr2text } from 'uint8-util' diff --git a/lib/client/websocket-tracker.js b/lib/client/websocket-tracker.js index 3889eea..f933323 100644 --- a/lib/client/websocket-tracker.js +++ b/lib/client/websocket-tracker.js @@ -1,6 +1,6 @@ import clone from 'clone' import Debug from 'debug' -import Peer from 'simple-peer' +import Peer from '@thaunknown/simple-peer' import Socket from '@thaunknown/simple-websocket' import Socks from 'socks' import { arr2text, arr2hex, hex2bin, bin2hex, randomBytes } from 'uint8-util' diff --git a/package.json b/package.json index 6550f91..86b9116 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ }, "type": "module", "dependencies": { + "@thaunknown/simple-peer": "^9.12.0", "@thaunknown/simple-websocket": "^9.1.0", "bencode": "^3.0.3", "bittorrent-peerid": "^1.3.3", @@ -43,7 +44,6 @@ "run-parallel": "^1.2.0", "run-series": "^1.1.9", "simple-get": "^4.0.0", - "simple-peer": "^9.11.0", "socks": "^2.0.0", "string2compact": "^2.0.0", "uint8-util": "^2.1.9",