tahamajs's picture
download
raw
624 Bytes
const nodeFetch = require('node-fetch')
const realFetch = nodeFetch.default || nodeFetch
const fetch = function (url, options) {
// Support schemaless URIs on the server for parity with the browser.
// Ex: //github.com/ -> https://github.com/
if (/^\/\//.test(url)) {
url = 'https:' + url
}
return realFetch.call(this, url, options)
}
fetch.ponyfill = true
module.exports = exports = fetch
exports.fetch = fetch
exports.Headers = nodeFetch.Headers
exports.Request = nodeFetch.Request
exports.Response = nodeFetch.Response
// Needed for TypeScript consumers without esModuleInterop.
exports.default = fetch

Xet Storage Details

Size:
624 Bytes
·
Xet hash:
4ef788dc231ea4c04da360d5b505148cac85dd4b65117e44b2ae28167cbbb7bf

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.