diff --git a/packages/core/supabase-js/wrapper.mjs b/packages/core/supabase-js/wrapper.mjs index 74c9664a4..534f8b09e 100644 --- a/packages/core/supabase-js/wrapper.mjs +++ b/packages/core/supabase-js/wrapper.mjs @@ -1,5 +1,4 @@ -import * as index from '../module/index.js' -const { +import { PostgrestError, FunctionsHttpError, FunctionsFetchError, @@ -26,6 +25,7 @@ const { AuthInvalidCredentialsError, AuthImplicitGrantRedirectError, AuthPKCEGrantCodeExchangeError, + AuthPKCECodeVerifierMissingError, AuthRetryableFetchError, AuthWeakPasswordError, AuthInvalidJwtError, @@ -33,17 +33,19 @@ const { isAuthApiError, isAuthSessionMissingError, isAuthImplicitGrantRedirectError, + isAuthPKCECodeVerifierMissingError, isAuthRetryableFetchError, isAuthWeakPasswordError, RealtimePresence, RealtimeChannel, RealtimeClient, + WebSocketFactory, REALTIME_LISTEN_TYPES, REALTIME_POSTGRES_CHANGES_LISTEN_EVENT, REALTIME_PRESENCE_LISTEN_EVENTS, REALTIME_SUBSCRIBE_STATES, REALTIME_CHANNEL_STATES, -} = index.default || index +} from '../module/index.js' export { PostgrestError, @@ -72,6 +74,7 @@ export { AuthInvalidCredentialsError, AuthImplicitGrantRedirectError, AuthPKCEGrantCodeExchangeError, + AuthPKCECodeVerifierMissingError, AuthRetryableFetchError, AuthWeakPasswordError, AuthInvalidJwtError, @@ -79,11 +82,13 @@ export { isAuthApiError, isAuthSessionMissingError, isAuthImplicitGrantRedirectError, + isAuthPKCECodeVerifierMissingError, isAuthRetryableFetchError, isAuthWeakPasswordError, RealtimePresence, RealtimeChannel, RealtimeClient, + WebSocketFactory, REALTIME_LISTEN_TYPES, REALTIME_POSTGRES_CHANGES_LISTEN_EVENT, REALTIME_PRESENCE_LISTEN_EVENTS, @@ -91,4 +96,51 @@ export { REALTIME_CHANNEL_STATES, } -export default index.default || index +export default { + PostgrestError, + FunctionsHttpError, + FunctionsFetchError, + FunctionsRelayError, + FunctionsError, + FunctionRegion, + SupabaseClient, + createClient, + GoTrueAdminApi, + GoTrueClient, + AuthAdminApi, + AuthClient, + navigatorLock, + NavigatorLockAcquireTimeoutError, + lockInternals, + processLock, + SIGN_OUT_SCOPES, + AuthError, + AuthApiError, + AuthUnknownError, + CustomAuthError, + AuthSessionMissingError, + AuthInvalidTokenResponseError, + AuthInvalidCredentialsError, + AuthImplicitGrantRedirectError, + AuthPKCEGrantCodeExchangeError, + AuthPKCECodeVerifierMissingError, + AuthRetryableFetchError, + AuthWeakPasswordError, + AuthInvalidJwtError, + isAuthError, + isAuthApiError, + isAuthSessionMissingError, + isAuthImplicitGrantRedirectError, + isAuthPKCECodeVerifierMissingError, + isAuthRetryableFetchError, + isAuthWeakPasswordError, + RealtimePresence, + RealtimeChannel, + RealtimeClient, + WebSocketFactory, + REALTIME_LISTEN_TYPES, + REALTIME_POSTGRES_CHANGES_LISTEN_EVENT, + REALTIME_PRESENCE_LISTEN_EVENTS, + REALTIME_SUBSCRIBE_STATES, + REALTIME_CHANNEL_STATES, +}