mute-stream
Advanced tools
Comparing version 0.0.2 to 0.0.3
15
mute.js
@@ -66,2 +66,17 @@ var Stream = require('stream') | ||
Object.defineProperty(MuteStream.prototype, 'rows', { | ||
get: function () { | ||
return( this._dest ? this._dest.rows | ||
: this._src ? this._src.rows | ||
: undefined ) | ||
}, enumerable: true, configurable: true }) | ||
Object.defineProperty(MuteStream.prototype, 'columns', { | ||
get: function () { | ||
return( this._dest ? this._dest.columns | ||
: this._src ? this._src.columns | ||
: undefined ) | ||
}, enumerable: true, configurable: true }) | ||
MuteStream.prototype.pipe = function (dest) { | ||
@@ -68,0 +83,0 @@ this._dest = dest |
{ | ||
"name": "mute-stream", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "mute.js", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -92,13 +92,25 @@ var Stream = require('stream') | ||
str.isTTY = true | ||
str.columns=80 | ||
str.rows=24 | ||
var ms = new MS | ||
t.equal(ms.isTTY, false) | ||
t.equal(ms.columns, undefined) | ||
t.equal(ms.rows, undefined) | ||
ms.pipe(str) | ||
t.equal(ms.isTTY, true) | ||
t.equal(ms.columns, 80) | ||
t.equal(ms.rows, 24) | ||
str.isTTY = false | ||
t.equal(ms.isTTY, false) | ||
t.equal(ms.columns, 80) | ||
t.equal(ms.rows, 24) | ||
str.isTTY = true | ||
t.equal(ms.isTTY, true) | ||
t.equal(ms.columns, 80) | ||
t.equal(ms.rows, 24) | ||
ms.isTTY = false | ||
t.equal(ms.isTTY, false) | ||
t.equal(ms.columns, 80) | ||
t.equal(ms.rows, 24) | ||
@@ -105,0 +117,0 @@ ms = new MS |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
9940
287
0
1