Comparing version 2.1.0 to 2.1.1
@@ -53,2 +53,3 @@ 'use strict' | ||
super(opts) | ||
this[_sawError] = false | ||
this[_ended] = false | ||
@@ -68,3 +69,8 @@ this[_opts] = opts | ||
this[_onError] = (err) => { | ||
// no sense raising multiple errors, since we abort on the first one. | ||
if (this[_sawError]) | ||
return | ||
this[_sawError] = true | ||
// there is no way to cleanly recover. | ||
@@ -162,2 +168,4 @@ // continuing only obscures problems. | ||
this[_handle].removeAllListeners('error') | ||
// make sure OUR error listener is still attached tho | ||
this[_handle].on('error', er => this[_onError](new ZlibError(er))) | ||
} | ||
@@ -164,0 +172,0 @@ } |
{ | ||
"name": "minizlib", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.", | ||
@@ -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
17287
410