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

webdriver-image-comparison

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdriver-image-comparison - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

9

build/methods/images.js

@@ -121,4 +121,4 @@ "use strict";

return utils_1.calculateDprData({
bottom: rectangles.height,
right: rectangles.width,
bottom: rectangles.y + rectangles.height,
right: rectangles.x + rectangles.width,
left: rectangles.x,

@@ -128,2 +128,3 @@ top: rectangles.y,

});
console.log('ignoredBoxes = ', ignoredBoxes);
compareOptions = __assign({ ignore: ignore }, (ignoredBoxes.length > 0 ? { output: { ignoredBoxes: ignoredBoxes } } : {}));

@@ -257,7 +258,7 @@ return [4, compareImages_1.default(fs_extra_1.readFileSync(baselineFilePath), fs_extra_1.readFileSync(actualFilePath), compareOptions)];

var ignoredBoxWidth = ignoredBox.right, ignoredBoxHeight = ignoredBox.bottom, x = ignoredBox.left, y = ignoredBox.top;
var ignoreCanvas = createCanvas(ignoredBoxWidth, ignoredBoxHeight);
var ignoreCanvas = createCanvas(ignoredBoxWidth - x, ignoredBoxHeight - y);
var ignoreContext = ignoreCanvas.getContext('2d');
ignoreContext.globalAlpha = 0.5;
ignoreContext.fillStyle = '#39aa56';
ignoreContext.fillRect(0, 0, ignoredBoxWidth, ignoredBoxHeight);
ignoreContext.fillRect(0, 0, ignoredBoxWidth - x, ignoredBoxHeight - y);
canvasContext.drawImage(ignoreCanvas, x, y);

@@ -264,0 +265,0 @@ });

{
"name": "webdriver-image-comparison",
"version": "0.4.2",
"version": "0.4.3",
"description": "An image compare module that can be used for different NodeJS Test automation frameworks that support the webdriver protocol",

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

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