kuzzle 2.53.0 → 2.54.0-beta.1

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.
@@ -521,9 +521,7 @@ class SecurityController extends baseController_1.NativeController {
521
521
  */
522
522
  async mGetUsers(request) {
523
523
  let ids;
524
- if (request.input.body &&
525
- request.input.body.ids &&
526
- Object.keys(request.input.body.ids).length) {
524
+ if (request.input.body?.ids && Object.keys(request.input.body.ids).length) {
527
525
  ids = request.getBodyArray("ids");
528
526
  }
529
527
  else {
@@ -121,7 +121,7 @@ export declare class KuzzleRequest {
121
121
  input: {
122
122
  action: string;
123
123
  args: JSONObject;
124
- body: any[] | JSONObject;
124
+ body: JSONObject;
125
125
  controller: string;
126
126
  jwt: string;
127
127
  volatile: JSONObject;
@@ -155,7 +155,7 @@ export declare class RequestInput {
155
155
  * body <== that
156
156
  * }
157
157
  */
158
- get body(): JSONObject | Array<any> | null;
158
+ get body(): JSONObject | null;
159
159
  set body(obj: JSONObject | Array<any>);
160
160
  /**
161
161
  * Request headers (Http only).
@@ -431,7 +431,7 @@ class HotelClerk {
431
431
  this.logger.error(`Cannot remove room "${roomId}": room not found`);
432
432
  throw realtimeError.get("room_not_found", roomId);
433
433
  }
434
- for (const channel of Object.keys(room.channels)) {
434
+ for (const channel of room.channels.keys()) {
435
435
  global.kuzzle.entryPoint.leaveChannel(channel, connectionId);
436
436
  }
437
437
  room.removeConnection(connectionId);
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kuzzle",
3
3
  "author": "The Kuzzle Team <support@kuzzle.io>",
4
- "version": "2.53.0",
4
+ "version": "2.54.0-beta.1",
5
5
  "description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
6
6
  "scripts": {
7
7
  "build": "rm -Rf ./dist && tsc && node ./bin/copy-protobuf.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kuzzle",
3
3
  "author": "The Kuzzle Team <support@kuzzle.io>",
4
- "version": "2.53.0",
4
+ "version": "2.54.0-beta.1",
5
5
  "description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
6
6
  "scripts": {
7
7
  "build": "rm -Rf ./dist && tsc && node ./bin/copy-protobuf.js",