Skip to content

Commit

Permalink
Use bl package instead of mute-stream (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 29, 2020
1 parent 37a149f commit 56de27f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions index.js
Expand Up @@ -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');
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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"
},
Expand Down

0 comments on commit 56de27f

Please sign in to comment.