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/.eslintrc.cjs
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/.eslintrc.cjs
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/.prettierrc.yaml
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/.prettierrc.yaml
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/README.md
generated
vendored
Executable file → Normal file
28
my-app/node_modules/socks/build/client/socksclient.js
generated
vendored
Executable file → Normal file
28
my-app/node_modules/socks/build/client/socksclient.js
generated
vendored
Executable file → Normal file
|
@ -12,13 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.SocksClientError = exports.SocksClient = void 0;
|
||||
const events_1 = require("events");
|
||||
const net = require("net");
|
||||
const ip = require("ip");
|
||||
const smart_buffer_1 = require("smart-buffer");
|
||||
const constants_1 = require("../common/constants");
|
||||
const helpers_1 = require("../common/helpers");
|
||||
const receivebuffer_1 = require("../common/receivebuffer");
|
||||
const util_1 = require("../common/util");
|
||||
Object.defineProperty(exports, "SocksClientError", { enumerable: true, get: function () { return util_1.SocksClientError; } });
|
||||
const ip_address_1 = require("ip-address");
|
||||
class SocksClient extends events_1.EventEmitter {
|
||||
constructor(options) {
|
||||
super();
|
||||
|
@ -161,11 +161,11 @@ class SocksClient extends events_1.EventEmitter {
|
|||
// IPv4/IPv6/Hostname
|
||||
if (net.isIPv4(options.remoteHost.host)) {
|
||||
buff.writeUInt8(constants_1.Socks5HostType.IPv4);
|
||||
buff.writeUInt32BE(ip.toLong(options.remoteHost.host));
|
||||
buff.writeUInt32BE((0, helpers_1.ipv4ToInt32)(options.remoteHost.host));
|
||||
}
|
||||
else if (net.isIPv6(options.remoteHost.host)) {
|
||||
buff.writeUInt8(constants_1.Socks5HostType.IPv6);
|
||||
buff.writeBuffer(ip.toBuffer(options.remoteHost.host));
|
||||
buff.writeBuffer((0, helpers_1.ipToBuffer)(options.remoteHost.host));
|
||||
}
|
||||
else {
|
||||
buff.writeUInt8(constants_1.Socks5HostType.Hostname);
|
||||
|
@ -189,10 +189,10 @@ class SocksClient extends events_1.EventEmitter {
|
|||
const hostType = buff.readUInt8();
|
||||
let remoteHost;
|
||||
if (hostType === constants_1.Socks5HostType.IPv4) {
|
||||
remoteHost = ip.fromLong(buff.readUInt32BE());
|
||||
remoteHost = (0, helpers_1.int32ToIpv4)(buff.readUInt32BE());
|
||||
}
|
||||
else if (hostType === constants_1.Socks5HostType.IPv6) {
|
||||
remoteHost = ip.toString(buff.readBuffer(16));
|
||||
remoteHost = ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm();
|
||||
}
|
||||
else {
|
||||
remoteHost = buff.readString(buff.readUInt8());
|
||||
|
@ -401,7 +401,7 @@ class SocksClient extends events_1.EventEmitter {
|
|||
buff.writeUInt16BE(this.options.destination.port);
|
||||
// Socks 4 (IPv4)
|
||||
if (net.isIPv4(this.options.destination.host)) {
|
||||
buff.writeBuffer(ip.toBuffer(this.options.destination.host));
|
||||
buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host));
|
||||
buff.writeStringNT(userId);
|
||||
// Socks 4a (hostname)
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ class SocksClient extends events_1.EventEmitter {
|
|||
buff.readOffset = 2;
|
||||
const remoteHost = {
|
||||
port: buff.readUInt16BE(),
|
||||
host: ip.fromLong(buff.readUInt32BE()),
|
||||
host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()),
|
||||
};
|
||||
// If host is 0.0.0.0, set to proxy host.
|
||||
if (remoteHost.host === '0.0.0.0') {
|
||||
|
@ -464,7 +464,7 @@ class SocksClient extends events_1.EventEmitter {
|
|||
buff.readOffset = 2;
|
||||
const remoteHost = {
|
||||
port: buff.readUInt16BE(),
|
||||
host: ip.fromLong(buff.readUInt32BE()),
|
||||
host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()),
|
||||
};
|
||||
this.setState(constants_1.SocksClientState.Established);
|
||||
this.removeInternalSocketHandlers();
|
||||
|
@ -610,11 +610,11 @@ class SocksClient extends events_1.EventEmitter {
|
|||
// ipv4, ipv6, domain?
|
||||
if (net.isIPv4(this.options.destination.host)) {
|
||||
buff.writeUInt8(constants_1.Socks5HostType.IPv4);
|
||||
buff.writeBuffer(ip.toBuffer(this.options.destination.host));
|
||||
buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host));
|
||||
}
|
||||
else if (net.isIPv6(this.options.destination.host)) {
|
||||
buff.writeUInt8(constants_1.Socks5HostType.IPv6);
|
||||
buff.writeBuffer(ip.toBuffer(this.options.destination.host));
|
||||
buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host));
|
||||
}
|
||||
else {
|
||||
buff.writeUInt8(constants_1.Socks5HostType.Hostname);
|
||||
|
@ -652,7 +652,7 @@ class SocksClient extends events_1.EventEmitter {
|
|||
}
|
||||
buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
|
||||
remoteHost = {
|
||||
host: ip.fromLong(buff.readUInt32BE()),
|
||||
host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()),
|
||||
port: buff.readUInt16BE(),
|
||||
};
|
||||
// If given host is 0.0.0.0, assume remote proxy ip instead.
|
||||
|
@ -685,7 +685,7 @@ class SocksClient extends events_1.EventEmitter {
|
|||
}
|
||||
buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
|
||||
remoteHost = {
|
||||
host: ip.toString(buff.readBuffer(16)),
|
||||
host: ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm(),
|
||||
port: buff.readUInt16BE(),
|
||||
};
|
||||
}
|
||||
|
@ -743,7 +743,7 @@ class SocksClient extends events_1.EventEmitter {
|
|||
}
|
||||
buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
|
||||
remoteHost = {
|
||||
host: ip.fromLong(buff.readUInt32BE()),
|
||||
host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()),
|
||||
port: buff.readUInt16BE(),
|
||||
};
|
||||
// If given host is 0.0.0.0, assume remote proxy ip instead.
|
||||
|
@ -776,7 +776,7 @@ class SocksClient extends events_1.EventEmitter {
|
|||
}
|
||||
buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
|
||||
remoteHost = {
|
||||
host: ip.toString(buff.readBuffer(16)),
|
||||
host: ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm(),
|
||||
port: buff.readUInt16BE(),
|
||||
};
|
||||
}
|
||||
|
|
2
my-app/node_modules/socks/build/client/socksclient.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/socks/build/client/socksclient.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
26
my-app/node_modules/socks/build/common/constants.js
generated
vendored
Executable file → Normal file
26
my-app/node_modules/socks/build/common/constants.js
generated
vendored
Executable file → Normal file
|
@ -38,10 +38,10 @@ const SOCKS_INCOMING_PACKET_SIZES = {
|
|||
Socks5InitialHandshakeResponse: 2,
|
||||
Socks5UserPassAuthenticationResponse: 2,
|
||||
// Command response + incoming connection (bind)
|
||||
Socks5ResponseHeader: 5,
|
||||
Socks5ResponseIPv4: 10,
|
||||
Socks5ResponseIPv6: 22,
|
||||
Socks5ResponseHostname: (hostNameLength) => hostNameLength + 7,
|
||||
Socks5ResponseHeader: 5, // We need at least 5 to read the hostname length, then we wait for the address+port information.
|
||||
Socks5ResponseIPv4: 10, // 4 header + 4 ip + 2 port
|
||||
Socks5ResponseIPv6: 22, // 4 header + 16 ip + 2 port
|
||||
Socks5ResponseHostname: (hostNameLength) => hostNameLength + 7, // 4 header + 1 host length + host + 2 port
|
||||
// Command response + incoming connection (bind)
|
||||
Socks4Response: 8, // 2 header + 2 port + 4 ip
|
||||
};
|
||||
|
@ -51,23 +51,20 @@ var SocksCommand;
|
|||
SocksCommand[SocksCommand["connect"] = 1] = "connect";
|
||||
SocksCommand[SocksCommand["bind"] = 2] = "bind";
|
||||
SocksCommand[SocksCommand["associate"] = 3] = "associate";
|
||||
})(SocksCommand || (SocksCommand = {}));
|
||||
exports.SocksCommand = SocksCommand;
|
||||
})(SocksCommand || (exports.SocksCommand = SocksCommand = {}));
|
||||
var Socks4Response;
|
||||
(function (Socks4Response) {
|
||||
Socks4Response[Socks4Response["Granted"] = 90] = "Granted";
|
||||
Socks4Response[Socks4Response["Failed"] = 91] = "Failed";
|
||||
Socks4Response[Socks4Response["Rejected"] = 92] = "Rejected";
|
||||
Socks4Response[Socks4Response["RejectedIdent"] = 93] = "RejectedIdent";
|
||||
})(Socks4Response || (Socks4Response = {}));
|
||||
exports.Socks4Response = Socks4Response;
|
||||
})(Socks4Response || (exports.Socks4Response = Socks4Response = {}));
|
||||
var Socks5Auth;
|
||||
(function (Socks5Auth) {
|
||||
Socks5Auth[Socks5Auth["NoAuth"] = 0] = "NoAuth";
|
||||
Socks5Auth[Socks5Auth["GSSApi"] = 1] = "GSSApi";
|
||||
Socks5Auth[Socks5Auth["UserPass"] = 2] = "UserPass";
|
||||
})(Socks5Auth || (Socks5Auth = {}));
|
||||
exports.Socks5Auth = Socks5Auth;
|
||||
})(Socks5Auth || (exports.Socks5Auth = Socks5Auth = {}));
|
||||
const SOCKS5_CUSTOM_AUTH_START = 0x80;
|
||||
exports.SOCKS5_CUSTOM_AUTH_START = SOCKS5_CUSTOM_AUTH_START;
|
||||
const SOCKS5_CUSTOM_AUTH_END = 0xfe;
|
||||
|
@ -85,15 +82,13 @@ var Socks5Response;
|
|||
Socks5Response[Socks5Response["TTLExpired"] = 6] = "TTLExpired";
|
||||
Socks5Response[Socks5Response["CommandNotSupported"] = 7] = "CommandNotSupported";
|
||||
Socks5Response[Socks5Response["AddressNotSupported"] = 8] = "AddressNotSupported";
|
||||
})(Socks5Response || (Socks5Response = {}));
|
||||
exports.Socks5Response = Socks5Response;
|
||||
})(Socks5Response || (exports.Socks5Response = Socks5Response = {}));
|
||||
var Socks5HostType;
|
||||
(function (Socks5HostType) {
|
||||
Socks5HostType[Socks5HostType["IPv4"] = 1] = "IPv4";
|
||||
Socks5HostType[Socks5HostType["Hostname"] = 3] = "Hostname";
|
||||
Socks5HostType[Socks5HostType["IPv6"] = 4] = "IPv6";
|
||||
})(Socks5HostType || (Socks5HostType = {}));
|
||||
exports.Socks5HostType = Socks5HostType;
|
||||
})(Socks5HostType || (exports.Socks5HostType = Socks5HostType = {}));
|
||||
var SocksClientState;
|
||||
(function (SocksClientState) {
|
||||
SocksClientState[SocksClientState["Created"] = 0] = "Created";
|
||||
|
@ -109,6 +104,5 @@ var SocksClientState;
|
|||
SocksClientState[SocksClientState["Established"] = 10] = "Established";
|
||||
SocksClientState[SocksClientState["Disconnected"] = 11] = "Disconnected";
|
||||
SocksClientState[SocksClientState["Error"] = 99] = "Error";
|
||||
})(SocksClientState || (SocksClientState = {}));
|
||||
exports.SocksClientState = SocksClientState;
|
||||
})(SocksClientState || (exports.SocksClientState = SocksClientState = {}));
|
||||
//# sourceMappingURL=constants.js.map
|
2
my-app/node_modules/socks/build/common/constants.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/socks/build/common/constants.js.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":";;;AAIA,MAAM,eAAe,GAAG,KAAK,CAAC;AA4M5B,0CAAe;AAxMjB,kBAAkB;AAClB,MAAM,MAAM,GAAG;IACb,mBAAmB,EAAE,wFAAwF;IAC7G,+BAA+B,EAAE,oGAAoG;IACrI,w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DAAW,CAAA;IACX,mEAAc,CAAA;IACd,iEAAa,CAAA;IACb,uFAAwB,CAAA;IACxB,+GAAoC,CAAA;IACpC,mFAAsB,CAAA;IACtB,2GAAkC,CAAA;IAClC,mFAAsB,CAAA;IACtB,yFAAyB,CAAA;IACzB,iGAA6B,CAAA;IAC7B,sEAAgB,CAAA;IAChB,wEAAiB,CAAA;IACjB,0DAAU,CAAA;AACZ,CAAC,EAdI,gBAAgB,gCAAhB,gBAAgB,QAcpB"}
|
40
my-app/node_modules/socks/build/common/helpers.js
generated
vendored
Executable file → Normal file
40
my-app/node_modules/socks/build/common/helpers.js
generated
vendored
Executable file → Normal file
|
@ -1,9 +1,11 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
||||
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
||||
const util_1 = require("./util");
|
||||
const constants_1 = require("./constants");
|
||||
const stream = require("stream");
|
||||
const ip_address_1 = require("ip-address");
|
||||
const net = require("net");
|
||||
/**
|
||||
* Validates the provided SocksClientOptions
|
||||
* @param options { SocksClientOptions }
|
||||
|
@ -125,4 +127,40 @@ function isValidSocksProxy(proxy) {
|
|||
function isValidTimeoutValue(value) {
|
||||
return typeof value === 'number' && value > 0;
|
||||
}
|
||||
function ipv4ToInt32(ip) {
|
||||
const address = new ip_address_1.Address4(ip);
|
||||
// Convert the IPv4 address parts to an integer
|
||||
return address.toArray().reduce((acc, part) => (acc << 8) + part, 0);
|
||||
}
|
||||
exports.ipv4ToInt32 = ipv4ToInt32;
|
||||
function int32ToIpv4(int32) {
|
||||
// Extract each byte (octet) from the 32-bit integer
|
||||
const octet1 = (int32 >>> 24) & 0xff;
|
||||
const octet2 = (int32 >>> 16) & 0xff;
|
||||
const octet3 = (int32 >>> 8) & 0xff;
|
||||
const octet4 = int32 & 0xff;
|
||||
// Combine the octets into a string in IPv4 format
|
||||
return [octet1, octet2, octet3, octet4].join('.');
|
||||
}
|
||||
exports.int32ToIpv4 = int32ToIpv4;
|
||||
function ipToBuffer(ip) {
|
||||
if (net.isIPv4(ip)) {
|
||||
// Handle IPv4 addresses
|
||||
const address = new ip_address_1.Address4(ip);
|
||||
return Buffer.from(address.toArray());
|
||||
}
|
||||
else if (net.isIPv6(ip)) {
|
||||
// Handle IPv6 addresses
|
||||
const address = new ip_address_1.Address6(ip);
|
||||
return Buffer.from(address
|
||||
.canonicalForm()
|
||||
.split(':')
|
||||
.map((segment) => segment.padStart(4, '0'))
|
||||
.join(''), 'hex');
|
||||
}
|
||||
else {
|
||||
throw new Error('Invalid IP address format');
|
||||
}
|
||||
}
|
||||
exports.ipToBuffer = ipToBuffer;
|
||||
//# sourceMappingURL=helpers.js.map
|
2
my-app/node_modules/socks/build/common/helpers.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/socks/build/common/helpers.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
0
my-app/node_modules/socks/build/common/receivebuffer.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/build/common/receivebuffer.js
generated
vendored
Executable file → Normal file
2
my-app/node_modules/socks/build/common/receivebuffer.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/socks/build/common/receivebuffer.js.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"receivebuffer.js","sourceRoot":"","sources":["../../src/common/receivebuffer.ts"],"names":[],"mappings":";;;AAAA,MAAM,aAAa;IAKjB,YAAY,IAAI,GAAG,IAAI;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,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AAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,CAAC,MAAc;QACjB,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,GAAG,CAAC,MAAc;QAChB,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC;QAEtB,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAEO,sCAAa"}
|
0
my-app/node_modules/socks/build/common/util.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/build/common/util.js
generated
vendored
Executable file → Normal file
2
my-app/node_modules/socks/build/common/util.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/socks/build/common/util.js.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/common/util.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAM,gBAAiB,SAAQ,KAAK;IAClC,YACE,OAAe,EACR,OAAqD;Q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C,CAAC;IAC9C,CAAC;AACH,CAAC;AAEyB,oCAAY"}
|
0
my-app/node_modules/socks/build/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/build/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/build/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/build/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/index.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/index.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/javascript/associateExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/javascript/associateExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/javascript/bindExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/javascript/bindExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/javascript/connectExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/javascript/connectExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/typescript/associateExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/typescript/associateExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/typescript/bindExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/typescript/bindExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/typescript/connectExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/examples/typescript/connectExample.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/index.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/index.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/migratingFromV1.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/socks/docs/migratingFromV1.md
generated
vendored
Executable file → Normal file
22
my-app/node_modules/socks/package.json
generated
vendored
Executable file → Normal file
22
my-app/node_modules/socks/package.json
generated
vendored
Executable file → Normal file
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "socks",
|
||||
"private": false,
|
||||
"version": "2.7.1",
|
||||
"version": "2.8.3",
|
||||
"description": "Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.",
|
||||
"main": "build/index.js",
|
||||
"typings": "typings/index.d.ts",
|
||||
|
@ -23,7 +23,7 @@
|
|||
"socks5"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">= 10.13.0",
|
||||
"node": ">= 10.0.0",
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"author": "Josh Glazebrook",
|
||||
|
@ -33,19 +33,18 @@
|
|||
"license": "MIT",
|
||||
"readmeFilename": "README.md",
|
||||
"devDependencies": {
|
||||
"@types/ip": "1.1.0",
|
||||
"@types/mocha": "^9.1.1",
|
||||
"@types/node": "^18.0.6",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
||||
"@typescript-eslint/parser": "^5.30.6",
|
||||
"@types/mocha": "^10.0.6",
|
||||
"@types/node": "^20.11.17",
|
||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
||||
"@typescript-eslint/parser": "^6.21.0",
|
||||
"eslint": "^8.20.0",
|
||||
"mocha": "^10.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier": "^3.2.5",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.7.4"
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"ip": "^2.0.0",
|
||||
"ip-address": "^9.0.5",
|
||||
"smart-buffer": "^4.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -53,6 +52,7 @@
|
|||
"test": "NODE_ENV=test mocha --recursive --require ts-node/register test/**/*.ts",
|
||||
"prettier": "prettier --write ./src/**/*.ts --config .prettierrc.yaml",
|
||||
"lint": "eslint 'src/**/*.ts'",
|
||||
"build": "rm -rf build typings && prettier --write ./src/**/*.ts --config .prettierrc.yaml && tsc -p ."
|
||||
"build": "rm -rf build typings && prettier --write ./src/**/*.ts --config .prettierrc.yaml && tsc -p .",
|
||||
"build-raw": "rm -rf build typings && tsc -p ."
|
||||
}
|
||||
}
|
||||
|
|
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