Socket
Socket
Sign inDemoInstall

pipe-io

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pipe-io - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

12

lib/pipe.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc