looks-same
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -24,11 +24,13 @@ 'use strict'; | ||
_getLastCaretPoint(firstCaretPoint, imgs) { | ||
const getLastCaretPoint_ = (currPoint) => { | ||
let currPoint = firstCaretPoint; | ||
/* eslint-disable-next-line no-constant-condition */ | ||
while (true) { | ||
const nextPoint = this._getNextCaretPoint(firstCaretPoint, currPoint); | ||
return this._isPointOutsideImages(nextPoint, imgs) || this._areColorsSame(nextPoint, imgs) | ||
? currPoint | ||
: getLastCaretPoint_(nextPoint); | ||
}; | ||
return getLastCaretPoint_(firstCaretPoint); | ||
if (this._isPointOutsideImages(nextPoint, imgs) || this._areColorsSame(nextPoint, imgs)) { | ||
return currPoint; | ||
} | ||
currPoint = nextPoint; | ||
} | ||
} | ||
@@ -35,0 +37,0 @@ |
{ | ||
"name": "looks-same", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
43591
995
1