mirror of
https://github.com/webtorrent/bittorrent-tracker
synced 2025-10-06 00:02:49 +02:00
perf: drop clone (#523)
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import arrayRemove from 'unordered-array-remove'
|
import arrayRemove from 'unordered-array-remove'
|
||||||
import clone from 'clone'
|
|
||||||
import Debug from 'debug'
|
import Debug from 'debug'
|
||||||
import dgram from 'dgram'
|
import dgram from 'dgram'
|
||||||
import Socks from 'socks'
|
import Socks from 'socks'
|
||||||
@@ -11,6 +10,9 @@ import compact2string from 'compact2string'
|
|||||||
|
|
||||||
const debug = Debug('bittorrent-tracker:udp-tracker')
|
const debug = Debug('bittorrent-tracker:udp-tracker')
|
||||||
|
|
||||||
|
// this was done some many years ago to fix "prevent Socks instances concurrency", and used some bloated package, no clue if it's needed, but this is simpler, #356
|
||||||
|
const clone = obj => JSON.parse(JSON.stringify(obj))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UDP torrent tracker client (for an individual tracker)
|
* UDP torrent tracker client (for an individual tracker)
|
||||||
*
|
*
|
||||||
|
@@ -27,12 +27,11 @@
|
|||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@thaunknown/simple-peer": "^10.0.6",
|
"@thaunknown/simple-peer": "^10.0.8",
|
||||||
"@thaunknown/simple-websocket": "^9.1.1",
|
"@thaunknown/simple-websocket": "^9.1.3",
|
||||||
"bencode": "^4.0.0",
|
"bencode": "^4.0.0",
|
||||||
"bittorrent-peerid": "^1.3.6",
|
"bittorrent-peerid": "^1.3.6",
|
||||||
"chrome-dgram": "^3.0.6",
|
"chrome-dgram": "^3.0.6",
|
||||||
"clone": "^2.1.2",
|
|
||||||
"compact2string": "^1.4.1",
|
"compact2string": "^1.4.1",
|
||||||
"cross-fetch-ponyfill": "^1.0.3",
|
"cross-fetch-ponyfill": "^1.0.3",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
|
Reference in New Issue
Block a user