Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webconn.js')
-rw-r--r--lib/webconn.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/webconn.js b/lib/webconn.js
index 22298b3..bd306f6 100644
--- a/lib/webconn.js
+++ b/lib/webconn.js
@@ -1,10 +1,11 @@
-const BitField = require('bitfield').default
-const debug = require('debug')('webtorrent:webconn')
+const { default: BitField } = require('bitfield')
+const debugFactory = require('debug')
const get = require('simple-get')
const ltDontHave = require('lt_donthave')
const sha1 = require('simple-sha1')
const Wire = require('bittorrent-protocol')
+const debug = debugFactory('webtorrent:webconn')
const VERSION = require('../package.json').version
const SOCKET_TIMEOUT = 60000