main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { version } from './version';
let JS_ENV = '';
// @ts-ignore
if (typeof Deno !== 'undefined') {
JS_ENV = 'deno';
}
else if (typeof document !== 'undefined') {
JS_ENV = 'web';
}
else if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
JS_ENV = 'react-native';
}
else {
JS_ENV = 'node';
}
export const DEFAULT_HEADERS = { 'X-Client-Info': `supabase-js-${JS_ENV}/${version}` };
export const DEFAULT_GLOBAL_OPTIONS = {
headers: DEFAULT_HEADERS,
};
export const DEFAULT_DB_OPTIONS = {
schema: 'public',
};
export const DEFAULT_AUTH_OPTIONS = {
autoRefreshToken: true,
persistSession: true,
detectSessionInUrl: true,
flowType: 'implicit',
};
export const DEFAULT_REALTIME_OPTIONS = {};
//# sourceMappingURL=constants.js.map