pnpm 6.29.2 → 6.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/node_modules/.bin/color-support +0 -5
  2. package/dist/node_modules/.bin/mkdirp +0 -5
  3. package/dist/node_modules/.bin/node-gyp +0 -5
  4. package/dist/node_modules/.bin/node-which +0 -5
  5. package/dist/node_modules/.bin/nopt +0 -5
  6. package/dist/node_modules/.bin/rimraf +0 -5
  7. package/dist/node_modules/.bin/semver +0 -5
  8. package/dist/node_modules/.modules.yaml +2 -2
  9. package/dist/node_modules/.pnpm/lock.yaml +25 -26
  10. package/dist/node_modules/@gar/promisify/package.json +1 -1
  11. package/dist/node_modules/@npmcli/fs/package.json +2 -5
  12. package/dist/node_modules/agentkeepalive/package.json +1 -1
  13. package/dist/node_modules/are-we-there-yet/package.json +11 -7
  14. package/dist/node_modules/color-support/bin.js +0 -0
  15. package/dist/node_modules/gauge/lib/themes.js +2 -2
  16. package/dist/node_modules/gauge/package.json +7 -4
  17. package/dist/node_modules/minimatch/minimatch.js +93 -69
  18. package/dist/node_modules/minimatch/package.json +6 -3
  19. package/dist/node_modules/mkdirp/bin/cmd.js +0 -0
  20. package/dist/node_modules/node-gyp/gyp/gyp +0 -0
  21. package/dist/node_modules/node-gyp/gyp/gyp.bat +0 -0
  22. package/dist/node_modules/node-gyp/gyp/gyp_main.py +0 -0
  23. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -0
  24. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -0
  25. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -0
  26. package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -0
  27. package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -0
  28. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -0
  29. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -0
  30. package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -0
  31. package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -0
  32. package/dist/node_modules/node-gyp/gyp/test_gyp.py +0 -0
  33. package/dist/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +0 -0
  34. package/dist/node_modules/node-gyp/gyp/tools/graphviz.py +0 -0
  35. package/dist/node_modules/node-gyp/gyp/tools/pretty_gyp.py +0 -0
  36. package/dist/node_modules/node-gyp/gyp/tools/pretty_sln.py +0 -0
  37. package/dist/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +0 -0
  38. package/dist/node_modules/node-gyp/update-gyp.py +0 -0
  39. package/dist/node_modules/nopt/bin/nopt.js +0 -0
  40. package/dist/node_modules/npmlog/lib/log.js +5 -4
  41. package/dist/node_modules/npmlog/package.json +9 -6
  42. package/dist/node_modules/rimraf/bin.js +0 -0
  43. package/dist/node_modules/semver/bin/semver.js +0 -0
  44. package/dist/node_modules/socks/build/client/socksclient.js +10 -7
  45. package/dist/node_modules/socks/build/client/socksclient.js.map +1 -1
  46. package/dist/node_modules/socks/package.json +9 -11
  47. package/dist/node_modules/which/bin/node-which +0 -0
  48. package/dist/node_modules/wide-align/LICENSE +0 -0
  49. package/dist/node_modules/wide-align/align.js +0 -0
  50. package/dist/node_modules/wide-align/package.json +0 -0
  51. package/dist/pnpm.cjs +1018 -895
  52. package/dist/pnpx.cjs +3270 -76
  53. package/package.json +30 -31
@@ -1,10 +1,10 @@
1
1
  module.exports = minimatch
2
2
  minimatch.Minimatch = Minimatch
3
3
 
4
- var path = { sep: '/' }
5
- try {
6
- path = require('path')
7
- } catch (er) {}
4
+ var path = (function () { try { return require('path') } catch (e) {}}()) || {
5
+ sep: '/'
6
+ }
7
+ minimatch.sep = path.sep
8
8
 
9
9
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
10
10
  var expand = require('brace-expansion')
@@ -56,43 +56,64 @@ function filter (pattern, options) {
56
56
  }
57
57
 
