From 689b669872ab07d2a570c35aeb13b7b4ad1d114a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B5=D0=B3=D0=BE=D1=80=20=D0=B4=D0=B2=D0=B0=D1=87?= <63193736+neverlane@users.noreply.github.com> Date: Wed, 22 Oct 2025 18:04:12 +0300 Subject: [PATCH] fix: if str and schema empty returns empty object --- src/serialization/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serialization/index.ts b/src/serialization/index.ts index 21c1203..bb4bda8 100644 --- a/src/serialization/index.ts +++ b/src/serialization/index.ts @@ -49,6 +49,8 @@ export class CompactSerializer { let bitmask = 0; if (schema.optional.length > 0) { bitmask = Number.parseInt(parts[ptr++], 36); + } else { + return result; } for (let i = 0; i < schema.optional.length; i++) {