socket 1.1.174 → 1.1.176

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.
package/dist/vendor.js CHANGED
@@ -6,12 +6,12 @@ var path$4 = require('node:path');
6
6
  var fs$5 = require('node:fs');
7
7
  var require$$0$8 = require('node:url');
8
8
  var os$3 = require('node:os');
9
- var fs$6 = require('node:fs/promises');
10
- var require$$0$9 = process$2;
11
- var require$$0$a = require('node:buffer');
12
9
  var require$$2$4 = require('node:https');
13
10
  var require$$1$7 = require('node:http');
14
- var require$$0$b = require$$0$8;
11
+ var require$$0$9 = require$$0$8;
12
+ var fs$6 = require('node:fs/promises');
13
+ var require$$0$a = process$2;
14
+ var require$$0$b = require('node:buffer');
15
15
  var require$$0$c = require('node:crypto');
16
16
  var require$$1$8 = require('node:module');
17
17
  var require$$7$6 = require('node:timers/promises');
@@ -29,7 +29,7 @@ var require$$0$f = path$4;
29
29
  var require$$0$g = require('node:stream');
30
30
  var require$$0$i = require('node:events');
31
31
  var require$$0$h = fs$5;
32
- var node_buffer = require$$0$a;
32
+ var node_buffer = require$$0$b;
33
33
  var childProcess = require('node:child_process');
34
34
  var require$$1$a = require('node:path/win32');
35
35
  var require$$0$j = require$$1$8;
@@ -8589,6 +8589,144 @@ function getAugmentedNamespace(n) {
8589
8589
  return a;
8590
8590
  }
8591
8591
 
