Socket
Socket
Sign inDemoInstall

fetch-ie8

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

4

fetch.js
(function() {
'use strict';
if (self.fetch) {
// if __disableNativeFetch is set to true, the it will always polyfill fetch
// with Ajax.
if (!self.__disableNativeFetch && self.fetch) {
return

@@ -6,0 +8,0 @@ }

{
"name": "fetch-ie8",
"version": "1.0.0",
"version": "1.1.0",
"main": "fetch.js",

@@ -5,0 +5,0 @@ "repository": "camsong/fetch",

# window.fetch polyfill
**This fork supports IE8 with es5-shim, es5-sham and es6-promise**
**If you need to support JSONP, checkout [fetch-jsonp](https://github.com/camsong/fetch-jsonp)**
**This fork supports IE8 with es5-shim, es5-sham and es6-promise.**
**If you also use JSONP, checkout [fetch-jsonp](https://github.com/camsong/fetch-jsonp).**
**Fetch API is still very new and not fully supported in some browsers, so you may
need to check browser verson as well as if `window.fetch` exists. In this case,
you can set `window.__disableNativeFetch = true` to use AJAX polyfill always.**
The global `fetch` function is an easier way to make web requests and handle

@@ -7,0 +12,0 @@ responses than using an XMLHttpRequest. This polyfill is written as closely as

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