@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.
package/dist/bin/nasl.mjs CHANGED
@@ -26524,7 +26524,7 @@ function setProxy(options, configProxy, location) {
26524
26524
  options.headers['Proxy-Authorization'] = 'Basic ' + base64;
26525
26525
  }
26526
26526
 
26527
- options.headers.host = options.hostname + (options.port ? ':' + options.port : '');
26527
+ options.headers.host = options.hostname + (options.port ? ':' + options.port : options.protocol === 'https:' ? ':443' : '');
26528
26528
  const proxyHost = proxy.hostname || proxy.host;
26529
26529
  options.hostname = proxyHost;
26530
26530
  // Replace 'host' since options is not a URL object
@@ -26941,7 +26941,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
26941
26941
  } else {
26942
26942
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
26943
26943
  options.port = parsed.port;
26944
- setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : parsed.protocol === 'https:' ? '443' : '') + options.path);
26944
+ setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
26945
26945
  }
26946
26946
 
26947
26947
  let transport;
@@ -39384,7 +39384,7 @@ async function installByJSON(json, options) {
39384
39384
  logger.success(`成功写入 ${writtenCount} 个依赖文件到 ${config.srcDir} 目录`);
39385
39385
  }
39386
39386
 
39387
- var version = "0.3.1";
39387
+ var version = "0.3.2";
39388
39388
  var pkg = {
39389
39389
  version: version};
39390
39390