Urara-Blog/node_modules/.pnpm-store/v3/files/89/b4fbf975906cd0442f75395575788cbbcf2e48a3823215a070c99e866b637a1aab1347b640cfac32cd2c9cb132dcb9995abf8965569933f51dc65aea8ddcc8
2022-08-14 01:14:53 +08:00

6 lines
339 B
Text

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