Comparing version 2.1.2 to 2.1.3
@@ -17,3 +17,4 @@ var fs = require("fs"); | ||
this.outputStreamCursor = 0; | ||
this.ended = false; | ||
this.ended = false; // .end() sets this | ||
this.allDone = false; // set when we've written the last bytes | ||
} | ||
@@ -146,2 +147,3 @@ | ||
function pumpEntries(self) { | ||
if (self.allDone) return; | ||
// first check if finalSize is finally known | ||
@@ -186,2 +188,3 @@ if (self.ended && self.finalSizeCallback != null) { | ||
self.outputStream.end(); | ||
self.allDone = true; | ||
} | ||
@@ -188,0 +191,0 @@ } |
{ | ||
"name": "yazl", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "yet another zip library for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -258,2 +258,4 @@ # yazl | ||
* 2.1.3 | ||
* Fix bug when only addBuffer() and end() are called. [issue #12](https://github.com/thejoshwolfe/yazl/issues/12) | ||
* 2.1.2 | ||
@@ -260,0 +262,0 @@ * Fixed typo in parameter validation. [pull request #10](https://github.com/thejoshwolfe/yazl/pull/10) |
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
29357
371
269