This commit is contained in:
Kuba Niegowski 2013-06-05 23:17:19 +02:00
parent 3aed2d5133
commit 82dd9a96c0
3 changed files with 5 additions and 2 deletions

View file

@ -121,6 +121,9 @@ Gamma of image (0 if not specified)
Changelog
============
### 0.4.0 - Jun 05 2013
- fixed reading of destroyed input stream
### 0.4.0-alpha - 29 Nov 2012
- added zlib deflateStrategy option, default to Z_RLE (by pdpotter)
- added possibility to use multiple filters (by pdpotter, modified by niegowski)

View file

@ -125,7 +125,7 @@ ChunkStream.prototype.destroy = function() {
ChunkStream.prototype._process = function() {
// as long as there is any data and read requests
while (this._buffered > 0 && this._reads.length > 0) {
while (this._buffered > 0 && this._reads && this._reads.length > 0) {
var read = this._reads[0];

View file

@ -1,6 +1,6 @@
{
"name": "pngjs",
"version": "0.4.0-alpha",
"version": "0.4.0",
"description": "Simple PNG encoder/decoder",
"author": "Kuba Niegowski",
"contributors": [],