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

normalize-url

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-url - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

index.js
'use strict';
const {URL} = require('url');
// TODO: Use the `URL` global when targeting Node.js 10
const URLParser = typeof URL === 'undefined' ? require('url').URL : URL;

@@ -30,3 +31,3 @@ function testParameter(name, filters) {

const urlObj = new URL(urlString);
const urlObj = new URLParser(urlString);

@@ -33,0 +34,0 @@ if (opts.normalizeHttps && urlObj.protocol === 'https:') {

2

package.json
{
"name": "normalize-url",
"version": "3.0.0",
"version": "3.0.1",
"description": "Normalize a URL",

@@ -5,0 +5,0 @@ "license": "MIT",

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