initial commit
This commit is contained in:
6
node_modules/ohmyfetch/cjs/index.cjs
generated
vendored
Normal file
6
node_modules/ohmyfetch/cjs/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
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))
|
||||
6
node_modules/ohmyfetch/cjs/node.cjs
generated
vendored
Normal file
6
node_modules/ohmyfetch/cjs/node.cjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
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))
|
||||
6
node_modules/ohmyfetch/cjs/undici.cjs
generated
vendored
Normal file
6
node_modules/ohmyfetch/cjs/undici.cjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
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))
|
||||
Reference in New Issue
Block a user