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.0.0-beta.49 to 1.0.0-beta.50

14

dist/bundle.js

@@ -72,15 +72,9 @@ (function() {

if (clone.head.contains(cloneEl)) {
cloneEl.remove(); // if the frame document is accessible, we can serialize it
} else if (frame.contentDocument) {
cloneEl.remove(); // if the frame document is accessible and not empty, we can serialize it
} else if (frame.contentDocument && frame.contentDocument.documentElement) {
// js is enabled and this frame was built with js, don't serialize it
if (enableJavaScript && builtWithJs) {
continue;
} // the frame has yet to load and wasn't built with js, it is unsafe to serialize
if (enableJavaScript && builtWithJs) continue; // the frame has yet to load and wasn't built with js, it is unsafe to serialize
if (!builtWithJs && !frame.contentWindow.performance.timing.loadEventEnd) continue; // recersively serialize contents
if (!builtWithJs && !frame.contentWindow.performance.timing.loadEventEnd) {
continue;
} // recersively serialize contents
let serialized = serializeDOM({

@@ -87,0 +81,0 @@ dom: frame.contentDocument,

{
"name": "@percy/dom",
"version": "1.0.0-beta.49",
"version": "1.0.0-beta.50",
"license": "MIT",

@@ -32,3 +32,3 @@ "main": "dist/bundle.js",

},
"gitHead": "7fec5dc3d381622dc47c236ec7e81aeb6ec1c035"
"gitHead": "06f92d0d9226ddae14f7af276abbfe0c77083603"
}
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