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:
authorJimmy Wärting <jimmy@warting.se>2021-10-26 19:28:43 +0300
committerGitHub <noreply@github.com>2021-10-26 19:28:43 +0300
commitba6b799ff614fedf26a29448620604aae3d2afec (patch)
tree4be227f5480503dd9857e1dcffa06d0f54e4548c /lib/file-stream.js
parent7906081aa03b022451d55027360002775655e2bf (diff)
fix: Prep for esm (#2205)
* prep for esm * update min req node vers * revert node prefix
Diffstat (limited to 'lib/file-stream.js')
-rw-r--r--lib/file-stream.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js
index e7dee68..a3682b1 100644
--- a/lib/file-stream.js
+++ b/lib/file-stream.js
@@ -1,7 +1,9 @@
-const debug = require('debug')('webtorrent:file-stream')
-const stream = require('readable-stream')
+const stream = require('stream')
+const debugFactory = require('debug')
const eos = require('end-of-stream')
+const debug = debugFactory('webtorrent:file-stream')
+
/**
* Readable stream of a torrent file
*