@nasl/cli 0.1.7 → 0.1.8

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.
@@ -14,7 +14,7 @@ import require$$0$4 from 'util';
14
14
  import require$$5 from 'assert';
15
15
  import require$$3 from 'http';
16
16
  import require$$4$1 from 'https';
17
- import require$$0$6, { URL as URL$1 } from 'url';
17
+ import require$$0$6 from 'url';
18
18
  import require$$8 from 'crypto';
19
19
  import http2 from 'http2';
20
20
  import zlib from 'zlib';
@@ -26831,7 +26831,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
26831
26831
  } else {
26832
26832
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
26833
26833
  options.port = parsed.port;
26834
- setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
26834
+ setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : parsed.protocol === 'https:' ? '443' : '') + options.path);
26835
26835
  }
26836
26836
 
26837
26837
  let transport;
@@ -28765,22 +28765,10 @@ const {
28765
28765
  } = axios;
28766
28766
 
28767
28767
  function createAxios(baseURL) {
28768
- // 解析 baseURL 提取 hostname 和 port
28769
- const url = new URL$1(baseURL);
28770
- const hostname = url.hostname;
28771
- const protocol = url.protocol;
28772
- // 确定端口:如果 URL 中没有指定端口,根据协议使用默认端口
28773
- let port = url.port;
28774
- if (!port) {
28775
- port = protocol === 'https:' ? '443' : '80';
28776
- }
28777
- // 构建 Host 头:hostname:port
28778
- const hostHeader = `${hostname}:${port}`;
28779
28768
  return axios.create({
28780
28769
  baseURL,
28781
28770
  headers: {
28782
28771
  'Content-Type': 'application/json',
28783
- 'Host': hostHeader,
28784
28772
  },
28785
28773
  timeout: 120000,
28786
28774
  });
@@ -37682,7 +37670,7 @@ async function tryCompile(entry, options) {
37682
37670
  }
37683
37671
  }
37684
37672
 
37685
- var version = "0.1.7";
37673
+ var version = "0.1.8";
37686
37674
  var pkg = {
37687
37675
  version: version};
37688
37676