Skip to content

Commit 56de27f

Browse files
authoredDec 29, 2020
Use bl package instead of mute-stream (#163)
1 parent 37a149f commit 56de27f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const logSymbols = require('log-symbols');
77
const stripAnsi = require('strip-ansi');
88
const wcwidth = require('wcwidth');
99
const isInteractive = require('is-interactive');
10-
const MuteStream = require('mute-stream');
10+
const {BufferListStream} = require('bl');
1111

1212
const TEXT = Symbol('text');
1313
const PREFIX_TEXT = Symbol('prefixText');
@@ -18,9 +18,8 @@ class StdinDiscarder {
1818
constructor() {
1919
this.requests = 0;
2020

21-
this.mutedStream = new MuteStream();
21+
this.mutedStream = new BufferListStream();
2222
this.mutedStream.pipe(process.stdout);
23-
this.mutedStream.mute();
2423

2524
const self = this;
2625
this.ourEmit = function (event, data, ...args) {

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
"idle"
3838
],
3939
"dependencies": {
40+
"bl": "^4.0.3",
4041
"chalk": "^4.1.0",
4142
"cli-cursor": "^3.1.0",
4243
"cli-spinners": "^2.4.0",
4344
"is-interactive": "^1.0.0",
4445
"log-symbols": "^4.0.0",
45-
"mute-stream": "0.0.8",
4646
"strip-ansi": "^6.0.0",
4747
"wcwidth": "^1.0.1"
4848
},

0 commit comments

Comments
 (0)
Please sign in to comment.