Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed May 11, 2022
1 parent f9984e6 commit ba59915
Show file tree
Hide file tree
Showing 8 changed files with 381 additions and 274 deletions.
22 changes: 0 additions & 22 deletions node_modules/socks-proxy-agent/dist/agent.d.ts

This file was deleted.

181 changes: 0 additions & 181 deletions node_modules/socks-proxy-agent/dist/agent.js

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/socks-proxy-agent/dist/agent.js.map

This file was deleted.

46 changes: 29 additions & 17 deletions node_modules/socks-proxy-agent/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
/// <reference types="node" />
import { Url } from 'url';
import { SocksProxy } from 'socks';
import tls from 'tls';
import { Agent, ClientRequest, RequestOptions } from 'agent-base';
import { AgentOptions } from 'agent-base';
import _SocksProxyAgent from './agent';
declare function createSocksProxyAgent(opts: string | createSocksProxyAgent.SocksProxyAgentOptions): _SocksProxyAgent;
declare namespace createSocksProxyAgent {
interface BaseSocksProxyAgentOptions {
host?: string | null;
port?: string | number | null;
username?: string | null;
tls?: tls.ConnectionOptions | null;
}
export interface SocksProxyAgentOptions extends AgentOptions, BaseSocksProxyAgentOptions, Partial<Omit<Url & SocksProxy, keyof BaseSocksProxyAgentOptions>> {
}
export type SocksProxyAgent = _SocksProxyAgent;
export const SocksProxyAgent: typeof _SocksProxyAgent;
export {};
import { Url } from 'url';
import net from 'net';
import tls from 'tls';
interface BaseSocksProxyAgentOptions {
host?: string | null;
port?: string | number | null;
username?: string | null;
tls?: tls.ConnectionOptions | null;
}
interface SocksProxyAgentOptionsExtra {
timeout?: number;
}
export interface SocksProxyAgentOptions extends AgentOptions, BaseSocksProxyAgentOptions, Partial<Omit<Url & SocksProxy, keyof BaseSocksProxyAgentOptions>> {
}
export declare class SocksProxyAgent extends Agent {
private readonly shouldLookup;
private readonly proxy;
private readonly tlsConnectionOptions;
timeout: number | null;
constructor(input: string | SocksProxyAgentOptions, options?: SocksProxyAgentOptionsExtra);
/**
* Initiates a SOCKS connection to the specified SOCKS proxy server,
* which in turn connects to the specified remote host and port.
*
* @api protected
*/
callback(req: ClientRequest, opts: RequestOptions): Promise<net.Socket>;
}
export = createSocksProxyAgent;
export {};
Loading

0 comments on commit ba59915

Please sign in to comment.