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.1 to 1.4.2

4

index.js

@@ -47,4 +47,4 @@ var once = require('once');

var onclose = function() {
if (readable && !(rs && rs.ended)) return callback.call(stream, new Error('premature close'));
if (writable && !(ws && ws.ended)) return callback.call(stream, new Error('premature close'));
if (stream.destroyed || (readable && !(rs && rs.ended))) return callback.call(stream, new Error('premature close'));
if (stream.destroyed || (writable && !(ws && ws.ended))) return callback.call(stream, new Error('premature close'));
};

@@ -51,0 +51,0 @@

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

@@ -33,3 +33,6 @@ "repository": {

"author": "Mathias Buus <mathiasbuus@gmail.com>",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"tape": "^4.11.0"
}
}

@@ -7,2 +7,4 @@ # end-of-stream

[![Build status](https://travis-ci.org/mafintosh/end-of-stream.svg?branch=master)](https://travis-ci.org/mafintosh/end-of-stream)
## Usage

@@ -9,0 +11,0 @@

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