beve-org / beve

High performance, tagged binary data specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

does not parse correctly after compressing large string size

meftunca opened this issue · comments

[JavaScript] I get this error if the string size is 64 or more

Input:

const sampleData = {
    postId: "9776bfe3-6a5e-4b5c-b93d-4037447a0b4a",
    title: "Dedecor aspernatur defessus tamdiu amet amita facere tametsi.aa",
    content: "Commemoro vomica cupressus coepi virga demitto. Thesis ipsa dencio acceptus vociferor victus quasi ventito. Corporis tempora territo arcus.",
    createdAt: "Sun Jan 14 2024",
    updatedAt: "Thu Jun 27 2024",
    name: "John Doe",
    age: 30,
    isActive: true,
    isMarried: null,
    isStudent: false,
    courses: ["Math", "Science", "History"],
    grades: [95.3, 88, 92.7, "A+"],
    address: {
        street: "123 Main St",
        city: "Anytown",
        zip: "12345"
    }
};

Output:

{
  postId: "9776bfe3-6a5e-4b5c-b93d-4037447a0b4a",
  title: "Dedecor aspernatur defessus tamdiu amet amita facere tametsi.aa",
  content: "ommemoro vomica cupressus coepi virga demitto. Thesis ipsa deee$createdAt\u0002<Sun Jan 14 2024$updatedAt\u0002<Thu Jun 27 2024\u0010name\u0002 John Doe\fageI\u001e\u0000\u0000\u0000 isActive\u0018$isMarried\u0000$isStudent\b\u001ccourses\u0005\f\u0002\u0010Math\u0002\u001cScience\u0002\u001cHistory\u0018grades\u0005\u0010a33333�W@IX\u0000\u0000\u0000a�����,W@\u0002\bA+\u001caddress\u0003\f\u0018street\u0002,123 Main St\u0010city\u0002\u001cAnytown\fzip\u0002\u001412345",
  "": null,
}