|
"use strict"; |
|
|
|
|
|
var getGlobal = function () { |
|
|
|
|
|
|
|
if (typeof self !== 'undefined') { return self; } |
|
if (typeof window !== 'undefined') { return window; } |
|
if (typeof global !== 'undefined') { return global; } |
|
throw new Error('unable to locate global object'); |
|
} |
|
|
|
var globalObject = getGlobal(); |
|
|
|
module.exports = exports = globalObject.fetch; |
|
|
|
|
|
if (globalObject.fetch) { |
|
exports.default = globalObject.fetch.bind(globalObject); |
|
} |
|
|
|
exports.Headers = globalObject.Headers; |
|
exports.Request = globalObject.Request; |
|
exports.Response = globalObject.Response; |
|
|