Updated the project.
This commit is contained in:
parent
5dfe9f128d
commit
7919556077
1550 changed files with 17063 additions and 40183 deletions
0
my-app/node_modules/socks/typings/client/socksclient.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/typings/client/socksclient.d.ts
generated
vendored
Executable file → Normal file
11
my-app/node_modules/socks/typings/common/constants.d.ts
generated
vendored
Executable file → Normal file
11
my-app/node_modules/socks/typings/common/constants.d.ts
generated
vendored
Executable file → Normal file
|
@ -3,9 +3,8 @@
|
|||
/// <reference types="node" />
|
||||
import { Duplex } from 'stream';
|
||||
import { Socket, SocketConnectOpts } from 'net';
|
||||
import { RequireOnlyOne } from './util';
|
||||
declare const DEFAULT_TIMEOUT = 30000;
|
||||
declare type SocksProxyType = 4 | 5;
|
||||
type SocksProxyType = 4 | 5;
|
||||
declare const ERRORS: {
|
||||
InvalidSocksCommand: string;
|
||||
InvalidSocksCommandForOperation: string;
|
||||
|
@ -44,7 +43,7 @@ declare const SOCKS_INCOMING_PACKET_SIZES: {
|
|||
Socks5ResponseHostname: (hostNameLength: number) => number;
|
||||
Socks4Response: number;
|
||||
};
|
||||
declare type SocksCommandOption = 'connect' | 'bind' | 'associate';
|
||||
type SocksCommandOption = 'connect' | 'bind' | 'associate';
|
||||
declare enum SocksCommand {
|
||||
connect = 1,
|
||||
bind = 2,
|
||||
|
@ -98,7 +97,7 @@ declare enum SocksClientState {
|
|||
/**
|
||||
* Represents a SocksProxy
|
||||
*/
|
||||
declare type SocksProxy = RequireOnlyOne<{
|
||||
interface SocksProxy {
|
||||
ipaddress?: string;
|
||||
host?: string;
|
||||
port: number;
|
||||
|
@ -109,7 +108,7 @@ declare type SocksProxy = RequireOnlyOne<{
|
|||
custom_auth_request_handler?: () => Promise<Buffer>;
|
||||
custom_auth_response_size?: number;
|
||||
custom_auth_response_handler?: (data: Buffer) => Promise<boolean>;
|
||||
}, 'host' | 'ipaddress'>;
|
||||
}
|
||||
/**
|
||||
* Represents a remote host
|
||||
*/
|
||||
|
@ -143,7 +142,7 @@ interface SocksClientEstablishedEvent {
|
|||
socket: Socket;
|
||||
remoteHost?: SocksRemoteHost;
|
||||
}
|
||||
declare type SocksClientBoundEvent = SocksClientEstablishedEvent;
|
||||
type SocksClientBoundEvent = SocksClientEstablishedEvent;
|
||||
interface SocksUDPFrameDetails {
|
||||
frameNumber?: number;
|
||||
remoteHost: SocksRemoteHost;
|
||||
|
|
4
my-app/node_modules/socks/typings/common/helpers.d.ts
generated
vendored
Executable file → Normal file
4
my-app/node_modules/socks/typings/common/helpers.d.ts
generated
vendored
Executable file → Normal file
|
@ -1,3 +1,4 @@
|
|||
/// <reference types="node" />
|
||||
import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient';
|
||||
/**
|
||||
* Validates the provided SocksClientOptions
|
||||
|
@ -11,3 +12,6 @@ declare function validateSocksClientOptions(options: SocksClientOptions, accepte
|
|||
*/
|
||||
declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void;
|
||||
export { validateSocksClientOptions, validateSocksClientChainOptions };
|
||||
export declare function ipv4ToInt32(ip: string): number;
|
||||
export declare function int32ToIpv4(int32: number): string;
|
||||
export declare function ipToBuffer(ip: string): Buffer;
|
||||
|
|
0
my-app/node_modules/socks/typings/common/receivebuffer.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/typings/common/receivebuffer.d.ts
generated
vendored
Executable file → Normal file
5
my-app/node_modules/socks/typings/common/util.d.ts
generated
vendored
Executable file → Normal file
5
my-app/node_modules/socks/typings/common/util.d.ts
generated
vendored
Executable file → Normal file
|
@ -11,7 +11,4 @@ declare class SocksClientError extends Error {
|
|||
* @param array The array to shuffle.
|
||||
*/
|
||||
declare function shuffleArray(array: unknown[]): void;
|
||||
declare type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
||||
[K in Keys]?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
||||
}[Keys];
|
||||
export { RequireOnlyOne, SocksClientError, shuffleArray };
|
||||
export { SocksClientError, shuffleArray };
|
||||
|
|
0
my-app/node_modules/socks/typings/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/typings/index.d.ts
generated
vendored
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue