@edge-base/react-native 0.1.3 → 0.1.5
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/README.md +9 -1
- 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/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://github.com/edge-base/edgebase">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/edge-base/edgebase/main/docs/static/img/logo-icon.svg" alt="EdgeBase Logo" width="72" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
1
7
|
<h1 align="center">@edge-base/react-native</h1>
|
|
2
8
|
|
|
3
9
|
<p align="center">
|
|
@@ -37,7 +43,9 @@ It keeps the familiar browser SDK shape while adding the pieces mobile apps need
|
|
|
37
43
|
|
|
38
44
|
If you are building a browser-only app, use [`@edge-base/web`](https://www.npmjs.com/package/@edge-base/web) instead.
|
|
39
45
|
|
|
40
|
-
EdgeBase is
|
|
46
|
+
EdgeBase is the open-source edge-native BaaS that runs on Edge, Docker, and Node.js.
|
|
47
|
+
|
|
48
|
+
This package is one part of the wider EdgeBase platform. For the full platform, CLI, Admin Dashboard, server runtime, docs, and all public SDKs, see the main repository: [edge-base/edgebase](https://github.com/edge-base/edgebase).
|
|
41
49
|
|
|
42
50
|
> Beta: the package is already usable, but some APIs may still evolve before general availability.
|
|
43
51
|
|
package/dist/index.cjs
CHANGED
|
@@ -758,7 +758,7 @@ var DatabaseLiveClient = class {
|
|
|
758
758
|
(refreshToken) => refreshAccessToken(this.baseUrl, refreshToken)
|
|
759
759
|
);
|
|
760
760
|
if (!token) throw new core.EdgeBaseError(401, "No access token available. Sign in first.");
|
|
761
|
-
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.
|
|
761
|
+
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.5" });
|
|
762
762
|
return new Promise((resolve, reject) => {
|
|
763
763
|
const timeout = setTimeout(() => reject(new core.EdgeBaseError(401, "Auth timeout")), 1e4);
|
|
764
764
|
const original = this.ws?.onmessage;
|
|
@@ -878,7 +878,7 @@ var DatabaseLiveClient = class {
|
|
|
878
878
|
refreshAuth() {
|
|
879
879
|
const token = this.tokenManager.currentAccessToken;
|
|
880
880
|
if (!token || !this.ws || !this.connected) return;
|
|
881
|
-
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.
|
|
881
|
+
this.sendRaw({ type: "auth", token, sdkVersion: "0.1.5" });
|
|
882
882
|
}
|
|
883
883
|
handleAuthStateChange(user) {
|
|
884
884
|
if (user) {
|
|
@@ -2871,7 +2871,7 @@ var ClientEdgeBase = class {
|
|
|
2871
2871
|
* Select a DB block by namespace and optional instance ID (#133 §2).
|
|
2872
2872
|
*
|
|
2873
2873
|
* @example
|
|
2874
|
-
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').
|
|
2874
|
+
* const posts = await client.db('shared').table('posts').where('status', '==', 'published').getList();
|
|
2875
2875
|
* client.db('shared').table('posts').onSnapshot((change) => { ... });
|
|
2876
2876
|
*/
|
|
2877
2877
|
db(namespace, instanceId) {
|