nftstorage / nftstorage.link

🪐 NFT.Storage Gateway, the IPFS gateway for NFT.Storage is not "another gateway", but a caching layer for NFTs that sits on top of existing IPFS public gateways. ***Notice: Uploads have been decommissioned.**** Learn more and find a new hot storage provider for uploading new assets: nft.storage/nft-storage-classic
https://nft.storage/nft-storage-classic
Other
46 stars 10 forks source link

feat: support base cid encodings #148

Closed vasco-santos closed 1 year ago

vasco-santos commented 2 years ago

This PR adds support for gateway to try to resolve CIDs encoded into more bases than b32 and b58. It includes all the basic bases exported by multiformats module.

ipfs-core-utils was added to have a quick way of getting what base decoder we want to try.

Closes https://github.com/nftstorage/nftstorage.link/issues/111

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: f89f851
Status: ✅  Deploy successful!
Preview URL: https://0673bfe5.nftstorage-link.pages.dev
Branch Preview URL: https://feat-support-base-cid-encodi.nftstorage-link.pages.dev

View logs

codecov-commenter commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@990e4f6). Click here to learn what that means. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #148   +/-   ##
=======================================
  Coverage        ?   98.98%           
=======================================
  Files           ?        4           
  Lines           ?      491           
  Branches        ?        0           
=======================================
  Hits            ?      486           
  Misses          ?        5           
  Partials        ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us.