node-fetch
Advanced tools
Comparing version 2.6.4 to 2.6.5
@@ -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
149265
4330