Comparing version 1.1.21 to 1.1.22
@@ -59,9 +59,6 @@ (function () { | ||
if (options.end) { | ||
end = true; | ||
if (options.end) | ||
write.once('finish', onWriteFinish); | ||
} else { | ||
finish = true; | ||
else | ||
read.once('end', onReadEnd); | ||
} | ||
@@ -90,16 +87,8 @@ read.once('error', onReadError); | ||
read.removeListener('error', onReadError); | ||
} else if (end && finish) { | ||
} else if (end || finish) { | ||
is = true; | ||
read.removeListener('error', onReadError); | ||
write.removeListener('error', onWriteError); | ||
} else if (end && readError) { | ||
is = true; | ||
write.removeListener('error', onWriteError); | ||
write.removeListener('finish', onWriteFinish); | ||
} else if (finish && writeError) { | ||
is = true; | ||
read.removeListener('error', onReadError); | ||
read.removeListener('end', onReadEnd); | ||
} | ||
if (is) | ||
@@ -106,0 +95,0 @@ onEnd(); |
{ | ||
"name": "pipe-io", | ||
"version": "1.1.21", | ||
"version": "1.1.22", | ||
"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
9210
147