Skip to content
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 fixes for getIssuer and getSerial (#15) #138

Merged
merged 11 commits into from
Oct 6, 2023
Merged

Add fixes for getIssuer and getSerial (#15) #138

merged 11 commits into from
Oct 6, 2023

Conversation

RyanHopkins7
Copy link
Contributor

Hi there, I know this is a pretty old issue so I figured I'd take it up. This is my first contribution to an open source library. :-)

I've added fixes for the getIssuer and getSerial functions in certUtils as requested in #15. It'll no longer be necessary to index directly into typesAndValues. Please let me know if there's anything else that I'm missing!

* Add search for commonName in getIssuer
* Properly return serial number from _cert in getSerial
@codecov-commenter
Copy link

codecov-commenter commented Sep 14, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (e4fd8a0) 92.97% compared to head (c81e381) 92.85%.

❗ Current head c81e381 differs from pull request most recent head e033fa4. Consider uploading reports for the commit e033fa4 to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
- Coverage   92.97%   92.85%   -0.12%     
==========================================
  Files          16       16              
  Lines        6007     6019      +12     
==========================================
+ Hits         5585     5589       +4     
- Misses        422      430       +8     
Files Coverage Δ
lib/certUtils.js 89.56% <80.00%> (-1.20%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JamesCullum
Copy link
Member

Welcome and thanks for your contribution! I will review the code and share some questions or improvements with you. Would be great if you could explain your reasoning behind it and maybe improve parts to help us understand.

Copy link
Member

@JamesCullum JamesCullum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the good changes. If you could improve the naming and think about a migration path, that'd be great 👍

lib/certUtils.js Outdated Show resolved Hide resolved
lib/certUtils.js Outdated Show resolved Hide resolved
test/certUtils.test.js Show resolved Hide resolved
@JamesCullum JamesCullum self-assigned this Sep 15, 2023
@JamesCullum JamesCullum added enhancement waiting Waiting on author labels Sep 15, 2023
lib/certUtils.js Outdated Show resolved Hide resolved
lib/certUtils.js Outdated Show resolved Hide resolved
lib/certUtils.js Outdated Show resolved Hide resolved
lib/certUtils.js Outdated Show resolved Hide resolved
lib/certUtils.js Outdated Show resolved Hide resolved
Copy link
Member

@JamesCullum JamesCullum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All great now, thanks a lot for your time and input!

@JamesCullum JamesCullum merged commit b058745 into webauthn-open-source:master Oct 6, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement waiting Waiting on author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants