@tsed/socketio 8.18.2 → 8.19.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.
@@ -7,15 +7,15 @@
7
7
  */
8
8
  export class SocketSessionData extends Map {
9
9
  #data;
10
- get size() {
11
- return Object.keys(this.#data).length;
10
+ constructor(data) {
11
+ super();
12
+ this.#data = data;
12
13
  }
13
14
  static get [Symbol.species]() {
14
15
  return Map;
15
16
  }
16
- constructor(data) {
17
- super();
18
- this.#data = data;
17
+ get size() {
18
+ return Object.keys(this.#data).length;
19
19
  }
20
20
  *[Symbol.iterator]() {
21
21
  for (const key in this.#data) {
@@ -1,5 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  import Http from "node:http";
4
2
  import Https from "node:https";
5
3
  import { InjectorService, OnDestroy, Provider } from "@tsed/di";
@@ -7,17 +7,17 @@
7
7
  */
8
8
  export declare class SocketSessionData extends Map<string, unknown> {
9
9
  #private;
10
- get size(): number;
11
- static get [Symbol.species](): MapConstructor;
12
10
  constructor(data: Record<string, unknown>);
13
- [Symbol.iterator](): IterableIterator<[string, unknown]>;
11
+ static get [Symbol.species](): MapConstructor;
12
+ get size(): number;
13
+ [Symbol.iterator](): MapIterator<[string, unknown]>;
14
14
  clear(): void;
15
15
  delete(key: string): boolean;
16
- entries(): IterableIterator<[string, unknown]>;
16
+ entries(): MapIterator<[string, unknown]>;
17
17
  forEach(callbackfn: (value: unknown, key: string, map: Map<string, unknown>) => void, thisArg?: any): void;
18
18
  get(key: string): unknown | undefined;
19
19
  has(key: string): boolean;
20
- keys(): IterableIterator<string>;
20
+ keys(): MapIterator<string>;
21
21
  set(key: string, value: unknown): this;
22
- values(): IterableIterator<unknown>;
22
+ values(): MapIterator<unknown>;
23
23
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/socketio",
3
3
  "description": "Socket.io package for Ts.ED framework",
4
4
  "type": "module",
5
- "version": "8.18.2",
5
+ "version": "8.19.1",
6
6
  "keywords": [
7
7
  "tsed",
8
8
  "socket.io",
@@ -34,21 +34,21 @@
34
34
  "tslib": "2.7.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tsed/barrels": "8.18.2",
38
- "@tsed/core": "8.18.2",
39
- "@tsed/di": "8.18.2",
40
- "@tsed/json-mapper": "8.18.2",
41
- "@tsed/openspec": "8.18.2",
42
- "@tsed/platform-http": "8.18.2",
43
- "@tsed/platform-middlewares": "8.18.2",
44
- "@tsed/schema": "8.18.2",
45
- "@tsed/socketio-testing": "8.18.2",
46
- "@tsed/typescript": "8.18.2",
37
+ "@tsed/barrels": "8.19.1",
38
+ "@tsed/core": "8.19.1",
39
+ "@tsed/di": "8.19.1",
40
+ "@tsed/json-mapper": "8.19.1",
41
+ "@tsed/openspec": "8.19.1",
42
+ "@tsed/platform-http": "8.19.1",
43
+ "@tsed/platform-middlewares": "8.19.1",
44
+ "@tsed/schema": "8.19.1",
45
+ "@tsed/socketio-testing": "8.19.1",
46
+ "@tsed/typescript": "8.19.1",
47
47
  "eslint": "9.12.0",
48
48
  "express": "^4.21.0",
49
49
  "socket.io": "4.8.0",
50
50
  "socket.io-client": "^4.8.0",
51
- "typescript": "5.4.5",
51
+ "typescript": "5.9.3",
52
52
  "vitest": "3.2.4"
53
53
  },
54
54
  "peerDependencies": {