Skip to content

Commit

Permalink
Update rawprotoparse for types & cleaner signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Mar 8, 2024
1 parent 8e68378 commit cae42f6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
10 changes: 0 additions & 10 deletions custom-typings/rawprotoparse.d.ts

This file was deleted.

14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"posthog-js": "^1.57.2",
"qrcode.react": "^1.0.0",
"randexp": "^0.5.3",
"rawprotoparse": "^0.0.4",
"rawprotoparse": "^0.0.9",
"react": "^16.14.0",
"react-autosuggest": "^10.0.4",
"react-beautiful-dnd": "^13.1.1",
Expand Down
4 changes: 3 additions & 1 deletion src/services/ui-worker-formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ const WorkerFormatters = {
});
},
protobuf: (content: Buffer) => {
const data = parseRawProtobuf(content, '');
const data = parseRawProtobuf(content, {
prefix: ''
});

return JSON.stringify(data, (_key, value) => {
// Buffers have toJSON defined, so arrive here in JSONified form:
Expand Down

0 comments on commit cae42f6

Please sign in to comment.