58
58
  function ext (a, b) {
59
- a = a || {}
60
59
  b = b || {}
61
60
  var t = {}
62
- Object.keys(b).forEach(function (k) {
63
- t[k] = b[k]
64
- })
65
61
  Object.keys(a).forEach(function (k) {
66
62
  t[k] = a[k]
67
63
  })
64
+ Object.keys(b).forEach(function (k) {
65
+ t[k] = b[k]
66
+ })
68
67
  return t
69
68
  }
70
69
 
71
70
  minimatch.defaults = function (def) {
72
- if (!def || !Object.keys(def).length) return minimatch
71
+ if (!def || typeof def !== 'object' || !Object.keys(def).length) {
72
+ return minimatch
73
+ }
73
74
 
74
75
  var orig = minimatch
75
76
 
76
77
  var m = function minimatch (p, pattern, options) {
77
- return orig.minimatch(p, pattern, ext(def, options))
78
+ return orig(p, pattern, ext(def, options))
78
79
  }
79
80
 
80
81
  m.Minimatch = function Minimatch (pattern, options) {
81
82
  return new orig.Minimatch(pattern, ext(def, options))
82
83
  }
84
+ m.Minimatch.defaults = function defaults (options) {
85
+ return orig.defaults(ext(def, options)).Minimatch
86
+ }
87
+
88
+ m.filter = function filter (pattern, options) {
89
+ return orig.filter(pattern, ext(def, options))
90
+ }
91
+
92
+ m.defaults = function defaults (options) {
93
+ return orig.defaults(ext(def, options))
94
+ }
95
+
96
+ m.makeRe = function makeRe (pattern, options) {
97
+ return orig.makeRe(pattern, ext(def, options))
98
+ }
99
+
100
+ m.braceExpand = function braceExpand (pattern, options) {
101
+ return orig.braceExpand(pattern, ext(def, options))
102
+ }
103
+
104
+ m.match = function (list, pattern, options) {
105
+ return orig.match(list, pattern, ext(def, options))
106
+ }
83
107
 
84
108
  return m
85
109
  }
86
110
 
87
111
  Minimatch.defaults = function (def) {
88
- if (!def || !Object.keys(def).length) return Minimatch
89
112
  return minimatch.defaults(def).Minimatch
90
113
  }
91
114
 
92
115
  function minimatch (p, pattern, options) {
93
- if (typeof pattern !== 'string') {
94
- throw new TypeError('glob pattern string required')
95
- }
116
+ assertValidPattern(pattern)
96
117
 
97
118
  if (!options) options = {}
98
119
 
@@ -101,9 +122,6 @@ function minimatch (p, pattern, options) {
101
122
  return false
102
123
  }
103
124
 
104
- // "" only matches ""
105
- if (pattern.trim() === '') return p === ''
106
-
107
125
  return new Minimatch(pattern, options).match(p)
108
126
  }
109
127
 
@@ -112,15 +130,14 @@ function Minimatch (pattern, options) {
112
130
  return new Minimatch(pattern, options)
113
131
  }
114
132
 
115
- if (typeof pattern !== 'string') {
116
- throw new TypeError('glob pattern string required')
117
- }
133
+ assertValidPattern(pattern)
118
134
 
119
135
  if (!options) options = {}
136
+
120
137
  pattern = pattern.trim()
121
138
 
122
139
  // windows support: need to use /, not \
