Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dom-utils

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-utils - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

CHANGELOG.md
Changelog
=========
### 0.2.2 (June 2, 2016)
* Fix a default port bug
### 0.2.1 (April 25, 2016)

@@ -5,0 +9,0 @@

7

lib/parse-url.js
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc