From 56de27fbd6b920bf3aff666489cd06d394ca273c Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 29 Dec 2020 02:05:13 -0600 Subject: [PATCH] Use `bl` package instead of `mute-stream` (#163) --- index.js | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 67a9688..8f98e6d 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ const logSymbols = require('log-symbols'); const stripAnsi = require('strip-ansi'); const wcwidth = require('wcwidth'); const isInteractive = require('is-interactive'); -const MuteStream = require('mute-stream'); +const {BufferListStream} = require('bl'); const TEXT = Symbol('text'); const PREFIX_TEXT = Symbol('prefixText'); @@ -18,9 +18,8 @@ class StdinDiscarder { constructor() { this.requests = 0; - this.mutedStream = new MuteStream(); + this.mutedStream = new BufferListStream(); this.mutedStream.pipe(process.stdout); - this.mutedStream.mute(); const self = this; this.ourEmit = function (event, data, ...args) { diff --git a/package.json b/package.json index 21700f5..0fe7f42 100644 --- a/package.json +++ b/package.json @@ -37,12 +37,12 @@ "idle" ], "dependencies": { + "bl": "^4.0.3", "chalk": "^4.1.0", "cli-cursor": "^3.1.0", "cli-spinners": "^2.4.0", "is-interactive": "^1.0.0", "log-symbols": "^4.0.0", - "mute-stream": "0.0.8", "strip-ansi": "^6.0.0", "wcwidth": "^1.0.1" },