8592
+ var hpagent;
8593
+ var hasRequiredHpagent;
8594
+ function requireHpagent() {
8595
+ if (hasRequiredHpagent) return hpagent;
8596
+ hasRequiredHpagent = 1;
8597
+ const https = require$$2$4;
8598
+ const http = require$$1$7;
8599
+ const {
8600
+ URL
8601
+ } = require$$0$9;
8602
+ class HttpProxyAgent extends http.Agent {
8603
+ constructor(options) {
8604
+ const {
8605
+ proxy,
8606
+ proxyRequestOptions,
8607
+ ...opts
8608
+ } = options;
8609
+ super(opts);
8610
+ this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
8611
+ this.proxyRequestOptions = proxyRequestOptions || {};
8612
+ }
8613
+ createConnection(options, callback) {
8614
+ const requestOptions = {
8615
+ ...this.proxyRequestOptions,
8616
+ method: 'CONNECT',
8617
+ host: this.proxy.hostname,
8618
+ port: this.proxy.port,
8619
+ path: `${options.host}:${options.port}`,
8620
+ setHost: false,
8621
+ headers: {
8622
+ ...this.proxyRequestOptions.headers,
8623
+ connection: this.keepAlive ? 'keep-alive' : 'close',
8624
+ host: `${options.host}:${options.port}`
8625
+ },
8626
+ agent: false,
8627
+ timeout: options.timeout || 0
8628
+ };
8629
+ if (this.proxy.username || this.proxy.password) {
8630
+ const base64 = Buffer.from(`${decodeURIComponent(this.proxy.username || '')}:${decodeURIComponent(this.proxy.password || '')}`).toString('base64');
8631
+ requestOptions.headers['proxy-authorization'] = `Basic ${base64}`;
8632
+ }
8633
+ if (this.proxy.protocol === 'https:') {
8634
+ requestOptions.servername = this.proxy.hostname;
8635
+ }
8636
+ const request = (this.proxy.protocol === 'http:' ? http : https).request(requestOptions);
8637
+ request.once('connect', (response, socket, head) => {
8638
+ request.removeAllListeners();
8639
+ socket.removeAllListeners();
8640
+ if (response.statusCode === 200) {
8641
+ callback(null, socket);
8642
+ } else {
8643
+ socket.destroy();
8644
+ callback(new Error(`Bad response: ${response.statusCode}`), null);
8645
+ }
8646
+ });
8647
+ request.once('timeout', () => {
8648
+ request.destroy(new Error('Proxy timeout'));
8649
+ });
8650
+ request.once('error', err => {
8651
+ request.removeAllListeners();
8652
+ callback(err, null);
8653
+ });
8654
+ request.end();
8655
+ }
8656
+ }
8657
+ class HttpsProxyAgent extends https.Agent {
8658
+ constructor(options) {
8659
+ const {
8660
+ proxy,
8661
+ proxyRequestOptions,
8662
+ ...opts
8663
+ } = options;
8664
+ super(opts);
8665
+ this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
8666
+ this.proxyRequestOptions = proxyRequestOptions || {};
8667
+ }
8668
+ createConnection(options, callback) {
8669
+ const requestOptions = {
8670
+ ...this.proxyRequestOptions,
8671
+ method: 'CONNECT',
8672
+ host: this.proxy.hostname,
8673
+ port: this.proxy.port,
8674
+ path: `${options.host}:${options.port}`,
8675
+ setHost: false,
8676
+ headers: {
8677
+ ...this.proxyRequestOptions.headers,
8678
+ connection: this.keepAlive ? 'keep-alive' : 'close',
8679
+ host: `${options.host}:${options.port}`
8680
+ },
8681
+ agent: false,
8682
+ timeout: options.timeout || 0
8683
+ };
8684
+ if (this.proxy.username || this.proxy.password) {
8685
+ const base64 = Buffer.from(`${decodeURIComponent(this.proxy.username || '')}:${decodeURIComponent(this.proxy.password || '')}`).toString('base64');
8686
+ requestOptions.headers['proxy-authorization'] = `Basic ${base64}`;
8687
+ }
8688
+
8689
+ // Necessary for the TLS check with the proxy to succeed.
8690
+ if (this.proxy.protocol === 'https:') {
8691
+ requestOptions.servername = this.proxy.hostname;
8692
+ }
8693
+ const request = (this.proxy.protocol === 'http:' ? http : https).request(requestOptions);
8694
+ request.once('connect', (response, socket, head) => {
8695
+ request.removeAllListeners();
8696
+ socket.removeAllListeners();
8697
+ if (response.statusCode === 200) {
8698
+ const secureSocket = super.createConnection({
8699
+ ...options,
8700
+ socket
8701
+ });
8702
+ callback(null, secureSocket);
8703
+ } else {
8704
+ socket.destroy();
8705
+ callback(new Error(`Bad response: ${response.statusCode}`), null);
8706
+ }
8707
+ });
8708
+ request.once('timeout', () => {
8709
+ request.destroy(new Error('Proxy timeout'));
8710
+ });
8711
+ request.once('error', err => {
8712
+ request.removeAllListeners();
8713
+ callback(err, null);
8714
+ });
8715
+ request.end();
8716
+ }
8717
+ }
8718
+ hpagent = {
8719
+ HttpProxyAgent,
8720
+ HttpsProxyAgent
8721
+ };
8722
+ return hpagent;
8723
+ }
8724
+
8725
+ var hpagentExports = requireHpagent();
8726
+
8727
+ const HttpProxyAgent = hpagentExports.HttpProxyAgent;
8728
+ const HttpsProxyAgent = hpagentExports.HttpsProxyAgent;
8729
+
8592
8730
  var ajv = {exports: {}};
8593
8731
 
8594
8732
  var core$2 = {};
