PHP 8.2.30
Preview: browser.js Size: 781 B
/home/byroehnu/.trash/node_modules11/node-fetch/browser.js

"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 globalObject = getGlobal();

module.exports = exports = globalObject.fetch;

// Needed for TypeScript and Webpack.
if (globalObject.fetch) {
	exports.default = globalObject.fetch.bind(globalObject);
}

exports.Headers = globalObject.Headers;
exports.Request = globalObject.Request;
exports.Response = globalObject.Response;

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2026-02-09 23:04:48
Edit Download
781 B lrw-r--r-- 2026-02-09 23:04:48
Edit Download
1.05 KB lrw-r--r-- 2026-02-09 23:04:48
Edit Download
2.61 KB lrw-r--r-- 2026-02-09 23:04:48
Edit Download
20.83 KB lrw-r--r-- 2026-02-09 23:04:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).