Spaces:
Running
Running
Download node_modules/@supabase/supabase-js/src/lib/constants.ts from Harry9233/Taste_Rider_Web: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/spaces/Harry9233/Taste_Rider_Web/resolve/main/node_modules/%40supabase/supabase-js/src/lib/constants.ts
- Command line
-
hf download hf://spaces/Harry9233/Taste_Rider_Web/node_modules/@supabase/supabase-js/src/lib/constants.ts
-
curl -L -o constants.ts https://huggingface.co/spaces/Harry9233/Taste_Rider_Web/resolve/main/node_modules/%40supabase/supabase-js/src/lib/constants.ts
426 Bytes
| // constants.ts | |
| 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}` } | |