Comparing version 3.3.0 to 3.3.1
@@ -25,2 +25,3 @@ 'use strict'; | ||
var inBpp = constants.COLORTYPE_TO_BPP_MAP[options.inputColorType]; | ||
if (inBpp == 4 && !options.inputHasAlpha) inBpp = 3; | ||
var outBpp = constants.COLORTYPE_TO_BPP_MAP[options.colorType]; | ||
@@ -84,3 +85,3 @@ if (options.bitDepth === 16) { | ||
} | ||
return {red, green, blue, alpha}; | ||
return {red: red, green: green, blue: blue, alpha: alpha}; | ||
} | ||
@@ -87,0 +88,0 @@ |
{ | ||
"name": "pngjs", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"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,10 @@ [![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.1 - 15/11/2017 | ||
- Bugfixes and removal of es6 | ||
### 3.3.0 | ||
- Add writing 16 bit channels and support for grayscale input | ||
### 3.2.0 - 30/04/2017 | ||
@@ -296,0 +304,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
135655
2040
383
0