mezon-js-protobuf 1.7.22 → 1.7.23

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.7.22",
3
+ "version": "1.7.23",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v5.28.3
3
+ // protoc-gen-ts_proto v1.181.1
4
+ // protoc v5.27.2
5
5
  // source: rtapi/realtime.proto
6
6
 
7
7
  /* eslint-disable */
8
- import Long from "long";
9
8
  import _m0 from "protobufjs/minimal";
10
9
  import {
11
10
  ChannelDescription as ChannelDescription1,
@@ -1242,7 +1241,7 @@ export interface UserProfileRedis {
1242
1241
  /** is disabled */
1243
1242
  is_disabled: boolean;
1244
1243
  /** clans */
1245
- joined_clans: number[];
1244
+ joined_clans: string[];
1246
1245
  }
1247
1246
 
1248
1247
  export interface FCMTokens {
@@ -10210,11 +10209,9 @@ export const UserProfileRedis = {
10210
10209
  if (message.is_disabled !== false) {
10211
10210
  writer.uint32(88).bool(message.is_disabled);
10212
10211
  }
10213
- writer.uint32(98).fork();
10214
10212
  for (const v of message.joined_clans) {
10215
- writer.int64(v);
10213
+ writer.uint32(98).string(v!);
10216
10214
  }
10217
- writer.ldelim();
10218
10215
  return writer;
10219
10216
  },
10220
10217
 
@@ -10303,22 +10300,12 @@ export const UserProfileRedis = {
10303
10300
  message.is_disabled = reader.bool();
10304
10301
  continue;
10305
10302
  case 12:
10306
- if (tag === 96) {
10307
- message.joined_clans.push(longToNumber(reader.int64() as Long));
10308
-
10309
- continue;
10310
- }
10311
-
10312
- if (tag === 98) {
10313
- const end2 = reader.uint32() + reader.pos;
10314
- while (reader.pos < end2) {
10315
- message.joined_clans.push(longToNumber(reader.int64() as Long));
10316
- }
10317
-
10318
- continue;
10303
+ if (tag !== 98) {
10304
+ break;
10319
10305
  }
10320
10306
 
10321
- break;
10307
+ message.joined_clans.push(reader.string());
10308
+ continue;
10322
10309
  }
10323
10310
  if ((tag & 7) === 4 || tag === 0) {
10324
10311
  break;
@@ -10344,7 +10331,7 @@ export const UserProfileRedis = {
10344
10331
  metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
10345
10332
  is_disabled: isSet(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
10346
10333
  joined_clans: globalThis.Array.isArray(object?.joined_clans)
10347
- ? object.joined_clans.map((e: any) => globalThis.Number(e))
10334
+ ? object.joined_clans.map((e: any) => globalThis.String(e))
10348
10335
  : [],
10349
10336
  };
10350
10337
  },
@@ -10385,7 +10372,7 @@ export const UserProfileRedis = {
10385
10372
  obj.is_disabled = message.is_disabled;
10386
10373
  }
10387
10374
  if (message.joined_clans?.length) {
10388
- obj.joined_clans = message.joined_clans.map((e) => Math.round(e));
10375
+ obj.joined_clans = message.joined_clans;
10389
10376
  }
10390
10377
  return obj;
10391
10378
  },
@@ -12167,21 +12154,6 @@ function fromJsonTimestamp(o: any): Date {
12167
12154
  }
12168
12155
  }
12169
12156
 
12170
- function longToNumber(long: Long): number {
12171
- if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
12172
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
12173
- }
12174
- if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
12175
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
12176
- }
12177
- return long.toNumber();
12178
- }
12179
-
12180
- if (_m0.util.Long !== Long) {
12181
- _m0.util.Long = Long as any;
12182
- _m0.configure();
12183
- }
12184
-
12185
12157
  function isObject(value: any): boolean {
12186
12158
  return typeof value === "object" && value !== null;
12187
12159
  }