-
-
Notifications
You must be signed in to change notification settings - Fork 371
fix: update exports from init file #928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,66 @@ | ||
from gotrue.errors import ( | ||
AuthApiError, | ||
AuthError, | ||
AuthImplicitGrantRedirectError, | ||
AuthInvalidCredentialsError, | ||
AuthRetryableError, | ||
AuthSessionMissingError, | ||
AuthUnknownError, | ||
AuthWeakPasswordError, | ||
) | ||
from postgrest import APIError as PostgrestAPIError | ||
from postgrest import APIResponse as PostgrestAPIResponse | ||
from realtime import AuthorizationError, NotConnectedError | ||
from storage3.utils import StorageException | ||
from supafunc.errors import FunctionsError, FunctionsHttpError, FunctionsRelayError | ||
|
||
# Async Client | ||
from ._async.auth_client import AsyncSupabaseAuthClient as ASupabaseAuthClient | ||
from ._async.client import AsyncClient as AClient | ||
from ._async.client import AsyncStorageClient as ASupabaseStorageClient | ||
from ._async.client import ClientOptions as AClientOptions | ||
from ._async.client import create_client as acreate_client | ||
from ._async.client import create_client as create_async_client | ||
|
||
# Sync Client | ||
from ._sync.auth_client import SyncSupabaseAuthClient as SupabaseAuthClient | ||
from ._sync.client import ClientOptions | ||
from ._sync.client import SyncClient as Client | ||
from ._sync.client import SyncStorageClient as SupabaseStorageClient | ||
from ._sync.client import create_client | ||
|
||
# Lib | ||
from .lib.client_options import ClientOptions | ||
|
||
# Version | ||
from .version import __version__ | ||
|
||
__all__ = [ | ||
"acreate_client", | ||
"create_async_client", | ||
"AClient", | ||
"ASupabaseAuthClient", | ||
"ASupabaseStorageClient", | ||
"AClientOptions", | ||
"create_client", | ||
"Client", | ||
"SupabaseAuthClient", | ||
"SupabaseStorageClient", | ||
"ClientOptions", | ||
"PostgrestAPIError", | ||
"PostgrestAPIResponse", | ||
"StorageException", | ||
"version", | ||
"__version__", | ||
"AuthApiError", | ||
"AuthError", | ||
"AuthImplicitGrantRedirectError", | ||
"AuthInvalidCredentialsError", | ||
"AuthRetryableError", | ||
"AuthSessionMissingError", | ||
"AuthWeakPasswordError", | ||
"AuthUnknownError", | ||
"FunctionsHttpError", | ||
"FunctionsRelayError", | ||
"FunctionsError", | ||
"AuthorizationError", | ||
"NotConnectedError", | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not urgent and definitely not in scope for this PR: I think there was an ask for a move from
supafunc
tosupabase_functions
can do that in the futureThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this has to wait until 3.0 of the library as it's a breaking change also this current addition is to help with migrating to that as user's will now import the errors from the
supabase
library rather thansupafunc
as some are probably doing now.