mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-07 05:49:05 +00:00
fix(deps): update dependency ws to v8 (#448)
* fix(deps): update dependency ws to v8 * fix: ws imports (#449) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cas <6506529+ThaUnknown@users.noreply.github.com>
This commit is contained in:
parent
7c4578f1b9
commit
2209d4f21b
@ -49,7 +49,7 @@
|
|||||||
"socks": "^2.0.0",
|
"socks": "^2.0.0",
|
||||||
"string2compact": "^2.0.0",
|
"string2compact": "^2.0.0",
|
||||||
"unordered-array-remove": "^1.0.2",
|
"unordered-array-remove": "^1.0.2",
|
||||||
"ws": "^7.4.5"
|
"ws": "^8.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mapbox/node-pre-gyp": "1.0.10",
|
"@mapbox/node-pre-gyp": "1.0.10",
|
||||||
|
@ -6,7 +6,7 @@ import http from 'http'
|
|||||||
import peerid from 'bittorrent-peerid'
|
import peerid from 'bittorrent-peerid'
|
||||||
import series from 'run-series'
|
import series from 'run-series'
|
||||||
import string2compact from 'string2compact'
|
import string2compact from 'string2compact'
|
||||||
import ws from 'ws'
|
import { WebSocketServer } from 'ws'
|
||||||
|
|
||||||
import common from './lib/common.js'
|
import common from './lib/common.js'
|
||||||
import Swarm from './lib/server/swarm.js'
|
import Swarm from './lib/server/swarm.js'
|
||||||
@ -14,7 +14,6 @@ import parseHttpRequest from './lib/server/parse-http.js'
|
|||||||
import parseUdpRequest from './lib/server/parse-udp.js'
|
import parseUdpRequest from './lib/server/parse-udp.js'
|
||||||
import parseWebSocketRequest from './lib/server/parse-websocket.js'
|
import parseWebSocketRequest from './lib/server/parse-websocket.js'
|
||||||
|
|
||||||
const { Server: WebSocketServer } = ws
|
|
||||||
const debug = Debug('bittorrent-tracker:server')
|
const debug = Debug('bittorrent-tracker:server')
|
||||||
const hasOwnProperty = Object.prototype.hasOwnProperty
|
const hasOwnProperty = Object.prototype.hasOwnProperty
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user