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

Require https-proxy-agent only when actually needed #534

Merged
merged 3 commits into from
Dec 1, 2019
Merged

Require https-proxy-agent only when actually needed #534

merged 3 commits into from
Dec 1, 2019

Conversation

xPaw
Copy link
Contributor

@xPaw xPaw commented Dec 1, 2019

https-proxy-agent patches core Node methods in https for whatever reason, and that breaks unrelated code. In our app we don't use proxy, and the mere fact that web-push requires the proxy package, it breaks other code.

See TooTallNate/node-agent-base#35 and sindresorhus/got#951

@marco-c
Copy link
Member

marco-c commented Dec 1, 2019

It'd be nice to have a test for the proxy option (currently we don't have any), to ensure it doesn't break.

@xPaw
Copy link
Contributor Author

xPaw commented Dec 1, 2019

I don't have the motivation to look into how to achieve that, sorry.

I'm not sure https-proxy-agent is a good package to begin with, when it override core node methods.

Copy link
Member

@marco-c marco-c left a comment

Choose a reason for hiding this comment

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

OK, I'll accept it as-is, since it's a small change anyway it shouldn't break the proxy option.

@xPaw
Copy link
Contributor Author

xPaw commented Dec 1, 2019

Thanks. Will you be able to push a new release out with this?

@marco-c
Copy link
Member

marco-c commented Dec 1, 2019

Thanks. Will you be able to push a new release out with this?

Yes, I'll do it shortly.

@marco-c
Copy link
Member

marco-c commented Dec 1, 2019

Ah, you'll need to add // eslint-disable-line global-require to avoid the eslint error.

@marco-c marco-c merged commit 730538c into web-push-libs:master Dec 1, 2019
@marco-c
Copy link
Member

marco-c commented Dec 1, 2019

I've released v3.4.2.

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.

None yet

2 participants