chore: migrate code to ESM (#73)

This commit is contained in:
Luca Casonato
2024-09-13 17:15:41 +02:00
committed by GitHub
parent f8480e68ca
commit f1ac2c87b8
905 changed files with 69790 additions and 56120 deletions

18
node_modules/undici/index-fetch.js generated vendored
View File

@@ -1,18 +0,0 @@
'use strict'
const { getGlobalDispatcher } = require('./lib/global')
const fetchImpl = require('./lib/fetch').fetch
module.exports.fetch = async function fetch (resource) {
const dispatcher = (arguments[1] && arguments[1].dispatcher) || getGlobalDispatcher()
try {
return await fetchImpl.apply(dispatcher, arguments)
} catch (err) {
Error.captureStackTrace(err, this)
throw err
}
}
module.exports.FormData = require('./lib/fetch/formdata').FormData
module.exports.Headers = require('./lib/fetch/headers').Headers
module.exports.Response = require('./lib/fetch/response').Response
module.exports.Request = require('./lib/fetch/request').Request