end-of-stream
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -47,4 +47,4 @@ var once = require('once'); | ||
var onclose = function() { | ||
if (readable && !(rs && rs.ended)) return callback.call(stream, new Error('premature close')); | ||
if (writable && !(ws && ws.ended)) return callback.call(stream, new Error('premature close')); | ||
if (stream.destroyed || (readable && !(rs && rs.ended))) return callback.call(stream, new Error('premature close')); | ||
if (stream.destroyed || (writable && !(ws && ws.ended))) return callback.call(stream, new Error('premature close')); | ||
}; | ||
@@ -51,0 +51,0 @@ |
{ | ||
"name": "end-of-stream", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.", | ||
@@ -33,3 +33,6 @@ "repository": { | ||
"author": "Mathias Buus <mathiasbuus@gmail.com>", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"devDependencies": { | ||
"tape": "^4.11.0" | ||
} | ||
} |
@@ -7,2 +7,4 @@ # end-of-stream | ||
[![Build status](https://travis-ci.org/mafintosh/end-of-stream.svg?branch=master)](https://travis-ci.org/mafintosh/end-of-stream) | ||
## Usage | ||
@@ -9,0 +11,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6093
55
1