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 4.1.0 to 4.2.0

index.d.ts

6

index.js

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

module.exports = (urlString, options) => {
const normalizeUrl = (urlString, options) => {
options = {

@@ -82,2 +82,3 @@ defaultProtocol: 'http:',

}
return '/';

@@ -158,1 +159,4 @@ });

};
module.exports = normalizeUrl;
module.exports.default = normalizeUrl;

12

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

@@ -16,6 +16,7 @@ "license": "MIT",

"scripts": {
"test": "xo && nyc ava"
"test": "xo && nyc ava && tsd-check"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -38,7 +39,8 @@ "keywords": [

"devDependencies": {
"ava": "^0.25.0",
"ava": "^1.2.1",
"coveralls": "^3.0.0",
"nyc": "^13.1.0",
"xo": "^0.23.0"
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc