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

looks-same

Package Overview
Dependencies
Maintainers
6
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 5.0.2 to 5.1.0

6

index.js

@@ -151,5 +151,7 @@ 'use strict';

const second = pair.second;
const refImg = {size: {width: pair.first.width, height: pair.first.height}};
const metaInfo = {refImg};
if (first.width !== second.width || first.height !== second.height) {
return process.nextTick(() => callback(null, {equal: false, diffBounds: getMaxDiffBounds(first, second)}));
return process.nextTick(() => callback(null, {equal: false, metaInfo, diffBounds: getMaxDiffBounds(first, second)}));
}

@@ -163,3 +165,3 @@

callback(null, {equal: result.isEmpty(), diffBounds});
callback(null, {equal: result.isEmpty(), metaInfo, diffBounds});
});

@@ -166,0 +168,0 @@ });

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

@@ -5,0 +5,0 @@ "main": "index.js",

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