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.15 to 3.6.16

7

dist/fetch.umd.js

@@ -546,6 +546,11 @@ (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(xhr.getAllResponseHeaders() || '')
headers: parseHeaders(responseHeaders || '')
};

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

@@ -540,6 +540,11 @@ /* 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(xhr.getAllResponseHeaders() || '')
headers: parseHeaders(responseHeaders || '')
}

@@ -546,0 +551,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.15",
"version": "3.6.16",
"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