Comparing version 3.0.1 to 3.0.2
@@ -26,2 +26,3 @@ 'use strict'; | ||
let readError, writeError; | ||
let writeOpened = false; | ||
@@ -57,2 +58,3 @@ const streams = allStreams.slice(); | ||
write.on('error', onWriteError); | ||
write.on('open', onWriteOpen); | ||
@@ -62,2 +64,7 @@ setListeners(streams, onError); | ||
function onWriteOpen() { | ||
writeOpened = true; | ||
onResult(); | ||
} | ||
function onWriteError(error) { | ||
@@ -105,9 +112,6 @@ writeError = true; | ||
if (readError && finish) | ||
return onEnd(); | ||
if (writeError && end) | ||
return onEnd(); | ||
if (readError) | ||
if (readError && writeOpened) | ||
return onEnd(); | ||
@@ -114,0 +118,0 @@ |
{ | ||
"name": "pipe-io", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"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
12066
122