Socket
Socket
Sign inDemoInstall

node-fetch

Package Overview
Dependencies
3
Maintainers
4
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.4 to 2.6.5

3

lib/index.es.js

@@ -6,3 +6,3 @@ process.emitWarning("The .es.js file is deprecated. Use .mjs instead.");

import Url from 'url';
import { URL } from 'whatwg-url';
import whatwgUrl from 'whatwg-url';
import https from 'https';

@@ -1142,2 +1142,3 @@ import zlib from 'zlib';

const INTERNALS$2 = Symbol('Request internals');
const URL = whatwgUrl.URL;

@@ -1144,0 +1145,0 @@ // fix an issue where "format", "parse" aren't a named export for node <10

@@ -10,3 +10,3 @@ 'use strict';

var Url = _interopDefault(require('url'));
var whatwgUrl = require('whatwg-url');
var whatwgUrl = _interopDefault(require('whatwg-url'));
var https = _interopDefault(require('https'));

@@ -1146,2 +1146,3 @@ var zlib = _interopDefault(require('zlib'));

const INTERNALS$2 = Symbol('Request internals');
const URL = whatwgUrl.URL;

@@ -1165,3 +1166,3 @@ // fix an issue where "format", "parse" aren't a named export for node <10

if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
urlStr = new whatwgUrl.URL(urlStr).toString();
urlStr = new URL(urlStr).toString();
}

@@ -1168,0 +1169,0 @@

{
"name": "node-fetch",
"version": "2.6.4",
"version": "2.6.5",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc