list-fetch
Advanced tools
Comparing version 15.0.1 to 15.0.2
@@ -14,3 +14,3 @@ const makeFetch = require('make-fetch') | ||
const SUPPORTED_METHODS = ['GET', 'PUT', 'DELETE', 'HEAD'] | ||
const encodeType = '~' | ||
const encodeType = 'hex' | ||
const hostType = '_' | ||
@@ -53,3 +53,3 @@ | ||
const { hostname, pathname, protocol, searchParams } = new URL(url) | ||
const mainHostname = hostname && hostname[0] === encodeType ? Buffer.from(hostname.slice(1), 'hex').toString('utf-8') : hostname | ||
const mainHostname = hostname && hostname.startsWith(encodeType) ? Buffer.from(hostname.slice(encodeType.length), 'hex').toString('utf-8') : hostname | ||
@@ -56,0 +56,0 @@ if (protocol !== 'bt:') { |
{ | ||
"name": "list-fetch", | ||
"version": "15.0.1", | ||
"version": "15.0.2", | ||
"description": "coming soon", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
15596