Comparing version 1.1.30 to 1.1.31
@@ -73,12 +73,13 @@ (function () { | ||
callWhenOpen(write, function(error) { | ||
if (error) { | ||
callback(error); | ||
read.on('end', onReadEnd); | ||
read.on('error', onReadError); | ||
if (options.end) | ||
write.on('finish', onWriteFinish); | ||
callWhenOpen(write, function(e) { | ||
if (e || read && error) { | ||
e && onError(e); | ||
onEnd(); | ||
} else { | ||
if (options.end) | ||
write.on('finish', onWriteFinish); | ||
read.on('end', onReadEnd); | ||
read.on('error', onReadError); | ||
write.on('error', onWriteError); | ||
@@ -85,0 +86,0 @@ |
{ | ||
"name": "pipe-io", | ||
"version": "1.1.30", | ||
"version": "1.1.31", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -15,2 +15,5 @@ "description": "Pipe streams and handle events", | ||
}, | ||
"scripts": { | ||
"test": "tape test/*.js" | ||
}, | ||
"dependencies": {}, | ||
@@ -21,3 +24,6 @@ "license": "MIT", | ||
}, | ||
"main": "./lib/pipe.js" | ||
"main": "./lib/pipe.js", | ||
"devDependencies": { | ||
"tape": "~4.0.0" | ||
} | ||
} |
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
12578
8
209
1
2