Socket
Socket
Sign inDemoInstall

normalize-registry-url

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-registry-url - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

5

index.js

@@ -7,4 +7,7 @@ 'use strict'

}
if (registry[registry.length - 1] === '/') return registry
if (
registry.endsWith('/') ||
registry.indexOf('/', registry.indexOf('//') + 2) != -1
) return registry
return `${registry}/`
}

12

package.json
{
"name": "normalize-registry-url",
"version": "1.0.0",
"version": "2.0.0",
"description": "Normalizes a npm registry URL",

@@ -9,5 +9,2 @@ "main": "index.js",

],
"scripts": {
"test": "node test"
},
"repository": {

@@ -29,4 +26,7 @@ "type": "git",

"devDependencies": {
"tape": "^4.6.3"
"tape": "^5.3.2"
},
"scripts": {
"test": "node test"
}
}
}

@@ -10,3 +10,3 @@ # normalize-registry-url

```
npm i normalize-registry-url
pnpm add normalize-registry-url
```

@@ -13,0 +13,0 @@

Sorry, the diff of this file is not supported yet

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