@nasl/cli 0.3.1 → 0.3.2

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.
@@ -26454,7 +26454,7 @@ function setProxy(options, configProxy, location) {
26454
26454
  options.headers['Proxy-Authorization'] = 'Basic ' + base64;
26455
26455
  }
26456
26456
 
26457
- options.headers.host = options.hostname + (options.port ? ':' + options.port : '');
26457
+ options.headers.host = options.hostname + (options.port ? ':' + options.port : options.protocol === 'https:' ? ':443' : '');
26458
26458
  const proxyHost = proxy.hostname || proxy.host;
26459
26459
  options.hostname = proxyHost;
26460
26460
  // Replace 'host' since options is not a URL object
@@ -26871,7 +26871,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
26871
26871
  } else {
26872
26872
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
26873
26873
  options.port = parsed.port;
26874
- setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : parsed.protocol === 'https:' ? '443' : '') + options.path);
26874
+ setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
26875
26875
  }
26876
26876
 
26877
26877
  let transport;
@@ -38445,7 +38445,7 @@ async function tryCompile(entry, options) {
38445
38445
  }
38446
38446
  }
38447
38447
 
38448
- var version = "0.3.1";
38448
+ var version = "0.3.2";
38449
38449
  var pkg = {
38450
38450
  version: version};
38451
38451