fix: replace simple-peer with maintained one (#466)

This commit is contained in:
Cas 2023-05-27 19:14:52 +02:00 committed by GitHub
parent c5f70dd186
commit 3b2dedb415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import Debug from 'debug'
import EventEmitter from 'events' import EventEmitter from 'events'
import once from 'once' import once from 'once'
import parallel from 'run-parallel' import parallel from 'run-parallel'
import Peer from 'simple-peer' import Peer from '@thaunknown/simple-peer'
import queueMicrotask from 'queue-microtask' import queueMicrotask from 'queue-microtask'
import { hex2arr, hex2bin, text2arr, arr2hex, arr2text } from 'uint8-util' import { hex2arr, hex2bin, text2arr, arr2hex, arr2text } from 'uint8-util'

View File

@ -1,6 +1,6 @@
import clone from 'clone' import clone from 'clone'
import Debug from 'debug' import Debug from 'debug'
import Peer from 'simple-peer' import Peer from '@thaunknown/simple-peer'
import Socket from '@thaunknown/simple-websocket' import Socket from '@thaunknown/simple-websocket'
import Socks from 'socks' import Socks from 'socks'
import { arr2text, arr2hex, hex2bin, bin2hex, randomBytes } from 'uint8-util' import { arr2text, arr2hex, hex2bin, bin2hex, randomBytes } from 'uint8-util'

View File

@ -27,6 +27,7 @@
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@thaunknown/simple-peer": "^9.12.0",
"@thaunknown/simple-websocket": "^9.1.0", "@thaunknown/simple-websocket": "^9.1.0",
"bencode": "^3.0.3", "bencode": "^3.0.3",
"bittorrent-peerid": "^1.3.3", "bittorrent-peerid": "^1.3.3",
@ -43,7 +44,6 @@
"run-parallel": "^1.2.0", "run-parallel": "^1.2.0",
"run-series": "^1.1.9", "run-series": "^1.1.9",
"simple-get": "^4.0.0", "simple-get": "^4.0.0",
"simple-peer": "^9.11.0",
"socks": "^2.0.0", "socks": "^2.0.0",
"string2compact": "^2.0.0", "string2compact": "^2.0.0",
"uint8-util": "^2.1.9", "uint8-util": "^2.1.9",