diff options
author | Jimmy Wärting <jimmy@warting.se> | 2021-10-26 19:28:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 19:28:43 +0300 |
commit | ba6b799ff614fedf26a29448620604aae3d2afec (patch) | |
tree | 4be227f5480503dd9857e1dcffa06d0f54e4548c /lib/file-stream.js | |
parent | 7906081aa03b022451d55027360002775655e2bf (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.js | 6 |
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 * |