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

@percy/dom

Package Overview
Dependencies
Maintainers
1
Versions
240
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.28.1-alpha.3 to 1.28.1-alpha.4

26

dist/bundle.js

@@ -372,2 +372,24 @@ (function() {

let mimetype = null;
function getBase64Substring(src) {
let base64Index = src.indexOf(';base64,');
if (base64Index === -1) return null;
mimetype = src.substring(5, base64Index);
base64Index += ';base64,'.length;
return src.substring(base64Index);
}
function serializeBase64(node, resources) {
let src = node.src;
// skip if src is null
if (src == null) return;
let base64String = getBase64Substring(src);
// skip if src is not base64
if (base64String == null) return;
// create a resource from the serialized data url
let resource = resourceFromText(uid(), mimetype, base64String);
resources.add(resource);
node.src = resource.url;
}
/**

@@ -388,3 +410,4 @@ * Custom deep clone function that replaces Percy's current clone behavior.

dom,
disableShadowDOM
disableShadowDOM,
resources
} = _ref;

@@ -395,2 +418,3 @@ // clones shadow DOM and light DOM for a given node

while (nextn) {
serializeBase64(nextn, resources);
if (!ignoreTags.includes(nextn.nodeName)) {

@@ -397,0 +421,0 @@ cloneNode(nextn, nextp);

6

package.json
{
"name": "@percy/dom",
"version": "1.28.1-alpha.3",
"version": "1.28.1-alpha.4",
"license": "MIT",

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

"access": "public",
"tag": "alpha"
"tag": "beta"
},

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

},
"gitHead": "46d1e874e1092fee45899d70cd97cf793db17de5"
"gitHead": "90d1c1135441a631d5fdbbce0a7e2efbe8ab4e21"
}
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