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

@argos-ci/browser

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@argos-ci/browser - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

12

dist/global.js

@@ -89,4 +89,14 @@ (function () {

*/ function setAndBackupPosition(element, position) {
element.setAttribute("data-argos-bck-position", element.style.position ?? "unset");
// Check if position is equivalent by comparing the coords before and after setting it
const previousPosition = element.style.position;
const previousRect = element.getBoundingClientRect();
element.style.position = position;
const currentRect = element.getBoundingClientRect();
// If the position is not equivalent, restore the previous one
if (previousRect.x !== currentRect.x || previousRect.y !== currentRect.y) {
element.style.position = previousPosition;
return;
}
// If the position is equivalent, keep the new position and backup the previous one
element.setAttribute("data-argos-bck-position", previousPosition ?? "unset");
}

@@ -93,0 +103,0 @@ /**

4

package.json
{
"name": "@argos-ci/browser",
"description": "Browser utilities to stabilize visual testing.",
"version": "2.1.0",
"version": "2.1.1",
"author": "Smooth Code",

@@ -48,3 +48,3 @@ "license": "MIT",

},
"gitHead": "1d91294d32a09302aa8890807ddd810e14e9950b"
"gitHead": "f2c984da3cf1da7e88dce8c0e90870133da4aae5"
}

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