Socket
Socket
Sign inDemoInstall

whatwg-fetch

Package Overview
Dependencies
0
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.1 to 0.11.0

14

fetch.js

@@ -1,2 +0,2 @@

(function() {
(function(self) {
'use strict';

@@ -143,2 +143,10 @@

}
if (!this.headers.get('content-type')) {
if (typeof body === 'string') {
this.headers.set('content-type', 'text/plain;charset=UTF-8')
} else if (this._bodyBlob && this._bodyBlob.type) {
this.headers.set('content-type', this._bodyBlob.type)
}
}
}

@@ -280,3 +288,2 @@

this._initBody(bodyInit)
this.type = 'default'

@@ -288,2 +295,3 @@ this.status = options.status

this.url = options.url || ''
this._initBody(bodyInit)
}

@@ -384,2 +392,2 @@

self.fetch.polyfill = true
})();
})(typeof self !== 'undefined' ? self : this);
{
"name": "whatwg-fetch",
"version": "0.10.1",
"description": "A window.fetch polyfill.",
"version": "0.11.0",
"main": "fetch.js",

@@ -15,6 +16,6 @@ "repository": "github/fetch",

"chai": "1.10.0",
"jshint": "2.5.2",
"jshint": "2.8.0",
"mocha-phantomjs": "3.5.2",
"mocha": "2.1.0",
"phantomjs": "1.9.13"
"phantomjs": "1.9.19"
},

@@ -21,0 +22,0 @@ "files" : [

Sorry, the diff of this file is not supported yet

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