feat(release): prepare 1.1.0 candidate
This commit is contained in:
parent
5a34f66981
commit
5205dcdfa9
736 changed files with 115667 additions and 12203 deletions
|
|
@ -380,7 +380,11 @@ class CloudSyncService extends EventEmitter {
|
|||
* Phase 3.2: Supabase Edge Function 호출 — 클라이언트가 auth 헤더를 올바르게 처리.
|
||||
* raw fetch 대신 이걸 사용해야 gateway 레벨 401 방지.
|
||||
*/
|
||||
async invokeFunction(name: string, body: Record<string, unknown>): Promise<{ data: unknown; error: { message: string } | null }> {
|
||||
async invokeFunction(
|
||||
name: string,
|
||||
body: Record<string, unknown> | FormData,
|
||||
options?: { signal?: AbortSignal; timeoutMs?: number }
|
||||
): Promise<{ data: unknown; error: { message: string } | null }> {
|
||||
if (!this._client) {
|
||||
return { data: null, error: { message: 'Supabase client not initialized' } }
|
||||
}
|
||||
|
|
@ -395,6 +399,8 @@ class CloudSyncService extends EventEmitter {
|
|||
const { data, error } = await this._client.functions.invoke(name, {
|
||||
body,
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
signal: options?.signal,
|
||||
timeout: options?.timeoutMs
|
||||
})
|
||||
|
||||
if (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue