Socket
Socket
Sign inDemoInstall

@percy/dom

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/dom - npm Package Compare versions

Comparing version 1.24.2 to 1.24.3-beta.0

16

dist/bundle.js

@@ -331,2 +331,15 @@ (function() {

// Drop loading attribute. We do not scroll page in discovery stage but we want to make sure that
// all resources are requested, so we drop loading attribute [as it can be set to lazy]
function dropLoadingAttribute(domElement) {
var _domElement$tagName;
if (!['img', 'iframe'].includes((_domElement$tagName = domElement.tagName) === null || _domElement$tagName === void 0 ? void 0 : _domElement$tagName.toLowerCase())) return;
domElement.removeAttribute('loading');
}
// All transformations that we need to apply for a successful discovery and stable render
function applyElementTransformations(domElement) {
dropLoadingAttribute(domElement);
}
/**

@@ -359,2 +372,5 @@ * Custom deep clone function that replaces Percy's current clone behavior.

let clone = node.cloneNode();
// We apply any element transformations here to avoid another treeWalk
applyElementTransformations(clone);
parent.appendChild(clone);

@@ -361,0 +377,0 @@

4

package.json
{
"name": "@percy/dom",
"version": "1.24.2",
"version": "1.24.3-beta.0",
"license": "MIT",

@@ -37,3 +37,3 @@ "repository": {

},
"gitHead": "b9c37345b1feebd06f3c87a6a6accf8cdb6d29a5"
"gitHead": "1c5664ca09f7f3b3d3c20484348ee748295dd1e2"
}
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