@datadog/datadog-ci-plugin-container-app 5.21.0 → 5.21.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/bundle.js +14 -4
- package/dist/bundle.js.map +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -53125,7 +53125,7 @@ var require_source$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
53125
53125
|
var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
53126
53126
|
module.exports = {
|
|
53127
53127
|
"name": "@datadog/datadog-ci-base",
|
|
53128
|
-
"version": "5.21.
|
|
53128
|
+
"version": "5.21.2",
|
|
53129
53129
|
"description": "Base package for Datadog CI",
|
|
53130
53130
|
"license": "Apache-2.0",
|
|
53131
53131
|
"keywords": ["datadog", "datadog-ci"],
|
|
@@ -103678,7 +103678,7 @@ var require_request = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
103678
103678
|
const isRequestError = (error) => error instanceof RequestError || typeof error === "object" && !!error && error.isRequestError === true;
|
|
103679
103679
|
exports.isRequestError = isRequestError;
|
|
103680
103680
|
const dispatcherCache = /* @__PURE__ */ new Map();
|
|
103681
|
-
const getProxyDispatcher = (proxyUrl) => {
|
|
103681
|
+
const getProxyDispatcher = (proxyUrl = "") => {
|
|
103682
103682
|
if (!proxyUrl) return new undici_1.EnvHttpProxyAgent();
|
|
103683
103683
|
let dispatcher = dispatcherCache.get(proxyUrl);
|
|
103684
103684
|
if (!dispatcher) {
|
|
@@ -104569,7 +104569,8 @@ var require_apikey = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
104569
104569
|
headers: { "DD-API-KEY": this.apiKey },
|
|
104570
104570
|
method: "GET",
|
|
104571
104571
|
baseURL: `https://api.${this.datadogSite}`,
|
|
104572
|
-
url: (0, datadog_route_1.datadogRoute)("/api/v1/validate")
|
|
104572
|
+
url: (0, datadog_route_1.datadogRoute)("/api/v1/validate"),
|
|
104573
|
+
dispatcher: (0, request_1.getProxyDispatcher)()
|
|
104573
104574
|
})).data.valid;
|
|
104574
104575
|
} catch (error) {
|
|
104575
104576
|
if ((0, request_1.isRequestError)(error) && error.response && error.response.status === 403) return false;
|
|
@@ -116100,7 +116101,11 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
116100
116101
|
return { levels: unique.sort((a, b) => exports.LEVEL_TO_NUMBER[a] - exports.LEVEL_TO_NUMBER[b]) };
|
|
116101
116102
|
};
|
|
116102
116103
|
exports.parseLevels = parseLevels;
|
|
116103
|
-
exports.githubWellKnownDiagnosticDirsUnix = [
|
|
116104
|
+
exports.githubWellKnownDiagnosticDirsUnix = [
|
|
116105
|
+
"/home/runner/_diag",
|
|
116106
|
+
"/home/runner/actions-runner/_diag",
|
|
116107
|
+
"/opt/actions-runner/_diag"
|
|
116108
|
+
];
|
|
116104
116109
|
exports.githubWellKnownDiagnosticDirsWin = ["C:/actions-runner/_diag"];
|
|
116105
116110
|
exports.githubWellKnownDiagnosticDirPatternsUnix = ["/home/runner/actions-runner/*/_diag", "/home/runner/actions-runner/*/*/_diag"];
|
|
116106
116111
|
exports.githubWellKnownDiagnosticDirPatternsWin = ["C:/actions-runner/*/_diag", "C:/actions-runner/*/*/_diag"];
|
|
@@ -116141,6 +116146,11 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
116141
116146
|
dirs.push(`${runnerRoot}/actions-runner/*/*/_diag`);
|
|
116142
116147
|
dirs.push(upath_1.default.join(runnerRoot, "actions-runner", "_diag"));
|
|
116143
116148
|
}
|
|
116149
|
+
const home = process.env.HOME;
|
|
116150
|
+
if (home) {
|
|
116151
|
+
dirs.push(upath_1.default.join(home, "_diag"));
|
|
116152
|
+
dirs.push(upath_1.default.join(home, "actions-runner", "_diag"));
|
|
116153
|
+
}
|
|
116144
116154
|
return uniq(dirs.filter(Boolean));
|
|
116145
116155
|
};
|
|
116146
116156
|
/**
|