@datadog/datadog-ci-plugin-terraform 5.21.1 → 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 CHANGED
@@ -10914,7 +10914,7 @@ var require_glob = /* @__PURE__ */ __commonJSMin(((exports) => {
10914
10914
  var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10915
10915
  module.exports = {
10916
10916
  "name": "@datadog/datadog-ci-base",
10917
- "version": "5.21.1",
10917
+ "version": "5.21.2",
10918
10918
  "description": "Base package for Datadog CI",
10919
10919
  "license": "Apache-2.0",
10920
10920
  "keywords": ["datadog", "datadog-ci"],
@@ -63877,7 +63877,7 @@ var require_request = /* @__PURE__ */ __commonJSMin(((exports) => {
63877
63877
  const isRequestError = (error) => error instanceof RequestError || typeof error === "object" && !!error && error.isRequestError === true;
63878
63878
  exports.isRequestError = isRequestError;
63879
63879
  const dispatcherCache = /* @__PURE__ */ new Map();
63880
- const getProxyDispatcher = (proxyUrl) => {
63880
+ const getProxyDispatcher = (proxyUrl = "") => {
63881
63881
  if (!proxyUrl) return new undici_1.EnvHttpProxyAgent();
63882
63882
  let dispatcher = dispatcherCache.get(proxyUrl);
63883
63883
  if (!dispatcher) {
@@ -76682,7 +76682,8 @@ var require_apikey = /* @__PURE__ */ __commonJSMin(((exports) => {
76682
76682
  headers: { "DD-API-KEY": this.apiKey },
76683
76683
  method: "GET",
76684
76684
  baseURL: `https://api.${this.datadogSite}`,
76685
- url: (0, datadog_route_1.datadogRoute)("/api/v1/validate")
76685
+ url: (0, datadog_route_1.datadogRoute)("/api/v1/validate"),
76686
+ dispatcher: (0, request_1.getProxyDispatcher)()
76686
76687
  })).data.valid;
76687
76688
  } catch (error) {
76688
76689
  if ((0, request_1.isRequestError)(error) && error.response && error.response.status === 403) return false;