@@ -18063,7 +18201,7 @@ var hasRequiredLog;
18063
18201
  function requireLog() {
18064
18202
  if (hasRequiredLog) return log;
18065
18203
  hasRequiredLog = 1;
18066
- var node_process = require$$0$9;
18204
+ var node_process = require$$0$a;
18067
18205
  function debug(logLevel, ...messages) {
18068
18206
  if (logLevel === 'debug') console.log(...messages);
18069
18207
  }
@@ -18987,7 +19125,7 @@ var hasRequiredBinary;
18987
19125
  function requireBinary() {
18988
19126
  if (hasRequiredBinary) return binary$1;
18989
19127
  hasRequiredBinary = 1;
18990
- var node_buffer = require$$0$a;
19128
+ var node_buffer = require$$0$b;
18991
19129
  var Scalar = requireScalar();
18992
19130
  var stringifyString = requireStringifyString();
18993
19131
  const binary = {
@@ -21567,7 +21705,7 @@ var hasRequiredComposer;
21567
21705
  function requireComposer() {
21568
21706
  if (hasRequiredComposer) return composer;
21569
21707
  hasRequiredComposer = 1;
21570
- var node_process = require$$0$9;
21708
+ var node_process = require$$0$a;
21571
21709
  var directives = requireDirectives();
21572
21710
  var Document = requireDocument();
21573
21711
  var errors = requireErrors$a();
@@ -23049,7 +23187,7 @@ var hasRequiredParser$1;
23049
23187
  function requireParser$1() {
23050
23188
  if (hasRequiredParser$1) return parser$2;
23051
23189
  hasRequiredParser$1 = 1;
23052
- var node_process = require$$0$9;
23190
+ var node_process = require$$0$a;
23053
23191
  var cst = requireCst();
23054
23192
  var lexer = requireLexer();
23055
23193
  function includesToken(list, type) {
@@ -24500,144 +24638,6 @@ function requireConfig$3() {
24500
24638
 
24501
24639
  var configExports = requireConfig$3();
24502
24640
 
24503
- var hpagent;
24504
- var hasRequiredHpagent;
24505
- function requireHpagent() {
24506
- if (hasRequiredHpagent) return hpagent;
24507
- hasRequiredHpagent = 1;
24508
- const https = require$$2$4;
24509
- const http = require$$1$7;
24510
- const {
24511
- URL
24512
- } = require$$0$b;
24513
- class HttpProxyAgent extends http.Agent {
24514
- constructor(options) {
24515
- const {
24516
- proxy,
24517
- proxyRequestOptions,
24518
- ...opts
24519
- } = options;
24520
- super(opts);
24521
- this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
24522
- this.proxyRequestOptions = proxyRequestOptions || {};
24523
- }
24524
- createConnection(options, callback) {
24525
- const requestOptions = {
24526
- ...this.proxyRequestOptions,
24527
- method: 'CONNECT',
24528
- host: this.proxy.hostname,
24529
- port: this.proxy.port,
24530
- path: `${options.host}:${options.port}`,
24531
- setHost: false,
24532
- headers: {
24533
- ...this.proxyRequestOptions.headers,
24534
- connection: this.keepAlive ? 'keep-alive' : 'close',
24535
- host: `${options.host}:${options.port}`
24536
- },
24537
- agent: false,
24538
- timeout: options.timeout || 0
24539
- };
24540
- if (this.proxy.username || this.proxy.password) {
24541
- const base64 = Buffer.from(`${decodeURIComponent(this.proxy.username || '')}:${decodeURIComponent(this.proxy.password || '')}`).toString('base64');
24542
- requestOptions.headers['proxy-authorization'] = `Basic ${base64}`;
24543
- }
24544
- if (this.proxy.protocol === 'https:') {
24545
- requestOptions.servername = this.proxy.hostname;
24546
- }
24547
- const request = (this.proxy.protocol === 'http:' ? http : https).request(requestOptions);
24548
- request.once('connect', (response, socket, head) => {
24549
- request.removeAllListeners();
24550
- socket.removeAllListeners();
24551
- if (response.statusCode === 200) {
24552
- callback(null, socket);
24553
- } else {
24554
- socket.destroy();
24555
- callback(new Error(`Bad response: ${response.statusCode}`), null);
24556
- }
24557
- });
24558
- request.once('timeout', () => {
24559
- request.destroy(new Error('Proxy timeout'));
24560
- });
24561
- request.once('error', err => {
24562
- request.removeAllListeners();
24563
- callback(err, null);
24564
- });
24565
- request.end();
24566
- }
24567
- }
24568
- class HttpsProxyAgent extends https.Agent {
24569
- constructor(options) {
24570
- const {
24571
- proxy,
24572
- proxyRequestOptions,
24573
- ...opts
24574
- } = options;
24575
- super(opts);
24576
- this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
24577
- this.proxyRequestOptions = proxyRequestOptions || {};
24578
- }
24579
- createConnection(options, callback) {
24580
- const requestOptions = {
24581
- ...this.proxyRequestOptions,
24582
- method: 'CONNECT',
24583
- host: this.proxy.hostname,
24584
- port: this.proxy.port,
24585
- path: `${options.host}:${options.port}`,
24586
- setHost: false,
24587
- headers: {
24588
- ...this.proxyRequestOptions.headers,
24589
- connection: this.keepAlive ? 'keep-alive' : 'close',
24590
- host: `${options.host}:${options.port}`
24591
- },
24592
- agent: false,
24593
- timeout: options.timeout || 0
24594
- };
24595
- if (this.proxy.username || this.proxy.password) {
24596
- const base64 = Buffer.from(`${decodeURIComponent(this.proxy.username || '')}:${decodeURIComponent(this.proxy.password || '')}`).toString('base64');
24597
- requestOptions.headers['proxy-authorization'] = `Basic ${base64}`;
24598
- }
24599
-
24600
- // Necessary for the TLS check with the proxy to succeed.
24601
- if (this.proxy.protocol === 'https:') {
24602
- requestOptions.servername = this.proxy.hostname;
24603
- }
24604
- const request = (this.proxy.protocol === 'http:' ? http : https).request(requestOptions);
24605
- request.once('connect', (response, socket, head) => {
24606
- request.removeAllListeners();
24607
- socket.removeAllListeners();
24608
- if (response.statusCode === 200) {
24609
- const secureSocket = super.createConnection({
24610
- ...options,
24611
- socket
24612
- });
24613
- callback(null, secureSocket);
24614
- } else {
24615
- socket.destroy();
24616
- callback(new Error(`Bad response: ${response.statusCode}`), null);
24617
- }
24618
- });
24619
- request.once('timeout', () => {
24620
- request.destroy(new Error('Proxy timeout'));
24621
- });
24622
- request.once('error', err => {
24623
- request.removeAllListeners();
24624
- callback(err, null);
24625
- });
24626
- request.end();
24627
- }
24628
- }
24629
- hpagent = {
24630
- HttpProxyAgent,
24631
- HttpsProxyAgent
24632
- };
24633
- return hpagent;
24634
- }
24635
-
24636
- var hpagentExports = requireHpagent();
24637
-
24638
- const HttpProxyAgent = hpagentExports.HttpProxyAgent;
24639
- const HttpsProxyAgent = hpagentExports.HttpsProxyAgent;
24640
-
24641
24641
  var isInteractive;
24642
24642
  var hasRequiredIsInteractive;
24643
24643
 
@@ -24650,7 +24650,7 @@ function requireIsInteractive () {
24650
24650
  if (_process === undefined) {
24651
24651
  // Use non-'node:' prefixed require to avoid Webpack errors.
24652
24652
  // eslint-disable-next-line n/prefer-node-protocol
24653
- _process = require$$0$9;
24653
+ _process = require$$0$a;
24654
24654
  }
24655
24655
  return _process
24656
24656
  }
@@ -32279,7 +32279,7 @@ var import_sentinels=require_sentinels();var import_predicates=require_predicate
32279
32279
  * into an actionable error message. Shared by both multipart body builders so
32280
32280
  * the error-message shape (and the coverage-ignore justification) lives in
32281
32281
  * one place.
32282
- */const requireHere=(0, node_module.createRequire)(require$$0$b.pathToFileURL(__filename).href);let formDataCtor;function getFormData(){if(formDataCtor===void 0)formDataCtor=requireHere("form-data");return formDataCtor;}function openFileReadStreamOrThrow(absPath){try{return (0,node_fs.createReadStream)(absPath,{highWaterMark:1024*1024});}catch(e){/* c8 ignore start - createReadStream throws synchronously only for type validation errors; file system errors (ENOENT, EISDIR) are emitted asynchronously */let message=`Failed to read file: ${absPath}`;if((0, import_predicates$1.isErrnoException)(e)){if(e.code==="ENOENT")message+="\n→ File does not exist. Check the file path and try again.";else if(e.code==="EACCES")message+=`\n→ Permission denied. Run: chmod +r "${absPath}"`;else if(e.code==="EISDIR")message+="\n→ Expected a file but found a directory.";else if(e.code)message+=`\n→ Error code: ${e.code}`;}throw new Error(message,{cause:e});}}//#endregion
32282
+ */const requireHere=(0, node_module.createRequire)(require$$0$9.pathToFileURL(__filename).href);let formDataCtor;function getFormData(){if(formDataCtor===void 0)formDataCtor=requireHere("form-data");return formDataCtor;}function openFileReadStreamOrThrow(absPath){try{return (0,node_fs.createReadStream)(absPath,{highWaterMark:1024*1024});}catch(e){/* c8 ignore start - createReadStream throws synchronously only for type validation errors; file system errors (ENOENT, EISDIR) are emitted asynchronously */let message=`Failed to read file: ${absPath}`;if((0, import_predicates$1.isErrnoException)(e)){if(e.code==="ENOENT")message+="\n→ File does not exist. Check the file path and try again.";else if(e.code==="EACCES")message+=`\n→ Permission denied. Run: chmod +r "${absPath}"`;else if(e.code==="EISDIR")message+="\n→ Expected a file but found a directory.";else if(e.code)message+=`\n→ Error code: ${e.code}`;}throw new Error(message,{cause:e});}}//#endregion
32283
32283
  //#region src/utils.mts
32284
32284
  /**
32285
32285
  * @file Utility functions for Socket SDK operations. Provides URL
@@ -55008,7 +55008,7 @@ var hasRequiredParseUrl$1;
55008
55008
  function requireParseUrl$1() {
55009
55009
  if (hasRequiredParseUrl$1) return parseUrl$1;
55010
55010
  hasRequiredParseUrl$1 = 1;
55011
- const url = require$$0$b;
55011
+ const url = require$$0$9;
55012
55012
  const lastIndexOfBefore = (str, char, beforeChar) => {
55013
55013
  const startPosition = str.indexOf(beforeChar);
55014
55014
  return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
@@ -88449,7 +88449,7 @@ function requireClone$1() {
88449
88449
  // to handle scp:// urls
88450
88450
  const {
88451
88451
  parse
88452
- } = require$$0$b; // eslint-disable-line node/no-deprecated-api
88452
+ } = require$$0$9; // eslint-disable-line node/no-deprecated-api
88453
88453
  const path = require$$0$f;
88454
88454
  const getRevs = requireRevs$1();
88455
88455
  const spawn = requireSpawn$1();
@@ -91224,7 +91224,7 @@ function requirePolyfill() {
91224
91224
  } = require$$0$f;
91225
91225
  const {
91226
91226
  fileURLToPath
91227
- } = require$$0$b;
91227
+ } = require$$0$9;
91228
91228
  const defaultOptions = {
91229
91229
  dereference: false,
91230
91230
  errorOnExist: false,
@@ -94981,7 +94981,7 @@ function requireIndex_min() {
94981
94981
  });
94982
94982
  f.ZstdDecompress = f.ZstdCompress = f.BrotliDecompress = f.BrotliCompress = f.Unzip = f.InflateRaw = f.DeflateRaw = f.Gunzip = f.Gzip = f.Inflate = f.Deflate = f.Zlib = f.ZlibError = f.constants = void 0;
94983
94983
  var ps = ia(require$$6$4),
94984
- Ae = require$$0$a,
94984
+ Ae = require$$0$b,
94985
94985
  sa = We(),
94986
94986
  qr = ta(require$$5$2),
94987
94987
  te = fs(),
@@ -100032,7 +100032,7 @@ function requireCommonjs$7() {
100032
100032
  });
100033
100033
  exports.ZstdDecompress = exports.ZstdCompress = exports.BrotliDecompress = exports.BrotliCompress = exports.Unzip = exports.InflateRaw = exports.DeflateRaw = exports.Gunzip = exports.Gzip = exports.Inflate = exports.Deflate = exports.Zlib = exports.ZlibError = exports.constants = void 0;
100034
100034
  const assert_1 = __importDefault(require$$6$4);
100035
- const buffer_1 = require$$0$a;
100035
+ const buffer_1 = require$$0$b;
100036
100036
  const minipass_1 = requireCommonjs$a();
100037
100037
  const realZlib = __importStar(require$$5$2);
100038
100038
  const constants_js_1 = requireConstants$3();
@@ -100566,7 +100566,7 @@ function requireShared() {
100566
100566
 
100567
100567
  // Use non-'node:' prefixed require to avoid Webpack errors.
100568
100568
  // eslint-disable-next-line n/prefer-node-protocol
100569
- const builtinBufferExports = require$$0$a;
100569
+ const builtinBufferExports = require$$0$b;
100570
100570
  const builtinBufferExportsDescMap = Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(builtinBufferExports)).filter(({
100571
100571
  0: key
100572
100572
  }) => key !== 'Buffer' && key !== 'SlowBuffer'));
@@ -100598,7 +100598,7 @@ function requireSafer() {
100598
100598
  transcode
100599
100599
  // Use non-'node:' prefixed require to avoid Webpack errors.
100600
100600
  // eslint-disable-next-line n/prefer-node-protocol
100601
- } = require$$0$a;
100601
+ } = require$$0$b;
100602
100602
  const {
100603
100603
  builtinBufferExportsDescMap
100604
100604
  } = /*@__PURE__*/requireShared();
@@ -112278,7 +112278,7 @@ function requireRequest$1() {
112278
112278
  hasRequiredRequest$1 = 1;
112279
112279
  const {
112280
112280
  URL
112281
- } = require$$0$b;
112281
+ } = require$$0$9;
112282
112282
  const {
112283
112283
  Minipass
112284
112284
  } = requireCommonjs$a();
@@ -112556,7 +112556,7 @@ function requireLib$q() {
112556
112556
  hasRequiredLib$q = 1;
112557
112557
  const {
112558
112558
  URL
112559
- } = require$$0$b;
112559
+ } = require$$0$9;
112560
112560
  const http = require$$1$7;
112561
112561
  const https = require$$2$4;
112562
112562
  const zlib = requireCommonjs$7();
@@ -113430,7 +113430,7 @@ function requireAuth$1() {
113430
113430
  const npa = requireNpa();
113431
113431
  const {
113432
113432
  URL
113433
- } = require$$0$b;
113433
+ } = require$$0$9;
113434
113434
 
113435
113435
  // Find the longest registry key that is used for some kind of auth
113436
113436
  // in the options. Returns the registry key and the auth config.
@@ -115611,7 +115611,7 @@ function requireKey$5() {
115611
115611
  const {
115612
115612
  URL,
115613
115613
  format
115614
- } = require$$0$b;
115614
+ } = require$$0$9;
115615
115615
 
115616
115616
  // options passed to url.format() when generating a key
115617
115617
  const formatOptions = {
@@ -116978,7 +116978,7 @@ function requireDist$b() {
116978
116978
  const debug_1 = __importDefault(requireSrc());
116979
116979
  const events_1 = require$$0$i;
116980
116980
  const agent_base_1 = requireDist$c();
116981
- const url_1 = require$$0$b;
116981
+ const url_1 = require$$0$9;
116982
116982
  const debug = (0, debug_1.default)('http-proxy-agent');
116983
116983
  /**
116984
116984
  * The `HttpProxyAgent` implements an HTTP Agent subclass that connects
@@ -117242,7 +117242,7 @@ function requireDist$a() {
117242
117242
  const assert_1 = __importDefault(require$$6$4);
117243
117243
  const debug_1 = __importDefault(requireSrc());
117244
117244
  const agent_base_1 = requireDist$c();
117245
- const url_1 = require$$0$b;
117245
+ const url_1 = require$$0$9;
117246
117246
  const parse_proxy_response_1 = requireParseProxyResponse();
117247
117247
  const debug = (0, debug_1.default)('https-proxy-agent');
117248
117248
  const setServernameFromNonIpHost = options => {
@@ -117407,7 +117407,7 @@ function requireUtils$3() {
117407
117407
  Object.defineProperty(utils$3, "__esModule", {
117408
117408
  value: true
117409
117409
  });
117410
- const buffer_1 = require$$0$a;
117410
+ const buffer_1 = require$$0$b;
117411
117411
  /**
117412
117412
  * Error strings
117413
117413
  */
@@ -121710,7 +121710,7 @@ function requireDist$9() {
121710
121710
  const dns = __importStar(require$$0$o);
121711
121711
  const net = __importStar(require$$0$p);
121712
121712
  const tls = __importStar(require$$1$d);
121713
- const url_1 = require$$0$b;
121713
+ const url_1 = require$$0$9;
121714
121714
  const debug = (0, debug_1.default)('socks-proxy-agent');
121715
121715
  const setServernameFromNonIpHost = options => {
121716
121716
  if (options.servername === undefined && options.host && !net.isIP(options.host)) {
@@ -122458,7 +122458,7 @@ function requireEntry$4() {
122458
122458
  } = requireCommonjs$a();
122459
122459
  const MinipassFlush = requireMinipassFlush();
122460
122460
  const cacache = requireLib$x();
122461
- const url = require$$0$b;
122461
+ const url = require$$0$9;
122462
122462
  const CachingMinipassPipeline = requirePipeline$2();
122463
122463
  const CachePolicy = requirePolicy$3();
122464
122464
  const cacheKey = requireKey$5();
@@ -122953,7 +122953,7 @@ function requireFetch$3() {
122953
122953
  Request,
122954
122954
  isRedirect
122955
122955
  } = requireLib$q();
122956
- const url = require$$0$b;
122956
+ const url = require$$0$9;
122957
122957
  const CachePolicy = requirePolicy$3();
122958
122958
  const cache = requireCache$2();
122959
122959
  const remote = requireRemote$3();
@@ -123830,7 +123830,7 @@ function requireLib$m() {
123830
123830
  const JSONStream = requireJsonStream$1();
123831
123831
  const npa = requireNpa();
123832
123832
  const qs = require$$6$5;
123833
- const url = require$$0$b;
123833
+ const url = require$$0$9;
123834
123834
  const zlib = requireCommonjs$7();
123835
123835
  const {
123836
123836
  Minipass
@@ -142360,7 +142360,7 @@ function requireRequest() {
142360
142360
  hasRequiredRequest = 1;
142361
142361
  const {
142362
142362
  URL
142363
- } = require$$0$b;
142363
+ } = require$$0$9;
142364
142364
  const {
142365
142365
  Minipass
142366
142366
  } = requireCommonjs$6();
@@ -142638,7 +142638,7 @@ function requireLib$j() {
142638
142638
  hasRequiredLib$j = 1;
142639
142639
  const {
142640
142640
  URL
142641
- } = require$$0$b;
142641
+ } = require$$0$9;
142642
142642
  const http = require$$1$7;
142643
142643
  const https = require$$2$4;
142644
142644
  const zlib = requireCommonjs$7();
@@ -143764,7 +143764,7 @@ function requireKey$4() {
143764
143764
  const {
143765
143765
  URL,
143766
143766
  format
143767
- } = require$$0$b;
143767
+ } = require$$0$9;
143768
143768
 
143769
143769
  // options passed to url.format() when generating a key
143770
143770
  const formatOptions = {
@@ -144468,7 +144468,7 @@ function requireEntry$3() {
144468
144468
  } = requireCommonjs$6();
144469
144469
  const MinipassFlush = requireMinipassFlush();
144470
144470
  const cacache = requireLib$x();
144471
- const url = require$$0$b;
144471
+ const url = require$$0$9;
144472
144472
  const CachingMinipassPipeline = requirePipeline$1();
144473
144473
  const CachePolicy = requirePolicy$2();
144474
144474
  const cacheKey = requireKey$4();
@@ -144963,7 +144963,7 @@ function requireFetch$2() {
144963
144963
  Request,
144964
144964
  isRedirect
144965
144965
  } = requireLib$j();
144966
- const url = require$$0$b;
144966
+ const url = require$$0$9;
144967
144967
  const CachePolicy = requirePolicy$2();
144968
144968
  const cache = requireCache$1();
144969
144969
  const remote = requireRemote$1();
@@ -151552,7 +151552,7 @@ function requireUrl() {
151552
151552
  value: true
151553
151553
  });
151554
151554
  url.join = join;
151555
- const url_1 = require$$0$b;
151555
+ const url_1 = require$$0$9;
151556
151556
  function join(base, path) {
151557
151557
  return new url_1.URL(ensureTrailingSlash(base) + removeLeadingSlash(path)).toString();
151558
151558
  }
@@ -155607,7 +155607,7 @@ function requireAuth() {
155607
155607
  const npa = requireNpa();
155608
155608
  const {
155609
155609
  URL
155610
- } = require$$0$b;
155610
+ } = require$$0$9;
155611
155611
 
155612
155612
  // Find the longest registry key that is used for some kind of auth
155613
155613
  // in the options. Returns the registry key and the auth config.
@@ -162444,7 +162444,7 @@ function requireKey() {
162444
162444
  const {
162445
162445
  URL,
162446
162446
  format
162447
- } = require$$0$b;
162447
+ } = require$$0$9;
162448
162448
 
162449
162449
  // options passed to url.format() when generating a key
162450
162450
  const formatOptions = {
@@ -163196,7 +163196,7 @@ function requireEntry() {
163196
163196
  } = requireCommonjs$a();
163197
163197
  const MinipassFlush = requireMinipassFlush();
163198
163198
  const cacache = requireLib$c();
163199
- const url = require$$0$b;
163199
+ const url = require$$0$9;
163200
163200
  const CachingMinipassPipeline = requirePipeline();
163201
163201
  const CachePolicy = requirePolicy();
163202
163202
  const cacheKey = requireKey();
@@ -163691,7 +163691,7 @@ function requireFetch() {
163691
163691
  Request,
163692
163692
  isRedirect
163693
163693
  } = requireLib$q();
163694
- const url = require$$0$b;
163694
+ const url = require$$0$9;
163695
163695
  const CachePolicy = requirePolicy();
163696
163696
  const cache = requireCache();
163697
163697
  const remote = requireRemote();
@@ -164059,7 +164059,7 @@ function requireLib$9() {
164059
164059
  const JSONStream = requireJsonStream();
164060
164060
  const npa = requireNpa();
164061
164061
  const qs = require$$6$5;
164062
- const url = require$$0$b;
164062
+ const url = require$$0$9;
164063
164063
  const zlib = requireCommonjs$7();
164064
164064
  const {
164065
164065
  Minipass
@@ -167479,7 +167479,7 @@ var hasRequiredParseUrl;
167479
167479
  function requireParseUrl() {
167480
167480
  if (hasRequiredParseUrl) return parseUrl;
167481
167481
  hasRequiredParseUrl = 1;
167482
- const url = require$$0$b;
167482
+ const url = require$$0$9;
167483
167483
  const lastIndexOfBefore = (str, char, beforeChar) => {
167484
167484
  const startPosition = str.indexOf(beforeChar);
167485
167485
  return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
@@ -168537,7 +168537,7 @@ function requireClone() {
168537
168537
  // to handle scp:// urls
168538
168538
  const {
168539
168539
  parse
168540
- } = require$$0$b; // eslint-disable-line node/no-deprecated-api
168540
+ } = require$$0$9; // eslint-disable-line node/no-deprecated-api
168541
168541
  const path = require$$0$f;
168542
168542
  const getRevs = requireRevs();
168543
168543
  const spawn = requireSpawn();
@@ -181808,5 +181808,5 @@ exports.terminalLinkExports = terminalLinkExports;
181808
181808
  exports.updater = updater$1;
181809
181809
  exports.yargsParser = yargsParser;
181810
181810
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
181811
- //# debugId=24037987-4a39-49cd-93b5-39c3c0e79097
181811
+ //# debugId=781718f2-42db-4bf5-9ffa-e006e1dd7a7c
181812
181812
  //# sourceMappingURL=vendor.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket",
3
- "version": "1.1.174",
3
+ "version": "1.1.176",
4
4
  "description": "CLI for Socket.dev",
5
5
  "contentPolicy": {
6
6
  "class": "dual-use"
@@ -46,7 +46,7 @@
46
46
  "@babel/preset-typescript": "7.27.1",
47
47
  "@babel/runtime": "7.28.4",
48
48
  "@biomejs/biome": "2.2.4",
49
- "@coana-tech/cli": "15.10.44",
49
+ "@coana-tech/cli": "15.10.45",
50
50
  "@cyclonedx/cdxgen": "12.1.2",
51
51
  "@dotenvx/dotenvx": "1.49.0",
52
52
  "@eslint/compat": "1.3.2",