Comparing version 3.1.4 to 3.1.5
@@ -15,2 +15,3 @@ 'use strict' | ||
const EMITTING_END = Symbol('emittingEnd') | ||
const EMITTED_ERROR = Symbol('emittedError') | ||
const CLOSED = Symbol('closed') | ||
@@ -74,2 +75,3 @@ const READ = Symbol('read') | ||
this[CLOSED] = false | ||
this[EMITTED_ERROR] = null | ||
this.writable = true | ||
@@ -348,2 +350,4 @@ this.readable = true | ||
this.removeAllListeners(ev) | ||
} else if (ev === 'error' && this[EMITTED_ERROR]) { | ||
fn.call(this, this[EMITTED_ERROR]) | ||
} | ||
@@ -410,2 +414,4 @@ } | ||
return | ||
} else if (ev === 'error') { | ||
this[EMITTED_ERROR] = data | ||
} | ||
@@ -463,4 +469,4 @@ | ||
this.on(DESTROYED, () => reject(new Error('stream destroyed'))) | ||
this.on('error', er => reject(er)) | ||
this.on('end', () => resolve()) | ||
this.on('error', er => reject(er)) | ||
}) | ||
@@ -467,0 +473,0 @@ } |
{ | ||
"name": "minipass", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"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
37611
477