Skip to content

Commit

Permalink
fix(deps): update dependency ws to v8 (#448)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] and ThaUnknown committed Feb 1, 2023
1 parent 7c4578f commit 2209d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"socks": "^2.0.0",
"string2compact": "^2.0.0",
"unordered-array-remove": "^1.0.2",
"ws": "^7.4.5"
"ws": "^8.0.0"
},
"devDependencies": {
"@mapbox/node-pre-gyp": "1.0.10",
Expand Down
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import http from 'http'
import peerid from 'bittorrent-peerid'
import series from 'run-series'
import string2compact from 'string2compact'
import ws from 'ws'
import { WebSocketServer } from 'ws'

import common from './lib/common.js'
import Swarm from './lib/server/swarm.js'
import parseHttpRequest from './lib/server/parse-http.js'
import parseUdpRequest from './lib/server/parse-udp.js'
import parseWebSocketRequest from './lib/server/parse-websocket.js'

const { Server: WebSocketServer } = ws
const debug = Debug('bittorrent-tracker:server')
const hasOwnProperty = Object.prototype.hasOwnProperty

Expand Down

0 comments on commit 2209d4f

Please sign in to comment.