Comparing version 1.0.2 to 1.1.0
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -20,2 +20,3 @@ 'use strict'; | ||
options.deflateStrategy = options.deflateStrategy != null ? options.deflateStrategy : 3; | ||
options.deflateFactory = options.deflateFactory || zlib.createDeflate; | ||
@@ -41,3 +42,3 @@ this.readable = true; | ||
// compress it | ||
var deflate = zlib.createDeflate({ | ||
var deflate = this._options.deflateFactory({ | ||
chunkSize: this._options.deflateChunkSize, | ||
@@ -44,0 +45,0 @@ level: this._options.deflateLevel, |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "pngjs2", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "PNG encoder/decoder in pure JS, supporting any bit size & interlace, async & sync with full test suite.", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -113,2 +113,3 @@ [![Build Status](https://travis-ci.org/lukeapage/pngjs2.svg?branch=master)](https://travis-ci.org/lukeapage/pngjs2) [![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/pngjs2.svg)](http://badge.fury.io/js/pngjs2) | ||
- `deflateStrategy` - compression strategy for delate (default: 3) | ||
- `deflateFactory` - deflate stream factory (default: `zlib.createDeflate`) | ||
- `filterType` - png filtering method for scanlines (default: -1 => auto, accepts array of numbers 0-4) | ||
@@ -115,0 +116,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
277
102528
31
1475