helia
helia copied to clipboard
@helia/* modules should throw readable errors if CIDs with mismatched codecs are passed
E.g. a CID suitable for use with @helia/json
has the .code
value 0x200
- if a CID without this codec is passed to @helia/json
.get it should error saying something like:
The passed CID had an incorrect codec, it may correspond to a non-JSON block