Urara-Blog/node_modules/.pnpm-store/v3/files/8a/591ea876a3e548e767c6e48dd934a942dc003812248ec72c353f775de40b8b040f341fab0de63ff5507a6cf062acdb0fff3f584abaea1c4601fcace43ca916
2022-08-14 01:14:53 +08:00

6 lines
340 B
Text

const getExport = name => import('../dist/index.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))