Comparing version 1.1.0 to 1.1.1
13
index.js
@@ -10,4 +10,3 @@ 'use strict'; | ||
return new Promise((resolve, reject) => { | ||
const png = new PNG(opts); | ||
let obj = {}; | ||
let png = new PNG(opts); | ||
@@ -17,11 +16,7 @@ png.on('error', reject); | ||
png.on('metadata', data => { | ||
obj = data; | ||
png = Object.assign(png, data); | ||
}); | ||
png.on('parsed', data => { | ||
obj.data = data; | ||
obj.adjustGamma = png.adjustGamma.bind(png); | ||
obj.bitblt = png.bitblt.bind(png); | ||
obj.pack = png.pack.bind(png); | ||
resolve(obj); | ||
png.on('parsed', () => { | ||
resolve(png); | ||
}); | ||
@@ -28,0 +23,0 @@ |
{ | ||
"name": "parse-png", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Parse a PNG", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
3077
18