whatwg-url 4.7.1 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@ whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spe
4
4
 
5
5
  ## Current Status
6
6
 
7
- whatwg-url is currently up to date with the URL spec up to commit [488c45](https://github.com/whatwg/url/commit/488c459d9e4245a3f6bf087e7dcd2c7e91487ac5).
7
+ whatwg-url is currently up to date with the URL spec up to commit [fe6b25](https://github.com/whatwg/url/commit/fe6b251739e225555f04319f19c70c031a5d99eb).
8
8
 
9
9
  ## API
10
10
 
@@ -928,9 +928,10 @@ URLStateMachine.prototype["parse file"] = function parseFile(c) {
928
928
  this.url.fragment = "";
929
929
  this.state = "fragment";
930
930
  } else {
931
- if (!isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
932
- this.input.length - this.pointer - 1 === 1 || // remaining consists of 1 code point
933
- !fileOtherwiseCodePoints.has(this.input[this.pointer + 2])) {
931
+ if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
932
+ !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
933
+ (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
934
+ !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
934
935
  this.url.host = this.base.host;
935
936
  this.url.path = this.base.path.slice();
936
937
  shortenPath(this.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatwg-url",
3
- "version": "4.7.1",
3
+ "version": "4.8.0",
4
4
  "description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery",
5
5
  "main": "lib/public-api.js",
6
6
  "files": [