Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

looks-same

Package Overview
Dependencies
Maintainers
5
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

looks-same - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

10

lib/png.js

@@ -103,7 +103,7 @@ 'use strict';

exports.fromFile = (filePath, callback) => {
const png = new PNG();
fs.createReadStream(filePath)
.pipe(png)
.on('parsed', () => callback(null, new PNGImage(png)))
.on('error', callback);
fs.readFile(filePath, (error, data) => {
error
? callback(error, null)
: exports.fromBuffer(data, callback)
});
};

@@ -110,0 +110,0 @@

{
"name": "looks-same",
"version": "3.2.0",
"version": "3.2.1",
"description": "Pure node.js library for comparing PNG-images, taking into account human color perception.",

@@ -14,3 +14,3 @@ "main": "index.js",

"parse-color": "^1.0.0",
"pngjs": "^2.2.0"
"pngjs": "^3.0.1"
},

@@ -17,0 +17,0 @@ "devDependencies": {

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