diff --git a/client.js b/client.js index 671f134..7df73f0 100644 --- a/client.js +++ b/client.js @@ -5,7 +5,6 @@ const once = require('once') const parallel = require('run-parallel') const Peer = require('simple-peer') const uniq = require('uniq') -const URL = require('url').URL const common = require('./lib/common') const HTTPTracker = require('./lib/client/http-tracker') // empty object in browser diff --git a/lib/client/udp-tracker.js b/lib/client/udp-tracker.js index 4923ce1..4568eef 100644 --- a/lib/client/udp-tracker.js +++ b/lib/client/udp-tracker.js @@ -5,7 +5,6 @@ const compact2string = require('compact2string') const debug = require('debug')('bittorrent-tracker:udp-tracker') const dgram = require('dgram') const randombytes = require('randombytes') -const URL = require('url').URL const common = require('../common') const Tracker = require('./tracker') diff --git a/package.json b/package.json index 89e7e5e..95243a1 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,8 @@ "tape": "^4.0.0", "webtorrent-fixtures": "^1.3.0" }, - "optionalDependencies": { - "bufferutil": "^4.0.0", - "utf-8-validate": "^5.0.1" + "engines": { + "node": ">=10" }, "keywords": [ "bittorrent", @@ -65,12 +64,16 @@ ], "license": "MIT", "main": "index.js", + "optionalDependencies": { + "bufferutil": "^4.0.0", + "utf-8-validate": "^5.0.1" + }, "repository": { "type": "git", "url": "git://github.com/webtorrent/bittorrent-tracker.git" }, "scripts": { - "update-authors": "./tools/update-authors.sh", - "test": "standard && tape test/*.js" + "test": "standard && tape test/*.js", + "update-authors": "./tools/update-authors.sh" } }