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 1.2.1 to 1.2.2

13

dist/global.js

@@ -177,7 +177,12 @@ (function () {

*/ function waitForNoBusy(document) {
const checkIsVisible = (element)=>Boolean(element.offsetWidth || element.offsetHeight || element.getClientRects().length);
const checkIsVisible = (element)=>{
// Basic check for HTMLElement
if (element instanceof HTMLElement && (element.offsetHeight !== 0 || element.offsetWidth !== 0)) {
return true;
}
// Check for HTMLElement & SVGElement
return element.getClientRects().length > 0;
};
const elements = Array.from(document.querySelectorAll('[aria-busy="true"]'));
return elements.every((element)=>{
return !(element instanceof HTMLElement) || !checkIsVisible(element);
});
return elements.every((element)=>!checkIsVisible(element));
}

@@ -184,0 +189,0 @@ /**

{
"name": "@argos-ci/browser",
"description": "Browser utilities to stabilize visual testing.",
"version": "1.2.1",
"version": "1.2.2",
"author": "Smooth Code",

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

},
"gitHead": "ba44d1ef3390ed31192b42acf958bc4eb6138e54"
"gitHead": "672a6e0fce11cd9e0acd8b77dad137d85d224ef9"
}
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