The @blockchaincommons/dcbor/debug subpath entry - opt-in diagnostic-flavored
console output for Cbor values.
The core keeps String(c) cheap (Cbor(0x…)); importing this module and
calling installDebugHooks switches Node's util.inspect (and
JSON.stringify via toJSON) to flat diagnostic notation on the shared
prototype. Deliberately a side-effectful opt-in: pulling the diagnostic
formatter into a bundle is exactly what the root entry avoids.
The
@blockchaincommons/dcbor/debugsubpath entry - opt-in diagnostic-flavored console output forCborvalues.The core keeps
String(c)cheap (Cbor(0x…)); importing this module and calling installDebugHooks switches Node'sutil.inspect(andJSON.stringifyviatoJSON) to flat diagnostic notation on the shared prototype. Deliberately a side-effectful opt-in: pulling the diagnostic formatter into a bundle is exactly what the root entry avoids.