whatwg-url
Advanced tools
Comparing version 4.4.0 to 4.5.0
@@ -187,6 +187,2 @@ "use strict"; | ||
set hash(v) { | ||
if (this._url.scheme === "javascript") { | ||
return; | ||
} | ||
if (v === "") { | ||
@@ -193,0 +189,0 @@ this._url.fragment = null; |
@@ -129,3 +129,4 @@ "use strict"; | ||
const extraUserinfoPercentEncodeSet = new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]); | ||
const extraUserinfoPercentEncodeSet = | ||
new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]); | ||
function isUserinfoPercentEncode(c) { | ||
@@ -399,3 +400,3 @@ return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c); | ||
const domain = utf8PercentDecode(input); | ||
const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.TRANSITIONAL, false); | ||
const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false); | ||
if (asciiDomain === null) { | ||
@@ -402,0 +403,0 @@ return failure; |
{ | ||
"name": "whatwg-url", | ||
"version": "4.4.0", | ||
"version": "4.5.0", | ||
"description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery", | ||
@@ -5,0 +5,0 @@ "main": "lib/public-api.js", |
@@ -7,3 +7,3 @@ # whatwg-url | ||
whatwg-url is currently up to date with the URL spec up to commit [9b2eb1](https://github.com/whatwg/url/commit/9b2eb10eb8436adaf6620b1864b25442152f205b). | ||
whatwg-url is currently up to date with the URL spec up to commit [4bf85a](https://github.com/whatwg/url/commit/4bf85a08da18ef367e093426abef776d59e8fb7b). | ||
@@ -10,0 +10,0 @@ ## API |
414094
1876