Comparing version 1.2.6 to 1.2.7
@@ -66,5 +66,9 @@ 'use strict'; | ||
callWhenOpen(write, function(e) { | ||
if (e) | ||
if (e) { | ||
onWriteError(e); | ||
read.on('readable', () => { | ||
read.resume(); | ||
}); | ||
} | ||
if (end && readError) { | ||
@@ -114,3 +118,2 @@ onEnd(); | ||
var justEnd = end && !options.end; | ||
var justFinish = finish && !options.end; | ||
var bothFinish = end && finish; | ||
@@ -124,3 +127,3 @@ | ||
onEnd(); | ||
} else if (bothFinish || justEnd || justFinish) { | ||
} else if (bothFinish || justEnd) { | ||
onEnd(); | ||
@@ -127,0 +130,0 @@ } else if (error && (isGzip || isGunzip)) { |
{ | ||
"name": "pipe-io", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"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
12330
154