is-stream
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,7 +8,7 @@ 'use strict'; | ||
isStream.writable = function (stream) { | ||
return isStream(stream) && typeof stream._write == 'function' && typeof stream._writableState == 'object'; | ||
return isStream(stream) && stream.writable !== false && typeof stream._write == 'function' && typeof stream._writableState == 'object'; | ||
}; | ||
isStream.readable = function (stream) { | ||
return isStream(stream) && typeof stream._read == 'function' && typeof stream._readableState == 'object'; | ||
return isStream(stream) && stream.readable !== false && typeof stream._read == 'function' && typeof stream._readableState == 'object'; | ||
}; | ||
@@ -15,0 +15,0 @@ |
{ | ||
"name": "is-stream", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Check if something is a Node.js stream", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
1881