New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dom-urls

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-urls - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

LICENSE

6

index.js

@@ -10,3 +10,3 @@ 'use strict';

this._url = new URI(urlStr, base);
this._url = URI(urlStr, base).normalize();

@@ -35,3 +35,3 @@ if (!this._url.protocol()) {

get host() {
return this._url.host();
return this._url.clone().normalizeHostname().host();
},

@@ -99,3 +99,3 @@

get: function () {
return this._url[property]();
return this._url.clone().normalize()[property]();
},

@@ -102,0 +102,0 @@ set: function (value) {

{
"name": "dom-urls",
"version": "0.1.1",
"version": "1.0.0",
"description": "DOM URLs for Node",

@@ -34,8 +34,8 @@ "main": "index.js",

"devDependencies": {
"mocha": "~1.16.2",
"chai": "~1.8.1"
"chai": "^3.0.0",
"mocha": "^2.2.5"
},
"dependencies": {
"URIjs": "~1.11.2"
"URIjs": "^1.15.1"
}
}
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