🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

whatwg-fetch

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatwg-fetch - npm Package Compare versions

Comparing version

to
3.6.10

2

dist/fetch.umd.js

@@ -598,3 +598,3 @@ (function (global, factory) {

if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g.Headers && init.headers instanceof g.Headers))) {
Object.getOwnPropertyNames(init.headers).forEach(function(name) {

@@ -601,0 +601,0 @@ xhr.setRequestHeader(name, normalizeValue(init.headers[name]));

@@ -592,3 +592,3 @@ /* eslint-disable no-prototype-builtins */

if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g.Headers && init.headers instanceof g.Headers))) {
Object.getOwnPropertyNames(init.headers).forEach(function(name) {

@@ -595,0 +595,0 @@ xhr.setRequestHeader(name, normalizeValue(init.headers[name]))

{
"name": "whatwg-fetch",
"description": "A window.fetch polyfill.",
"version": "3.6.9",
"version": "3.6.10",
"main": "./dist/fetch.umd.js",

@@ -6,0 +6,0 @@ "module": "./fetch.js",