@blinkdotnew/sdk 0.10.7 → 0.10.8

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.js CHANGED
@@ -2697,7 +2697,8 @@ var BlinkRealtimeChannel = class {
2697
2697
  case "presence":
2698
2698
  this.presenceCallbacks.forEach((callback) => {
2699
2699
  try {
2700
- callback(message.payload.data || []);
2700
+ const users = message.payload.data?.users || message.payload.data || [];
2701
+ callback(users);
2701
2702
  } catch (error) {
2702
2703
  console.error("Error in presence callback:", error);
2703
2704
  }
package/dist/index.mjs CHANGED
@@ -2695,7 +2695,8 @@ var BlinkRealtimeChannel = class {
2695
2695
  case "presence":
2696
2696
  this.presenceCallbacks.forEach((callback) => {
2697
2697
  try {
2698
- callback(message.payload.data || []);
2698
+ const users = message.payload.data?.users || message.payload.data || [];
2699
+ callback(users);
2699
2700
  } catch (error) {
2700
2701
  console.error("Error in presence callback:", error);
2701
2702
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkdotnew/sdk",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "description": "Blink TypeScript SDK for client-side applications - Zero-boilerplate CRUD + auth + AI + analytics + notifications for modern SaaS/AI apps",
5
5
  "keywords": [
6
6
  "blink",