mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-30 02:15:58 +02:00
Revert "permet l'ajout des frameworks et des routes"
This reverts commit 361112699c
This commit is contained in:
22
app/node_modules/cross-fetch/dist/node-ponyfill.js
generated
vendored
22
app/node_modules/cross-fetch/dist/node-ponyfill.js
generated
vendored
@@ -1,22 +0,0 @@
|
||||
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
|
Reference in New Issue
Block a user