From e650de4a7cd4cda083e7e2bf5f905667ddb6aaa6 Mon Sep 17 00:00:00 2001 From: Gabriel Nordeborn Date: Sat, 27 Apr 2024 22:10:33 +0200 Subject: [PATCH] fix --- packages/example/docker-compose.yml | 2 +- packages/wire/src/protocol.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/example/docker-compose.yml b/packages/example/docker-compose.yml index 841d8340..8c1f0497 100644 --- a/packages/example/docker-compose.yml +++ b/packages/example/docker-compose.yml @@ -48,7 +48,7 @@ services: <<: *build depends_on: - build - command: npx jest -c jest-cjs.config.ts index.test.ts + command: npx jest -c jest-cjs.config.ts rescript.test.js test-update-snapshots: <<: *build diff --git a/packages/wire/src/protocol.ts b/packages/wire/src/protocol.ts index 7c91992b..e33c59a7 100644 --- a/packages/wire/src/protocol.ts +++ b/packages/wire/src/protocol.ts @@ -117,7 +117,7 @@ export const parseMessage = ( // The + 5 is made up of 1 byte for readInt8 and 4 bytes for readUInt32BE if (bufferOffset + 5 > buf.length) { return { - type: "IncompleteMessageError", + type: 'IncompleteMessageError', messageName: message.name, }; }