@nasl/cli 0.3.1 → 0.3.3
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 +4 -4
- package/dist/bin/nasl.mjs.map +1 -1
- package/dist/bin/naslc.mjs +4 -4
- package/dist/bin/naslc.mjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/out/apis/createAxios.js +1 -1
- package/package.json +2 -3
package/dist/bin/naslc.mjs
CHANGED
|
@@ -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 :
|
|
26874
|
+
setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
|
|
26875
26875
|
}
|
|
26876
26876
|
|
|
26877
26877
|
let transport;
|
|
@@ -29078,7 +29078,7 @@ async function createAxios(options) {
|
|
|
29078
29078
|
const instance = axios.create({
|
|
29079
29079
|
baseURL,
|
|
29080
29080
|
headers,
|
|
29081
|
-
timeout:
|
|
29081
|
+
timeout: 480000,
|
|
29082
29082
|
});
|
|
29083
29083
|
const oldPost = instance.post;
|
|
29084
29084
|
instance.post = async (url, data, config) => {
|
|
@@ -38445,7 +38445,7 @@ async function tryCompile(entry, options) {
|
|
|
38445
38445
|
}
|
|
38446
38446
|
}
|
|
38447
38447
|
|
|
38448
|
-
var version = "0.3.
|
|
38448
|
+
var version = "0.3.3";
|
|
38449
38449
|
var pkg = {
|
|
38450
38450
|
version: version};
|
|
38451
38451
|
|