Socket
Socket
Sign inDemoInstall

normalize-url

Package Overview
Dependencies
Maintainers
1
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 1.0.0 to 1.0.1

4

index.js

@@ -38,2 +38,3 @@ 'use strict';

urlObj.search = querystring.stringify(sortKeys(querystring.parse(urlObj.query)));
urlObj.search = decodeURIComponent(urlObj.search);

@@ -49,6 +50,3 @@ // take advantage of many of the Node `url` normalizations

// decode query strings
str = decodeURI(str);
return str;
};
{
"name": "normalize-url",
"version": "1.0.0",
"version": "1.0.1",
"description": "Normalize a URL",

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

@@ -20,4 +20,4 @@ # normalize-url [![Build Status](https://travis-ci.org/sindresorhus/normalize-url.svg?branch=master)](https://travis-ci.org/sindresorhus/normalize-url)

normalizeUrl('todomvc.com');
//=> http://todomvc.com
normalizeUrl('sindresorhus.com');
//=> http://sindresorhus.com

@@ -24,0 +24,0 @@ normalizeUrl('HTTP://xn--xample-hva.com:80/?b=bar&a=foo');

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