From 3d461cee202c35d5994b14e16d35e05726a0a6ee Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 31 Jan 2020 22:57:05 +0000 Subject: [PATCH] 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. --- src/chunker/fixed-size.js | 2 +- src/chunker/rabin.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chunker/fixed-size.js b/src/chunker/fixed-size.js index 48925af..6cef660 100644 --- a/src/chunker/fixed-size.js +++ b/src/chunker/fixed-size.js @@ -1,6 +1,6 @@ 'use strict' -const BufferList = require('bl') +const BufferList = require('bl/BufferList') module.exports = async function * fixedSizeChunker (source, options) { let bl = new BufferList() diff --git a/src/chunker/rabin.js b/src/chunker/rabin.js index 2a53689..6f1a077 100644 --- a/src/chunker/rabin.js +++ b/src/chunker/rabin.js @@ -1,6 +1,6 @@ 'use strict' -const BufferList = require('bl') +const BufferList = require('bl/BufferList') const { create } = require('rabin-wasm') const errcode = require('err-code')