mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-31 01:45:58 +02:00
permet l'ajout des frameworks et des routes
This commit is contained in:
11
app/node_modules/cross-fetch/dist/node-polyfill.js
generated
vendored
Normal file
11
app/node_modules/cross-fetch/dist/node-polyfill.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user