@percy/dom
Advanced tools
Comparing version 1.26.0 to 1.26.1
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27872
509