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

fix: properly differentiate http and https proxies #92

Merged

Conversation

Torbjorn-Svensson
Copy link
Contributor

options.secureEndpoint is not always defined. There is however, a function to properly identify the type of connection in the base class, so intead of rolling the own check, relly on the base class implementation.

Fixes npm/cli#7024

Contributed by STMicroelectronics

References

@Torbjorn-Svensson Torbjorn-Svensson requested a review from a team as a code owner January 31, 2024 09:28
@Torbjorn-Svensson
Copy link
Contributor Author

I think this would also solve #87.

options.secureEndpoint is not always defined. There is however, a
function to properly identify the type of connection in the base
class, so intead of rolling the own check, relly on the base class
implementation.

Fixes npm#87 and npm/cli#7024

Contributed by STMicroelectronics

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
@Torbjorn-Svensson
Copy link
Contributor Author

@wraithgar: Can you review this again? I fixed the lint issue (not sure why I didn't see that before).

@wraithgar wraithgar changed the title Properly differintiate http and https proxies fix: Properly differintiate http and https proxies Jan 31, 2024
@wraithgar wraithgar changed the title fix: Properly differintiate http and https proxies fix: properly differentiate http and https proxies Jan 31, 2024
@Torbjorn-Svensson
Copy link
Contributor Author

@wraithgar: Do you need me to do something or can you take it from here?
I got a notification about this in my inbox: https://github.com/npm/agent/actions/runs/7728550907/job/21073259933

@lukekarrys
Copy link
Contributor

@Torbjorn-Svensson Thank you! This looks good and @wraithgar and I can take it from here. We'll get this merged once we get our CI sorted and then land it in the CLI in time for the next release.

@wraithgar wraithgar merged commit 88212cc into npm:main Feb 1, 2024
21 of 22 checks passed
@github-actions github-actions bot mentioned this pull request Feb 1, 2024
@Torbjorn-Svensson Torbjorn-Svensson deleted the pr/fix-http-https-proxy-selection branch February 1, 2024 16:00
wraithgar pushed a commit that referenced this pull request Feb 5, 2024
🤖 I have created a release *beep* *boop*
---


## [2.2.1](v2.2.0...v2.2.1)
(2024-02-01)

### Bug Fixes

*
[`88212cc`](88212cc)
[#92](#92) properly differentiate http
and https proxies (#92) (@Torbjorn-Svensson)

### Chores

*
[`9ffc694`](9ffc694)
[#90](#90) postinstall for dependabot
template-oss PR (@lukekarrys)
*
[`7243097`](7243097)
[#90](#90) bump @npmcli/template-oss
from 4.21.1 to 4.21.3 (@dependabot[bot])
*
[`ee9ea76`](ee9ea76)
[#88](#88) postinstall for dependabot
template-oss PR (@lukekarrys)
*
[`e169c95`](e169c95)
[#88](#88) bump @npmcli/template-oss
from 4.19.0 to 4.21.1 (@dependabot[bot])
*
[`cfdcf70`](cfdcf70)
[#73](#73) move proxy:null to correct
test (@lukekarrys)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] npm@10 refuses to install packages from GitHub package registry
3 participants