build: updated to 179 layer #56

Merged
teidesu merged 13 commits from layer179 into master 2024-05-06 12:28:14 +03:00
Showing only changes of commit c021f64ed0 - Show all commits

View file

@ -1,6 +1,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument */
import Long from 'long'
import { getPlatform } from '../../platform.js'
const customInspectSymbol = Symbol.for('nodejs.util.inspect.custom')
@ -57,6 +59,8 @@ export function makeInspectable<T>(
if (val && typeof val === 'object') {
if (val instanceof Uint8Array) {
val = getPlatform().base64Encode(val)
} else if (Long.isLong(val)) {
val = val.toString()
} else if (typeof val.toJSON === 'function') {
val = val.toJSON(true)
}