Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 3.6.16 to 3.6.17

7

dist/fetch.umd.js

@@ -546,11 +546,6 @@ (function (global, factory) {

xhr.onload = function() {
var responseHeaders = xhr.getAllResponseHeaders();
var setCookie = xhr.getResponseHeader('set-cookie');
if (setCookie) {
responseHeaders = responseHeaders.replace(setCookie, setCookie.replace(/\r?\n/g, ', '));
}
var options = {
status: xhr.status,
statusText: xhr.statusText,
headers: parseHeaders(responseHeaders || '')
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
};

@@ -557,0 +552,0 @@ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');

@@ -540,11 +540,6 @@ /* eslint-disable no-prototype-builtins */

xhr.onload = function() {
var responseHeaders = xhr.getAllResponseHeaders();
var setCookie = xhr.getResponseHeader('set-cookie');
if (setCookie) {
responseHeaders = responseHeaders.replace(setCookie, setCookie.replace(/\r?\n/g, ', '));
}
var options = {
status: xhr.status,
statusText: xhr.statusText,
headers: parseHeaders(responseHeaders || '')
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
}

@@ -551,0 +546,0 @@ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')

2

package.json
{
"name": "whatwg-fetch",
"description": "A window.fetch polyfill.",
"version": "3.6.16",
"version": "3.6.17",
"main": "./dist/fetch.umd.js",

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

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