123
- if (path.sep !== '/') {
140
+ if (!options.allowWindowsEscape && path.sep !== '/') {
124
141
  pattern = pattern.split(path.sep).join('/')
125
142
  }
126
143
 
@@ -131,6 +148,7 @@ function Minimatch (pattern, options) {
131
148
  this.negate = false
132
149
  this.comment = false
133
150
  this.empty = false
151
+ this.partial = !!options.partial
134
152
 
135
153
  // make the set of regexps etc.
136
154
  this.make()
@@ -140,9 +158,6 @@ Minimatch.prototype.debug = function () {}
140
158
 
141
159
  Minimatch.prototype.make = make
142
160
  function make () {
143
- // don't do it more than once.
144
- if (this._made) return
145
-
146
161
  var pattern = this.pattern
147
162
  var options = this.options
148
163
 
@@ -162,7 +177,7 @@ function make () {
162
177
  // step 2: expand braces
163
178
  var set = this.globSet = this.braceExpand()
164
179
 
165
- if (options.debug) this.debug = console.error
180
+ if (options.debug) this.debug = function debug() { console.error.apply(console, arguments) }
166
181
 
167
182
  this.debug(this.pattern, set)
168
183
 
@@ -242,12 +257,11 @@ function braceExpand (pattern, options) {
242
257
  pattern = typeof pattern === 'undefined'
243
258
  ? this.pattern : pattern
244
259
 
245
- if (typeof pattern === 'undefined') {
246
- throw new TypeError('undefined pattern')
247
- }
260
+ assertValidPattern(pattern)
248
261
 
249
- if (options.nobrace ||
250
- !pattern.match(/\{.*\}/)) {
262
+ // Thanks to Yeting Li <https://github.com/yetingli> for
263
+ // improving this regexp to avoid a ReDOS vulnerability.
264
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
251
265
  // shortcut. no need to expand.
252
266
  return [pattern]
253
267
  }
@@ -255,6 +269,17 @@ function braceExpand (pattern, options) {
255
269
  return expand(pattern)
256
270
  }
257
271
 
272
+ var MAX_PATTERN_LENGTH = 1024 * 64
273
+ var assertValidPattern = function (pattern) {
274
+ if (typeof pattern !== 'string') {
275
+ throw new TypeError('invalid pattern')
276
+ }
277
+
278
+ if (pattern.length > MAX_PATTERN_LENGTH) {
279
+ throw new TypeError('pattern is too long')
280
+ }
281
+ }
282
+
258
283
  // parse a component of the expanded set.
259
284
  // At this point, no pattern may contain "/" in it
260
285
  // so we're going to return a 2d array, where each entry is the full
@@ -269,14 +294,17 @@ function braceExpand (pattern, options) {
269
294
  Minimatch.prototype.parse = parse
270
295
  var SUBPARSE = {}
271
296
  function parse (pattern, isSub) {
272
- if (pattern.length > 1024 * 64) {
273
- throw new TypeError('pattern is too long')
274
- }
297
+ assertValidPattern(pattern)
275
298
 
276
299
  var options = this.options
277
300
 
278
301
  // shortcuts
279
- if (!options.noglobstar && pattern === '**') return GLOBSTAR
302
+ if (pattern === '**') {
303
+ if (!options.noglobstar)
304
+ return GLOBSTAR
305
+ else
306
+ pattern = '*'
307
+ }
280
308
  if (pattern === '') return ''
281
309
 
282
310
  var re = ''
@@ -332,10 +360,12 @@ function parse (pattern, isSub) {
332
360
  }
333
361
 
334
362
  switch (c) {
335
- case '/':
363
+ /* istanbul ignore next */
364
+ case '/': {
336
365
  // completely not allowed, even escaped.
337
366
  // Should already be path-split by now.
338
367
  return false
368
+ }
339
369
 
340
370
  case '\\':
341
371
  clearStateChar()
@@ -454,25 +484,23 @@ function parse (pattern, isSub) {
454
484
 
455
485
  // handle the case where we left a class open.
456
486
  // "[z-a]" is valid, equivalent to "\[z-a\]"
457
- if (inClass) {
458
- // split where the last [ was, make sure we don't have
459
- // an invalid re. if so, re-walk the contents of the
460
- // would-be class to re-translate any characters that
461
- // were passed through as-is
462
- // TODO: It would probably be faster to determine this
463
- // without a try/catch and a new RegExp, but it's tricky
464
- // to do safely. For now, this is safe and works.
465
- var cs = pattern.substring(classStart + 1, i)
466
- try {
467
- RegExp('[' + cs + ']')
468
- } catch (er) {
469
- // not a valid class!
470
- var sp = this.parse(cs, SUBPARSE)
471
- re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
472
- hasMagic = hasMagic || sp[1]
473
- inClass = false
474
- continue
475
- }
487
+ // split where the last [ was, make sure we don't have
488
+ // an invalid re. if so, re-walk the contents of the
489
+ // would-be class to re-translate any characters that
490
+ // were passed through as-is
491
+ // TODO: It would probably be faster to determine this
492
+ // without a try/catch and a new RegExp, but it's tricky
493
+ // to do safely. For now, this is safe and works.
494
+ var cs = pattern.substring(classStart + 1, i)
495
+ try {
496
+ RegExp('[' + cs + ']')
497
+ } catch (er) {
498
+ // not a valid class!
499
+ var sp = this.parse(cs, SUBPARSE)
500
+ re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
501
+ hasMagic = hasMagic || sp[1]
502
+ inClass = false
503
+ continue
476
504
  }
477
505
 
478
506
  // finish up the class.
@@ -556,9 +584,7 @@ function parse (pattern, isSub) {
556
584
  // something that could conceivably capture a dot
557
585
  var addPatternStart = false
558
586
  switch (re.charAt(0)) {
559
- case '.':
560
- case '[':
561
- case '(': addPatternStart = true
587
+ case '[': case '.': case '(': addPatternStart = true
562
588
  }
563
589
 
564
590
  // Hack to work around lack of negative lookbehind in JS
@@ -620,7 +646,7 @@ function parse (pattern, isSub) {
620
646
  var flags = options.nocase ? 'i' : ''
621
647
  try {
622
648
  var regExp = new RegExp('^' + re + '$', flags)
623
- } catch (er) {
649
+ } catch (er) /* istanbul ignore next - should be impossible */ {
624
650
  // If it was an invalid regular expression, then it can't match
625
651
  // anything. This trick looks for a character after the end of
626
652
  // the string, which is of course impossible, except in multi-line
@@ -678,7 +704,7 @@ function makeRe () {
678
704
 
679
705
  try {
680
706
  this.regexp = new RegExp(re, flags)
681
- } catch (ex) {
707
+ } catch (ex) /* istanbul ignore next - should be impossible */ {
682
708
  this.regexp = false
683
709
  }
684
710
  return this.regexp
@@ -696,8 +722,8 @@ minimatch.match = function (list, pattern, options) {
696
722
  return list
697
723
  }
698
724
 
699
- Minimatch.prototype.match = match
700
- function match (f, partial) {
725
+ Minimatch.prototype.match = function match (f, partial) {
726
+ if (typeof partial === 'undefined') partial = this.partial
701
727
  this.debug('match', f, this.pattern)
702
728
  // short-circuit in the case of busted things.
703
729
  // comments, etc.
@@ -779,6 +805,7 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
779
805
 
780
806
  // should be impossible.
781
807
  // some invalid regexp stuff in the set.
808
+ /* istanbul ignore if */
782
809
  if (p === false) return false
783
810
 
784
811
  if (p === GLOBSTAR) {
@@ -852,6 +879,7 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
852
879
  // no match was found.
853
880
  // However, in partial mode, we can't say this is necessarily over.
854
881
  // If there's more *pattern* left, then
882
+ /* istanbul ignore if */
855
883
  if (partial) {
856
884
  // ran out of file
857
885
  this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
@@ -865,11 +893,7 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
865
893
  // patterns with magic have been turned into regexps.
866
894
  var hit
867
895
  if (typeof p === 'string') {
868
- if (options.nocase) {
869
- hit = f.toLowerCase() === p.toLowerCase()
870
- } else {
871
- hit = f === p
872
- }
896
+ hit = f === p
873
897
  this.debug('string match', p, f, hit)
874
898
  } else {
875
899
  hit = f.match(p)
@@ -900,16 +924,16 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
900
924
  // this is ok if we're doing the match as part of
901
925
  // a glob fs traversal.
902
926
  return partial
903
- } else if (pi === pl) {
927
+ } else /* istanbul ignore else */ if (pi === pl) {
904
928
  // ran out of pattern, still have file left.
905
929
  // this is only acceptable if we're on the very last
906
930
  // empty segment of a file with a trailing slash.
907
931
  // a/* should match a/b/
908
- var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')
909
- return emptyFileEnd
932
+ return (fi === fl - 1) && (file[fi] === '')
910
933
  }
911
934
 
912
935
  // should be unreachable.
936
+ /* istanbul ignore next */
913
937
  throw new Error('wtf?')
914
938
  }
915
939
 
@@ -2,14 +2,17 @@
2
2
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
3
3
  "name": "minimatch",
4
4
  "description": "a glob matcher in javascript",
5
- "version": "3.0.4",
5
+ "version": "3.1.2",
6
+ "publishConfig": {
7
+ "tag": "v3-legacy"
8
+ },
6
9
  "repository": {
7
10
  "type": "git",
8
11
  "url": "git://github.com/isaacs/minimatch.git"
9
12
  },
10
13
  "main": "minimatch.js",
11
14
  "scripts": {
12
- "test": "tap test/*.js --cov",
15
+ "test": "tap",
13
16
  "preversion": "npm test",
14
17
  "postversion": "npm publish",
15
18
  "postpublish": "git push origin --all; git push origin --tags"
@@ -21,7 +24,7 @@
21
24
  "brace-expansion": "^1.1.7"
22
25
  },
23
26
  "devDependencies": {
24
- "tap": "^10.3.2"
27
+ "tap": "^15.1.6"
25
28
  },
26
29
  "license": "ISC",
27
30
  "files": [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -292,8 +292,9 @@ log.emitLog = function (m) {
292
292
  var disp = log.disp[m.level] != null ? log.disp[m.level] : m.level
293
293
  this.clearProgress()
294
294
  m.message.split(/\r?\n/).forEach(function (line) {
295
- if (this.heading) {
296
- this.write(this.heading, this.headingStyle)
295
+ var heading = this.heading
296
+ if (heading) {
297
+ this.write(heading, this.headingStyle)
297
298
  this.write(' ')
298
299
  }
299
300
  this.write(disp, log.style[m.level])
@@ -390,11 +391,11 @@ log.style = {}
390
391
  log.levels = {}
391
392
  log.disp = {}
392
393
  log.addLevel('silly', -Infinity, { inverse: true }, 'sill')
393
- log.addLevel('verbose', 1000, { fg: 'blue', bg: 'black' }, 'verb')
394
+ log.addLevel('verbose', 1000, { fg: 'cyan', bg: 'black' }, 'verb')
394
395
  log.addLevel('info', 2000, { fg: 'green' })
395
396
  log.addLevel('timing', 2500, { fg: 'green', bg: 'black' })
396
397
  log.addLevel('http', 3000, { fg: 'green', bg: 'black' })
397
- log.addLevel('notice', 3500, { fg: 'blue', bg: 'black' })
398
+ log.addLevel('notice', 3500, { fg: 'cyan', bg: 'black' })
398
399
  log.addLevel('warn', 4000, { fg: 'black', bg: 'yellow' }, 'WARN')
399
400
  log.addLevel('error', 5000, { fg: 'red', bg: 'black' }, 'ERR!')
400
401
  log.addLevel('silent', Infinity)
@@ -2,7 +2,7 @@
2
2
  "author": "GitHub Inc.",
3
3
  "name": "npmlog",
4
4
  "description": "logger for npm",
5
- "version": "6.0.0",
5
+ "version": "6.0.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/npm/npmlog.git"
@@ -23,24 +23,27 @@
23
23
  "preversion": "npm test",
24
24
  "postversion": "npm publish",
25
25
  "prepublishOnly": "git push origin --follow-tags",
26
- "snap": "tap"
26
+ "snap": "tap",
27
+ "template-copy": "npm-template-copy --force"
27
28
  },
28
29
  "dependencies": {
29
- "are-we-there-yet": "^2.0.0",
30
+ "are-we-there-yet": "^3.0.0",
30
31
  "console-control-strings": "^1.1.0",
31
32
  "gauge": "^4.0.0",
32
33
  "set-blocking": "^2.0.0"
33
34
  },
34
35
  "devDependencies": {
35
- "@npmcli/template-oss": "^2.3.0",
36
- "tap": "^15.0.9"
36
+ "@npmcli/template-oss": "^2.7.1",
37
+ "tap": "^15.1.6"
37
38
  },
38
39
  "license": "ISC",
39
- "templateVersion": "2.3.0",
40
40
  "engines": {
41
41
  "node": "^12.13.0 || ^14.15.0 || >=16"
42
42
  },
43
43
  "tap": {
44
44
  "branches": 95
45
+ },
46
+ "templateOSS": {
47
+ "version": "2.7.1"
45
48
  }
46
49
  }
File without changes
File without changes
@@ -24,7 +24,7 @@ class SocksClient extends events_1.EventEmitter {
24
24
  super();
25
25
  this.options = Object.assign({}, options);
26
26
  // Validate SocksClientOptions
27
- helpers_1.validateSocksClientOptions(options);
27
+ (0, helpers_1.validateSocksClientOptions)(options);
28
28
  // Default state
29
29
  this.setState(constants_1.SocksClientState.Created);
30
30
  }
@@ -40,7 +40,7 @@ class SocksClient extends events_1.EventEmitter {
40
40
  return new Promise((resolve, reject) => {
41
41
  // Validate SocksClientOptions
42
42
  try {
43
- helpers_1.validateSocksClientOptions(options, ['connect']);
43
+ (0, helpers_1.validateSocksClientOptions)(options, ['connect']);
44
44
  }
45
45
  catch (err) {
46
46
  if (typeof callback === 'function') {
@@ -89,7 +89,7 @@ class SocksClient extends events_1.EventEmitter {
89
89
  return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
90
90
  // Validate SocksClientChainOptions
91
91
  try {
92
- helpers_1.validateSocksClientChainOptions(options);
92
+ (0, helpers_1.validateSocksClientChainOptions)(options);
93
93
  }
94
94
  catch (err) {
95
95
  if (typeof callback === 'function') {
@@ -103,7 +103,7 @@ class SocksClient extends events_1.EventEmitter {
103
103
  let sock;
104
104
  // Shuffle proxies
105
105
  if (options.randomizeChain) {
106
- util_1.shuffleArray(options.proxies);
106
+ (0, util_1.shuffleArray)(options.proxies);
107
107
  }
108
108
  try {
109
109
  // tslint:disable-next-line:no-increment-decrement
@@ -113,7 +113,8 @@ class SocksClient extends events_1.EventEmitter {
113
113
  const nextDestination = i === options.proxies.length - 1
114
114
  ? options.destination
115
115
  : {
116
- host: options.proxies[i + 1].ipaddress,
116
+ host: options.proxies[i + 1].host ||
117
+ options.proxies[i + 1].ipaddress,
117
118
  port: options.proxies[i + 1].port,
118
119
  };
119
120
  // Creates the next connection in the chain.
@@ -549,7 +550,8 @@ class SocksClient extends events_1.EventEmitter {
549
550
  }
550
551
  sendSocks5CustomAuthentication() {
551
552
  return __awaiter(this, void 0, void 0, function* () {
552
- this.nextRequiredPacketBufferSize = this.options.proxy.custom_auth_response_size;
553
+ this.nextRequiredPacketBufferSize =
554
+ this.options.proxy.custom_auth_response_size;
553
555
  this.socket.write(yield this.options.proxy.custom_auth_request_handler());
554
556
  this.setState(constants_1.SocksClientState.SentAuthentication);
555
557
  });
@@ -581,7 +583,8 @@ class SocksClient extends events_1.EventEmitter {
581
583
  authResult = yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));
582
584
  }
583
585
  else if (this.socks5ChosenAuthType === constants_1.Socks5Auth.UserPass) {
584
- authResult = yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));
586
+ authResult =
587
+ yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));
585
588
  }
586
589
  else if (this.socks5ChosenAuthType === this.options.proxy.custom_auth_method) {
587
590
  authResult = yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));