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.26.0 to 1.26.1

8

dist/bundle.js

@@ -119,3 +119,3 @@ (function() {

let path = `/__serialized__/${uid}.${ext}`;
let url = new URL(path, document.URL).toString();
let url = rewriteLocalhostURL(new URL(path, document.URL).toString());

@@ -133,4 +133,3 @@ // return the url, base64 content, and mimetype

let path = `/__serialized__/${uid}.${ext}`;
let url = new URL(path, document.URL).toString();
let url = rewriteLocalhostURL(new URL(path, document.URL).toString());
// return the url, text content, and mimetype

@@ -159,2 +158,5 @@ return {

}
function rewriteLocalhostURL(url) {
return url.replace(/(http[s]{0,1}:\/\/)localhost[:\d+]*/, '$1render.percy.local');
}

@@ -161,0 +163,0 @@ // Returns a mostly random uid.

{
"name": "@percy/dom",
"version": "1.26.0",
"version": "1.26.1",
"license": "MIT",

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

},
"gitHead": "0792d3978ca2169a45e8788eba012a61f81f5159"
"gitHead": "9c89383d6e1a9aa41f0c83f8e4b9ddcdf827583b"
}
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