Rebuild dist

This commit is contained in:
Nick Alteen
2025-02-11 14:59:08 -05:00
parent e6a64a23f6
commit 11588795ab

178
dist/index.js generated vendored
View File

@ -73,7 +73,7 @@ function requireUtils$3 () {
// We use any as a valid input type // We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(utils$3, "__esModule", { value: true }); Object.defineProperty(utils$3, "__esModule", { value: true });
utils$3.toCommandProperties = utils$3.toCommandValue = undefined; utils$3.toCommandProperties = utils$3.toCommandValue = void 0;
/** /**
* Sanitizes an input into a string so it can be passed into issueCommand safely * Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string * @param input input to sanitize into a string
@ -141,7 +141,7 @@ function requireCommand () {
return result; return result;
}; };
Object.defineProperty(command, "__esModule", { value: true }); Object.defineProperty(command, "__esModule", { value: true });
command.issue = command.issueCommand = undefined; command.issue = command.issueCommand = void 0;
const os = __importStar(require$$0); const os = __importStar(require$$0);
const utils_1 = requireUtils$3(); const utils_1 = requireUtils$3();
/** /**
@ -247,7 +247,7 @@ function requireFileCommand () {
return result; return result;
}; };
Object.defineProperty(fileCommand, "__esModule", { value: true }); Object.defineProperty(fileCommand, "__esModule", { value: true });
fileCommand.prepareKeyValueMessage = fileCommand.issueFileCommand = undefined; fileCommand.prepareKeyValueMessage = fileCommand.issueFileCommand = void 0;
// We use any as a valid input type // We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
const crypto = __importStar(require$$0$1); const crypto = __importStar(require$$0$1);
@ -298,7 +298,7 @@ function requireProxy () {
if (hasRequiredProxy) return proxy; if (hasRequiredProxy) return proxy;
hasRequiredProxy = 1; hasRequiredProxy = 1;
Object.defineProperty(proxy, "__esModule", { value: true }); Object.defineProperty(proxy, "__esModule", { value: true });
proxy.checkBypass = proxy.getProxyUrl = undefined; proxy.checkBypass = proxy.getProxyUrl = void 0;
function getProxyUrl(reqUrl) { function getProxyUrl(reqUrl) {
const usingSsl = reqUrl.protocol === 'https:'; const usingSsl = reqUrl.protocol === 'https:';
if (checkBypass(reqUrl)) { if (checkBypass(reqUrl)) {
@ -8208,7 +8208,7 @@ function requireUtils$2 () {
if (hasRequiredUtils$2) return utils$2; if (hasRequiredUtils$2) return utils$2;
hasRequiredUtils$2 = 1; hasRequiredUtils$2 = 1;
Object.defineProperty(utils$2, "__esModule", { value: true }); Object.defineProperty(utils$2, "__esModule", { value: true });
utils$2.enumToMap = undefined; utils$2.enumToMap = void 0;
function enumToMap(obj) { function enumToMap(obj) {
const res = {}; const res = {};
Object.keys(obj).forEach((key) => { Object.keys(obj).forEach((key) => {
@ -8231,7 +8231,7 @@ function requireConstants$2 () {
hasRequiredConstants$2 = 1; hasRequiredConstants$2 = 1;
(function (exports) { (function (exports) {
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = undefined; exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
const utils_1 = requireUtils$2(); const utils_1 = requireUtils$2();
(function (ERROR) { (function (ERROR) {
ERROR[ERROR["OK"] = 0] = "OK"; ERROR[ERROR["OK"] = 0] = "OK";
@ -24396,7 +24396,7 @@ function requireLib () {
}); });
}; };
Object.defineProperty(lib, "__esModule", { value: true }); Object.defineProperty(lib, "__esModule", { value: true });
lib.HttpClient = lib.isHttps = lib.HttpClientResponse = lib.HttpClientError = lib.getProxyUrl = lib.MediaTypes = lib.Headers = lib.HttpCodes = undefined; lib.HttpClient = lib.isHttps = lib.HttpClientResponse = lib.HttpClientError = lib.getProxyUrl = lib.MediaTypes = lib.Headers = lib.HttpCodes = void 0;
const http = __importStar(require$$2$1); const http = __importStar(require$$2$1);
const https = __importStar(require$$3$1); const https = __importStar(require$$3$1);
const pm = __importStar(requireProxy()); const pm = __importStar(requireProxy());
@ -24479,8 +24479,8 @@ function requireLib () {
this.message = message; this.message = message;
} }
readBody() { readBody() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => __awaiter(this, undefined, undefined, function* () { return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
let output = Buffer.alloc(0); let output = Buffer.alloc(0);
this.message.on('data', (chunk) => { this.message.on('data', (chunk) => {
output = Buffer.concat([output, chunk]); output = Buffer.concat([output, chunk]);
@ -24492,8 +24492,8 @@ function requireLib () {
}); });
} }
readBodyBuffer() { readBodyBuffer() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => __awaiter(this, undefined, undefined, function* () { return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
const chunks = []; const chunks = [];
this.message.on('data', (chunk) => { this.message.on('data', (chunk) => {
chunks.push(chunk); chunks.push(chunk);
@ -24550,42 +24550,42 @@ function requireLib () {
} }
} }
options(requestUrl, additionalHeaders) { options(requestUrl, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
}); });
} }
get(requestUrl, additionalHeaders) { get(requestUrl, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request('GET', requestUrl, null, additionalHeaders || {}); return this.request('GET', requestUrl, null, additionalHeaders || {});
}); });
} }
del(requestUrl, additionalHeaders) { del(requestUrl, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request('DELETE', requestUrl, null, additionalHeaders || {}); return this.request('DELETE', requestUrl, null, additionalHeaders || {});
}); });
} }
post(requestUrl, data, additionalHeaders) { post(requestUrl, data, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request('POST', requestUrl, data, additionalHeaders || {}); return this.request('POST', requestUrl, data, additionalHeaders || {});
}); });
} }
patch(requestUrl, data, additionalHeaders) { patch(requestUrl, data, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request('PATCH', requestUrl, data, additionalHeaders || {}); return this.request('PATCH', requestUrl, data, additionalHeaders || {});
}); });
} }
put(requestUrl, data, additionalHeaders) { put(requestUrl, data, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request('PUT', requestUrl, data, additionalHeaders || {}); return this.request('PUT', requestUrl, data, additionalHeaders || {});
}); });
} }
head(requestUrl, additionalHeaders) { head(requestUrl, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request('HEAD', requestUrl, null, additionalHeaders || {}); return this.request('HEAD', requestUrl, null, additionalHeaders || {});
}); });
} }
sendStream(verb, requestUrl, stream, additionalHeaders) { sendStream(verb, requestUrl, stream, additionalHeaders) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.request(verb, requestUrl, stream, additionalHeaders); return this.request(verb, requestUrl, stream, additionalHeaders);
}); });
} }
@ -24594,14 +24594,14 @@ function requireLib () {
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
*/ */
getJson(requestUrl, additionalHeaders = {}) { getJson(requestUrl, additionalHeaders = {}) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
const res = yield this.get(requestUrl, additionalHeaders); const res = yield this.get(requestUrl, additionalHeaders);
return this._processResponse(res, this.requestOptions); return this._processResponse(res, this.requestOptions);
}); });
} }
postJson(requestUrl, obj, additionalHeaders = {}) { postJson(requestUrl, obj, additionalHeaders = {}) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const data = JSON.stringify(obj, null, 2); const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
@ -24610,7 +24610,7 @@ function requireLib () {
}); });
} }
putJson(requestUrl, obj, additionalHeaders = {}) { putJson(requestUrl, obj, additionalHeaders = {}) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const data = JSON.stringify(obj, null, 2); const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
@ -24619,7 +24619,7 @@ function requireLib () {
}); });
} }
patchJson(requestUrl, obj, additionalHeaders = {}) { patchJson(requestUrl, obj, additionalHeaders = {}) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const data = JSON.stringify(obj, null, 2); const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
@ -24633,7 +24633,7 @@ function requireLib () {
* Prefer get, del, post and patch * Prefer get, del, post and patch
*/ */
request(verb, requestUrl, data, headers) { request(verb, requestUrl, data, headers) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
if (this._disposed) { if (this._disposed) {
throw new Error('Client has already been disposed.'); throw new Error('Client has already been disposed.');
} }
@ -24729,7 +24729,7 @@ function requireLib () {
* @param data * @param data
*/ */
requestRaw(info, data) { requestRaw(info, data) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
function callbackForResult(err, res) { function callbackForResult(err, res) {
if (err) { if (err) {
@ -24942,15 +24942,15 @@ function requireLib () {
return proxyAgent; return proxyAgent;
} }
_performExponentialBackoff(retryNumber) { _performExponentialBackoff(retryNumber) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
return new Promise(resolve => setTimeout(() => resolve(), ms)); return new Promise(resolve => setTimeout(() => resolve(), ms));
}); });
} }
_processResponse(res, options) { _processResponse(res, options) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => __awaiter(this, undefined, undefined, function* () { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
const statusCode = res.message.statusCode || 0; const statusCode = res.message.statusCode || 0;
const response = { const response = {
statusCode, statusCode,
@ -25037,7 +25037,7 @@ function requireAuth () {
}); });
}; };
Object.defineProperty(auth$1, "__esModule", { value: true }); Object.defineProperty(auth$1, "__esModule", { value: true });
auth$1.PersonalAccessTokenCredentialHandler = auth$1.BearerCredentialHandler = auth$1.BasicCredentialHandler = undefined; auth$1.PersonalAccessTokenCredentialHandler = auth$1.BearerCredentialHandler = auth$1.BasicCredentialHandler = void 0;
class BasicCredentialHandler { class BasicCredentialHandler {
constructor(username, password) { constructor(username, password) {
this.username = username; this.username = username;
@ -25054,7 +25054,7 @@ function requireAuth () {
return false; return false;
} }
handleAuthentication() { handleAuthentication() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
throw new Error('not implemented'); throw new Error('not implemented');
}); });
} }
@ -25077,7 +25077,7 @@ function requireAuth () {
return false; return false;
} }
handleAuthentication() { handleAuthentication() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
throw new Error('not implemented'); throw new Error('not implemented');
}); });
} }
@ -25100,7 +25100,7 @@ function requireAuth () {
return false; return false;
} }
handleAuthentication() { handleAuthentication() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
throw new Error('not implemented'); throw new Error('not implemented');
}); });
} }
@ -25125,7 +25125,7 @@ function requireOidcUtils () {
}); });
}; };
Object.defineProperty(oidcUtils, "__esModule", { value: true }); Object.defineProperty(oidcUtils, "__esModule", { value: true });
oidcUtils.OidcClient = undefined; oidcUtils.OidcClient = void 0;
const http_client_1 = requireLib(); const http_client_1 = requireLib();
const auth_1 = requireAuth(); const auth_1 = requireAuth();
const core_1 = requireCore(); const core_1 = requireCore();
@ -25153,7 +25153,7 @@ function requireOidcUtils () {
} }
static getCall(id_token_url) { static getCall(id_token_url) {
var _a; var _a;
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const httpclient = OidcClient.createHttpClient(); const httpclient = OidcClient.createHttpClient();
const res = yield httpclient const res = yield httpclient
.getJson(id_token_url) .getJson(id_token_url)
@ -25162,7 +25162,7 @@ function requireOidcUtils () {
Error Code : ${error.statusCode}\n Error Code : ${error.statusCode}\n
Error Message: ${error.message}`); Error Message: ${error.message}`);
}); });
const id_token = (_a = res.result) === null || _a === undefined ? undefined : _a.value; const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) { if (!id_token) {
throw new Error('Response json body do not have ID Token field'); throw new Error('Response json body do not have ID Token field');
} }
@ -25170,7 +25170,7 @@ function requireOidcUtils () {
}); });
} }
static getIDToken(audience) { static getIDToken(audience) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
// New ID Token is requested from action service // New ID Token is requested from action service
let id_token_url = OidcClient.getIDTokenUrl(); let id_token_url = OidcClient.getIDTokenUrl();
@ -25212,7 +25212,7 @@ function requireSummary () {
}); });
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = undefined; exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
const os_1 = require$$0; const os_1 = require$$0;
const fs_1 = require$$1; const fs_1 = require$$1;
const { access, appendFile, writeFile } = fs_1.promises; const { access, appendFile, writeFile } = fs_1.promises;
@ -25229,7 +25229,7 @@ function requireSummary () {
* @returns step summary file path * @returns step summary file path
*/ */
filePath() { filePath() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
if (this._filePath) { if (this._filePath) {
return this._filePath; return this._filePath;
} }
@ -25273,8 +25273,8 @@ function requireSummary () {
* @returns {Promise<Summary>} summary instance * @returns {Promise<Summary>} summary instance
*/ */
write(options) { write(options) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const overwrite = !!(options === null || options === undefined ? undefined : options.overwrite); const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
const filePath = yield this.filePath(); const filePath = yield this.filePath();
const writeFunc = overwrite ? writeFile : appendFile; const writeFunc = overwrite ? writeFile : appendFile;
yield writeFunc(filePath, this._buffer, { encoding: 'utf8' }); yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
@ -25287,7 +25287,7 @@ function requireSummary () {
* @returns {Summary} summary instance * @returns {Summary} summary instance
*/ */
clear() { clear() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return this.emptyBuffer().write({ overwrite: true }); return this.emptyBuffer().write({ overwrite: true });
}); });
} }
@ -25519,7 +25519,7 @@ function requirePathUtils () {
return result; return result;
}; };
Object.defineProperty(pathUtils, "__esModule", { value: true }); Object.defineProperty(pathUtils, "__esModule", { value: true });
pathUtils.toPlatformPath = pathUtils.toWin32Path = pathUtils.toPosixPath = undefined; pathUtils.toPlatformPath = pathUtils.toWin32Path = pathUtils.toPosixPath = void 0;
const path = __importStar(require$$1$5); const path = __importStar(require$$1$5);
/** /**
* toPosixPath converts the given path to the posix form. On Windows, \\ will be * toPosixPath converts the given path to the posix form. On Windows, \\ will be
@ -25605,7 +25605,7 @@ function requireIoUtil () {
}; };
var _a; var _a;
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = undefined; exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
const fs = __importStar(require$$1); const fs = __importStar(require$$1);
const path = __importStar(require$$1$5); const path = __importStar(require$$1$5);
_a = fs.promises _a = fs.promises
@ -25617,7 +25617,7 @@ function requireIoUtil () {
exports.UV_FS_O_EXLOCK = 0x10000000; exports.UV_FS_O_EXLOCK = 0x10000000;
exports.READONLY = fs.constants.O_RDONLY; exports.READONLY = fs.constants.O_RDONLY;
function exists(fsPath) { function exists(fsPath) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
yield exports.stat(fsPath); yield exports.stat(fsPath);
} }
@ -25632,7 +25632,7 @@ function requireIoUtil () {
} }
exports.exists = exists; exports.exists = exists;
function isDirectory(fsPath, useStat = false) { function isDirectory(fsPath, useStat = false) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
return stats.isDirectory(); return stats.isDirectory();
}); });
@ -25661,7 +25661,7 @@ function requireIoUtil () {
* @return if file exists and is executable, returns the file path. otherwise empty string. * @return if file exists and is executable, returns the file path. otherwise empty string.
*/ */
function tryGetExecutablePath(filePath, extensions) { function tryGetExecutablePath(filePath, extensions) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
let stats = undefined; let stats = undefined;
try { try {
// test file exists // test file exists
@ -25753,7 +25753,7 @@ function requireIoUtil () {
// Get the path of cmd.exe in windows // Get the path of cmd.exe in windows
function getCmdPath() { function getCmdPath() {
var _a; var _a;
return (_a = process.env['COMSPEC']) !== null && _a !== undefined ? _a : `cmd.exe`; return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
} }
exports.getCmdPath = getCmdPath; exports.getCmdPath = getCmdPath;
@ -25795,7 +25795,7 @@ function requireIo () {
}); });
}; };
Object.defineProperty(io, "__esModule", { value: true }); Object.defineProperty(io, "__esModule", { value: true });
io.findInPath = io.which = io.mkdirP = io.rmRF = io.mv = io.cp = undefined; io.findInPath = io.which = io.mkdirP = io.rmRF = io.mv = io.cp = void 0;
const assert_1 = require$$0$3; const assert_1 = require$$0$3;
const path = __importStar(require$$1$5); const path = __importStar(require$$1$5);
const ioUtil = __importStar(requireIoUtil()); const ioUtil = __importStar(requireIoUtil());
@ -25808,7 +25808,7 @@ function requireIo () {
* @param options optional. See CopyOptions. * @param options optional. See CopyOptions.
*/ */
function cp(source, dest, options = {}) { function cp(source, dest, options = {}) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const { force, recursive, copySourceDirectory } = readCopyOptions(options); const { force, recursive, copySourceDirectory } = readCopyOptions(options);
const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
// Dest is an existing file, but not forcing // Dest is an existing file, but not forcing
@ -25849,7 +25849,7 @@ function requireIo () {
* @param options optional. See MoveOptions. * @param options optional. See MoveOptions.
*/ */
function mv(source, dest, options = {}) { function mv(source, dest, options = {}) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
if (yield ioUtil.exists(dest)) { if (yield ioUtil.exists(dest)) {
let destExists = true; let destExists = true;
if (yield ioUtil.isDirectory(dest)) { if (yield ioUtil.isDirectory(dest)) {
@ -25877,7 +25877,7 @@ function requireIo () {
* @param inputPath path to remove * @param inputPath path to remove
*/ */
function rmRF(inputPath) { function rmRF(inputPath) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
if (ioUtil.IS_WINDOWS) { if (ioUtil.IS_WINDOWS) {
// Check for invalid characters // Check for invalid characters
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
@ -25908,7 +25908,7 @@ function requireIo () {
* @returns Promise<void> * @returns Promise<void>
*/ */
function mkdirP(fsPath) { function mkdirP(fsPath) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
assert_1.ok(fsPath, 'a path argument must be provided'); assert_1.ok(fsPath, 'a path argument must be provided');
yield ioUtil.mkdir(fsPath, { recursive: true }); yield ioUtil.mkdir(fsPath, { recursive: true });
}); });
@ -25923,7 +25923,7 @@ function requireIo () {
* @returns Promise<string> path to tool * @returns Promise<string> path to tool
*/ */
function which(tool, check) { function which(tool, check) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
if (!tool) { if (!tool) {
throw new Error("parameter 'tool' is required"); throw new Error("parameter 'tool' is required");
} }
@ -25954,7 +25954,7 @@ function requireIo () {
* @returns Promise<string[]> the paths of the tool * @returns Promise<string[]> the paths of the tool
*/ */
function findInPath(tool) { function findInPath(tool) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
if (!tool) { if (!tool) {
throw new Error("parameter 'tool' is required"); throw new Error("parameter 'tool' is required");
} }
@ -26014,7 +26014,7 @@ function requireIo () {
return { force, recursive, copySourceDirectory }; return { force, recursive, copySourceDirectory };
} }
function cpDirRecursive(sourceDir, destDir, currentDepth, force) { function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
// Ensure there is not a run away recursive copy // Ensure there is not a run away recursive copy
if (currentDepth >= 255) if (currentDepth >= 255)
return; return;
@ -26039,7 +26039,7 @@ function requireIo () {
} }
// Buffered file copy // Buffered file copy
function copyFile(srcFile, destFile, force) { function copyFile(srcFile, destFile, force) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
// unlink/re-link it // unlink/re-link it
try { try {
@ -26101,7 +26101,7 @@ function requireToolrunner () {
}); });
}; };
Object.defineProperty(toolrunner, "__esModule", { value: true }); Object.defineProperty(toolrunner, "__esModule", { value: true });
toolrunner.argStringToArray = toolrunner.ToolRunner = undefined; toolrunner.argStringToArray = toolrunner.ToolRunner = void 0;
const os = __importStar(require$$0); const os = __importStar(require$$0);
const events = __importStar(require$$4$1); const events = __importStar(require$$4$1);
const child = __importStar(require$$2$3); const child = __importStar(require$$2$3);
@ -26454,7 +26454,7 @@ function requireToolrunner () {
* @returns number * @returns number
*/ */
exec() { exec() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
// root the tool path if it is unrooted and contains relative pathing // root the tool path if it is unrooted and contains relative pathing
if (!ioUtil.isRooted(this.toolPath) && if (!ioUtil.isRooted(this.toolPath) &&
(this.toolPath.includes('/') || (this.toolPath.includes('/') ||
@ -26465,7 +26465,7 @@ function requireToolrunner () {
// if the tool is only a file name, then resolve it from the PATH // if the tool is only a file name, then resolve it from the PATH
// otherwise verify it exists (add extension on Windows if necessary) // otherwise verify it exists (add extension on Windows if necessary)
this.toolPath = yield io.which(this.toolPath, true); this.toolPath = yield io.which(this.toolPath, true);
return new Promise((resolve, reject) => __awaiter(this, undefined, undefined, function* () { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
this._debug(`exec tool: ${this.toolPath}`); this._debug(`exec tool: ${this.toolPath}`);
this._debug('arguments:'); this._debug('arguments:');
for (const arg of this.args) { for (const arg of this.args) {
@ -26726,7 +26726,7 @@ function requireExec () {
}); });
}; };
Object.defineProperty(exec, "__esModule", { value: true }); Object.defineProperty(exec, "__esModule", { value: true });
exec.getExecOutput = exec.exec = undefined; exec.getExecOutput = exec.exec = void 0;
const string_decoder_1 = require$$6; const string_decoder_1 = require$$6;
const tr = __importStar(requireToolrunner()); const tr = __importStar(requireToolrunner());
/** /**
@ -26740,7 +26740,7 @@ function requireExec () {
* @returns Promise<number> exit code * @returns Promise<number> exit code
*/ */
function exec$1(commandLine, args, options) { function exec$1(commandLine, args, options) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
const commandArgs = tr.argStringToArray(commandLine); const commandArgs = tr.argStringToArray(commandLine);
if (commandArgs.length === 0) { if (commandArgs.length === 0) {
throw new Error(`Parameter 'commandLine' cannot be null or empty.`); throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
@ -26765,14 +26765,14 @@ function requireExec () {
*/ */
function getExecOutput(commandLine, args, options) { function getExecOutput(commandLine, args, options) {
var _a, _b; var _a, _b;
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
let stdout = ''; let stdout = '';
let stderr = ''; let stderr = '';
//Using string decoder covers the case where a mult-byte character is split //Using string decoder covers the case where a mult-byte character is split
const stdoutDecoder = new string_decoder_1.StringDecoder('utf8'); const stdoutDecoder = new string_decoder_1.StringDecoder('utf8');
const stderrDecoder = new string_decoder_1.StringDecoder('utf8'); const stderrDecoder = new string_decoder_1.StringDecoder('utf8');
const originalStdoutListener = (_a = options === null || options === undefined ? undefined : options.listeners) === null || _a === undefined ? undefined : _a.stdout; const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;
const originalStdErrListener = (_b = options === null || options === undefined ? undefined : options.listeners) === null || _b === undefined ? undefined : _b.stderr; const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;
const stdErrListener = (data) => { const stdErrListener = (data) => {
stderr += stderrDecoder.write(data); stderr += stderrDecoder.write(data);
if (originalStdErrListener) { if (originalStdErrListener) {
@ -26785,7 +26785,7 @@ function requireExec () {
originalStdoutListener(data); originalStdoutListener(data);
} }
}; };
const listeners = Object.assign(Object.assign({}, options === null || options === undefined ? undefined : options.listeners), { stdout: stdOutListener, stderr: stdErrListener }); const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener });
const exitCode = yield exec$1(commandLine, args, Object.assign(Object.assign({}, options), { listeners })); const exitCode = yield exec$1(commandLine, args, Object.assign(Object.assign({}, options), { listeners }));
//flush any remaining characters //flush any remaining characters
stdout += stdoutDecoder.end(); stdout += stdoutDecoder.end();
@ -26844,10 +26844,10 @@ function requirePlatform () {
return (mod && mod.__esModule) ? mod : { "default": mod }; return (mod && mod.__esModule) ? mod : { "default": mod };
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = undefined; exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0;
const os_1 = __importDefault(require$$0); const os_1 = __importDefault(require$$0);
const exec = __importStar(requireExec()); const exec = __importStar(requireExec());
const getWindowsInfo = () => __awaiter(undefined, undefined, undefined, function* () { const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, { const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, {
silent: true silent: true
}); });
@ -26859,19 +26859,19 @@ function requirePlatform () {
version: version.trim() version: version.trim()
}; };
}); });
const getMacOsInfo = () => __awaiter(undefined, undefined, undefined, function* () { const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b, _c, _d; var _a, _b, _c, _d;
const { stdout } = yield exec.getExecOutput('sw_vers', undefined, { const { stdout } = yield exec.getExecOutput('sw_vers', undefined, {
silent: true silent: true
}); });
const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === undefined ? undefined : _a[1]) !== null && _b !== undefined ? _b : ''; const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === undefined ? undefined : _c[1]) !== null && _d !== undefined ? _d : ''; const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : '';
return { return {
name, name,
version version
}; };
}); });
const getLinuxInfo = () => __awaiter(undefined, undefined, undefined, function* () { const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () {
const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], { const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {
silent: true silent: true
}); });
@ -26887,7 +26887,7 @@ function requirePlatform () {
exports.isMacOS = exports.platform === 'darwin'; exports.isMacOS = exports.platform === 'darwin';
exports.isLinux = exports.platform === 'linux'; exports.isLinux = exports.platform === 'linux';
function getDetails() { function getDetails() {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return Object.assign(Object.assign({}, (yield (exports.isWindows return Object.assign(Object.assign({}, (yield (exports.isWindows
? getWindowsInfo() ? getWindowsInfo()
: exports.isMacOS : exports.isMacOS
@ -26944,7 +26944,7 @@ function requireCore () {
}); });
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = undefined; exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = requireCommand(); const command_1 = requireCommand();
const file_command_1 = requireFileCommand(); const file_command_1 = requireFileCommand();
const utils_1 = requireUtils$3(); const utils_1 = requireUtils$3();
@ -27185,7 +27185,7 @@ function requireCore () {
* @param fn The function to wrap in the group * @param fn The function to wrap in the group
*/ */
function group(name, fn) { function group(name, fn) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
startGroup(name); startGroup(name);
let result; let result;
try { try {
@ -27227,7 +27227,7 @@ function requireCore () {
} }
exports.getState = getState; exports.getState = getState;
function getIDToken(aud) { function getIDToken(aud) {
return __awaiter(this, undefined, undefined, function* () { return __awaiter(this, void 0, void 0, function* () {
return yield oidc_utils_1.OidcClient.getIDToken(aud); return yield oidc_utils_1.OidcClient.getIDToken(aud);
}); });
} }
@ -27270,7 +27270,7 @@ function requireContext () {
if (hasRequiredContext) return context; if (hasRequiredContext) return context;
hasRequiredContext = 1; hasRequiredContext = 1;
Object.defineProperty(context, "__esModule", { value: true }); Object.defineProperty(context, "__esModule", { value: true });
context.Context = undefined; context.Context = void 0;
const fs_1 = require$$1; const fs_1 = require$$1;
const os_1 = require$$0; const os_1 = require$$0;
class Context { class Context {
@ -27298,10 +27298,10 @@ function requireContext () {
this.job = process.env.GITHUB_JOB; this.job = process.env.GITHUB_JOB;
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== undefined ? _a : `https://api.github.com`; this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== undefined ? _b : `https://github.com`; this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`;
this.graphqlUrl = this.graphqlUrl =
(_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== undefined ? _c : `https://api.github.com/graphql`; (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`;
} }
get issue() { get issue() {
const payload = this.payload; const payload = this.payload;
@ -27368,7 +27368,7 @@ function requireUtils$1 () {
}); });
}; };
Object.defineProperty(utils, "__esModule", { value: true }); Object.defineProperty(utils, "__esModule", { value: true });
utils.getApiBaseUrl = utils.getProxyFetch = utils.getProxyAgentDispatcher = utils.getProxyAgent = utils.getAuthString = undefined; utils.getApiBaseUrl = utils.getProxyFetch = utils.getProxyAgentDispatcher = utils.getProxyAgent = utils.getAuthString = void 0;
const httpClient = __importStar(requireLib()); const httpClient = __importStar(requireLib());
const undici_1 = requireUndici(); const undici_1 = requireUndici();
function getAuthString(token, options) { function getAuthString(token, options) {
@ -27393,7 +27393,7 @@ function requireUtils$1 () {
utils.getProxyAgentDispatcher = getProxyAgentDispatcher; utils.getProxyAgentDispatcher = getProxyAgentDispatcher;
function getProxyFetch(destinationUrl) { function getProxyFetch(destinationUrl) {
const httpDispatcher = getProxyAgentDispatcher(destinationUrl); const httpDispatcher = getProxyAgentDispatcher(destinationUrl);
const proxyFetch = (url, opts) => __awaiter(this, undefined, undefined, function* () { const proxyFetch = (url, opts) => __awaiter(this, void 0, void 0, function* () {
return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpDispatcher })); return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpDispatcher }));
}); });
return proxyFetch; return proxyFetch;
@ -27684,7 +27684,7 @@ function mergeDeep(defaults, options) {
function removeUndefinedProperties(obj) { function removeUndefinedProperties(obj) {
for (const key in obj) { for (const key in obj) {
if (obj[key] === undefined) { if (obj[key] === void 0) {
delete obj[key]; delete obj[key];
} }
} }
@ -27768,7 +27768,7 @@ function encodeValue(operator, value, key) {
} }
} }
function isDefined(value) { function isDefined(value) {
return value !== undefined && value !== null; return value !== void 0 && value !== null;
} }
function isKeyOperator(operator) { function isKeyOperator(operator) {
return operator === ";" || operator === "&" || operator === "?"; return operator === ";" || operator === "&" || operator === "?";
@ -28179,7 +28179,7 @@ function fetchWrapper(requestOptions) {
url, url,
status, status,
headers, headers,
data: undefined data: void 0
}, },
request: requestOptions request: requestOptions
}); });
@ -30574,7 +30574,7 @@ const handler = {
} }
const method = endpointMethodsMap.get(scope).get(methodName); const method = endpointMethodsMap.get(scope).get(methodName);
if (!method) { if (!method) {
return undefined; return void 0;
} }
const { endpointDefaults, decorations } = method; const { endpointDefaults, decorations } = method;
if (decorations) { if (decorations) {
@ -30605,7 +30605,7 @@ function decorate(octokit, scope, methodName, defaults, decorations) {
if (decorations.mapToData) { if (decorations.mapToData) {
options = Object.assign({}, options, { options = Object.assign({}, options, {
data: options[decorations.mapToData], data: options[decorations.mapToData],
[decorations.mapToData]: undefined [decorations.mapToData]: void 0
}); });
return requestWithDefaults(options); return requestWithDefaults(options);
} }
@ -30737,7 +30737,7 @@ function iterator(octokit, route, parameters) {
function paginate(octokit, route, parameters, mapFn) { function paginate(octokit, route, parameters, mapFn) {
if (typeof parameters === "function") { if (typeof parameters === "function") {
mapFn = parameters; mapFn = parameters;
parameters = undefined; parameters = void 0;
} }
return gather( return gather(
octokit, octokit,
@ -31065,7 +31065,7 @@ function requireUtils () {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = undefined; exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;
const Context = __importStar(requireContext()); const Context = __importStar(requireContext());
const Utils = __importStar(requireUtils$1()); const Utils = __importStar(requireUtils$1());
// octokit + plugins // octokit + plugins
@ -31132,7 +31132,7 @@ function requireGithub () {
return result; return result;
}; };
Object.defineProperty(github, "__esModule", { value: true }); Object.defineProperty(github, "__esModule", { value: true });
github.getOctokit = github.context = undefined; github.getOctokit = github.context = void 0;
const Context = __importStar(requireContext()); const Context = __importStar(requireContext());
const utils_1 = requireUtils(); const utils_1 = requireUtils();
github.context = new Context.Context(); github.context = new Context.Context();