summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/socks/typings/common
diff options
context:
space:
mode:
authorclaudiahdz <cghr1990@gmail.com>2019-11-18 21:01:39 +0200
committerMyles Borins <mylesborins@google.com>2019-11-20 19:16:47 -0500
commita7c7c703aff362f06ef5d49451a0f79fd289910f (patch)
tree48f9d01b32d55d420f229c4889a5a61178419223 /deps/npm/node_modules/socks/typings/common
parenta30a9f8193ddd61dfadc2d5d79784b682027b319 (diff)
downloadandroid-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.tar.gz
android-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.tar.bz2
android-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.zip
deps: upgrade npm to 6.13.1
PR-URL: https://github.com/nodejs/node/pull/30533 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/socks/typings/common')
-rw-r--r--deps/npm/node_modules/socks/typings/common/constants.d.ts15
-rw-r--r--deps/npm/node_modules/socks/typings/common/receiveBuffer.d.ts2
2 files changed, 9 insertions, 8 deletions
diff --git a/deps/npm/node_modules/socks/typings/common/constants.d.ts b/deps/npm/node_modules/socks/typings/common/constants.d.ts
index c8870be623..546fe3cfd9 100644
--- a/deps/npm/node_modules/socks/typings/common/constants.d.ts
+++ b/deps/npm/node_modules/socks/typings/common/constants.d.ts
@@ -1,6 +1,6 @@
/// <reference types="node" />
import { Duplex } from 'stream';
-import { Socket } from 'net';
+import { Socket, SocketConnectOpts } from 'net';
import { RequireOnlyOne } from './util';
declare const DEFAULT_TIMEOUT = 30000;
declare type SocksProxyType = 4 | 5;
@@ -44,18 +44,18 @@ declare type SocksCommandOption = 'connect' | 'bind' | 'associate';
declare enum SocksCommand {
connect = 1,
bind = 2,
- associate = 3,
+ associate = 3
}
declare enum Socks4Response {
Granted = 90,
Failed = 91,
Rejected = 92,
- RejectedIdent = 93,
+ RejectedIdent = 93
}
declare enum Socks5Auth {
NoAuth = 0,
GSSApi = 1,
- UserPass = 2,
+ UserPass = 2
}
declare enum Socks5Response {
Granted = 0,
@@ -66,12 +66,12 @@ declare enum Socks5Response {
ConnectionRefused = 5,
TTLExpired = 6,
CommandNotSupported = 7,
- AddressNotSupported = 8,
+ AddressNotSupported = 8
}
declare enum Socks5HostType {
IPv4 = 1,
Hostname = 3,
- IPv6 = 4,
+ IPv6 = 4
}
declare enum SocksClientState {
Created = 0,
@@ -86,7 +86,7 @@ declare enum SocksClientState {
BoundWaitingForConnection = 9,
Established = 10,
Disconnected = 11,
- Error = 99,
+ Error = 99
}
/**
* Represents a SocksProxy
@@ -116,6 +116,7 @@ interface SocksClientOptions {
timeout?: number;
existing_socket?: Duplex;
set_tcp_nodelay?: boolean;
+ socket_options?: SocketConnectOpts;
}
/**
* SocksClient chain connection options.
diff --git a/deps/npm/node_modules/socks/typings/common/receiveBuffer.d.ts b/deps/npm/node_modules/socks/typings/common/receiveBuffer.d.ts
index fe506a0357..7af56db121 100644
--- a/deps/npm/node_modules/socks/typings/common/receiveBuffer.d.ts
+++ b/deps/npm/node_modules/socks/typings/common/receiveBuffer.d.ts
@@ -4,7 +4,7 @@ declare class ReceiveBuffer {
private _offset;
private _originalSize;
constructor(size?: number);
- readonly length: number;
+ get length(): number;
append(data: Buffer): number;
peek(length: number): Buffer;
get(length: number): Buffer;