Skip to content

Commit 4e5dd73

Browse files
committed
1 parent 9833066 commit 4e5dd73

14 files changed

+97
-116
lines changed

node_modules/ip/lib/ip.js

+54-59
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
var ip = exports;
2-
var { Buffer } = require('buffer');
3-
var os = require('os');
1+
const ip = exports;
2+
const { Buffer } = require('buffer');
3+
const os = require('os');
44

55
ip.toBuffer = function (ip, buff, offset) {
66
offset = ~~offset;
77

8-
var result;
8+
let result;
99

1010
if (this.isV4Format(ip)) {
11-
result = buff || new Buffer(offset + 4);
11+
result = buff || Buffer.alloc(offset + 4);
1212
ip.split(/\./g).map((byte) => {
1313
result[offset++] = parseInt(byte, 10) & 0xff;
1414
});
1515
} else if (this.isV6Format(ip)) {
16-
var sections = ip.split(':', 8);
16+
const sections = ip.split(':', 8);
1717

18-
var i;
18+
let i;
1919
for (i = 0; i < sections.length; i++) {
20-
var isv4 = this.isV4Format(sections[i]);
21-
var v4Buffer;
20+
const isv4 = this.isV4Format(sections[i]);
21+
let v4Buffer;
2222

2323
if (isv4) {
2424
v4Buffer = this.toBuffer(sections[i]);
@@ -36,16 +36,16 @@ ip.toBuffer = function (ip, buff, offset) {
3636
while (sections.length < 8) sections.push('0');
3737
} else if (sections.length < 8) {
3838
for (i = 0; i < sections.length && sections[i] !== ''; i++);
39-
var argv = [i, 1];
39+
const argv = [i, 1];
4040
for (i = 9 - sections.length; i > 0; i--) {
4141
argv.push('0');
4242
}
43-
sections.splice.apply(sections, argv);
43+
sections.splice(...argv);
4444
}
4545

46-
result = buff || new Buffer(offset + 16);
46+
result = buff || Buffer.alloc(offset + 16);
4747
for (i = 0; i < sections.length; i++) {
48-
var word = parseInt(sections[i], 16);
48+
const word = parseInt(sections[i], 16);
4949
result[offset++] = (word >> 8) & 0xff;
5050
result[offset++] = word & 0xff;
5151
}
@@ -62,17 +62,16 @@ ip.toString = function (buff, offset, length) {
6262
offset = ~~offset;
6363
length = length || (buff.length - offset);
6464

65-
var result = [];
66-
var i;
65+
let result = [];
6766
if (length === 4) {
6867
// IPv4
69-
for (i = 0; i < length; i++) {
68+
for (let i = 0; i < length; i++) {
7069
result.push(buff[offset + i]);
7170
}
7271
result = result.join('.');
7372
} else if (length === 16) {
7473
// IPv6
75-
for (i = 0; i < length; i += 2) {
74+
for (let i = 0; i < length; i += 2) {
7675
result.push(buff.readUInt16BE(offset + i).toString(16));
7776
}
7877
result = result.join(':');
@@ -83,8 +82,8 @@ ip.toString = function (buff, offset, length) {
8382
return result;
8483
};
8584

86-
var ipv4Regex = /^(\d{1,3}\.){3,3}\d{1,3}$/;
87-
var ipv6Regex = /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;
85+
const ipv4Regex = /^(\d{1,3}\.){3,3}\d{1,3}$/;
86+
const ipv6Regex = /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;
8887

8988
ip.isV4Format = function (ip) {
9089
return ipv4Regex.test(ip);
@@ -111,14 +110,14 @@ ip.fromPrefixLen = function (prefixlen, family) {
111110
family = _normalizeFamily(family);
112111
}
113112

114-
var len = 4;
113+
let len = 4;
115114
if (family === 'ipv6') {
116115
len = 16;
117116
}
118-
var buff = new Buffer(len);
117+
const buff = Buffer.alloc(len);
119118

120-
for (var i = 0, n = buff.length; i < n; ++i) {
121-
var bits = 8;
119+
for (let i = 0, n = buff.length; i < n; ++i) {
120+
let bits = 8;
122121
if (prefixlen < 8) {
123122
bits = prefixlen;
124123
}
@@ -134,10 +133,10 @@ ip.mask = function (addr, mask) {
134133
addr = ip.toBuffer(addr);
135134
mask = ip.toBuffer(mask);
136135

137-
var result = new Buffer(Math.max(addr.length, mask.length));
136+
const result = Buffer.alloc(Math.max(addr.length, mask.length));
138137

139138
// Same protocol - do bitwise and
140-
var i;
139+
let i;
141140
if (addr.length === mask.length) {
142141
for (i = 0; i < addr.length; i++) {
143142
result[i] = addr[i] & mask[i];
@@ -170,38 +169,38 @@ ip.mask = function (addr, mask) {
170169
};
171170

172171
ip.cidr = function (cidrString) {
173-
var cidrParts = cidrString.split('/');
172+
const cidrParts = cidrString.split('/');
174173

175-
var addr = cidrParts[0];
174+
const addr = cidrParts[0];
176175
if (cidrParts.length !== 2) {
177176
throw new Error(`invalid CIDR subnet: ${addr}`);
178177
}
179178

180-
var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));
179+
const mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));
181180

182181
return ip.mask(addr, mask);
183182
};
184183

185184
ip.subnet = function (addr, mask) {
186-
var networkAddress = ip.toLong(ip.mask(addr, mask));
185+
const networkAddress = ip.toLong(ip.mask(addr, mask));
187186

188187
// Calculate the mask's length.
189-
var maskBuffer = ip.toBuffer(mask);
190-
var maskLength = 0;
188+
const maskBuffer = ip.toBuffer(mask);
189+
let maskLength = 0;
191190

192-
for (var i = 0; i < maskBuffer.length; i++) {
191+
for (let i = 0; i < maskBuffer.length; i++) {
193192
if (maskBuffer[i] === 0xff) {
194193
maskLength += 8;
195194
} else {
196-
var octet = maskBuffer[i] & 0xff;
195+
let octet = maskBuffer[i] & 0xff;
197196
while (octet) {
198197
octet = (octet << 1) & 0xff;
199198
maskLength++;
200199
}
201200
}
202201
}
203202

204-
var numberOfAddresses = Math.pow(2, 32 - maskLength);
203+
const numberOfAddresses = 2 ** (32 - maskLength);
205204

206205
return {
207206
networkAddress: ip.fromLong(networkAddress),
@@ -224,86 +223,82 @@ ip.subnet = function (addr, mask) {
224223
};
225224

226225
ip.cidrSubnet = function (cidrString) {
227-
var cidrParts = cidrString.split('/');
226+
const cidrParts = cidrString.split('/');
228227

229-
var addr = cidrParts[0];
228+
const addr = cidrParts[0];
230229
if (cidrParts.length !== 2) {
231230
throw new Error(`invalid CIDR subnet: ${addr}`);
232231
}
233232

234-
var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));
233+
const mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));
235234

236235
return ip.subnet(addr, mask);
237236
};
238237

239238
ip.not = function (addr) {
240-
var buff = ip.toBuffer(addr);
241-
for (var i = 0; i < buff.length; i++) {
239+
const buff = ip.toBuffer(addr);
240+
for (let i = 0; i < buff.length; i++) {
242241
buff[i] = 0xff ^ buff[i];
243242
}
244243
return ip.toString(buff);
245244
};
246245

247246
ip.or = function (a, b) {
248-
var i;
249-
250247
a = ip.toBuffer(a);
251248
b = ip.toBuffer(b);
252249

253250
// same protocol
254251
if (a.length === b.length) {
255-
for (i = 0; i < a.length; ++i) {
252+
for (let i = 0; i < a.length; ++i) {
256253
a[i] |= b[i];
257254
}
258255
return ip.toString(a);
259256

260257
// mixed protocols
261258
}
262-
var buff = a;
263-
var other = b;
259+
let buff = a;
260+
let other = b;
264261
if (b.length > a.length) {
265262
buff = b;
266263
other = a;
267264
}
268265

269-
var offset = buff.length - other.length;
270-
for (i = offset; i < buff.length; ++i) {
266+
const offset = buff.length - other.length;
267+
for (let i = offset; i < buff.length; ++i) {
271268
buff[i] |= other[i - offset];
272269
}
273270

274271
return ip.toString(buff);
275272
};
276273

277274
ip.isEqual = function (a, b) {
278-
var i;
279-
280275
a = ip.toBuffer(a);
281276
b = ip.toBuffer(b);
282277

283278
// Same protocol
284279
if (a.length === b.length) {
285-
for (i = 0; i < a.length; i++) {
280+
for (let i = 0; i < a.length; i++) {
286281
if (a[i] !== b[i]) return false;
287282
}
288283
return true;
289284
}
290285

291286
// Swap
292287
if (b.length === 4) {
293-
var t = b;
288+
const t = b;
294289
b = a;
295290
a = t;
296291
}
297292

298293
// a - IPv4, b - IPv6
299-
for (i = 0; i < 10; i++) {
294+
for (let i = 0; i < 10; i++) {
300295
if (b[i] !== 0) return false;
301296
}
302297

303-
var word = b.readUInt16BE(10);
298+
const word = b.readUInt16BE(10);
304299
if (word !== 0 && word !== 0xffff) return false;
305300

306-
for (i = 0; i < 4; i++) {
301+
for (let i = 0; i < 4; i++) {
307302
if (a[i] !== b[i + 12]) return false;
308303
}
309304

@@ -365,7 +360,7 @@ ip.loopback = function (family) {
365360
// * undefined: First address with `ipv4` or loopback address `127.0.0.1`.
366361
//
367362
ip.address = function (name, family) {
368-
var interfaces = os.networkInterfaces();
363+
const interfaces = os.networkInterfaces();
369364

370365
//
371366
// Default to `ipv4`
@@ -377,8 +372,8 @@ ip.address = function (name, family) {
377372
// return the address.
378373
//
379374
if (name && name !== 'private' && name !== 'public') {
380-
var res = interfaces[name].filter((details) => {
381-
var itemFamily = _normalizeFamily(details.family);
375+
const res = interfaces[name].filter((details) => {
376+
const itemFamily = _normalizeFamily(details.family);
382377
return itemFamily === family;
383378
});
384379
if (res.length === 0) {
@@ -387,12 +382,12 @@ ip.address = function (name, family) {
387382
return res[0].address;
388383
}
389384

390-
var all = Object.keys(interfaces).map((nic) => {
385+
const all = Object.keys(interfaces).map((nic) => {
391386
//
392387
// Note: name will only be `public` or `private`
393388
// when this is called.
394389
//
395-
var addresses = interfaces[nic].filter((details) => {
390+
const addresses = interfaces[nic].filter((details) => {
396391
details.family = _normalizeFamily(details.family);
397392
if (details.family !== family || ip.isLoopback(details.address)) {
398393
return false;
@@ -411,7 +406,7 @@ ip.address = function (name, family) {
411406
};
412407

413408
ip.toLong = function (ip) {
414-
var ipl = 0;
409+
let ipl = 0;
415410
ip.split('.').forEach((octet) => {
416411
ipl <<= 8;
417412
ipl += parseInt(octet);

node_modules/ip/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ip",
3-
"version": "1.1.8",
3+
"version": "2.0.0",
44
"author": "Fedor Indutny <[email protected]>",
55
"homepage": "https://github.com/indutny/node-ip",
66
"repository": {

node_modules/socks/build/client/socksclient.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class SocksClient extends events_1.EventEmitter {
4545
catch (err) {
4646
if (typeof callback === 'function') {
4747
callback(err);
48+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4849
return resolve(err); // Resolves pending promise (prevents memory leaks).
4950
}
5051
else {
@@ -68,6 +69,7 @@ class SocksClient extends events_1.EventEmitter {
6869
client.removeAllListeners();
6970
if (typeof callback === 'function') {
7071
callback(err);
72+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7173
resolve(err); // Resolves pending promise (prevents memory leaks).
7274
}
7375
else {
@@ -86,6 +88,7 @@ class SocksClient extends events_1.EventEmitter {
8688
* @returns { Promise }
8789
*/
8890
static createConnectionChain(options, callback) {
91+
// eslint-disable-next-line no-async-promise-executor
8992
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
9093
// Validate SocksClientChainOptions
9194
try {
@@ -94,6 +97,7 @@ class SocksClient extends events_1.EventEmitter {
9497
catch (err) {
9598
if (typeof callback === 'function') {
9699
callback(err);
100+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
97101
return resolve(err); // Resolves pending promise (prevents memory leaks).
98102
}
99103
else {
@@ -106,7 +110,6 @@ class SocksClient extends events_1.EventEmitter {
106110
(0, util_1.shuffleArray)(options.proxies);
107111
}
108112
try {
109-
// tslint:disable-next-line:no-increment-decrement
110113
for (let i = 0; i < options.proxies.length; i++) {
111114
const nextProxy = options.proxies[i];
112115
// If we've reached the last proxy in the chain, the destination is the actual destination, otherwise it's the next proxy.
@@ -140,6 +143,7 @@ class SocksClient extends events_1.EventEmitter {
140143
catch (err) {
141144
if (typeof callback === 'function') {
142145
callback(err);
146+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
143147
resolve(err); // Resolves pending promise (prevents memory leaks).
144148
}
145149
else {

node_modules/socks/build/client/socksclient.js.map

+1-1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":3,"file":"receivebuffer.js","sourceRoot":"","sources":["../../src/common/receivebuffer.ts"],"names":[],"mappings":";;;AAAA,MAAM,aAAa;IAKjB,YAAY,OAAe,IAAI;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,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AI,CAAC,MAAM,CACjC,CACF,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACvB;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,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;YACxB,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;SACH;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;YACxB,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;SACH;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"}

node_modules/socks/build/common/util.js

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ exports.SocksClientError = SocksClientError;
1616
* @param array The array to shuffle.
1717
*/
1818
function shuffleArray(array) {
19-
// tslint:disable-next-line:no-increment-decrement
2019
for (let i = array.length - 1; i > 0; i--) {
2120
const j = Math.floor(Math.random() * (i + 1));
2221
[array[i], array[j]] = [array[j], array[i]];
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAwBuB,4CAAgB;AAtBxC;;;GAGG;AACH,SAAS,YAAY,CAAC,KAAY;IAChC,kDAAkD;IAClD,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAYyC,oCAAY"}
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;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAuBuB,4CAAgB;AArBxC;;;GAGG;AACH,SAAS,YAAY,CAAC,KAAgB;IACpC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAYyC,oCAAY"}

node_modules/socks/build/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
"use strict";
22
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
33
if (k2 === undefined) k2 = k;
4-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
59
}) : (function(o, m, k, k2) {
610
if (k2 === undefined) k2 = k;
711
o[k2] = m[k];

0 commit comments

Comments
 (0)