New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@udarrr/template-matcher

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udarrr/template-matcher - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

7

dist/lib/template-matching-finder.class.js

@@ -114,7 +114,10 @@ "use strict";

async getValidatedMatches(matchResults, pixelDensity, confidence, roi) {
matchResults = this.getDecreasedRectByPixelDensity(matchResults, pixelDensity);
if (roi) {
if (!roi) {
matchResults = this.getDecreasedRectByPixelDensity(matchResults, pixelDensity);
}
else {
matchResults = matchResults.map((m) => {
return { confidence: m.confidence, error: m.error, location: new nut_js_1.Region(m.location.left + roi.left, m.location.top + roi.top, m.location.width, m.location.height) };
});
matchResults = this.getDecreasedRectByPixelDensity(matchResults, pixelDensity);
(0, image_processor_class_1.validateSearchRegion)(new nut_js_1.Region(Number(roi.left), Number(roi.top), Number(roi.width), Number(roi.height)), new nut_js_1.Region(0, 0, await nut_js_1.screen.width(), await nut_js_1.screen.height()));

@@ -121,0 +124,0 @@ }

{
"name": "@udarrr/template-matcher",
"version": "1.1.8",
"version": "1.1.9",
"main": "dist/index",

@@ -5,0 +5,0 @@ "typings": "dist/index",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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