whatwg-url
Advanced tools
Comparing version 6.0.1 to 6.1.0
@@ -71,3 +71,3 @@ "use strict"; | ||
function utf8PercentEncode(c) { | ||
const buf = new Buffer(c); | ||
const buf = Buffer.from(c); | ||
@@ -572,6 +572,9 @@ let str = ""; | ||
this.url.scheme = this.buffer; | ||
this.buffer = ""; | ||
if (this.stateOverride) { | ||
if (this.url.port === defaultPort(this.url.scheme)) { | ||
this.url.port = null; | ||
} | ||
return false; | ||
} | ||
this.buffer = ""; | ||
if (this.url.scheme === "file") { | ||
@@ -1086,3 +1089,3 @@ if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) { | ||
const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead | ||
const buffer = Buffer.from(this.buffer); // TODO: Use encoding override instead | ||
for (let i = 0; i < buffer.length; ++i) { | ||
@@ -1089,0 +1092,0 @@ if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 || |
{ | ||
"name": "whatwg-url", | ||
"version": "6.0.1", | ||
"version": "6.1.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 [a62223](https://github.com/whatwg/url/commit/a622235308342c9adc7fc2fd1659ff059f7d5e2a). | ||
whatwg-url is currently up to date with the URL spec up to commit [0f5395](https://github.com/whatwg/url/commit/0f53958338bbaec3882f902897873da59ba7e8bd), except that we haven't implemented changes relating to the new UTS #46 revision ([dc9d831](dc9d83106cada9af507bf37dee3973de97b020fd), [b128ba9](https://github.com/whatwg/url/commit/b128ba9111c68ad767b472d77d0ada9ef85366ef)) yet. Work on fixing that gap is in progress in [Sebmaster/tr46.js#11](https://github.com/Sebmaster/tr46.js/pull/11). | ||
@@ -10,0 +10,0 @@ ## API |
71617
2148