node-fetch
Advanced tools
Comparing version 2.6.3 to 2.6.4
@@ -1159,15 +1159,3 @@ process.emitWarning("The .es.js file is deprecated. Use .mjs instead."); | ||
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { | ||
const url = new URL(urlStr); | ||
return { | ||
path: url.pathname, | ||
pathname: url.pathname, | ||
hostname: url.hostname, | ||
protocol: url.protocol, | ||
port: url.port, | ||
hash: url.hash, | ||
search: url.search, | ||
query: url.query, | ||
href: url.href | ||
}; | ||
urlStr = new URL(urlStr).toString(); | ||
} | ||
@@ -1174,0 +1162,0 @@ |
@@ -1163,15 +1163,3 @@ 'use strict'; | ||
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { | ||
const url = new whatwgUrl.URL(urlStr); | ||
return { | ||
path: url.pathname, | ||
pathname: url.pathname, | ||
hostname: url.hostname, | ||
protocol: url.protocol, | ||
port: url.port, | ||
hash: url.hash, | ||
search: url.search, | ||
query: url.query, | ||
href: url.href | ||
}; | ||
urlStr = new whatwgUrl.URL(urlStr).toString(); | ||
} | ||
@@ -1178,0 +1166,0 @@ |
{ | ||
"name": "node-fetch", | ||
"version": "2.6.3", | ||
"version": "2.6.4", | ||
"description": "A light-weight module that brings window.fetch to node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
149173
4327