chore: build and set cleanup file

This commit is contained in:
peterwoodworth
2023-03-22 16:32:37 -07:00
parent 0181111f1d
commit 3088522ce8
9 changed files with 428 additions and 6 deletions
Generated Vendored
+28 -1
View File
@@ -6,11 +6,35 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.CredentialsClient = void 0;
const core = __importStar(__nccwpck_require__(2186));
const client_sts_1 = __nccwpck_require__(2209);
const node_http_handler_1 = __nccwpck_require__(8805);
const https_proxy_agent_1 = __importDefault(__nccwpck_require__(7219));
@@ -21,7 +45,11 @@ class CredentialsClient {
if (props.region) {
this.region = props.region;
}
else {
core.info('No region provided, using global STS endpoint');
}
if (props.proxyServer) {
core.info('Configurint proxy handler for STS client');
const handler = (0, https_proxy_agent_1.default)(props.proxyServer);
this.requestHandler = new node_http_handler_1.NodeHttpHandler({
httpAgent: handler,
@@ -421,7 +449,6 @@ async function run() {
};
// Validate and export region
if (region) {
core.info('Using global STS endpoint');
if (!region.match(REGION_REGEX)) {
throw new Error(`Region is not valid: ${region}`);
}