@mulingai-npm/redis 3.16.1 → 3.17.0

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.
@@ -3,6 +3,7 @@ export type MulingstreamSpeakerData = {
3
3
  speakerId: string;
4
4
  userId: string;
5
5
  roomId: string;
6
+ roomUuid?: string;
6
7
  socketId: string;
7
8
  sourceLanguage: string;
8
9
  theme: string;
@@ -25,6 +25,7 @@ class MulingstreamSpeakerManager {
25
25
  speakerId: hash.speakerId,
26
26
  userId: hash.userId,
27
27
  roomId: hash.roomId,
28
+ roomUuid: hash.roomUuid || undefined,
28
29
  socketId: hash.socketId,
29
30
  sourceLanguage: hash.sourceLanguage,
30
31
  theme: hash.theme,
@@ -35,7 +36,7 @@ class MulingstreamSpeakerManager {
35
36
  };
36
37
  }
37
38
  serialize(data) {
38
- return {
39
+ const result = {
39
40
  speakerId: data.speakerId,
40
41
  userId: data.userId,
41
42
  roomId: data.roomId,
@@ -47,6 +48,10 @@ class MulingstreamSpeakerManager {
47
48
  targetLanguages: JSON.stringify(data.targetLanguages),
48
49
  timestamp: data.timestamp
49
50
  };
51
+ if (data.roomUuid) {
52
+ result.roomUuid = data.roomUuid;
53
+ }
54
+ return result;
50
55
  }
51
56
  buildId(roomId, userId, socketId) {
52
57
  return `[${roomId}]-[${userId}]-[${socketId}]`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulingai-npm/redis",
3
- "version": "3.16.1",
3
+ "version": "3.17.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {