@edge-base/web 0.2.1 → 0.2.2
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/database-live.js +2 -2
- package/package.json +2 -2
package/dist/database-live.js
CHANGED
|
@@ -172,7 +172,7 @@ export class DatabaseLiveClient {
|
|
|
172
172
|
if (!token) {
|
|
173
173
|
throw new EdgeBaseError(401, 'No access token available. Sign in first.');
|
|
174
174
|
}
|
|
175
|
-
this.sendRaw({ type: 'auth', token, sdkVersion: '0.2.
|
|
175
|
+
this.sendRaw({ type: 'auth', token, sdkVersion: '0.2.2' });
|
|
176
176
|
return new Promise((resolve, reject) => {
|
|
177
177
|
const timeout = setTimeout(() => {
|
|
178
178
|
if (this.ws)
|
|
@@ -355,7 +355,7 @@ export class DatabaseLiveClient {
|
|
|
355
355
|
const token = this.tokenManager.currentAccessToken;
|
|
356
356
|
if (!token || !this.ws || !this.connected)
|
|
357
357
|
return;
|
|
358
|
-
this.sendRaw({ type: 'auth', token, sdkVersion: '0.2.
|
|
358
|
+
this.sendRaw({ type: 'auth', token, sdkVersion: '0.2.2' });
|
|
359
359
|
}
|
|
360
360
|
handleAuthStateChange(user) {
|
|
361
361
|
if (user) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edge-base/web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "EdgeBase web SDK — browser client with database-live subscriptions, room, and auth persistence",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@cloudflare/realtimekit": "1.2.5",
|
|
39
|
-
"@edge-base/core": "0.2.
|
|
39
|
+
"@edge-base/core": "0.2.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"typescript": "^5.7.0",
|