Comparing version 2.4.0 to 2.4.1
17
index.js
@@ -417,3 +417,6 @@ var fs = require("fs"); | ||
readStream.on("error", function(err) { | ||
if (!destroyed) inflateFilter.emit("error", err); | ||
// setImmediate here because errors can be emitted during the first call to pipe() | ||
setImmediate(function() { | ||
if (!destroyed) inflateFilter.emit("error", err); | ||
}); | ||
}); | ||
@@ -424,3 +427,5 @@ | ||
// forward zlib errors to the client-visible stream | ||
if (!destroyed) checkerStream.emit("error", err); | ||
setImmediate(function() { | ||
if (!destroyed) checkerStream.emit("error", err); | ||
}); | ||
}); | ||
@@ -533,3 +538,5 @@ checkerStream.destroy = function() { | ||
stream.on("error", function(err) { | ||
if (!destroyed) refUnrefFilter.emit("error", err); | ||
setImmediate(function() { | ||
if (!destroyed) refUnrefFilter.emit("error", err); | ||
}); | ||
}); | ||
@@ -544,3 +551,5 @@ refUnrefFilter.destroy = function() { | ||
refUnrefFilter.on("error", function(err) { | ||
if (!destroyed) byteCounter.emit("error", err); | ||
setImmediate(function() { | ||
if (!destroyed) byteCounter.emit("error", err); | ||
}); | ||
}); | ||
@@ -547,0 +556,0 @@ byteCounter.destroy = function() { |
{ | ||
"name": "yauzl", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "yet another unzip library for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -442,2 +442,4 @@ # yauzl | ||
* 2.4.1 | ||
* Fix error handling. | ||
* 2.4.0 | ||
@@ -444,0 +446,0 @@ * Add ZIP64 support. [issue #6](https://github.com/thejoshwolfe/yazl/issues/6) |
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
47064
582
468