From c379bb8895a723590488516c2c08e1cd19145f45 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 8 Dec 2024 07:04:38 +0000 Subject: [PATCH 1/2] update --- ProtoDef | 2 +- example_protocol.json | 9 ++++++++- package.json | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ProtoDef b/ProtoDef index 4e2d2d1..8e07785 160000 --- a/ProtoDef +++ b/ProtoDef @@ -1 +1 @@ -Subproject commit 4e2d2d1c16827ba61da5ff8abbb42cc1d353210a +Subproject commit 8e07785e94626882fa3333184bb366e3f6625356 diff --git a/example_protocol.json b/example_protocol.json index 78fbdfe..042ef38 100644 --- a/example_protocol.json +++ b/example_protocol.json @@ -23,6 +23,13 @@ { "countType": "varint" } + ], + "string2": [ + "pstring", + { + "encoding": "utf-16", + "countType": "i16" + } ] }, "status": { @@ -140,7 +147,7 @@ }, { "name": "username", - "type": "string" + "type": "string2" } ] ], diff --git a/package.json b/package.json index 1233a0f..4fcb126 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Validate ProtoDef protocol definition in node", "main": "index.js", "scripts": { + "prepare": "git submodule update --init", "test": "node example.js" }, "repository": { From 400ace5dd90e774ede7f2565284a8fe8c0604f4d Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 8 Dec 2024 06:44:02 -0500 Subject: [PATCH 2/2] Update package.json --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 4fcb126..1233a0f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "description": "Validate ProtoDef protocol definition in node", "main": "index.js", "scripts": { - "prepare": "git submodule update --init", "test": "node example.js" }, "repository": {