Uncaught TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at JsonStringify (/Users/.../balloon-client-desktop/node_modules/fast-safe-stringify/index.js:18)
at stringify (/Users/.../balloon-client-desktop/node_modules/fast-safe-stringify/index.js:27)
Describe the bug
When logging an object with a BigInt
Uncaught TypeError: Do not know how to serialize a BigInt
is thrown.To Reproduce
There are two known cases in sync module where BigInt's are logged:
https://github.com/gyselroth/balloon-node-sync/blob/97bd70918eeaa901d74f743dfb878fbb619068f8/lib/delta/delta.js#L423 https://github.com/gyselroth/balloon-node-sync/blob/97bd70918eeaa901d74f743dfb878fbb619068f8/lib/delta/delta.js#L445
There are
Expected behavior
Logger should serialize BigInt's to a string.
Environment
Additional context
See: davidmarkclements/fast-safe-stringify/issues/41