Use protopiler for protocol buffers

Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
Fedor Indutny
2026-03-10 15:31:29 -07:00
committed by GitHub
parent b0e19f334e
commit c4ee32e9ee
97 changed files with 6197 additions and 6362 deletions

View File

@@ -6,6 +6,8 @@ import { createLogger } from '../logging/log.std.js';
import { isIterable } from '../util/iterables.std.js';
import { toNumber } from '../util/toNumber.std.js';
const { isPlainObject } = lodash;
const log = createLogger('cleanDataForIpc');
@@ -133,13 +135,10 @@ function cleanDataInner(
const dataAsRecord = data as Record<string, unknown>;
if (
'toNumber' in dataAsRecord &&
typeof dataAsRecord.toNumber === 'function'
) {
if (typeof dataAsRecord === 'bigint') {
// We clean this just in case `toNumber` returns something bogus.
return cleanDataInner(
dataAsRecord.toNumber(),
toNumber(dataAsRecord),
path,
pathsChanged,
depth + 1