@eleven-am/pondsocket 0.1.186 → 0.1.187

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.
@@ -95,12 +95,17 @@ class Manager {
95
95
  removeUser(userId) {
96
96
  var _a;
97
97
  const userData = this.getUserData(userId);
98
- this.removePresence(userId);
99
- this.removeAssigns(userId);
100
- (_a = this.userSubscriptions.get(userId)) === null || _a === void 0 ? void 0 : _a();
101
- this.userSubscriptions.delete(userId);
102
- if (this.assignsCache.size === 0) {
103
- this.close();
98
+ try {
99
+ this.removePresence(userId);
100
+ this.removeAssigns(userId);
101
+ (_a = this.userSubscriptions.get(userId)) === null || _a === void 0 ? void 0 : _a();
102
+ this.userSubscriptions.delete(userId);
103
+ if (this.assignsCache.size === 0) {
104
+ this.close();
105
+ }
106
+ }
107
+ catch (error) {
108
+ // no-op
104
109
  }
105
110
  return userData;
106
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.186",
3
+ "version": "0.1.187",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@stylistic/eslint-plugin-ts": "^2.9.0",
43
43
  "@types/jest": "^29.5.13",
44
- "@types/node": "^22.7.5",
44
+ "@types/node": "^22.7.7",
45
45
  "@types/ws": "^8.5.12",
46
46
  "@typescript-eslint/eslint-plugin": "^8.8.0",
47
47
  "@typescript-eslint/parser": "^8.8.1",