@applitools/dom-shared
Advanced tools
@@ -7,5 +7,5 @@ { | ||
| "version": "file:../dry-run.tgz", | ||
| "integrity": "sha512-26KiiCT4ZiIcSfYA2CZN0MzralbPpRFFQxUgR6HDgIM+KB1qAAPdQczhNubMtVk+H+BCKTAkjzJSaIetA0Ezkg==" | ||
| "integrity": "sha512-Cbxt1X/izFOiCoCdsONX7icF8nJEAVUeW7zDEXbEaDQOdbKeJvGU3VTZ6ZBhQlmZdAdUFErIcFIVu+h5KIlmvw==" | ||
| } | ||
| } | ||
| } |
+4
-0
@@ -7,2 +7,6 @@ | ||
| ## 1.0.7 - 2021/10/18 | ||
| - fix url decoding in absolutizeURL method | ||
| ## 1.0.6 - 2021/9/22 | ||
@@ -9,0 +13,0 @@ |
+1
-1
| { | ||
| "name": "@applitools/dom-shared", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
| 'use strict'; | ||
| function absolutizeUrl(url, baseUrl) { | ||
| return decodeURI(new URL(url, baseUrl).href); | ||
| const isEncoded = url !== decodeURI(url); | ||
| const absoluteUrl = new URL(url, baseUrl).href; | ||
| return !isEncoded ? decodeURI(absoluteUrl) : absoluteUrl; | ||
| } | ||
| module.exports = absolutizeUrl; |
Sorry, the diff of this file is not supported yet
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
39497
0.57%300
0.67%0
-100%