@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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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