Socket
Socket
Sign inDemoInstall

whatwg-fetch

Package Overview
Dependencies
0
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.1 to 3.6.2

8

dist/fetch.umd.js

@@ -255,5 +255,3 @@ (function (global, factory) {

var contentType = this.headers.get('content-type');
if (!contentType) {
if (!this.headers.get('content-type')) {
if (typeof body === 'string') {

@@ -266,6 +264,2 @@ this.headers.set('content-type', 'text/plain;charset=UTF-8');

}
} else if (contentType.indexOf('json') >= 0 && typeof this._bodyInit !== 'string') {
// Always pass a text representation of a non-stringified JSON body
// to `XMLHttpRequest.send` to retain a compatible behavior with the browser.
this._bodyInit = this._bodyText;
}

@@ -272,0 +266,0 @@ };

@@ -249,5 +249,3 @@ var global =

var contentType = this.headers.get('content-type')
if (!contentType) {
if (!this.headers.get('content-type')) {
if (typeof body === 'string') {

@@ -260,6 +258,2 @@ this.headers.set('content-type', 'text/plain;charset=UTF-8')

}
} else if (contentType.indexOf('json') >= 0 && typeof this._bodyInit !== 'string') {
// Always pass a text representation of a non-stringified JSON body
// to `XMLHttpRequest.send` to retain a compatible behavior with the browser.
this._bodyInit = this._bodyText
}

@@ -266,0 +260,0 @@ }

2

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

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

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