mute-stream
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -87,5 +87,5 @@ var Stream = require('stream') | ||
MuteStream.prototype.pipe = function (dest) { | ||
MuteStream.prototype.pipe = function (dest, options) { | ||
this._dest = dest | ||
return Stream.prototype.pipe.call(this, dest) | ||
return Stream.prototype.pipe.call(this, dest, options) | ||
} | ||
@@ -105,2 +105,7 @@ | ||
if (c.match(/^\u001b/)) { | ||
if(c.indexOf(this._prompt) === 0) { | ||
c = c.substr(this._prompt.length); | ||
c = c.replace(/./g, this.replace); | ||
c = this._prompt + c; | ||
} | ||
this._hadControl = true | ||
@@ -107,0 +112,0 @@ return this.emit('data', c) |
{ | ||
"name": "mute-stream", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "mute.js", | ||
@@ -9,3 +9,3 @@ "directories": { | ||
"devDependencies": { | ||
"tap": "~0.2.5" | ||
"tap": "^1.2.0" | ||
}, | ||
@@ -12,0 +12,0 @@ "scripts": { |
10611
6
309