ygopro-msg-encode 1.1.7 → 1.1.8

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.
@@ -1,6 +1,7 @@
1
1
  import { YGOProCtosBase } from '../base';
2
2
  export declare class YGOProCtosChat extends YGOProCtosBase {
3
3
  static identifier: number;
4
+ static readonly MAX_LENGTH = 256;
4
5
  msg: string;
5
6
  constructor();
6
7
  fromPayload(data: Uint8Array): this;
@@ -1,6 +1,7 @@
1
1
  import { YGOProCtosBase } from '../base';
2
2
  export declare class YGOProCtosExternalAddress extends YGOProCtosBase {
3
3
  static identifier: number;
4
+ static readonly MAX_HOSTNAME_LENGTH = 256;
4
5
  real_ip: string;
5
6
  hostname: string;
6
7
  constructor();
@@ -1,6 +1,7 @@
1
1
  import { YGOProStocBase } from '../base';
2
2
  export declare class YGOProStocChat extends YGOProStocBase {
3
3
  static identifier: number;
4
+ static readonly MAX_LENGTH = 256;
4
5
  player_type: number;
5
6
  msg: string;
6
7
  constructor();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ygopro-msg-encode",
3
3
  "description": "TS lib for encode / decode YGOPro proto",
4
- "version": "1.1.7",
4
+ "version": "1.1.8",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",