-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add missing certification extension type LocalIntegerValueBlock #156
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #156 +/- ##
=======================================
Coverage 92.86% 92.86%
=======================================
Files 16 16
Lines 6023 6027 +4
=======================================
+ Hits 5593 5597 +4
Misses 430 430 ☔ View full report in Codecov by Sentry. |
Thanks a lot for the PR, highly appreciated! Can you clarify why you moved the validation into the try-catch? When would one encounter the LocalIntegerValueBlock? Please revert the changes in the dist/ folder - this one is not really meant to be manually edited. |
The unit test contains a cert with this exact example. This error is directly from one of our users, so it's a real cert. It looks like it is some sort of you ikey, I don't have any more information than that. The validation isn't in the try catch, just resolving non critical extensions. If an extension isn't critical and we can't decode the data then there is no reason to throw an Error. What we really want to do here is always prevent Errors on new data types, since we never want a production error based on a non-critical extension. So of course the parsing of the extension data belongs inside the try catch as well. Re: the dist directory. Why is this even committed in the repository, can we just git ignore the whole directory then? |
Agreed, thanks for the clarification!
We need this to provide an authentic file to the CDN, especially for Deno |
dist/main.cjs
Outdated
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.
This file is for deno, doesn't Deno just use npm
like everything else?
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.
Deno can do that, but one of the big advantages is that it can simply reference internet-hosted files directly, if they are bundled. To allow that workflow, we bundle it in Git and Deno-users can directly use it without having to bundle it. You can find the example in the README
No description provided.