Files
Webklar.com/node_modules/@supabase/functions-js/dist/module/helper.js
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

14 lines
399 B
JavaScript

export const resolveFetch = (customFetch) => {
let _fetch;
if (customFetch) {
_fetch = customFetch;
}
else if (typeof fetch === 'undefined') {
_fetch = (...args) => import('@supabase/node-fetch').then(({ default: fetch }) => fetch(...args));
}
else {
_fetch = fetch;
}
return (...args) => _fetch(...args);
};
//# sourceMappingURL=helper.js.map