Socket
Socket
Sign inDemoInstall

whatwg-fetch

Package Overview
Dependencies
Maintainers
2
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 0.11.0 to 0.11.1

18

fetch.js

@@ -113,3 +113,3 @@ (function(self) {

try {
new Blob();
new Blob()
return true

@@ -271,3 +271,3 @@ } catch(e) {

var head = new Headers()
var pairs = xhr.getAllResponseHeaders().trim().split('\n')
var pairs = (xhr.getAllResponseHeaders() || '').trim().split('\n')
pairs.forEach(function(header) {

@@ -325,5 +325,5 @@ var split = header.trim().split(':')

self.Headers = Headers;
self.Request = Request;
self.Response = Response;
self.Headers = Headers
self.Request = Request
self.Response = Response

@@ -351,3 +351,3 @@ self.fetch = function(input, init) {

return;
return
}

@@ -367,3 +367,3 @@

}
var body = 'response' in xhr ? xhr.response : xhr.responseText;
var body = 'response' in xhr ? xhr.response : xhr.responseText
resolve(new Response(body, options))

@@ -376,2 +376,6 @@ }

xhr.ontimeout = function() {
reject(new TypeError('Network request failed'))
}
xhr.open(request.method, request.url, true)

@@ -378,0 +382,0 @@

{
"name": "whatwg-fetch",
"description": "A window.fetch polyfill.",
"version": "0.11.0",
"version": "0.11.1",
"main": "fetch.js",

@@ -6,0 +6,0 @@ "repository": "github/fetch",

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