looks-same
Advanced tools
Comparing version 5.0.2 to 5.1.0
@@ -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", |
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
36987
829