Socket
Socket
Sign inDemoInstall

node-fetch

Package Overview
Dependencies
Maintainers
4
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-fetch - npm Package Compare versions

Comparing version 2.6.3 to 2.6.4

14

lib/index.es.js

@@ -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 @@

2

package.json
{
"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

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