Urara-Blog/node_modules/.pnpm-store/v3/files/8e/54dde755b2d041d789a5cbafa2fc54fced412105ded5fbec09ea565012efdc7824b6b4d1928456403660e62fb747db1881208bfbdc2fb4092dd3de0d7ed236
2022-08-14 01:14:53 +08:00

6 lines
341 B
Text

const getExport = name => import('../dist/undici.mjs').then(r => r[name])
const createCaller = name => (input, init) => getExport(name).then(fn => fn(input, init))
exports.fetch = createCaller('fetch')
exports.$fetch = createCaller('$fetch')
exports.$fetch.raw = (input, init) => getExport('$fetch').then($fetch => $fetch.raw(input, init))