@edge-base/react-native 0.1.4 → 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 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 an open-source edge-native BaaS that runs on Edge, Docker, and Node.js. If you want the full platform, CLI, docs, and the rest of the public SDKs, see the main repository: [edge-base/edgebase](https://github.com/edge-base/edgebase).
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.4" });
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.4" });
881
+ this.sendRaw({ type: "auth", token, sdkVersion: "0.1.5" });
882
882
  }
883
883
  handleAuthStateChange(user) {
884
884
  if (user) {