Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

end-of-stream

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

end-of-stream - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

8

index.js

@@ -42,2 +42,6 @@ var once = require('once');

var onerror = function(err) {
callback.call(stream, err);
};
var onclose = function() {

@@ -66,3 +70,3 @@ if (readable && !(rs && rs.ended)) return callback.call(stream, new Error('premature close'));

stream.on('finish', onfinish);
if (opts.error !== false) stream.on('error', callback);
if (opts.error !== false) stream.on('error', onerror);
stream.on('close', onclose);

@@ -80,3 +84,3 @@

stream.removeListener('end', onend);
stream.removeListener('error', callback);
stream.removeListener('error', onerror);
stream.removeListener('close', onclose);

@@ -83,0 +87,0 @@ };

{
"name": "end-of-stream",
"version": "1.4.0",
"version": "1.4.1",
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.",

@@ -5,0 +5,0 @@ "repository": {

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