Comparing version 2.0.0 to 2.1.0
'use strict'; | ||
const {PNG} = require('pngjs'); | ||
module.exports = async (buffer, opts) => { | ||
module.exports = async (buffer, options) => { | ||
if (!Buffer.isBuffer(buffer)) { | ||
@@ -10,3 +10,3 @@ throw new TypeError(`Expected \`buffer\` to be of type \`Buffer\` but received type \`${typeof buffer}\``); | ||
return new Promise((resolve, reject) => { | ||
let png = new PNG(opts); | ||
let png = new PNG(options); | ||
@@ -13,0 +13,0 @@ png.on('metadata', data => { |
{ | ||
"name": "parse-png", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Parse a PNG", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -31,7 +32,10 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^12.7.5", | ||
"@types/pngjs": "^3.3.2", | ||
"ava": "^2.4.0", | ||
"file-type": "^7.2.0", | ||
"get-stream": "^3.0.0", | ||
"tsd": "^0.7.4", | ||
"xo": "^0.24.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
3855
5
39
7