Socket
Socket
Sign inDemoInstall

minipass

Package Overview
Dependencies
Maintainers
7
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minipass - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

9

index.js

@@ -7,2 +7,3 @@ 'use strict'

const EMITTED_END = Symbol('emittedEnd')
const EMITTING_END = Symbol('emittingEnd')
const CLOSED = Symbol('closed')

@@ -50,2 +51,3 @@ const READ = Symbol('read')

this[EMITTED_END] = false
this[EMITTING_END] = false
this[CLOSED] = false

@@ -257,3 +259,8 @@ this.writable = true

[MAYBE_EMIT_END] () {
if (!this[EMITTED_END] && this.buffer.length === 0 && this[EOF]) {
if (!this[EMITTING_END] &&
!this[EMITTED_END] &&
this.buffer.length === 0 &&
this[EOF]) {
this[EMITTING_END] = true
this.emit('end')

@@ -260,0 +267,0 @@ this.emit('prefinish')

2

package.json
{
"name": "minipass",
"version": "2.5.0",
"version": "2.5.1",
"description": "minimal implementation of a PassThrough stream",

@@ -5,0 +5,0 @@ "main": "index.js",

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