Files
setup-php/node_modules/node-fetch/browser.js
T
Shivam Mathur 43178a7254
Main workflow / Run (ubuntu-latest, 5.6) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.0) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.1) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.2) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.3) (push) Failing after 0s
Main workflow / Run (macOS-latest, 5.6) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.0) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.1) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.2) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.3) (push) Canceled after 0s
Main workflow / Run (windows-latest, 5.6) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.0) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.1) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.2) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.3) (push) Canceled after 0s
Improve code quality and write tests
2019-09-20 21:54:46 +05:30

23 lines
709 B
JavaScript

"use strict";
// ref: https://github.com/tc39/proposal-global
var getGlobal = function () {
// the only reliable means to get the global object is
// `Function('return this')()`
// However, this causes CSP violations in Chrome apps.
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 global = getGlobal();
module.exports = exports = global.fetch;
// Needed for TypeScript and Webpack.
exports.default = global.fetch.bind(global);
exports.Headers = global.Headers;
exports.Request = global.Request;
exports.Response = global.Response;