Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@applitools/eg-socks5-proxy-server

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/eg-socks5-proxy-server - npm Package Compare versions

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 @@