@coana-tech/cli 14.12.25 → 14.12.26
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/cli.mjs +394 -273
- package/package.json +1 -1
- package/reachability-analyzers-cli.mjs +216 -95
- package/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
package/package.json
CHANGED
|
@@ -17,8 +17,8 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
17
17
|
var __esm = (fn, res) => function __init() {
|
|
18
18
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
19
19
|
};
|
|
20
|
-
var __commonJS = (cb,
|
|
21
|
-
return
|
|
20
|
+
var __commonJS = (cb, mod2) => function __require2() {
|
|
21
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
22
22
|
};
|
|
23
23
|
var __export = (target, all3) => {
|
|
24
24
|
for (var name2 in all3)
|
|
@@ -32,15 +32,15 @@ var __copyProps = (to, from, except, desc2) => {
|
|
|
32
32
|
}
|
|
33
33
|
return to;
|
|
34
34
|
};
|
|
35
|
-
var __toESM = (
|
|
35
|
+
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
36
36
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
37
37
|
// file that has been converted to a CommonJS file using a Babel-
|
|
38
38
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
39
39
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
40
|
-
isNodeMode || !
|
|
41
|
-
|
|
40
|
+
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
41
|
+
mod2
|
|
42
42
|
));
|
|
43
|
-
var __toCommonJS = (
|
|
43
|
+
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
|
|
44
44
|
|
|
45
45
|
// ../../node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/error.js
|
|
46
46
|
var require_error = __commonJS({
|
|
@@ -35471,6 +35471,115 @@ var require_is_retry_allowed = __commonJS({
|
|
|
35471
35471
|
}
|
|
35472
35472
|
});
|
|
35473
35473
|
|
|
35474
|
+
// ../../node_modules/.pnpm/hpagent@1.2.0/node_modules/hpagent/index.js
|
|
35475
|
+
var require_hpagent = __commonJS({
|
|
35476
|
+
"../../node_modules/.pnpm/hpagent@1.2.0/node_modules/hpagent/index.js"(exports, module) {
|
|
35477
|
+
"use strict";
|
|
35478
|
+
var https2 = __require("https");
|
|
35479
|
+
var http2 = __require("http");
|
|
35480
|
+
var { URL: URL3 } = __require("url");
|
|
35481
|
+
var HttpProxyAgent2 = class extends http2.Agent {
|
|
35482
|
+
constructor(options) {
|
|
35483
|
+
const { proxy, proxyRequestOptions, ...opts } = options;
|
|
35484
|
+
super(opts);
|
|
35485
|
+
this.proxy = typeof proxy === "string" ? new URL3(proxy) : proxy;
|
|
35486
|
+
this.proxyRequestOptions = proxyRequestOptions || {};
|
|
35487
|
+
}
|
|
35488
|
+
createConnection(options, callback) {
|
|
35489
|
+
const requestOptions = {
|
|
35490
|
+
...this.proxyRequestOptions,
|
|
35491
|
+
method: "CONNECT",
|
|
35492
|
+
host: this.proxy.hostname,
|
|
35493
|
+
port: this.proxy.port,
|
|
35494
|
+
path: `${options.host}:${options.port}`,
|
|
35495
|
+
setHost: false,
|
|
35496
|
+
headers: { ...this.proxyRequestOptions.headers, connection: this.keepAlive ? "keep-alive" : "close", host: `${options.host}:${options.port}` },
|
|
35497
|
+
agent: false,
|
|
35498
|
+
timeout: options.timeout || 0
|
|
35499
|
+
};
|
|
35500
|
+
if (this.proxy.username || this.proxy.password) {
|
|
35501
|
+
const base64 = Buffer.from(`${decodeURIComponent(this.proxy.username || "")}:${decodeURIComponent(this.proxy.password || "")}`).toString("base64");
|
|
35502
|
+
requestOptions.headers["proxy-authorization"] = `Basic ${base64}`;
|
|
35503
|
+
}
|
|
35504
|
+
if (this.proxy.protocol === "https:") {
|
|
35505
|
+
requestOptions.servername = this.proxy.hostname;
|
|
35506
|
+
}
|
|
35507
|
+
const request = (this.proxy.protocol === "http:" ? http2 : https2).request(requestOptions);
|
|
35508
|
+
request.once("connect", (response, socket, head) => {
|
|
35509
|
+
request.removeAllListeners();
|
|
35510
|
+
socket.removeAllListeners();
|
|
35511
|
+
if (response.statusCode === 200) {
|
|
35512
|
+
callback(null, socket);
|
|
35513
|
+
} else {
|
|
35514
|
+
socket.destroy();
|
|
35515
|
+
callback(new Error(`Bad response: ${response.statusCode}`), null);
|
|
35516
|
+
}
|
|
35517
|
+
});
|
|
35518
|
+
request.once("timeout", () => {
|
|
35519
|
+
request.destroy(new Error("Proxy timeout"));
|
|
35520
|
+
});
|
|
35521
|
+
request.once("error", (err) => {
|
|
35522
|
+
request.removeAllListeners();
|
|
35523
|
+
callback(err, null);
|
|
35524
|
+
});
|
|
35525
|
+
request.end();
|
|
35526
|
+
}
|
|
35527
|
+
};
|
|
35528
|
+
var HttpsProxyAgent2 = class extends https2.Agent {
|
|
35529
|
+
constructor(options) {
|
|
35530
|
+
const { proxy, proxyRequestOptions, ...opts } = options;
|
|
35531
|
+
super(opts);
|
|
35532
|
+
this.proxy = typeof proxy === "string" ? new URL3(proxy) : proxy;
|
|
35533
|
+
this.proxyRequestOptions = proxyRequestOptions || {};
|
|
35534
|
+
}
|
|
35535
|
+
createConnection(options, callback) {
|
|
35536
|
+
const requestOptions = {
|
|
35537
|
+
...this.proxyRequestOptions,
|
|
35538
|
+
method: "CONNECT",
|
|
35539
|
+
host: this.proxy.hostname,
|
|
35540
|
+
port: this.proxy.port,
|
|
35541
|
+
path: `${options.host}:${options.port}`,
|
|
35542
|
+
setHost: false,
|
|
35543
|
+
headers: { ...this.proxyRequestOptions.headers, connection: this.keepAlive ? "keep-alive" : "close", host: `${options.host}:${options.port}` },
|
|
35544
|
+
agent: false,
|
|
35545
|
+
timeout: options.timeout || 0
|
|
35546
|
+
};
|
|
35547
|
+
if (this.proxy.username || this.proxy.password) {
|
|
35548
|
+
const base64 = Buffer.from(`${decodeURIComponent(this.proxy.username || "")}:${decodeURIComponent(this.proxy.password || "")}`).toString("base64");
|
|
35549
|
+
requestOptions.headers["proxy-authorization"] = `Basic ${base64}`;
|
|
35550
|
+
}
|
|
35551
|
+
if (this.proxy.protocol === "https:") {
|
|
35552
|
+
requestOptions.servername = this.proxy.hostname;
|
|
35553
|
+
}
|
|
35554
|
+
const request = (this.proxy.protocol === "http:" ? http2 : https2).request(requestOptions);
|
|
35555
|
+
request.once("connect", (response, socket, head) => {
|
|
35556
|
+
request.removeAllListeners();
|
|
35557
|
+
socket.removeAllListeners();
|
|
35558
|
+
if (response.statusCode === 200) {
|
|
35559
|
+
const secureSocket = super.createConnection({ ...options, socket });
|
|
35560
|
+
callback(null, secureSocket);
|
|
35561
|
+
} else {
|
|
35562
|
+
socket.destroy();
|
|
35563
|
+
callback(new Error(`Bad response: ${response.statusCode}`), null);
|
|
35564
|
+
}
|
|
35565
|
+
});
|
|
35566
|
+
request.once("timeout", () => {
|
|
35567
|
+
request.destroy(new Error("Proxy timeout"));
|
|
35568
|
+
});
|
|
35569
|
+
request.once("error", (err) => {
|
|
35570
|
+
request.removeAllListeners();
|
|
35571
|
+
callback(err, null);
|
|
35572
|
+
});
|
|
35573
|
+
request.end();
|
|
35574
|
+
}
|
|
35575
|
+
};
|
|
35576
|
+
module.exports = {
|
|
35577
|
+
HttpProxyAgent: HttpProxyAgent2,
|
|
35578
|
+
HttpsProxyAgent: HttpsProxyAgent2
|
|
35579
|
+
};
|
|
35580
|
+
}
|
|
35581
|
+
});
|
|
35582
|
+
|
|
35474
35583
|
// ../../node_modules/.pnpm/packageurl-js@2.0.1/node_modules/packageurl-js/src/error.js
|
|
35475
35584
|
var require_error2 = __commonJS({
|
|
35476
35585
|
"../../node_modules/.pnpm/packageurl-js@2.0.1/node_modules/packageurl-js/src/error.js"(exports, module) {
|
|
@@ -36646,13 +36755,13 @@ var require_command2 = __commonJS({
|
|
|
36646
36755
|
} : function(o, v) {
|
|
36647
36756
|
o["default"] = v;
|
|
36648
36757
|
});
|
|
36649
|
-
var __importStar = exports && exports.__importStar || function(
|
|
36650
|
-
if (
|
|
36758
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
36759
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
36651
36760
|
var result = {};
|
|
36652
|
-
if (
|
|
36653
|
-
for (var k in
|
|
36761
|
+
if (mod2 != null) {
|
|
36762
|
+
for (var k in mod2) if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
36654
36763
|
}
|
|
36655
|
-
__setModuleDefault(result,
|
|
36764
|
+
__setModuleDefault(result, mod2);
|
|
36656
36765
|
return result;
|
|
36657
36766
|
};
|
|
36658
36767
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -37061,13 +37170,13 @@ var require_file_command = __commonJS({
|
|
|
37061
37170
|
} : function(o, v) {
|
|
37062
37171
|
o["default"] = v;
|
|
37063
37172
|
});
|
|
37064
|
-
var __importStar = exports && exports.__importStar || function(
|
|
37065
|
-
if (
|
|
37173
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
37174
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
37066
37175
|
var result = {};
|
|
37067
|
-
if (
|
|
37068
|
-
for (var k in
|
|
37176
|
+
if (mod2 != null) {
|
|
37177
|
+
for (var k in mod2) if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
37069
37178
|
}
|
|
37070
|
-
__setModuleDefault(result,
|
|
37179
|
+
__setModuleDefault(result, mod2);
|
|
37071
37180
|
return result;
|
|
37072
37181
|
};
|
|
37073
37182
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -37110,7 +37219,7 @@ var require_proxy = __commonJS({
|
|
|
37110
37219
|
"use strict";
|
|
37111
37220
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37112
37221
|
exports.checkBypass = exports.getProxyUrl = void 0;
|
|
37113
|
-
function
|
|
37222
|
+
function getProxyUrl2(reqUrl) {
|
|
37114
37223
|
const usingSsl = reqUrl.protocol === "https:";
|
|
37115
37224
|
if (checkBypass(reqUrl)) {
|
|
37116
37225
|
return void 0;
|
|
@@ -37133,7 +37242,7 @@ var require_proxy = __commonJS({
|
|
|
37133
37242
|
return void 0;
|
|
37134
37243
|
}
|
|
37135
37244
|
}
|
|
37136
|
-
exports.getProxyUrl =
|
|
37245
|
+
exports.getProxyUrl = getProxyUrl2;
|
|
37137
37246
|
function checkBypass(reqUrl) {
|
|
37138
37247
|
if (!reqUrl.hostname) {
|
|
37139
37248
|
return false;
|
|
@@ -44130,13 +44239,13 @@ var require_client = __commonJS({
|
|
|
44130
44239
|
var EMPTY_BUF = Buffer.alloc(0);
|
|
44131
44240
|
async function lazyllhttp() {
|
|
44132
44241
|
const llhttpWasmData = process.env.JEST_WORKER_ID ? require_llhttp_wasm() : void 0;
|
|
44133
|
-
let
|
|
44242
|
+
let mod2;
|
|
44134
44243
|
try {
|
|
44135
|
-
|
|
44244
|
+
mod2 = await WebAssembly.compile(Buffer.from(require_llhttp_simd_wasm(), "base64"));
|
|
44136
44245
|
} catch (e) {
|
|
44137
|
-
|
|
44246
|
+
mod2 = await WebAssembly.compile(Buffer.from(llhttpWasmData || require_llhttp_wasm(), "base64"));
|
|
44138
44247
|
}
|
|
44139
|
-
return await WebAssembly.instantiate(
|
|
44248
|
+
return await WebAssembly.instantiate(mod2, {
|
|
44140
44249
|
env: {
|
|
44141
44250
|
/* eslint-disable camelcase */
|
|
44142
44251
|
wasm_on_url: (p, at, len) => {
|
|
@@ -54191,13 +54300,13 @@ var require_lib = __commonJS({
|
|
|
54191
54300
|
} : function(o, v) {
|
|
54192
54301
|
o["default"] = v;
|
|
54193
54302
|
});
|
|
54194
|
-
var __importStar = exports && exports.__importStar || function(
|
|
54195
|
-
if (
|
|
54303
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
54304
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
54196
54305
|
var result = {};
|
|
54197
|
-
if (
|
|
54198
|
-
for (var k in
|
|
54306
|
+
if (mod2 != null) {
|
|
54307
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
54199
54308
|
}
|
|
54200
|
-
__setModuleDefault(result,
|
|
54309
|
+
__setModuleDefault(result, mod2);
|
|
54201
54310
|
return result;
|
|
54202
54311
|
};
|
|
54203
54312
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -54273,11 +54382,11 @@ var require_lib = __commonJS({
|
|
|
54273
54382
|
(function(MediaTypes2) {
|
|
54274
54383
|
MediaTypes2["ApplicationJson"] = "application/json";
|
|
54275
54384
|
})(MediaTypes || (exports.MediaTypes = MediaTypes = {}));
|
|
54276
|
-
function
|
|
54277
|
-
const
|
|
54278
|
-
return
|
|
54385
|
+
function getProxyUrl2(serverUrl) {
|
|
54386
|
+
const proxyUrl2 = pm.getProxyUrl(new URL(serverUrl));
|
|
54387
|
+
return proxyUrl2 ? proxyUrl2.href : "";
|
|
54279
54388
|
}
|
|
54280
|
-
exports.getProxyUrl =
|
|
54389
|
+
exports.getProxyUrl = getProxyUrl2;
|
|
54281
54390
|
var HttpRedirectCodes = [
|
|
54282
54391
|
HttpCodes.MovedPermanently,
|
|
54283
54392
|
HttpCodes.ResourceMoved,
|
|
@@ -54610,12 +54719,12 @@ var require_lib = __commonJS({
|
|
|
54610
54719
|
}
|
|
54611
54720
|
getAgentDispatcher(serverUrl) {
|
|
54612
54721
|
const parsedUrl = new URL(serverUrl);
|
|
54613
|
-
const
|
|
54614
|
-
const useProxy =
|
|
54722
|
+
const proxyUrl2 = pm.getProxyUrl(parsedUrl);
|
|
54723
|
+
const useProxy = proxyUrl2 && proxyUrl2.hostname;
|
|
54615
54724
|
if (!useProxy) {
|
|
54616
54725
|
return;
|
|
54617
54726
|
}
|
|
54618
|
-
return this._getProxyAgentDispatcher(parsedUrl,
|
|
54727
|
+
return this._getProxyAgentDispatcher(parsedUrl, proxyUrl2);
|
|
54619
54728
|
}
|
|
54620
54729
|
_prepareRequest(method, requestUrl, headers) {
|
|
54621
54730
|
const info = {};
|
|
@@ -54655,8 +54764,8 @@ var require_lib = __commonJS({
|
|
|
54655
54764
|
}
|
|
54656
54765
|
_getAgent(parsedUrl) {
|
|
54657
54766
|
let agent;
|
|
54658
|
-
const
|
|
54659
|
-
const useProxy =
|
|
54767
|
+
const proxyUrl2 = pm.getProxyUrl(parsedUrl);
|
|
54768
|
+
const useProxy = proxyUrl2 && proxyUrl2.hostname;
|
|
54660
54769
|
if (this._keepAlive && useProxy) {
|
|
54661
54770
|
agent = this._proxyAgent;
|
|
54662
54771
|
}
|
|
@@ -54671,16 +54780,16 @@ var require_lib = __commonJS({
|
|
|
54671
54780
|
if (this.requestOptions) {
|
|
54672
54781
|
maxSockets = this.requestOptions.maxSockets || http2.globalAgent.maxSockets;
|
|
54673
54782
|
}
|
|
54674
|
-
if (
|
|
54783
|
+
if (proxyUrl2 && proxyUrl2.hostname) {
|
|
54675
54784
|
const agentOptions = {
|
|
54676
54785
|
maxSockets,
|
|
54677
54786
|
keepAlive: this._keepAlive,
|
|
54678
|
-
proxy: Object.assign(Object.assign({}, (
|
|
54679
|
-
proxyAuth: `${
|
|
54680
|
-
}), { host:
|
|
54787
|
+
proxy: Object.assign(Object.assign({}, (proxyUrl2.username || proxyUrl2.password) && {
|
|
54788
|
+
proxyAuth: `${proxyUrl2.username}:${proxyUrl2.password}`
|
|
54789
|
+
}), { host: proxyUrl2.hostname, port: proxyUrl2.port })
|
|
54681
54790
|
};
|
|
54682
54791
|
let tunnelAgent;
|
|
54683
|
-
const overHttps =
|
|
54792
|
+
const overHttps = proxyUrl2.protocol === "https:";
|
|
54684
54793
|
if (usingSsl) {
|
|
54685
54794
|
tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
|
|
54686
54795
|
} else {
|
|
@@ -54701,7 +54810,7 @@ var require_lib = __commonJS({
|
|
|
54701
54810
|
}
|
|
54702
54811
|
return agent;
|
|
54703
54812
|
}
|
|
54704
|
-
_getProxyAgentDispatcher(parsedUrl,
|
|
54813
|
+
_getProxyAgentDispatcher(parsedUrl, proxyUrl2) {
|
|
54705
54814
|
let proxyAgent;
|
|
54706
54815
|
if (this._keepAlive) {
|
|
54707
54816
|
proxyAgent = this._proxyAgentDispatcher;
|
|
@@ -54710,8 +54819,8 @@ var require_lib = __commonJS({
|
|
|
54710
54819
|
return proxyAgent;
|
|
54711
54820
|
}
|
|
54712
54821
|
const usingSsl = parsedUrl.protocol === "https:";
|
|
54713
|
-
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri:
|
|
54714
|
-
token: `${
|
|
54822
|
+
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl2.href, pipelining: !this._keepAlive ? 0 : 1 }, (proxyUrl2.username || proxyUrl2.password) && {
|
|
54823
|
+
token: `${proxyUrl2.username}:${proxyUrl2.password}`
|
|
54715
54824
|
}));
|
|
54716
54825
|
this._proxyAgentDispatcher = proxyAgent;
|
|
54717
54826
|
if (usingSsl && this._ignoreSslError) {
|
|
@@ -55302,13 +55411,13 @@ var require_path_utils = __commonJS({
|
|
|
55302
55411
|
} : function(o, v) {
|
|
55303
55412
|
o["default"] = v;
|
|
55304
55413
|
});
|
|
55305
|
-
var __importStar = exports && exports.__importStar || function(
|
|
55306
|
-
if (
|
|
55414
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
55415
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
55307
55416
|
var result = {};
|
|
55308
|
-
if (
|
|
55309
|
-
for (var k in
|
|
55417
|
+
if (mod2 != null) {
|
|
55418
|
+
for (var k in mod2) if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
55310
55419
|
}
|
|
55311
|
-
__setModuleDefault(result,
|
|
55420
|
+
__setModuleDefault(result, mod2);
|
|
55312
55421
|
return result;
|
|
55313
55422
|
};
|
|
55314
55423
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -55347,13 +55456,13 @@ var require_core = __commonJS({
|
|
|
55347
55456
|
} : function(o, v) {
|
|
55348
55457
|
o["default"] = v;
|
|
55349
55458
|
});
|
|
55350
|
-
var __importStar = exports && exports.__importStar || function(
|
|
55351
|
-
if (
|
|
55459
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
55460
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
55352
55461
|
var result = {};
|
|
55353
|
-
if (
|
|
55354
|
-
for (var k in
|
|
55462
|
+
if (mod2 != null) {
|
|
55463
|
+
for (var k in mod2) if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
55355
55464
|
}
|
|
55356
|
-
__setModuleDefault(result,
|
|
55465
|
+
__setModuleDefault(result, mod2);
|
|
55357
55466
|
return result;
|
|
55358
55467
|
};
|
|
55359
55468
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -55633,13 +55742,13 @@ var require_upload_specification = __commonJS({
|
|
|
55633
55742
|
} : function(o, v) {
|
|
55634
55743
|
o["default"] = v;
|
|
55635
55744
|
});
|
|
55636
|
-
var __importStar = exports && exports.__importStar || function(
|
|
55637
|
-
if (
|
|
55745
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
55746
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
55638
55747
|
var result = {};
|
|
55639
|
-
if (
|
|
55640
|
-
for (var k in
|
|
55748
|
+
if (mod2 != null) {
|
|
55749
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
55641
55750
|
}
|
|
55642
|
-
__setModuleDefault(result,
|
|
55751
|
+
__setModuleDefault(result, mod2);
|
|
55643
55752
|
return result;
|
|
55644
55753
|
};
|
|
55645
55754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -59025,8 +59134,8 @@ var require_utils3 = __commonJS({
|
|
|
59025
59134
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
59026
59135
|
});
|
|
59027
59136
|
};
|
|
59028
|
-
var __importDefault = exports && exports.__importDefault || function(
|
|
59029
|
-
return
|
|
59137
|
+
var __importDefault = exports && exports.__importDefault || function(mod2) {
|
|
59138
|
+
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
59030
59139
|
};
|
|
59031
59140
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59032
59141
|
exports.digestForStream = exports.sleep = exports.getProperRetention = exports.rmFile = exports.getFileSize = exports.createEmptyFilesForArtifact = exports.createDirectoriesForArtifact = exports.displayHttpDiagnostics = exports.getArtifactUrl = exports.createHttpClient = exports.getUploadHeaders = exports.getDownloadHeaders = exports.getContentRange = exports.tryGetRetryAfterValueTimeInMilliseconds = exports.isThrottledStatusCode = exports.isRetryableStatusCode = exports.isForbiddenStatusCode = exports.isSuccessStatusCode = exports.getApiVersion = exports.parseEnvNumber = exports.getExponentialRetryTimeInMilliseconds = void 0;
|
|
@@ -59355,13 +59464,13 @@ var require_upload_gzip = __commonJS({
|
|
|
59355
59464
|
} : function(o, v) {
|
|
59356
59465
|
o["default"] = v;
|
|
59357
59466
|
});
|
|
59358
|
-
var __importStar = exports && exports.__importStar || function(
|
|
59359
|
-
if (
|
|
59467
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
59468
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
59360
59469
|
var result = {};
|
|
59361
|
-
if (
|
|
59362
|
-
for (var k in
|
|
59470
|
+
if (mod2 != null) {
|
|
59471
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
59363
59472
|
}
|
|
59364
|
-
__setModuleDefault(result,
|
|
59473
|
+
__setModuleDefault(result, mod2);
|
|
59365
59474
|
return result;
|
|
59366
59475
|
};
|
|
59367
59476
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -59522,13 +59631,13 @@ var require_requestUtils = __commonJS({
|
|
|
59522
59631
|
} : function(o, v) {
|
|
59523
59632
|
o["default"] = v;
|
|
59524
59633
|
});
|
|
59525
|
-
var __importStar = exports && exports.__importStar || function(
|
|
59526
|
-
if (
|
|
59634
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
59635
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
59527
59636
|
var result = {};
|
|
59528
|
-
if (
|
|
59529
|
-
for (var k in
|
|
59637
|
+
if (mod2 != null) {
|
|
59638
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
59530
59639
|
}
|
|
59531
|
-
__setModuleDefault(result,
|
|
59640
|
+
__setModuleDefault(result, mod2);
|
|
59532
59641
|
return result;
|
|
59533
59642
|
};
|
|
59534
59643
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -59639,13 +59748,13 @@ var require_upload_http_client = __commonJS({
|
|
|
59639
59748
|
} : function(o, v) {
|
|
59640
59749
|
o["default"] = v;
|
|
59641
59750
|
});
|
|
59642
|
-
var __importStar = exports && exports.__importStar || function(
|
|
59643
|
-
if (
|
|
59751
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
59752
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
59644
59753
|
var result = {};
|
|
59645
|
-
if (
|
|
59646
|
-
for (var k in
|
|
59754
|
+
if (mod2 != null) {
|
|
59755
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
59647
59756
|
}
|
|
59648
|
-
__setModuleDefault(result,
|
|
59757
|
+
__setModuleDefault(result, mod2);
|
|
59649
59758
|
return result;
|
|
59650
59759
|
};
|
|
59651
59760
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -60031,13 +60140,13 @@ var require_download_http_client = __commonJS({
|
|
|
60031
60140
|
} : function(o, v) {
|
|
60032
60141
|
o["default"] = v;
|
|
60033
60142
|
});
|
|
60034
|
-
var __importStar = exports && exports.__importStar || function(
|
|
60035
|
-
if (
|
|
60143
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
60144
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
60036
60145
|
var result = {};
|
|
60037
|
-
if (
|
|
60038
|
-
for (var k in
|
|
60146
|
+
if (mod2 != null) {
|
|
60147
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
60039
60148
|
}
|
|
60040
|
-
__setModuleDefault(result,
|
|
60149
|
+
__setModuleDefault(result, mod2);
|
|
60041
60150
|
return result;
|
|
60042
60151
|
};
|
|
60043
60152
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -60308,13 +60417,13 @@ var require_download_specification = __commonJS({
|
|
|
60308
60417
|
} : function(o, v) {
|
|
60309
60418
|
o["default"] = v;
|
|
60310
60419
|
});
|
|
60311
|
-
var __importStar = exports && exports.__importStar || function(
|
|
60312
|
-
if (
|
|
60420
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
60421
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
60313
60422
|
var result = {};
|
|
60314
|
-
if (
|
|
60315
|
-
for (var k in
|
|
60423
|
+
if (mod2 != null) {
|
|
60424
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
60316
60425
|
}
|
|
60317
|
-
__setModuleDefault(result,
|
|
60426
|
+
__setModuleDefault(result, mod2);
|
|
60318
60427
|
return result;
|
|
60319
60428
|
};
|
|
60320
60429
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -60374,13 +60483,13 @@ var require_artifact_client = __commonJS({
|
|
|
60374
60483
|
} : function(o, v) {
|
|
60375
60484
|
o["default"] = v;
|
|
60376
60485
|
});
|
|
60377
|
-
var __importStar = exports && exports.__importStar || function(
|
|
60378
|
-
if (
|
|
60486
|
+
var __importStar = exports && exports.__importStar || function(mod2) {
|
|
60487
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
60379
60488
|
var result = {};
|
|
60380
|
-
if (
|
|
60381
|
-
for (var k in
|
|
60489
|
+
if (mod2 != null) {
|
|
60490
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
|
|
60382
60491
|
}
|
|
60383
|
-
__setModuleDefault(result,
|
|
60492
|
+
__setModuleDefault(result, mod2);
|
|
60384
60493
|
return result;
|
|
60385
60494
|
};
|
|
60386
60495
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -70918,9 +71027,9 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
70918
71027
|
function setProxy(options, configProxy, location) {
|
|
70919
71028
|
let proxy = configProxy;
|
|
70920
71029
|
if (!proxy && proxy !== false) {
|
|
70921
|
-
const
|
|
70922
|
-
if (
|
|
70923
|
-
proxy = new URL(
|
|
71030
|
+
const proxyUrl2 = import_proxy_from_env.default.getProxyForUrl(location);
|
|
71031
|
+
if (proxyUrl2) {
|
|
71032
|
+
proxy = new URL(proxyUrl2);
|
|
70924
71033
|
}
|
|
70925
71034
|
}
|
|
70926
71035
|
if (proxy) {
|
|
@@ -72653,9 +72762,17 @@ axiosRetry.exponentialDelay = exponentialDelay;
|
|
|
72653
72762
|
axiosRetry.isRetryableError = isRetryableError;
|
|
72654
72763
|
var esm_default = axiosRetry;
|
|
72655
72764
|
|
|
72765
|
+
// ../../node_modules/.pnpm/hpagent@1.2.0/node_modules/hpagent/index.mjs
|
|
72766
|
+
var import_index2 = __toESM(require_hpagent(), 1);
|
|
72767
|
+
var HttpProxyAgent = import_index2.default.HttpProxyAgent;
|
|
72768
|
+
var HttpsProxyAgent = import_index2.default.HttpsProxyAgent;
|
|
72769
|
+
|
|
72656
72770
|
// ../utils/src/dashboard-api/axios-aux.ts
|
|
72657
72771
|
var import_lodash2 = __toESM(require_lodash(), 1);
|
|
72658
72772
|
var { pickBy } = import_lodash2.default;
|
|
72773
|
+
function getProxyUrl() {
|
|
72774
|
+
return process.env.SOCKET_CLI_API_PROXY;
|
|
72775
|
+
}
|
|
72659
72776
|
async function handleError(error, errorMessage, throwErr = true) {
|
|
72660
72777
|
if (error instanceof AxiosError2) {
|
|
72661
72778
|
prettyPrintAxiosError(error);
|
|
@@ -72666,7 +72783,11 @@ async function handleError(error, errorMessage, throwErr = true) {
|
|
|
72666
72783
|
throw new Error(errorMessage);
|
|
72667
72784
|
}
|
|
72668
72785
|
}
|
|
72669
|
-
var
|
|
72786
|
+
var proxyUrl = getProxyUrl();
|
|
72787
|
+
var axiosClient = axios_default.create({
|
|
72788
|
+
httpsAgent: proxyUrl ? new HttpsProxyAgent({ proxy: proxyUrl }) : void 0,
|
|
72789
|
+
httpAgent: proxyUrl ? new HttpProxyAgent({ proxy: proxyUrl }) : void 0
|
|
72790
|
+
});
|
|
72670
72791
|
esm_default(axiosClient, {
|
|
72671
72792
|
retries: 7,
|
|
72672
72793
|
// The delay before the second retry is 1 second and before the third retry it is 2 seconds.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|