Comparing version 3.3.2 to 3.3.3
@@ -6,3 +6,6 @@ 'use strict'; | ||
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) { | ||
pxData.copy(rawData, rawPos, pxPos, pxPos + byteWidth); | ||
for (var x = 0; x < byteWidth; x++) { | ||
rawData[rawPos + x] = pxData[pxPos + x]; | ||
} | ||
} | ||
@@ -9,0 +12,0 @@ |
@@ -44,2 +44,10 @@ 'use strict'; | ||
if (this._filter) { | ||
this._filter.destroy(); | ||
// For backward compatibility with Node 7 and below. | ||
// Suppress errors due to _inflate calling write() even after | ||
// it's destroy()'ed. | ||
this._filter.on('error', function() {}); | ||
} | ||
this.errord = true; | ||
@@ -46,0 +54,0 @@ }; |
@@ -20,2 +20,6 @@ 'use strict'; | ||
// Node 8 --> 9 compatibility check | ||
this._offset = this._offset === undefined ? this._outOffset : this._offset; | ||
this._buffer = this._buffer || this._outBuffer; | ||
if (opts && opts.maxLength != null) { | ||
@@ -114,2 +118,4 @@ this._maxLength = opts.maxLength; | ||
availOutBefore); // out_len | ||
// Node 8 --> 9 compatibility check | ||
res = res || this._writeState; | ||
} while (!this._hadError && handleChunk(res[0], res[1])); | ||
@@ -116,0 +122,0 @@ |
{ | ||
"name": "pngjs", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"description": "PNG encoder/decoder in pure JS, supporting any bit size & interlace, async & sync with full test suite.", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -294,2 +294,6 @@ [![Build Status](https://travis-ci.org/lukeapage/pngjs.svg?branch=master)](https://travis-ci.org/lukeapage/pngjs) [![Build status](https://ci.appveyor.com/api/projects/status/tb8418jql1trkntd/branch/master?svg=true)](https://ci.appveyor.com/project/lukeapage/pngjs2/branch/master) [![Coverage Status](https://coveralls.io/repos/lukeapage/pngjs2/badge.svg?branch=master&service=github)](https://coveralls.io/github/lukeapage/pngjs2?branch=master) [![npm version](https://badge.fury.io/js/pngjs.svg)](http://badge.fury.io/js/pngjs) | ||
### 3.3.3 - 19/04/2018 | ||
- Real fix for node 9 | ||
### 3.3.2 - 16/02/2018 | ||
@@ -296,0 +300,0 @@ |
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
136331
2060
391
27