@applitools/dom-shared
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -7,5 +7,5 @@ { | ||
"version": "file:../dry-run.tgz", | ||
"integrity": "sha512-Cbxt1X/izFOiCoCdsONX7icF8nJEAVUeW7zDEXbEaDQOdbKeJvGU3VTZ6ZBhQlmZdAdUFErIcFIVu+h5KIlmvw==" | ||
"integrity": "sha512-scNrcvkIZ86VSbjuosbu0YqCfHbmsK+VDPD2f4lsEjxxavZN775R26nc4/D9JeaIajf0TeXx9XYqaW3kePsFqA==" | ||
} | ||
} | ||
} |
@@ -7,2 +7,6 @@ | ||
## 1.0.8 - 2021/10/20 | ||
- fix url encoding/decoding | ||
## 1.0.7 - 2021/10/18 | ||
@@ -9,0 +13,0 @@ |
{ | ||
"name": "@applitools/dom-shared", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "index.js", | ||
@@ -23,3 +23,3 @@ "license": "SEE LICENSE IN LICENSE", | ||
"@applitools/monitoring-commons": "^1.0.19", | ||
"@applitools/sdk-release-kit": "^0.3.3", | ||
"@applitools/sdk-release-kit": "^0.13.3", | ||
"eslint": "^7.10.0", | ||
@@ -26,0 +26,0 @@ "eslint-plugin-mocha-no-only": "1.0.0", |
'use strict'; | ||
function absolutizeUrl(url, baseUrl) { | ||
const isEncoded = url !== decodeURI(url); | ||
let isEncoded = true; | ||
try { | ||
isEncoded = url !== decodeURI(url); | ||
} catch (err) { | ||
isEncoded = true; | ||
} | ||
const absoluteUrl = new URL(url, baseUrl).href; | ||
@@ -6,0 +11,0 @@ return !isEncoded ? decodeURI(absoluteUrl) : absoluteUrl; |
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
39673
305
0