encode-registry
Advanced tools
Comparing version 2.0.0 to 2.0.1
'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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3226
Updatedmem@^5.1.1