Package Exports
- fetch-ponyfill
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fetch-ponyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Fetch Ponyfill
WHATWG
fetch
ponyfillPonyfill: A polyfill that doesn't overwrite the native method.
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.
Usage
var fetch = require('fetch-ponyfill')(options);
where options is an object with the following optional properties:
option | description |
---|---|
Promise |
An A+ Promise implementation. Defaults to window.Promise . |
XMLHttpRequest |
The XMLHttpRequest constructor. This is useful to feed in when working with Firefox OS. Defaults to window.XMLHttpRequest . |