whatwg-url 2.0.0 → 2.0.1

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/lib/URL-impl.js CHANGED
@@ -174,6 +174,7 @@ exports.implementation = class URLImpl {
174
174
 
175
175
  if (v === "") {
176
176
  url.query = null;
177
+ return;
177
178
  }
178
179
 
179
180
  const input = v[0] === "?" ? v.substring(1) : v;
@@ -711,7 +711,7 @@ URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr)
711
711
  return true;
712
712
  };
713
713
 
714
- URLStateMachine.prototype["parse host name"] =
714
+ URLStateMachine.prototype["parse hostname"] =
715
715
  URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
716
716
  if (c === 58 && !this.arrFlag) {
717
717
  if (specialSchemas[this.url.scheme] !== undefined && this.buffer === "") {
@@ -726,7 +726,7 @@ URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
726
726
  this.url.host = host;
727
727
  this.buffer = "";
728
728
  this.state = "port";
729
- if (this.stateOverride === "host name") {
729
+ if (this.stateOverride === "hostname") {
730
730
  return false;
731
731
  }
732
732
  } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatwg-url",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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
  "author": "Sebastian Mayr <github@smayr.name>",