@tinyclaw/plugin-channel-friends 2.0.0-patch.ac44432 → 2.0.0-pr.d70213b

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.
Files changed (2) hide show
  1. package/dist/server.js +2 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -182,7 +182,8 @@ export function createFriendsServer(config) {
182
182
  if (!pushClients.has(username)) {
183
183
  pushClients.set(username, new Set());
184
184
  }
185
- pushClients.get(username)?.add(pushClient);
185
+ const clients = pushClients.get(username);
186
+ clients.add(pushClient);
186
187
  // Heartbeat to keep connection alive
187
188
  const heartbeat = setInterval(() => {
188
189
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinyclaw/plugin-channel-friends",
3
- "version": "2.0.0-patch.ac44432",
3
+ "version": "2.0.0-pr.d70213b",
4
4
  "description": "Friends web chat channel plugin for Tiny Claw",
5
5
  "license": "GPL-3.0",
6
6
  "author": "Waren Gonzaga",