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

@applitools/eg-socks5-proxy-server

Package Overview
Dependencies
Maintainers
34
Versions
46
Alerts
File Explorer

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.4.1 to 0.4.2

3

lib/index.d.ts

@@ -16,6 +16,7 @@ /// <reference types="node" />

private destinationSockets;
private syncDestinationSocketInterval;
constructor(options: Socks5ProxyOptions);
on: (event: string, listener: (...args: any[]) => void) => net.Server;
listen: (...args: any[]) => net.Server;
close: (...args: any[]) => net.Server;
close: (...args: any[]) => void;
getConnections: (cb: (error: Error | null, count: number) => void) => void;

@@ -22,0 +23,0 @@ setProxyServer: ({ address, port, shouldUseProxy }: SetProxyServerOptions) => void;

@@ -54,3 +54,6 @@ "use strict";

this.listen = (...args) => this.server.listen(...args);
this.close = (...args) => this.server.close(...args);
this.close = (...args) => {
this.syncDestinationSocketInterval && clearInterval(this.syncDestinationSocketInterval);
this.server.close(...args);
};
this.getConnections = (cb) => this.server.getConnections(cb);

@@ -67,3 +70,3 @@ this.setProxyServer = ({ address, port, shouldUseProxy }) => {

this.options = options || {};
setInterval(() => {
this.syncDestinationSocketInterval = setInterval(() => {
this.destinationSockets = this.destinationSockets.filter((dest) => !dest.destroyed);

@@ -70,0 +73,0 @@ }, 5000);

{
"name": "@applitools/eg-socks5-proxy-server",
"version": "0.4.1",
"version": "0.4.2",
"description": "",

@@ -10,3 +10,5 @@ "main": "lib/index.js",

"files": [
"src", "types", "lib"
"src",
"types",
"lib"
],

@@ -13,0 +15,0 @@ "types": "lib/index.d.ts",

@@ -47,2 +47,3 @@ import {

private destinationSockets: Socket[] = []
private syncDestinationSocketInterval

@@ -53,3 +54,3 @@ constructor(options: Socks5ProxyOptions) {

setInterval(() => {
this.syncDestinationSocketInterval = setInterval(() => {
this.destinationSockets = this.destinationSockets.filter((dest: Socket) => !dest.destroyed)

@@ -374,3 +375,6 @@ }, 5000)

public listen = (...args: any[]) => this.server.listen(...args)
public close = (...args: any[]) => this.server.close(...args)
public close = (...args: any[]) => {
this.syncDestinationSocketInterval && clearInterval(this.syncDestinationSocketInterval)
this.server.close(...args)
}
public getConnections = (cb: (error: Error | null, count: number) => void) =>

@@ -377,0 +381,0 @@ this.server.getConnections(cb)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc