@edge-base/react-native 0.1.3 → 0.1.4
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1098,7 +1098,7 @@ declare class ClientEdgeBase {
|
|
|
1098
1098
|
* Select a DB block by namespace and optional instance ID (#133 §2).
|
|
1099
1099
|
*
|
|
1100
1100
|
* @example
|
|
1101
|
-
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').
|
|
1101
|
+
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').getList();
|
|
1102
1102
|
* client.db('shared').table('posts').onSnapshot((change) => { ... });
|
|
1103
1103
|
*/
|
|
1104
1104
|
db(namespace: string, instanceId?: string): DbRef;
|
package/dist/index.d.ts
CHANGED
|
@@ -1098,7 +1098,7 @@ declare class ClientEdgeBase {
|
|
|
1098
1098
|
* Select a DB block by namespace and optional instance ID (#133 §2).
|
|
1099
1099
|
*
|
|
1100
1100
|
* @example
|
|
1101
|
-
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').
|
|
1101
|
+
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').getList();
|
|
1102
1102
|
* client.db('shared').table('posts').onSnapshot((change) => { ... });
|
|
1103
1103
|
*/
|
|
1104
1104
|
db(namespace: string, instanceId?: string): DbRef;
|
package/dist/index.js
CHANGED
|
@@ -752,7 +752,7 @@ var DatabaseLiveClient = class {
|
|
|
752
752
|
(refreshToken) => refreshAccessToken(this.baseUrl, refreshToken)
|
|
753
753
|
);
|
|
754
754
|
if (!token) throw new EdgeBaseError(401, "No access token available. Sign in first.");
|
|
755
|
-
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.
|
|
755
|
+
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.4" });
|
|
756
756
|
return new Promise((resolve, reject) => {
|
|
757
757
|
const timeout = setTimeout(() => reject(new EdgeBaseError(401, "Auth timeout")), 1e4);
|
|
758
758
|
const original = this.ws?.onmessage;
|
|
@@ -872,7 +872,7 @@ var DatabaseLiveClient = class {
|
|
|
872
872
|
refreshAuth() {
|
|
873
873
|
const token = this.tokenManager.currentAccessToken;
|
|
874
874
|
if (!token || !this.ws || !this.connected) return;
|
|
875
|
-
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.
|
|
875
|
+
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.4" });
|
|
876
876
|
}
|
|
877
877
|
handleAuthStateChange(user) {
|
|
878
878
|
if (user) {
|
|
@@ -2865,7 +2865,7 @@ var ClientEdgeBase = class {
|
|
|
2865
2865
|
* Select a DB block by namespace and optional instance ID (#133 §2).
|
|
2866
2866
|
*
|
|
2867
2867
|
* @example
|
|
2868
|
-
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').
|
|
2868
|
+
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').getList();
|
|
2869
2869
|
* client.db('shared').table('posts').onSnapshot((change) => { ... });
|
|
2870
2870
|
*/
|
|
2871
2871
|
db(namespace, instanceId) {
|