@base44-preview/sdk 0.8.13-pr.58.3a4abcb → 0.8.13-pr.58.51dd5dd

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.
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from "axios";
2
2
  import { EntitiesModule } from "./entities.types";
3
- import { RoomsSocket } from "../utils/socket-utils";
3
+ import { RoomsSocket } from "../utils/socket-utils.js";
4
4
  /**
5
5
  * Configuration for the entities module.
6
6
  * @internal
@@ -39,7 +39,8 @@ function parseRealtimeMessage(dataStr) {
39
39
  timestamp: parsed.timestamp || new Date().toISOString(),
40
40
  };
41
41
  }
42
- catch (_b) {
42
+ catch (error) {
43
+ console.warn("[Base44 SDK] Failed to parse realtime message:", error);
43
44
  return null;
44
45
  }
45
46
  }
@@ -129,7 +130,12 @@ function createEntityHandler(axios, appId, entityName, getSocket) {
129
130
  if (!event) {
130
131
  return;
131
132
  }
132
- callback(event);
133
+ try {
134
+ callback(event);
135
+ }
136
+ catch (error) {
137
+ console.error("[Base44 SDK] Subscription callback error:", error);
138
+ }
133
139
  },
134
140
  });
135
141
  return unsubscribe;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.13-pr.58.3a4abcb",
3
+ "version": "0.8.13-pr.58.51dd5dd",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",