mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-22 21:57:57 +00:00
31467f90d4
- @pezkuwi/papi-utils (rebrand of @polkadot-api/utils) - @pezkuwi/bizinikiwi-bindings (rebrand of @polkadot-api/substrate-bindings) - @pezkuwi/metadata-builders (rebrand of @polkadot-api/metadata-builders) - @pezkuwi/merkleize-metadata (rebrand of @polkadot-api/merkleize-metadata) All @polkadot-api references replaced with @pezkuwi equivalents.
9 lines
259 B
JavaScript
9 lines
259 B
JavaScript
const jsonPrint = (value, indent = 2) => JSON.stringify(
|
|
value,
|
|
(_, v) => typeof v === "bigint" ? `${v}n` : typeof v === "object" && typeof v?.asHex === "function" ? v.asHex() : v,
|
|
indent
|
|
);
|
|
|
|
export { jsonPrint };
|
|
//# sourceMappingURL=jsonPrint.mjs.map
|