Skip to content

Commit

Permalink
fix: fix server for latest pglite version
Browse files Browse the repository at this point in the history
  • Loading branch information
yacineb authored and kamilogorek committed Nov 23, 2024
1 parent ade4212 commit f7ad035
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"test": "bun run test/main.ts && bun run test/invalid-input.ts"
},
"devDependencies": {
"@electric-sql/pglite": "^0.1.2",
"@electric-sql/pglite": "0.2.13",
"@types/node": "^20.12.4",
"@types/pg": "^8.11.4",
"pg": "^8.11.5",
"@types/pg": "^8.11.10",
"pg": "^8.13.1",
"tsup": "^8.0.2",
"typescript": "^5.4.4"
}
Expand Down
2 changes: 1 addition & 1 deletion src/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function createMessageResponse(
default: {
try {
const result = await db.execProtocol(message.buffer);
return Buffer.concat(result.map(([_, buffer]) => buffer));
return Buffer.from(result.data);
} catch (e: unknown) {
const message =
e instanceof Error ? e.message : "Unknown error message";
Expand Down

0 comments on commit f7ad035

Please sign in to comment.