Comparing version 2.6.1 to 2.6.2
12
index.js
@@ -6,3 +6,2 @@ 'use strict' | ||
const MAYBE_EMIT_END = Symbol('maybeEmitEnd') | ||
const REMOVE_ALL_END_LISTENERS = Symbol('removeAllEndListeners') | ||
const EMITTED_END = Symbol('emittedEnd') | ||
@@ -261,3 +260,3 @@ const EMITTING_END = Symbol('emittingEnd') | ||
super.emit(ev) | ||
this[REMOVE_ALL_END_LISTENERS]() | ||
this.removeAllListeners(ev) | ||
} | ||
@@ -282,3 +281,2 @@ } | ||
this.emit('close') | ||
this[REMOVE_ALL_END_LISTENERS]() | ||
this[EMITTING_END] = false | ||
@@ -338,12 +336,6 @@ } | ||
else | ||
this[REMOVE_ALL_END_LISTENERS]() | ||
this.removeAllListeners(ev) | ||
} | ||
} | ||
[REMOVE_ALL_END_LISTENERS] () { | ||
this.removeAllListeners('end') | ||
this.removeAllListeners('prefinish') | ||
this.removeAllListeners('finish') | ||
} | ||
// const all = await stream.collect() | ||
@@ -350,0 +342,0 @@ collect () { |
{ | ||
"name": "minipass", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"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
18068
352