Comparing version 1.1.16 to 1.1.17
@@ -31,3 +31,5 @@ (function () { | ||
setListeners(streams, options, onError); | ||
read.on('end', onEnd); | ||
read.on('error', onReadError); | ||
@@ -40,5 +42,11 @@ read.resume(); | ||
function onReadError(e) { | ||
error = e; | ||
onEnd(); | ||
} | ||
function onEnd() { | ||
unsetListeners(streams, onError); | ||
read.removeListener('end', onEnd); | ||
read.removeListener('error', onReadError); | ||
@@ -45,0 +53,0 @@ callback(error); |
{ | ||
"name": "pipe-io", | ||
"version": "1.1.16", | ||
"version": "1.1.17", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "Pipe streams and handle events", |
Sorry, the diff of this file is not supported yet
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
6499
83