ipfs / helia-verified-fetch

A fetch-like API for obtaining verified & trustless IPFS CIDs on the web
https://npmjs.com/package/@helia/verified-fetch
Other
19 stars 5 forks source link

bug: badRequestResponse is being called incorrectly #27

Closed SgtPooki closed 7 months ago

SgtPooki commented 8 months ago

some methods are calling it with badRequestResponse('Invalid IPNS name') which is obfuscating errors because the function signature is actually (url: string, body?: SupportedBodyTypes, init?: ResponseInit)

The function signature was updated to (url: string, body?: SupportedBodyTypes | Error, init?: ResponseInit) in #26