@supabase/supabase-js 2.81.1-canary.0 → 2.81.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/SupabaseClient.d.ts.map +1 -1
- package/dist/main/SupabaseClient.js +6 -0
- package/dist/main/SupabaseClient.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.d.ts.map +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/lib/version.js.map +1 -1
- package/dist/module/SupabaseClient.d.ts.map +1 -1
- package/dist/module/SupabaseClient.js +6 -0
- package/dist/module/SupabaseClient.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.d.ts.map +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/lib/version.js.map +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +6 -6
- package/src/SupabaseClient.ts +7 -0
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supabase/supabase-js",
|
|
3
|
-
"version": "2.81.1
|
|
3
|
+
"version": "2.81.1",
|
|
4
4
|
"description": "Isomorphic Javascript SDK for Supabase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"update:test-deps:bun": "cd test/integration/bun && bun install"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@supabase/auth-js": "2.81.1
|
|
58
|
-
"@supabase/functions-js": "2.81.1
|
|
59
|
-
"@supabase/postgrest-js": "2.81.1
|
|
60
|
-
"@supabase/realtime-js": "2.81.1
|
|
61
|
-
"@supabase/storage-js": "2.81.1
|
|
57
|
+
"@supabase/auth-js": "2.81.1",
|
|
58
|
+
"@supabase/functions-js": "2.81.1",
|
|
59
|
+
"@supabase/postgrest-js": "2.81.1",
|
|
60
|
+
"@supabase/realtime-js": "2.81.1",
|
|
61
|
+
"@supabase/storage-js": "2.81.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"jsr": "^0.13.5",
|
package/src/SupabaseClient.ts
CHANGED
|
@@ -156,6 +156,13 @@ export default class SupabaseClient<
|
|
|
156
156
|
accessToken: this._getAccessToken.bind(this),
|
|
157
157
|
...settings.realtime,
|
|
158
158
|
})
|
|
159
|
+
if (this.accessToken) {
|
|
160
|
+
// Start auth immediately to avoid race condition with channel subscriptions
|
|
161
|
+
this.accessToken()
|
|
162
|
+
.then((token) => this.realtime.setAuth(token))
|
|
163
|
+
.catch((e) => console.warn('Failed to set initial Realtime auth token:', e))
|
|
164
|
+
}
|
|
165
|
+
|
|
159
166
|
this.rest = new PostgrestClient(new URL('rest/v1', baseUrl).href, {
|
|
160
167
|
headers: this.headers,
|
|
161
168
|
schema: settings.db.schema,
|
package/src/lib/version.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
// - Debugging and support (identifying which version is running)
|
|
5
5
|
// - Telemetry and logging (version reporting in errors/analytics)
|
|
6
6
|
// - Ensuring build artifacts match the published package version
|
|
7
|
-
export const version = '2.81.1
|
|
7
|
+
export const version = '2.81.1'
|