7.1.0 • Published 3 years ago
fetch-ponyfill v7.1.0
Fetch Ponyfill
WHATWG
fetch
ponyfill
This module wraps the github/fetch polyfill in a CommonJS module
for browserification, and avoids appending anything to the window, instead returning a setup
function when fetch-ponyfill
is required. Inspired by
object-assign.
When used in Node, delegates to node-fetch
instead.
Usage
Browserify
const {fetch, Request, Response, Headers} = require('fetch-ponyfill')(options);
Webpack
import fetchPonyfill from 'fetch-ponyfill';
const {fetch, Request, Response, Headers} = fetchPonyfill(options);
Options
Where options
is an object with the following optional properties:
option | description |
---|---|
Promise | An A+ Promise implementation. Defaults to window.Promise in the browser, and global.Promise in Node. |
XMLHttpRequest | The XMLHttpRequest constructor. This is useful to feed in when working with Firefox OS. Defaults to window.XMLHttpRequest . Has no effect in Node. |
7.1.0
3 years ago
7.0.0
3 years ago
6.1.1
4 years ago
6.1.0
5 years ago
6.0.2
6 years ago
6.0.1
6 years ago
6.0.0
6 years ago
5.0.1
6 years ago
5.0.0
6 years ago
4.1.0
7 years ago
4.0.0
7 years ago
3.0.2
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.0.0
8 years ago
0.9.0
9 years ago
0.7.0
9 years ago
0.6.0
9 years ago
0.4.0
9 years ago
0.3.2
9 years ago