Files
rappaurio-sae501_502/app/node_modules/cross-fetch/dist/node-polyfill.js
2023-09-25 09:41:55 +02:00

12 lines
267 B
JavaScript

const fetchNode = require('./node-ponyfill')
const fetch = fetchNode.fetch.bind({})
fetch.polyfill = true
if (!global.fetch) {
global.fetch = fetch
global.Response = fetchNode.Response
global.Headers = fetchNode.Headers
global.Request = fetchNode.Request
}