Socket
Socket
Sign inDemoInstall

parse-png

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-png - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

index.d.ts

4

index.js
'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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc