@applitools/eg-socks5-proxy-server
Advanced tools
Comparing version 0.2.4 to 0.4.0
{ | ||
"name": "@applitools/eg-socks5-proxy-server", | ||
"version": "0.2.4", | ||
"version": "0.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -203,6 +203,6 @@ const { | ||
const proxyServer = self.options.proxyServer | ||
const proxyServer = self.options.proxyServers && self.options.proxyServers.getAvailableProxy() | ||
? { | ||
...self.options.proxyServer, | ||
shouldUseProxy: self.options.proxyServer.shouldUseProxy || _alwaysTrue, | ||
...self.options.proxyServers.getAvailableProxy(), | ||
shouldUseProxy: self.options.proxyServers.shouldUseProxy || _alwaysTrue, | ||
} | ||
@@ -216,5 +216,5 @@ : undefined | ||
? { | ||
address: proxyServer.address, | ||
port: proxyServer.port, | ||
} | ||
address: proxyServer.address, | ||
port: proxyServer.port, | ||
} | ||
: undefined | ||
@@ -405,7 +405,12 @@ | ||
setProxyServer = (proxyServer) => { | ||
this.options.proxyServer = proxyServer | ||
setProxyServer = ({address, port, shouldUseProxy}) => { | ||
const getAvailableProxy = () => ({address, port}) | ||
this.options.proxyServers = {shouldUseProxy, getAvailableProxy} | ||
} | ||
getProxyServer = () => this.options.proxyServer | ||
setProxyServers = (proxyServers) => { | ||
this.options.proxyServers = proxyServers | ||
} | ||
getProxyServers = () => this.options.proxyServers | ||
} | ||
@@ -412,0 +417,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26198
691