Comparing version 2.5.0 to 2.5.1
@@ -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') |
{ | ||
"name": "minipass", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
15040
336