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

feat(net): getNetworkAddress() #4677

Merged
merged 17 commits into from
May 30, 2024
Merged

feat(net): getNetworkAddress() #4677

merged 17 commits into from
May 30, 2024

Conversation

iuioiua
Copy link
Collaborator

@iuioiua iuioiua commented May 6, 2024

This seems like a useful tool to have.

Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.97%. Comparing base (fc8b738) to head (be69455).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4677      +/-   ##
==========================================
+ Coverage   91.95%   91.97%   +0.02%     
==========================================
  Files         487      488       +1     
  Lines       38894    38899       +5     
  Branches     5388     5392       +4     
==========================================
+ Hits        35766    35779      +13     
+ Misses       3072     3064       -8     
  Partials       56       56              

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

@iuioiua iuioiua marked this pull request as draft May 6, 2024 07:45
@iuioiua iuioiua marked this pull request as ready for review May 6, 2024 23:22
net/get_network_address.ts Outdated Show resolved Hide resolved
@iuioiua iuioiua requested a review from kt3k May 8, 2024 02:49
@iuioiua iuioiua enabled auto-merge (squash) May 8, 2024 06:56
net/get_network_address.ts Outdated Show resolved Hide resolved
net/get_network_address.ts Outdated Show resolved Hide resolved
@iuioiua
Copy link
Collaborator Author

iuioiua commented May 13, 2024

Sorry, my understanding of some of the IPv6 addressing was incorrect. Corrected now, and scope ID isn't needed.

@iuioiua iuioiua requested a review from kt3k May 13, 2024 06:15
@kt3k
Copy link
Member

kt3k commented May 17, 2024

and scope ID isn't needed.

Why is the check of scopeid unnecessary?

npm:network-address seems checking it? mafintosh/network-address#3

kt3k and others added 2 commits May 30, 2024 10:58
* fix(net): check scopeid === 0

* tweaks

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@iuioiua iuioiua merged commit 622012b into main May 30, 2024
12 checks passed
@iuioiua iuioiua deleted the get-network-address branch May 30, 2024 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants