Comparing version 0.2.1 to 0.2.2
Changelog | ||
========= | ||
### 0.2.2 (June 2, 2016) | ||
* Fix a default port bug | ||
### 0.2.1 (April 25, 2016) | ||
@@ -5,0 +9,0 @@ |
var HTTP_PORT = '80'; | ||
var HTTPS_PORT = '443'; | ||
var DEFAULT_PORT = RegExp(':(' + HTTP_PORT + '|' + HTTPS_PORT + ')$'); | ||
@@ -44,6 +45,6 @@ | ||
// Sometimes IE incorrectly includes a port (e.g. `:80` or `:443`) even | ||
// when no port is specified in the URL. | ||
// Sometimes IE incorrectly includes a port for default ports | ||
// (e.g. `:80` or `:443`) even when no port is specified in the URL. | ||
// http://bit.ly/1rQNoMg | ||
host = host.replace(':' + (protocol == 'http:' ? HTTP_PORT : HTTPS_PORT), ''); | ||
host = host.replace(DEFAULT_PORT, ''); | ||
@@ -50,0 +51,0 @@ // Not all browser support `origin` so we have to build it. |
{ | ||
"name": "dom-utils", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A small, modular DOM utilities library", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31745
694