Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit 3d461ce

Browse files
author
Alan Shaw
authored
perf: small bl (#52)
This imports the `BufferList` class that does not extend duplex stream. This gets us one step closer to removing readable-stream from the bundle.
1 parent 6ac5e7c commit 3d461ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/chunker/fixed-size.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const BufferList = require('bl')
3+
const BufferList = require('bl/BufferList')
44

55
module.exports = async function * fixedSizeChunker (source, options) {
66
let bl = new BufferList()

src/chunker/rabin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const BufferList = require('bl')
3+
const BufferList = require('bl/BufferList')
44
const { create } = require('rabin-wasm')
55
const errcode = require('err-code')
66

0 commit comments

Comments
 (0)