chore(deps): bump socks-proxy-agent from 6.1.1 to 6.2.0 (#9572)

* chore(deps): bump socks-proxy-agent from 6.1.1 to 6.2.0

Bumps [socks-proxy-agent](https://github.com/TooTallNate/node-socks-proxy-agent) from 6.1.1 to 6.2.0.
- [Release notes](https://github.com/TooTallNate/node-socks-proxy-agent/releases)
- [Changelog](https://github.com/TooTallNate/node-socks-proxy-agent/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/node-socks-proxy-agent/compare/v6.1.1...v6.2.0)

---
updated-dependencies:
- dependency-name: socks-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: use dot notation

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2022-04-21 03:54:53 +08:00
committed by GitHub
parent 0522c63d5f
commit dd4a216648
3 changed files with 11 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ if (config.proxyUri && typeof config.proxyUri === 'string') {
HttpsProxyAgent = HttpsProxyAgent || require('https-proxy-agent');
proxy = new HttpsProxyAgent(config.proxyUri);
} else if (config.proxyUri.startsWith('socks')) {
SocksProxyAgent = SocksProxyAgent || require('socks-proxy-agent');
SocksProxyAgent = SocksProxyAgent || require('socks-proxy-agent').SocksProxyAgent;
proxy = new SocksProxyAgent(config.proxyUri);
} else {
throw 'Unknown proxy-uri format';
@@ -30,7 +30,7 @@ if (config.proxyUri && typeof config.proxyUri === 'string') {
switch (config.proxy.protocol) {
case 'socks':
SocksProxyAgent = SocksProxyAgent || require('socks-proxy-agent');
SocksProxyAgent = SocksProxyAgent || require('socks-proxy-agent').SocksProxyAgent;
agent.http = new SocksProxyAgent(proxyUrl);
agent.https = new SocksProxyAgent(proxyUrl);
break;