@applitools/dom-snapshot
Advanced tools
Comparing version 1.2.13 to 1.2.15
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.13 | ||
// @applitools/dom-snapshot@1.2.15 | ||
function __processPage() { | ||
@@ -435,3 +435,10 @@ var processPage = (function () { | ||
function toUriEncoding(url) { | ||
return (url && url.replace(/\\\w{2}\s?/g, '/')) || url; | ||
const result = | ||
(url && | ||
url.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, s => { | ||
const int = parseInt(s.substr(1).trim(), 16); | ||
return String.fromCodePoint(int); | ||
})) || | ||
url; | ||
return result; | ||
} | ||
@@ -438,0 +445,0 @@ |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.13 | ||
// @applitools/dom-snapshot@1.2.15 | ||
function __processPageAndPoll() { | ||
@@ -487,3 +487,10 @@ var processPageAndPoll = (function () { | ||
function toUriEncoding(url) { | ||
return (url && url.replace(/\\\w{2}\s?/g, '/')) || url; | ||
const result = | ||
(url && | ||
url.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, s => { | ||
const int = parseInt(s.substr(1).trim(), 16); | ||
return String.fromCodePoint(int); | ||
})) || | ||
url; | ||
return result; | ||
} | ||
@@ -490,0 +497,0 @@ |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.13 | ||
// @applitools/dom-snapshot@1.2.15 | ||
function __processPageAndSerialize() { | ||
@@ -487,3 +487,10 @@ var processPageAndSerialize = (function () { | ||
function toUriEncoding(url) { | ||
return (url && url.replace(/\\\w{2}\s?/g, '/')) || url; | ||
const result = | ||
(url && | ||
url.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, s => { | ||
const int = parseInt(s.substr(1).trim(), 16); | ||
return String.fromCodePoint(int); | ||
})) || | ||
url; | ||
return result; | ||
} | ||
@@ -490,0 +497,0 @@ |
@@ -432,3 +432,10 @@ 'use strict'; | ||
function toUriEncoding(url) { | ||
return (url && url.replace(/\\\w{2}\s?/g, '/')) || url; | ||
const result = | ||
(url && | ||
url.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, s => { | ||
const int = parseInt(s.substr(1).trim(), 16); | ||
return String.fromCodePoint(int); | ||
})) || | ||
url; | ||
return result; | ||
} | ||
@@ -435,0 +442,0 @@ |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "1.2.13", | ||
"version": "1.2.15", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
'use strict'; | ||
function toUriEncoding(url) { | ||
return (url && url.replace(/\\\w{2}\s?/g, '/')) || url; | ||
const result = | ||
(url && | ||
url.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, s => { | ||
const int = parseInt(s.substr(1).trim(), 16); | ||
return String.fromCodePoint(int); | ||
})) || | ||
url; | ||
return result; | ||
} | ||
module.exports = toUriEncoding; |
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
103212
2666