promise-readable
Advanced tools
Comparing version 3.1.2 to 3.1.3
# Changelog | ||
## v3.1.3 2018-02-05 | ||
* Minor bugfix for `destroy`. | ||
## v3.1.2 2018-02-05 | ||
@@ -4,0 +8,0 @@ |
@@ -193,7 +193,7 @@ 'use strict' | ||
destroy () { | ||
if (this._errorHandler) { | ||
this.stream.removeListener('error', this._errorHandler) | ||
delete this._errorHandler | ||
} | ||
if (this.stream) { | ||
if (this._errorHandler) { | ||
this.stream.removeListener('error', this._errorHandler) | ||
delete this._errorHandler | ||
} | ||
if (typeof this.stream.destroy === 'function') { | ||
@@ -200,0 +200,0 @@ this.stream.destroy() |
{ | ||
"name": "promise-readable", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Return promise for readable stream", | ||
@@ -5,0 +5,0 @@ "main": "lib/promise-readable.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
15279