Socket
Socket
Sign inDemoInstall

normalize-url

Package Overview
Dependencies
0
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.2 to 7.0.3

6

index.js

@@ -195,2 +195,3 @@ // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs

if (Array.isArray(options.removeQueryParameters)) {
// eslint-disable-next-line unicorn/no-useless-spread -- We are intentionally spreading to get a copy.
for (const key of [...urlObject.searchParams.keys()]) {

@@ -210,2 +211,7 @@ if (testParameter(key, options.removeQueryParameters)) {

urlObject.searchParams.sort();
// Calling `.sort()` encodes the search parameters, so we need to decode them again.
try {
urlObject.search = decodeURIComponent(urlObject.search);
} catch {}
}

@@ -212,0 +218,0 @@

13

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

@@ -19,3 +19,3 @@ "license": "MIT",

"scripts": {
"test": "xo && c8 ava && tsd"
"test": "ava && tsd"
},

@@ -42,7 +42,6 @@ "files": [

"devDependencies": {
"ava": "^3.15.0",
"c8": "^7.7.3",
"tsd": "^0.17.0",
"typescript": "^4.3.5",
"xo": "^0.41.0"
"ava": "^4.0.1",
"c8": "^7.11.0",
"tsd": "^0.19.1",
"xo": "^0.47.0"
},

@@ -49,0 +48,0 @@ "c8": {

@@ -11,5 +11,5 @@ # normalize-url [![Coverage Status](https://codecov.io/gh/sindresorhus/normalize-url/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/normalize-url)

```sh
npm install normalize-url
```
$ npm install normalize-url
```

@@ -16,0 +16,0 @@ *If you need to use this in the browser, use version 4: `npm i normalize-url@4`*

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc