-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support base cid encodings #148
Conversation
Deploying with Cloudflare Pages
|
6fdd386
to
811fc79
Compare
* | ||
* @param {string} cid | ||
*/ | ||
async function normalizeCidV1(cid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created new one as per CID spec when cidv0 we don't have a multibasePrefix. normalizeCidV1 always comes from this path as function is not exported and is used on subdomain
29838d4
to
70c3f8e
Compare
70c3f8e
to
f89f851
Compare
Codecov Report
@@ 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. |
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 #111