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

looks-same

Package Overview
Dependencies
Maintainers
7
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 7.1.0 to 7.1.1

16

lib/ignore-caret-comparator/states/init.js

@@ -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",

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