playsocketjs 1.2.1 → 1.2.2

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.
@@ -2506,7 +2506,7 @@ function requireServer () {
2506
2506
  limit.lastReset = now;
2507
2507
  }
2508
2508
 
2509
- const pointCost = ['create_room', 'join_room'].includes(operationType) ? 5 : 1;
2509
+ const pointCost = operationType == "create_room" ? 5 : 1;
2510
2510
  if (limit.points < pointCost) return false;
2511
2511
 
2512
2512
  limit.points -= pointCost;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playsocketjs",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "WebSocket wrapper for creating simple multiplayer systems with ease.",
5
5
  "module": "dist/playsocket-client.js",
6
6
  "exports": {