Comparing version 2.1.0 to 2.1.1
@@ -54,3 +54,2 @@ var fs = require("fs"); | ||
pumpFileDataReadStream(self, entry, readStream); | ||
pumpEntries(self); | ||
}); | ||
@@ -82,3 +81,8 @@ pumpEntries(self); | ||
entry.state = Entry.FILE_DATA_DONE; | ||
pumpEntries(self); | ||
// don't call pumpEntries() recursively. | ||
// (also, don't call process.nextTick recursively.) | ||
setImmediate(function() { | ||
pumpEntries(self); | ||
}); | ||
}); | ||
@@ -279,2 +283,3 @@ pumpEntries(self); | ||
}; | ||
// doFileDataPump() should not call pumpEntries() directly. see issue #9. | ||
Entry.prototype.setFileDataPumpFunction = function(doFileDataPump) { | ||
@@ -281,0 +286,0 @@ this.doFileDataPump = doFileDataPump; |
{ | ||
"name": "yazl", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "yet another zip library for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -103,2 +103,5 @@ # yazl | ||
Note that yazl will `.pipe()` data from `readStream`, so be careful using `.on('data')`. | ||
In certain versions of node, `.on('data')` makes `.pipe()` behave incorrectly. | ||
#### addBuffer(buffer, metadataPath, [options]) | ||
@@ -173,2 +176,5 @@ | ||
As a reminder, be careful using both `.on('data')` and `.pipe()` with this stream. | ||
In certain versions of node, you cannot use both `.on('data')` and `.pipe()` successfully. | ||
### dateToDosDateTime(jsDate) | ||
@@ -254,2 +260,4 @@ | ||
* 2.1.1 | ||
* Fixed stack overflow when using addBuffer() in certain ways. [issue #9](https://github.com/thejoshwolfe/yazl/issues/9) | ||
* 2.1.0 | ||
@@ -256,0 +264,0 @@ * Added `addEmptyDirectory()`. |
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
28976
368
265