Socket
Socket
Sign inDemoInstall

encode-registry

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encode-registry - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

index.js
'use strict'
const assert = require('assert')
const url = require('url')
const { URL } = require('url')
const mem = require('mem')

@@ -20,3 +20,3 @@

function getHost (rawUrl) {
const urlObj = url.parse(rawUrl)
const urlObj = new URL(rawUrl)
if (!urlObj || !urlObj.host) {

@@ -23,0 +23,0 @@ throw new Error(`Couldn't get host from ${rawUrl}`)

{
"name": "encode-registry",
"version": "2.0.0",
"version": "2.0.1",
"description": "Encodes a registry URL. Memoized.",

@@ -37,8 +37,8 @@ "main": "index.js",

"package-preview": "^2.0.0",
"standard": "^12.0.1",
"tape": "^4.10.1"
"standard": "^13.0.0",
"tape": "^4.11.0"
},
"dependencies": {
"mem": "^5.0.0"
"mem": "^5.1.1"
}
}
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