diff --git a/README.md b/README.md index 5e2d67f..3a80374 100644 --- a/README.md +++ b/README.md @@ -199,11 +199,11 @@ jobs: # - `[version]`: app version # - `[platform]`: target platform (OS) # - `[arch]`: target architecture - format differs per platform - # - `[ext]`: file extension (`.app`, `.dmg`, `.msi`, `.exe`, `.AppImage`, `.deb`, `.rpm`) + # - `[ext]`: file extension (`.app`, `.dmg`, `.msi`, `.exe`, `.AppImage`, `.deb`, `.rpm`, `.apk`, `.aab`, `.ipa`) # - `[mode]`: `debug` or `release` depending on the use of the `--debug` flag. # - `[setup]`: `-setup` for the NSIS installer or an empty string for all other types. # - `[_setup]`: `_setup` for the NSIS installer or an empty string for all other types. - # - `[bundle]`: one of `app`, `dmg`, `msi`, `nsis`, `appimage`, `deb`, `rpm`, `bin`. + # - `[bundle]`: one of `app`, `dmg`, `msi`, `nsis`, `appimage`, `deb`, `rpm`, `apk`, `aab`, `ipa`, `bin`. # # default: If not set, the names given by Tauri's CLI are kept. releaseAssetNamePattern: '' diff --git a/dist/index.js b/dist/index.js index a2002b4..8e53325 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,7 @@ import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module"; /******/ var __webpack_modules__ = ({ -/***/ 56037: +/***/ 47429: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -20,17 +20,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -const client_1 = __nccwpck_require__(59010); -__exportStar(__nccwpck_require__(22663), exports); -__exportStar(__nccwpck_require__(5228), exports); -__exportStar(__nccwpck_require__(59010), exports); +const client_1 = __nccwpck_require__(53346); +__exportStar(__nccwpck_require__(58343), exports); +__exportStar(__nccwpck_require__(7500), exports); +__exportStar(__nccwpck_require__(53346), exports); const client = new client_1.DefaultArtifactClient(); exports["default"] = client; //# sourceMappingURL=artifact.js.map /***/ }), -/***/ 81209: +/***/ 28889: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { @@ -172,7 +172,7 @@ exports.Timestamp = new Timestamp$Type(); /***/ }), -/***/ 94769: +/***/ 68177: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { @@ -787,7 +787,7 @@ exports.BytesValue = new BytesValue$Type(); /***/ }), -/***/ 47537: +/***/ 62705: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -806,15 +806,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -__exportStar(__nccwpck_require__(81209), exports); -__exportStar(__nccwpck_require__(94769), exports); -__exportStar(__nccwpck_require__(72639), exports); -__exportStar(__nccwpck_require__(5399), exports); +__exportStar(__nccwpck_require__(28889), exports); +__exportStar(__nccwpck_require__(68177), exports); +__exportStar(__nccwpck_require__(85887), exports); +__exportStar(__nccwpck_require__(72567), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ 72639: +/***/ 85887: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { @@ -829,9 +829,9 @@ const runtime_2 = __nccwpck_require__(68140); const runtime_3 = __nccwpck_require__(68140); const runtime_4 = __nccwpck_require__(68140); const runtime_5 = __nccwpck_require__(68140); -const wrappers_1 = __nccwpck_require__(94769); -const wrappers_2 = __nccwpck_require__(94769); -const timestamp_1 = __nccwpck_require__(81209); +const wrappers_1 = __nccwpck_require__(68177); +const wrappers_2 = __nccwpck_require__(68177); +const timestamp_1 = __nccwpck_require__(28889); // @generated message type with reflection information, may provide speed optimized methods class MigrateArtifactRequest$Type extends runtime_5.MessageType { constructor() { @@ -1763,13 +1763,13 @@ exports.ArtifactService = new runtime_rpc_1.ServiceType("github.actions.results. /***/ }), -/***/ 5399: +/***/ 72567: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ArtifactServiceClientProtobuf = exports.ArtifactServiceClientJSON = void 0; -const artifact_1 = __nccwpck_require__(72639); +const artifact_1 = __nccwpck_require__(85887); class ArtifactServiceClientJSON { constructor(rpc) { this.rpc = rpc; @@ -1869,7 +1869,7 @@ exports.ArtifactServiceClientProtobuf = ArtifactServiceClientProtobuf; /***/ }), -/***/ 59010: +/***/ 53346: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -1895,14 +1895,14 @@ var __rest = (this && this.__rest) || function (s, e) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultArtifactClient = void 0; -const core_1 = __nccwpck_require__(16966); -const config_1 = __nccwpck_require__(84361); -const upload_artifact_1 = __nccwpck_require__(92689); -const download_artifact_1 = __nccwpck_require__(70063); -const delete_artifact_1 = __nccwpck_require__(2457); -const get_artifact_1 = __nccwpck_require__(7056); -const list_artifacts_1 = __nccwpck_require__(30895); -const errors_1 = __nccwpck_require__(5228); +const core_1 = __nccwpck_require__(71635); +const config_1 = __nccwpck_require__(43753); +const upload_artifact_1 = __nccwpck_require__(16785); +const download_artifact_1 = __nccwpck_require__(86639); +const delete_artifact_1 = __nccwpck_require__(7577); +const get_artifact_1 = __nccwpck_require__(18192); +const list_artifacts_1 = __nccwpck_require__(47151); +const errors_1 = __nccwpck_require__(7500); /** * The default artifact client that is used by the artifact action(s). */ @@ -2019,7 +2019,7 @@ exports.DefaultArtifactClient = DefaultArtifactClient; /***/ }), -/***/ 2457: +/***/ 7577: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -2035,18 +2035,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", ({ value: true })); exports.deleteArtifactPublic = deleteArtifactPublic; exports.deleteArtifactInternal = deleteArtifactInternal; -const core_1 = __nccwpck_require__(16966); +const core_1 = __nccwpck_require__(71635); const github_1 = __nccwpck_require__(84903); -const user_agent_1 = __nccwpck_require__(8052); -const retry_options_1 = __nccwpck_require__(28012); +const user_agent_1 = __nccwpck_require__(90388); +const retry_options_1 = __nccwpck_require__(59692); const utils_1 = __nccwpck_require__(24523); const plugin_request_log_1 = __nccwpck_require__(83909); const plugin_retry_1 = __nccwpck_require__(38957); -const artifact_twirp_client_1 = __nccwpck_require__(60716); -const util_1 = __nccwpck_require__(16427); -const generated_1 = __nccwpck_require__(47537); -const get_artifact_1 = __nccwpck_require__(7056); -const errors_1 = __nccwpck_require__(5228); +const artifact_twirp_client_1 = __nccwpck_require__(36812); +const util_1 = __nccwpck_require__(69899); +const generated_1 = __nccwpck_require__(62705); +const get_artifact_1 = __nccwpck_require__(18192); +const errors_1 = __nccwpck_require__(7500); function deleteArtifactPublic(artifactName, workflowRunId, repositoryOwner, repositoryName, token) { return __awaiter(this, void 0, void 0, function* () { var _a; @@ -2107,7 +2107,7 @@ function deleteArtifactInternal(artifactName) { /***/ }), -/***/ 70063: +/***/ 86639: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -2164,15 +2164,15 @@ const promises_1 = __importDefault(__nccwpck_require__(91943)); const crypto = __importStar(__nccwpck_require__(76982)); const stream = __importStar(__nccwpck_require__(2203)); const github = __importStar(__nccwpck_require__(84903)); -const core = __importStar(__nccwpck_require__(16966)); -const httpClient = __importStar(__nccwpck_require__(21966)); +const core = __importStar(__nccwpck_require__(71635)); +const httpClient = __importStar(__nccwpck_require__(2430)); const unzip_stream_1 = __importDefault(__nccwpck_require__(34340)); -const user_agent_1 = __nccwpck_require__(8052); -const config_1 = __nccwpck_require__(84361); -const artifact_twirp_client_1 = __nccwpck_require__(60716); -const generated_1 = __nccwpck_require__(47537); -const util_1 = __nccwpck_require__(16427); -const errors_1 = __nccwpck_require__(5228); +const user_agent_1 = __nccwpck_require__(90388); +const config_1 = __nccwpck_require__(43753); +const artifact_twirp_client_1 = __nccwpck_require__(36812); +const generated_1 = __nccwpck_require__(62705); +const util_1 = __nccwpck_require__(69899); +const errors_1 = __nccwpck_require__(7500); const scrubQueryParameters = (url) => { const parsed = new URL(url); parsed.search = ''; @@ -2356,7 +2356,7 @@ function resolveOrCreateDirectory() { /***/ }), -/***/ 7056: +/***/ 18192: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -2407,15 +2407,15 @@ exports.getArtifactPublic = getArtifactPublic; exports.getArtifactInternal = getArtifactInternal; const github_1 = __nccwpck_require__(84903); const plugin_retry_1 = __nccwpck_require__(38957); -const core = __importStar(__nccwpck_require__(16966)); +const core = __importStar(__nccwpck_require__(71635)); const utils_1 = __nccwpck_require__(24523); -const retry_options_1 = __nccwpck_require__(28012); +const retry_options_1 = __nccwpck_require__(59692); const plugin_request_log_1 = __nccwpck_require__(83909); -const util_1 = __nccwpck_require__(16427); -const user_agent_1 = __nccwpck_require__(8052); -const artifact_twirp_client_1 = __nccwpck_require__(60716); -const generated_1 = __nccwpck_require__(47537); -const errors_1 = __nccwpck_require__(5228); +const util_1 = __nccwpck_require__(69899); +const user_agent_1 = __nccwpck_require__(90388); +const artifact_twirp_client_1 = __nccwpck_require__(36812); +const generated_1 = __nccwpck_require__(62705); +const errors_1 = __nccwpck_require__(7500); function getArtifactPublic(artifactName, workflowRunId, repositoryOwner, repositoryName, token) { return __awaiter(this, void 0, void 0, function* () { var _a; @@ -2498,7 +2498,7 @@ function getArtifactInternal(artifactName) { /***/ }), -/***/ 30895: +/***/ 47151: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -2514,17 +2514,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", ({ value: true })); exports.listArtifactsPublic = listArtifactsPublic; exports.listArtifactsInternal = listArtifactsInternal; -const core_1 = __nccwpck_require__(16966); +const core_1 = __nccwpck_require__(71635); const github_1 = __nccwpck_require__(84903); -const user_agent_1 = __nccwpck_require__(8052); -const retry_options_1 = __nccwpck_require__(28012); +const user_agent_1 = __nccwpck_require__(90388); +const retry_options_1 = __nccwpck_require__(59692); const utils_1 = __nccwpck_require__(24523); const plugin_request_log_1 = __nccwpck_require__(83909); const plugin_retry_1 = __nccwpck_require__(38957); -const artifact_twirp_client_1 = __nccwpck_require__(60716); -const util_1 = __nccwpck_require__(16427); -const config_1 = __nccwpck_require__(84361); -const generated_1 = __nccwpck_require__(47537); +const artifact_twirp_client_1 = __nccwpck_require__(36812); +const util_1 = __nccwpck_require__(69899); +const config_1 = __nccwpck_require__(43753); +const generated_1 = __nccwpck_require__(62705); const maximumArtifactCount = (0, config_1.getMaxArtifactListCount)(); const paginationCount = 100; const maxNumberOfPages = Math.ceil(maximumArtifactCount / paginationCount); @@ -2651,7 +2651,7 @@ function filterLatest(artifacts) { /***/ }), -/***/ 28012: +/***/ 59692: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -2690,7 +2690,7 @@ var __importStar = (this && this.__importStar) || (function () { })(); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRetryOptions = getRetryOptions; -const core = __importStar(__nccwpck_require__(16966)); +const core = __importStar(__nccwpck_require__(71635)); // Defaults for fetching artifacts const defaultMaxRetryNumber = 5; const defaultExemptStatusCodes = [400, 401, 403, 404, 422]; // https://github.com/octokit/plugin-retry.js/blob/9a2443746c350b3beedec35cf26e197ea318a261/src/index.ts#L14 @@ -2716,7 +2716,7 @@ function getRetryOptions(defaultOptions, retries = defaultMaxRetryNumber, exempt /***/ }), -/***/ 60716: +/***/ 36812: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -2731,14 +2731,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.internalArtifactTwirpClient = internalArtifactTwirpClient; -const http_client_1 = __nccwpck_require__(21966); -const auth_1 = __nccwpck_require__(19418); -const core_1 = __nccwpck_require__(16966); -const generated_1 = __nccwpck_require__(47537); -const config_1 = __nccwpck_require__(84361); -const user_agent_1 = __nccwpck_require__(8052); -const errors_1 = __nccwpck_require__(5228); -const util_1 = __nccwpck_require__(16427); +const http_client_1 = __nccwpck_require__(2430); +const auth_1 = __nccwpck_require__(38314); +const core_1 = __nccwpck_require__(71635); +const generated_1 = __nccwpck_require__(62705); +const config_1 = __nccwpck_require__(43753); +const user_agent_1 = __nccwpck_require__(90388); +const errors_1 = __nccwpck_require__(7500); +const util_1 = __nccwpck_require__(69899); class ArtifactHttpClient { constructor(userAgent, maxAttempts, baseRetryIntervalMilliseconds, retryMultiplier) { this.maxAttempts = 5; @@ -2875,7 +2875,7 @@ function internalArtifactTwirpClient(options) { /***/ }), -/***/ 84361: +/***/ 43753: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -2892,7 +2892,7 @@ exports.getConcurrency = getConcurrency; exports.getUploadChunkTimeout = getUploadChunkTimeout; exports.getMaxArtifactListCount = getMaxArtifactListCount; const os_1 = __importDefault(__nccwpck_require__(70857)); -const core_1 = __nccwpck_require__(16966); +const core_1 = __nccwpck_require__(71635); // Used for controlling the highWaterMark value of the zip that is being streamed // The same value is used as the chunk size that is use during upload to blob storage function getUploadChunkSize() { @@ -2977,7 +2977,7 @@ function getMaxArtifactListCount() { /***/ }), -/***/ 5228: +/***/ 7500: /***/ ((__unused_webpack_module, exports) => { @@ -3053,7 +3053,7 @@ UsageError.isUsageErrorMessage = (msg) => { /***/ }), -/***/ 22663: +/***/ 58343: /***/ ((__unused_webpack_module, exports) => { @@ -3062,14 +3062,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); /***/ }), -/***/ 8052: +/***/ 90388: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getUserAgentString = getUserAgentString; // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports -const packageJson = __nccwpck_require__(39586); +const packageJson = __nccwpck_require__(75074); /** * Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package */ @@ -3080,7 +3080,7 @@ function getUserAgentString() { /***/ }), -/***/ 16427: +/***/ 69899: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -3124,10 +3124,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getBackendIdsFromToken = getBackendIdsFromToken; exports.maskSigUrl = maskSigUrl; exports.maskSecretUrls = maskSecretUrls; -const core = __importStar(__nccwpck_require__(16966)); -const config_1 = __nccwpck_require__(84361); +const core = __importStar(__nccwpck_require__(71635)); +const config_1 = __nccwpck_require__(43753); const jwt_decode_1 = __importDefault(__nccwpck_require__(25724)); -const core_1 = __nccwpck_require__(16966); +const core_1 = __nccwpck_require__(71635); const InvalidJwtError = new Error('Failed to get backend IDs: The provided JWT token is invalid and/or missing claims'); // uses the JWT token claims to get the // workflow run and workflow job run backend ids @@ -3245,7 +3245,7 @@ function maskSecretUrls(body) { /***/ }), -/***/ 52092: +/***/ 63164: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -3294,11 +3294,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", ({ value: true })); exports.uploadZipToBlobStorage = uploadZipToBlobStorage; const storage_blob_1 = __nccwpck_require__(32917); -const config_1 = __nccwpck_require__(84361); -const core = __importStar(__nccwpck_require__(16966)); +const config_1 = __nccwpck_require__(43753); +const core = __importStar(__nccwpck_require__(71635)); const crypto = __importStar(__nccwpck_require__(76982)); const stream = __importStar(__nccwpck_require__(2203)); -const errors_1 = __nccwpck_require__(5228); +const errors_1 = __nccwpck_require__(7500); function uploadZipToBlobStorage(authenticatedUploadURL, zipUploadStream) { return __awaiter(this, void 0, void 0, function* () { let uploadByteCount = 0; @@ -3370,14 +3370,14 @@ function uploadZipToBlobStorage(authenticatedUploadURL, zipUploadStream) { /***/ }), -/***/ 98223: +/***/ 13103: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.validateArtifactName = validateArtifactName; exports.validateFilePath = validateFilePath; -const core_1 = __nccwpck_require__(16966); +const core_1 = __nccwpck_require__(71635); /** * Invalid characters that cannot be in the artifact name or an uploaded file. Will be rejected * from the server if attempted to be sent over. These characters are not allowed due to limitations with certain @@ -3442,7 +3442,7 @@ The following characters are not allowed in files that are uploaded due to limit /***/ }), -/***/ 26341: +/***/ 40293: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -3481,8 +3481,8 @@ var __importStar = (this && this.__importStar) || (function () { })(); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getExpiration = getExpiration; -const generated_1 = __nccwpck_require__(47537); -const core = __importStar(__nccwpck_require__(16966)); +const generated_1 = __nccwpck_require__(62705); +const core = __importStar(__nccwpck_require__(71635)); function getExpiration(retentionDays) { if (!retentionDays) { return undefined; @@ -3511,7 +3511,7 @@ function getRetentionDays() { /***/ }), -/***/ 92689: +/***/ 16785: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -3559,16 +3559,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.uploadArtifact = uploadArtifact; -const core = __importStar(__nccwpck_require__(16966)); -const retention_1 = __nccwpck_require__(26341); -const path_and_artifact_name_validation_1 = __nccwpck_require__(98223); -const artifact_twirp_client_1 = __nccwpck_require__(60716); -const upload_zip_specification_1 = __nccwpck_require__(1736); -const util_1 = __nccwpck_require__(16427); -const blob_upload_1 = __nccwpck_require__(52092); -const zip_1 = __nccwpck_require__(1668); -const generated_1 = __nccwpck_require__(47537); -const errors_1 = __nccwpck_require__(5228); +const core = __importStar(__nccwpck_require__(71635)); +const retention_1 = __nccwpck_require__(40293); +const path_and_artifact_name_validation_1 = __nccwpck_require__(13103); +const artifact_twirp_client_1 = __nccwpck_require__(36812); +const upload_zip_specification_1 = __nccwpck_require__(90760); +const util_1 = __nccwpck_require__(69899); +const blob_upload_1 = __nccwpck_require__(63164); +const zip_1 = __nccwpck_require__(53700); +const generated_1 = __nccwpck_require__(62705); +const errors_1 = __nccwpck_require__(7500); function uploadArtifact(name, files, rootDirectory, options) { return __awaiter(this, void 0, void 0, function* () { (0, path_and_artifact_name_validation_1.validateArtifactName)(name); @@ -3630,7 +3630,7 @@ function uploadArtifact(name, files, rootDirectory, options) { /***/ }), -/***/ 1736: +/***/ 90760: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -3671,9 +3671,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.validateRootDirectory = validateRootDirectory; exports.getUploadZipSpecification = getUploadZipSpecification; const fs = __importStar(__nccwpck_require__(79896)); -const core_1 = __nccwpck_require__(16966); +const core_1 = __nccwpck_require__(71635); const path_1 = __nccwpck_require__(16928); -const path_and_artifact_name_validation_1 = __nccwpck_require__(98223); +const path_and_artifact_name_validation_1 = __nccwpck_require__(13103); /** * Checks if a root directory exists and is valid * @param rootDirectory an absolute root directory path common to all input files that that will be trimmed from the final zip structure @@ -3761,7 +3761,7 @@ function getUploadZipSpecification(filesToZip, rootDirectory) { /***/ }), -/***/ 1668: +/***/ 53700: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -3813,8 +3813,8 @@ exports.createZipUploadStream = createZipUploadStream; const stream = __importStar(__nccwpck_require__(2203)); const promises_1 = __nccwpck_require__(91943); const archiver = __importStar(__nccwpck_require__(72709)); -const core = __importStar(__nccwpck_require__(16966)); -const config_1 = __nccwpck_require__(84361); +const core = __importStar(__nccwpck_require__(71635)); +const config_1 = __nccwpck_require__(43753); exports.DEFAULT_COMPRESSION_LEVEL = 6; // Custom stream transformer so we can set the highWaterMark property // See https://github.com/nodejs/node/issues/8855 @@ -3895,7 +3895,7 @@ const zipEndCallback = () => { /***/ }), -/***/ 44568: +/***/ 49691: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -3915,36 +3915,68 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.issue = exports.issueCommand = void 0; +exports.issueCommand = issueCommand; +exports.issue = issue; const os = __importStar(__nccwpck_require__(70857)); -const utils_1 = __nccwpck_require__(36924); +const utils_1 = __nccwpck_require__(8831); /** - * Commands + * Issues a command to the GitHub Actions runner + * + * @param command - The command name to issue + * @param properties - Additional properties for the command (key-value pairs) + * @param message - The message to include with the command + * @remarks + * This function outputs a specially formatted string to stdout that the Actions + * runner interprets as a command. These commands can control workflow behavior, + * set outputs, create annotations, mask values, and more. * * Command Format: * ::name key=value,key=value::message * - * Examples: - * ::warning::This is the message - * ::set-env name=MY_VAR::some value + * @example + * ```typescript + * // Issue a warning annotation + * issueCommand('warning', {}, 'This is a warning message'); + * // Output: ::warning::This is a warning message + * + * // Set an environment variable + * issueCommand('set-env', { name: 'MY_VAR' }, 'some value'); + * // Output: ::set-env name=MY_VAR::some value + * + * // Add a secret mask + * issueCommand('add-mask', {}, 'secretValue123'); + * // Output: ::add-mask::secretValue123 + * ``` + * + * @internal + * This is an internal utility function that powers the public API functions + * such as setSecret, warning, error, and exportVariable. */ function issueCommand(command, properties, message) { const cmd = new Command(command, properties, message); process.stdout.write(cmd.toString() + os.EOL); } -exports.issueCommand = issueCommand; function issue(name, message = '') { issueCommand(name, {}, message); } -exports.issue = issue; const CMD_STRING = '::'; class Command { constructor(command, properties, message) { @@ -3997,7 +4029,7 @@ function escapeProperty(s) { /***/ }), -/***/ 16966: +/***/ 71635: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -4017,13 +4049,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -4034,13 +4076,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; 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 = void 0; -const command_1 = __nccwpck_require__(44568); -const file_command_1 = __nccwpck_require__(2751); -const utils_1 = __nccwpck_require__(36924); +exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.ExitCode = void 0; +exports.exportVariable = exportVariable; +exports.setSecret = setSecret; +exports.addPath = addPath; +exports.getInput = getInput; +exports.getMultilineInput = getMultilineInput; +exports.getBooleanInput = getBooleanInput; +exports.setOutput = setOutput; +exports.setCommandEcho = setCommandEcho; +exports.setFailed = setFailed; +exports.isDebug = isDebug; +exports.debug = debug; +exports.error = error; +exports.warning = warning; +exports.notice = notice; +exports.info = info; +exports.startGroup = startGroup; +exports.endGroup = endGroup; +exports.group = group; +exports.saveState = saveState; +exports.getState = getState; +exports.getIDToken = getIDToken; +const command_1 = __nccwpck_require__(49691); +const file_command_1 = __nccwpck_require__(366); +const utils_1 = __nccwpck_require__(8831); const os = __importStar(__nccwpck_require__(70857)); const path = __importStar(__nccwpck_require__(16928)); -const oidc_utils_1 = __nccwpck_require__(8492); +const oidc_utils_1 = __nccwpck_require__(91841); /** * The code to exit an action */ @@ -4073,15 +4136,38 @@ function exportVariable(name, val) { } (0, command_1.issueCommand)('set-env', { name }, convertedVal); } -exports.exportVariable = exportVariable; /** * Registers a secret which will get masked from logs - * @param secret value of the secret + * + * @param secret - Value of the secret to be masked + * @remarks + * This function instructs the Actions runner to mask the specified value in any + * logs produced during the workflow run. Once registered, the secret value will + * be replaced with asterisks (***) whenever it appears in console output, logs, + * or error messages. + * + * This is useful for protecting sensitive information such as: + * - API keys + * - Access tokens + * - Authentication credentials + * - URL parameters containing signatures (SAS tokens) + * + * Note that masking only affects future logs; any previous appearances of the + * secret in logs before calling this function will remain unmasked. + * + * @example + * ```typescript + * // Register an API token as a secret + * const apiToken = "abc123xyz456"; + * setSecret(apiToken); + * + * // Now any logs containing this value will show *** instead + * console.log(`Using token: ${apiToken}`); // Outputs: "Using token: ***" + * ``` */ function setSecret(secret) { (0, command_1.issueCommand)('add-mask', {}, secret); } -exports.setSecret = setSecret; /** * Prepends inputPath to the PATH (for this action and future actions) * @param inputPath @@ -4096,7 +4182,6 @@ function addPath(inputPath) { } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } -exports.addPath = addPath; /** * Gets the value of an input. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. @@ -4116,7 +4201,6 @@ function getInput(name, options) { } return val.trim(); } -exports.getInput = getInput; /** * Gets the values of an multiline input. Each value is also trimmed. * @@ -4134,7 +4218,6 @@ function getMultilineInput(name, options) { } return inputs.map(input => input.trim()); } -exports.getMultilineInput = getMultilineInput; /** * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. * Support boolean input list: `true | True | TRUE | false | False | FALSE` . @@ -4156,7 +4239,6 @@ function getBooleanInput(name, options) { throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } -exports.getBooleanInput = getBooleanInput; /** * Sets the value of an output. * @@ -4172,7 +4254,6 @@ function setOutput(name, value) { process.stdout.write(os.EOL); (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); } -exports.setOutput = setOutput; /** * Enables or disables the echoing of commands into stdout for the rest of the step. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. @@ -4181,7 +4262,6 @@ exports.setOutput = setOutput; function setCommandEcho(enabled) { (0, command_1.issue)('echo', enabled ? 'on' : 'off'); } -exports.setCommandEcho = setCommandEcho; //----------------------------------------------------------------------- // Results //----------------------------------------------------------------------- @@ -4194,7 +4274,6 @@ function setFailed(message) { process.exitCode = ExitCode.Failure; error(message); } -exports.setFailed = setFailed; //----------------------------------------------------------------------- // Logging Commands //----------------------------------------------------------------------- @@ -4204,7 +4283,6 @@ exports.setFailed = setFailed; function isDebug() { return process.env['RUNNER_DEBUG'] === '1'; } -exports.isDebug = isDebug; /** * Writes debug message to user log * @param message debug message @@ -4212,7 +4290,6 @@ exports.isDebug = isDebug; function debug(message) { (0, command_1.issueCommand)('debug', {}, message); } -exports.debug = debug; /** * Adds an error issue * @param message error issue message. Errors will be converted to string via toString() @@ -4221,7 +4298,6 @@ exports.debug = debug; function error(message, properties = {}) { (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } -exports.error = error; /** * Adds a warning issue * @param message warning issue message. Errors will be converted to string via toString() @@ -4230,7 +4306,6 @@ exports.error = error; function warning(message, properties = {}) { (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } -exports.warning = warning; /** * Adds a notice issue * @param message notice issue message. Errors will be converted to string via toString() @@ -4239,7 +4314,6 @@ exports.warning = warning; function notice(message, properties = {}) { (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } -exports.notice = notice; /** * Writes info to log with console.log. * @param message info message @@ -4247,7 +4321,6 @@ exports.notice = notice; function info(message) { process.stdout.write(message + os.EOL); } -exports.info = info; /** * Begin an output group. * @@ -4258,14 +4331,12 @@ exports.info = info; function startGroup(name) { (0, command_1.issue)('group', name); } -exports.startGroup = startGroup; /** * End an output group. */ function endGroup() { (0, command_1.issue)('endgroup'); } -exports.endGroup = endGroup; /** * Wrap an asynchronous function call in a group. * @@ -4287,7 +4358,6 @@ function group(name, fn) { return result; }); } -exports.group = group; //----------------------------------------------------------------------- // Wrapper action state //----------------------------------------------------------------------- @@ -4305,7 +4375,6 @@ function saveState(name, value) { } (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); } -exports.saveState = saveState; /** * Gets the value of an state set by this action's main execution. * @@ -4315,39 +4384,37 @@ exports.saveState = saveState; function getState(name) { return process.env[`STATE_${name}`] || ''; } -exports.getState = getState; function getIDToken(aud) { return __awaiter(this, void 0, void 0, function* () { return yield oidc_utils_1.OidcClient.getIDToken(aud); }); } -exports.getIDToken = getIDToken; /** * Summary exports */ -var summary_1 = __nccwpck_require__(92905); +var summary_1 = __nccwpck_require__(63162); Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); /** * @deprecated use core.summary */ -var summary_2 = __nccwpck_require__(92905); +var summary_2 = __nccwpck_require__(63162); Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); /** * Path exports */ -var path_utils_1 = __nccwpck_require__(71746); +var path_utils_1 = __nccwpck_require__(97335); Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } })); Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } })); Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } })); /** * Platform utilities exports */ -exports.platform = __importStar(__nccwpck_require__(39866)); +exports.platform = __importStar(__nccwpck_require__(52863)); //# sourceMappingURL=core.js.map /***/ }), -/***/ 2751: +/***/ 366: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -4368,21 +4435,32 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; +exports.issueFileCommand = issueFileCommand; +exports.prepareKeyValueMessage = prepareKeyValueMessage; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ const crypto = __importStar(__nccwpck_require__(76982)); const fs = __importStar(__nccwpck_require__(79896)); const os = __importStar(__nccwpck_require__(70857)); -const utils_1 = __nccwpck_require__(36924); +const utils_1 = __nccwpck_require__(8831); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; if (!filePath) { @@ -4395,7 +4473,6 @@ function issueFileCommand(command, message) { encoding: 'utf8' }); } -exports.issueFileCommand = issueFileCommand; function prepareKeyValueMessage(key, value) { const delimiter = `ghadelimiter_${crypto.randomUUID()}`; const convertedValue = (0, utils_1.toCommandValue)(value); @@ -4410,12 +4487,11 @@ function prepareKeyValueMessage(key, value) { } return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`; } -exports.prepareKeyValueMessage = prepareKeyValueMessage; //# sourceMappingURL=file-command.js.map /***/ }), -/***/ 8492: +/***/ 91841: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -4430,9 +4506,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OidcClient = void 0; -const http_client_1 = __nccwpck_require__(21966); -const auth_1 = __nccwpck_require__(19418); -const core_1 = __nccwpck_require__(16966); +const http_client_1 = __nccwpck_require__(2430); +const auth_1 = __nccwpck_require__(38314); +const core_1 = __nccwpck_require__(71635); class OidcClient { static createHttpClient(allowRetry = true, maxRetry = 10) { const requestOptions = { @@ -4456,8 +4532,8 @@ class OidcClient { return runtimeUrl; } static getCall(id_token_url) { - var _a; return __awaiter(this, void 0, void 0, function* () { + var _a; const httpclient = OidcClient.createHttpClient(); const res = yield httpclient .getJson(id_token_url) @@ -4498,7 +4574,7 @@ exports.OidcClient = OidcClient; /***/ }), -/***/ 71746: +/***/ 97335: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -4518,15 +4594,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; +exports.toPosixPath = toPosixPath; +exports.toWin32Path = toWin32Path; +exports.toPlatformPath = toPlatformPath; const path = __importStar(__nccwpck_require__(16928)); /** * toPosixPath converts the given path to the posix form. On Windows, \\ will be @@ -4538,7 +4626,6 @@ const path = __importStar(__nccwpck_require__(16928)); function toPosixPath(pth) { return pth.replace(/[\\]/g, '/'); } -exports.toPosixPath = toPosixPath; /** * toWin32Path converts the given path to the win32 form. On Linux, / will be * replaced with \\. @@ -4549,7 +4636,6 @@ exports.toPosixPath = toPosixPath; function toWin32Path(pth) { return pth.replace(/[/]/g, '\\'); } -exports.toWin32Path = toWin32Path; /** * toPlatformPath converts the given path to a platform-specific path. It does * this by replacing instances of / and \ with the platform-specific path @@ -4561,12 +4647,11 @@ exports.toWin32Path = toWin32Path; function toPlatformPath(pth) { return pth.replace(/[/\\]/g, path.sep); } -exports.toPlatformPath = toPlatformPath; //# sourceMappingURL=path-utils.js.map /***/ }), -/***/ 39866: +/***/ 52863: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -4586,13 +4671,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -4606,9 +4701,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; +exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; +exports.getDetails = getDetails; const os_1 = __importDefault(__nccwpck_require__(70857)); -const exec = __importStar(__nccwpck_require__(92851)); +const exec = __importStar(__nccwpck_require__(24154)); 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, { silent: true @@ -4661,12 +4757,11 @@ function getDetails() { isLinux: exports.isLinux }); }); } -exports.getDetails = getDetails; //# sourceMappingURL=platform.js.map /***/ }), -/***/ 92905: +/***/ 63162: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -4955,14 +5050,15 @@ exports.summary = _summary; /***/ }), -/***/ 36924: +/***/ 8831: /***/ ((__unused_webpack_module, exports) => { // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toCommandProperties = exports.toCommandValue = void 0; +exports.toCommandValue = toCommandValue; +exports.toCommandProperties = toCommandProperties; /** * Sanitizes an input into a string so it can be passed into issueCommand safely * @param input input to sanitize into a string @@ -4976,7 +5072,6 @@ function toCommandValue(input) { } return JSON.stringify(input); } -exports.toCommandValue = toCommandValue; /** * * @param annotationProperties @@ -4996,18 +5091,21 @@ function toCommandProperties(annotationProperties) { endColumn: annotationProperties.endColumn }; } -exports.toCommandProperties = toCommandProperties; //# sourceMappingURL=utils.js.map /***/ }), -/***/ 92851: +/***/ 24154: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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]; @@ -5017,13 +5115,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -5034,9 +5142,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getExecOutput = exports.exec = void 0; +exports.exec = exec; +exports.getExecOutput = getExecOutput; const string_decoder_1 = __nccwpck_require__(13193); -const tr = __importStar(__nccwpck_require__(39390)); +const tr = __importStar(__nccwpck_require__(82771)); /** * Exec a command. * Output will be streamed to the live console. @@ -5060,7 +5169,6 @@ function exec(commandLine, args, options) { return runner.exec(); }); } -exports.exec = exec; /** * Exec a command and get the output. * Output will be streamed to the live console. @@ -5072,8 +5180,8 @@ exports.exec = exec; * @returns Promise exit code, stdout, and stderr */ function getExecOutput(commandLine, args, options) { - var _a, _b; return __awaiter(this, void 0, void 0, function* () { + var _a, _b; let stdout = ''; let stderr = ''; //Using string decoder covers the case where a mult-byte character is split @@ -5105,18 +5213,21 @@ function getExecOutput(commandLine, args, options) { }; }); } -exports.getExecOutput = getExecOutput; //# sourceMappingURL=exec.js.map /***/ }), -/***/ 39390: +/***/ 82771: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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]; @@ -5126,13 +5237,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -5143,13 +5264,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.argStringToArray = exports.ToolRunner = void 0; +exports.ToolRunner = void 0; +exports.argStringToArray = argStringToArray; const os = __importStar(__nccwpck_require__(70857)); const events = __importStar(__nccwpck_require__(24434)); const child = __importStar(__nccwpck_require__(35317)); const path = __importStar(__nccwpck_require__(16928)); -const io = __importStar(__nccwpck_require__(60378)); -const ioUtil = __importStar(__nccwpck_require__(80527)); +const io = __importStar(__nccwpck_require__(46893)); +const ioUtil = __importStar(__nccwpck_require__(9610)); const timers_1 = __nccwpck_require__(53557); /* eslint-disable @typescript-eslint/unbound-method */ const IS_WINDOWS = process.platform === 'win32'; @@ -5375,10 +5497,7 @@ class ToolRunner extends events.EventEmitter { } } reverse += '"'; - return reverse - .split('') - .reverse() - .join(''); + return reverse.split('').reverse().join(''); } _uvQuoteCmdArg(arg) { // Tool runner wraps child_process.spawn() and needs to apply the same quoting as @@ -5454,10 +5573,7 @@ class ToolRunner extends events.EventEmitter { } } reverse += '"'; - return reverse - .split('') - .reverse() - .join(''); + return reverse.split('').reverse().join(''); } _cloneExecOptions(options) { options = options || {}; @@ -5661,7 +5777,6 @@ function argStringToArray(argString) { } return args; } -exports.argStringToArray = argStringToArray; class ExecState extends events.EventEmitter { constructor(options, toolPath) { super(); @@ -5690,7 +5805,7 @@ class ExecState extends events.EventEmitter { this._setResult(); } else if (this.processExited) { - this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this); + this.timeout = (0, timers_1.setTimeout)(ExecState.HandleTimeout, this.delay, this); } } _debug(message) { @@ -5723,8 +5838,7 @@ class ExecState extends events.EventEmitter { return; } if (!state.processClosed && state.processExited) { - const message = `The STDIO streams did not close within ${state.delay / - 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`; + const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`; state._debug(message); } state._setResult(); @@ -5984,93 +6098,6 @@ exports.getOctokitOptions = getOctokitOptions; /***/ }), -/***/ 19418: -/***/ (function(__unused_webpack_module, exports) { - - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; -class BasicCredentialHandler { - constructor(username, password) { - this.username = username; - this.password = password; - } - prepareRequest(options) { - if (!options.headers) { - throw Error('The request has no headers'); - } - options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; - } - // This handler cannot handle 401 - canHandleAuthentication() { - return false; - } - handleAuthentication() { - return __awaiter(this, void 0, void 0, function* () { - throw new Error('not implemented'); - }); - } -} -exports.BasicCredentialHandler = BasicCredentialHandler; -class BearerCredentialHandler { - constructor(token) { - this.token = token; - } - // currently implements pre-authorization - // TODO: support preAuth = false where it hooks on 401 - prepareRequest(options) { - if (!options.headers) { - throw Error('The request has no headers'); - } - options.headers['Authorization'] = `Bearer ${this.token}`; - } - // This handler cannot handle 401 - canHandleAuthentication() { - return false; - } - handleAuthentication() { - return __awaiter(this, void 0, void 0, function* () { - throw new Error('not implemented'); - }); - } -} -exports.BearerCredentialHandler = BearerCredentialHandler; -class PersonalAccessTokenCredentialHandler { - constructor(token) { - this.token = token; - } - // currently implements pre-authorization - // TODO: support preAuth = false where it hooks on 401 - prepareRequest(options) { - if (!options.headers) { - throw Error('The request has no headers'); - } - options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; - } - // This handler cannot handle 401 - canHandleAuthentication() { - return false; - } - handleAuthentication() { - return __awaiter(this, void 0, void 0, function* () { - throw new Error('not implemented'); - }); - } -} -exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; -//# sourceMappingURL=auth.js.map - -/***/ }), - /***/ 21966: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -6830,13 +6857,105 @@ class DecodedURL extends URL { /***/ }), -/***/ 80527: +/***/ 38314: +/***/ (function(__unused_webpack_module, exports) { + + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; +class BasicCredentialHandler { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BasicCredentialHandler = BasicCredentialHandler; +class BearerCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Bearer ${this.token}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BearerCredentialHandler = BearerCredentialHandler; +class PersonalAccessTokenCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; +//# sourceMappingURL=auth.js.map + +/***/ }), + +/***/ 2430: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/* eslint-disable @typescript-eslint/no-explicit-any */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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]; @@ -6846,13 +6965,854 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); }; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpClient = exports.HttpClientResponse = exports.HttpClientError = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; +exports.getProxyUrl = getProxyUrl; +exports.isHttps = isHttps; +const http = __importStar(__nccwpck_require__(58611)); +const https = __importStar(__nccwpck_require__(65692)); +const pm = __importStar(__nccwpck_require__(36458)); +const tunnel = __importStar(__nccwpck_require__(30329)); +const undici_1 = __nccwpck_require__(76017); +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes || (exports.HttpCodes = HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers || (exports.Headers = Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes || (exports.MediaTypes = MediaTypes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + })); + }); + } + readBodyBuffer() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + const chunks = []; + this.message.on('data', (chunk) => { + chunks.push(chunk); + }); + this.message.on('end', () => { + resolve(Buffer.concat(chunks)); + }); + })); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, additionalHeaders = {}) { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + postJson(requestUrl_1, obj_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = + this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson); + const res = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + putJson(requestUrl_1, obj_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = + this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson); + const res = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + patchJson(requestUrl_1, obj_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = + this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson); + const res = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + const parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && + HttpRedirectCodes.includes(response.message.statusCode) && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === 'https:' && + parsedUrl.protocol !== parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + yield response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info, data); + redirectsRemaining--; + } + if (!response.message.statusCode || + !HttpResponseRetryCodes.includes(response.message.statusCode)) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res) { + if (err) { + reject(err); + } + else if (!res) { + // If `err` is not passed, then `res` must be passed. + reject(new Error('Unknown error')); + } + else { + resolve(res); + } + } + this.requestRawWithCallback(info, data, callbackForResult); + }); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + if (typeof data === 'string') { + if (!info.options.headers) { + info.options.headers = {}; + } + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + function handleResult(err, res) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + } + const req = info.httpModule.request(info.options, (msg) => { + const res = new HttpClientResponse(msg); + handleResult(undefined, res); + }); + let socket; + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info.options.path}`)); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + getAgentDispatcher(serverUrl) { + const parsedUrl = new URL(serverUrl); + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (!useProxy) { + return; + } + return this._getProxyAgentDispatcher(parsedUrl, proxyUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info.options); + } + } + return info; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); + } + return lowercaseKeys(headers || {}); + } + /** + * Gets an existing header value or returns a default. + * Handles converting number header values to strings since HTTP headers must be strings. + * Note: This returns string | string[] since some headers can have multiple values. + * For headers that must always be a single string (like Content-Type), use the + * specialized _getExistingOrDefaultContentTypeHeader method instead. + */ + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + const headerValue = lowercaseKeys(this.requestOptions.headers)[header]; + if (headerValue) { + clientHeader = + typeof headerValue === 'number' ? headerValue.toString() : headerValue; + } + } + const additionalValue = additionalHeaders[header]; + if (additionalValue !== undefined) { + return typeof additionalValue === 'number' + ? additionalValue.toString() + : additionalValue; + } + if (clientHeader !== undefined) { + return clientHeader; + } + return _default; + } + /** + * Specialized version of _getExistingOrDefaultHeader for Content-Type header. + * Always returns a single string (not an array) since Content-Type should be a single value. + * Converts arrays to comma-separated strings and numbers to strings to ensure type safety. + * This was split from _getExistingOrDefaultHeader to provide stricter typing for callers + * that assign the result to places expecting a string (e.g., additionalHeaders[Headers.ContentType]). + */ + _getExistingOrDefaultContentTypeHeader(additionalHeaders, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + const headerValue = lowercaseKeys(this.requestOptions.headers)[Headers.ContentType]; + if (headerValue) { + if (typeof headerValue === 'number') { + clientHeader = String(headerValue); + } + else if (Array.isArray(headerValue)) { + clientHeader = headerValue.join(', '); + } + else { + clientHeader = headerValue; + } + } + } + const additionalValue = additionalHeaders[Headers.ContentType]; + // Return the first non-undefined value, converting numbers or arrays to strings if necessary + if (additionalValue !== undefined) { + if (typeof additionalValue === 'number') { + return String(additionalValue); + } + else if (Array.isArray(additionalValue)) { + return additionalValue.join(', '); + } + else { + return additionalValue; + } + } + if (clientHeader !== undefined) { + return clientHeader; + } + return _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (!useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis. + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + })), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if tunneling agent isn't assigned create a new agent + if (!agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _getProxyAgentDispatcher(parsedUrl, proxyUrl) { + let proxyAgent; + if (this._keepAlive) { + proxyAgent = this._proxyAgentDispatcher; + } + // if agent is already assigned use that agent. + if (proxyAgent) { + return proxyAgent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { + token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` + }))); + this._proxyAgentDispatcher = proxyAgent; + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, { + rejectUnauthorized: false + }); + } + return proxyAgent; + } + _performExponentialBackoff(retryNumber) { + return __awaiter(this, void 0, void 0, function* () { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + // get the result from the body + function dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + const a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + })); + }); + } +} +exports.HttpClient = HttpClient; +const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 36458: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getProxyUrl = getProxyUrl; +exports.checkBypass = checkBypass; +function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === 'https:'; + if (checkBypass(reqUrl)) { + return undefined; + } + const proxyVar = (() => { + if (usingSsl) { + return process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + return process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + })(); + if (proxyVar) { + try { + return new DecodedURL(proxyVar); + } + catch (_a) { + if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) + return new DecodedURL(`http://${proxyVar}`); + } + } + else { + return undefined; + } +} +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + const reqHost = reqUrl.hostname; + if (isLoopbackAddress(reqHost)) { + return true; + } + const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (const upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperNoProxyItem === '*' || + upperReqHosts.some(x => x === upperNoProxyItem || + x.endsWith(`.${upperNoProxyItem}`) || + (upperNoProxyItem.startsWith('.') && + x.endsWith(`${upperNoProxyItem}`)))) { + return true; + } + } + return false; +} +function isLoopbackAddress(host) { + const hostLower = host.toLowerCase(); + return (hostLower === 'localhost' || + hostLower.startsWith('127.') || + hostLower.startsWith('[::1]') || + hostLower.startsWith('[0:0:0:0:0:0:0:1]')); +} +class DecodedURL extends URL { + constructor(url, base) { + super(url, base); + this._decodedUsername = decodeURIComponent(super.username); + this._decodedPassword = decodeURIComponent(super.password); + } + get username() { + return this._decodedUsername; + } + get password() { + return this._decodedPassword; + } +} +//# sourceMappingURL=proxy.js.map + +/***/ }), + +/***/ 9610: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -6864,21 +7824,49 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; var _a; 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 = void 0; +exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; +exports.readlink = readlink; +exports.exists = exists; +exports.isDirectory = isDirectory; +exports.isRooted = isRooted; +exports.tryGetExecutablePath = tryGetExecutablePath; +exports.getCmdPath = getCmdPath; const fs = __importStar(__nccwpck_require__(79896)); const path = __importStar(__nccwpck_require__(16928)); _a = fs.promises // export const {open} = 'fs' -, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; +, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; // export const {open} = 'fs' exports.IS_WINDOWS = process.platform === 'win32'; +/** + * Custom implementation of readlink to ensure Windows junctions + * maintain trailing backslash for backward compatibility with Node.js < 24 + * + * In Node.js 20, Windows junctions (directory symlinks) always returned paths + * with trailing backslashes. Node.js 24 removed this behavior, which breaks + * code that relied on this format for path operations. + * + * This implementation restores the Node 20 behavior by adding a trailing + * backslash to all junction results on Windows. + */ +function readlink(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + const result = yield fs.promises.readlink(fsPath); + // On Windows, restore Node 20 behavior: add trailing backslash to all results + // since junctions on Windows are always directory links + if (exports.IS_WINDOWS && !result.endsWith('\\')) { + return `${result}\\`; + } + return result; + }); +} // See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691 exports.UV_FS_O_EXLOCK = 0x10000000; exports.READONLY = fs.constants.O_RDONLY; function exists(fsPath) { return __awaiter(this, void 0, void 0, function* () { try { - yield exports.stat(fsPath); + yield (0, exports.stat)(fsPath); } catch (err) { if (err.code === 'ENOENT') { @@ -6889,14 +7877,12 @@ function exists(fsPath) { return true; }); } -exports.exists = exists; -function isDirectory(fsPath, useStat = false) { - return __awaiter(this, void 0, void 0, function* () { - const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); +function isDirectory(fsPath_1) { + return __awaiter(this, arguments, void 0, function* (fsPath, useStat = false) { + const stats = useStat ? yield (0, exports.stat)(fsPath) : yield (0, exports.lstat)(fsPath); return stats.isDirectory(); }); } -exports.isDirectory = isDirectory; /** * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). @@ -6912,7 +7898,6 @@ function isRooted(p) { } return p.startsWith('/'); } -exports.isRooted = isRooted; /** * Best effort attempt to determine whether a file exists and is executable. * @param filePath file path to check @@ -6924,7 +7909,7 @@ function tryGetExecutablePath(filePath, extensions) { let stats = undefined; try { // test file exists - stats = yield exports.stat(filePath); + stats = yield (0, exports.stat)(filePath); } catch (err) { if (err.code !== 'ENOENT') { @@ -6952,7 +7937,7 @@ function tryGetExecutablePath(filePath, extensions) { filePath = originalFilePath + extension; stats = undefined; try { - stats = yield exports.stat(filePath); + stats = yield (0, exports.stat)(filePath); } catch (err) { if (err.code !== 'ENOENT') { @@ -6966,7 +7951,7 @@ function tryGetExecutablePath(filePath, extensions) { try { const directory = path.dirname(filePath); const upperName = path.basename(filePath).toUpperCase(); - for (const actualName of yield exports.readdir(directory)) { + for (const actualName of yield (0, exports.readdir)(directory)) { if (upperName === actualName.toUpperCase()) { filePath = path.join(directory, actualName); break; @@ -6989,7 +7974,6 @@ function tryGetExecutablePath(filePath, extensions) { return ''; }); } -exports.tryGetExecutablePath = tryGetExecutablePath; function normalizeSeparators(p) { p = p || ''; if (exports.IS_WINDOWS) { @@ -7006,26 +7990,33 @@ function normalizeSeparators(p) { // 256 128 64 32 16 8 4 2 1 function isUnixExecutable(stats) { return ((stats.mode & 1) > 0 || - ((stats.mode & 8) > 0 && stats.gid === process.getgid()) || - ((stats.mode & 64) > 0 && stats.uid === process.getuid())); + ((stats.mode & 8) > 0 && + process.getgid !== undefined && + stats.gid === process.getgid()) || + ((stats.mode & 64) > 0 && + process.getuid !== undefined && + stats.uid === process.getuid())); } // Get the path of cmd.exe in windows function getCmdPath() { var _a; return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`; } -exports.getCmdPath = getCmdPath; //# sourceMappingURL=io-util.js.map /***/ }), -/***/ 60378: +/***/ 46893: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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]; @@ -7035,13 +8026,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -7052,10 +8053,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; +exports.cp = cp; +exports.mv = mv; +exports.rmRF = rmRF; +exports.mkdirP = mkdirP; +exports.which = which; +exports.findInPath = findInPath; const assert_1 = __nccwpck_require__(42613); const path = __importStar(__nccwpck_require__(16928)); -const ioUtil = __importStar(__nccwpck_require__(80527)); +const ioUtil = __importStar(__nccwpck_require__(9610)); /** * Copies a file or folder. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js @@ -7064,8 +8070,8 @@ const ioUtil = __importStar(__nccwpck_require__(80527)); * @param dest destination path * @param options optional. See CopyOptions. */ -function cp(source, dest, options = {}) { - return __awaiter(this, void 0, void 0, function* () { +function cp(source_1, dest_1) { + return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) { const { force, recursive, copySourceDirectory } = readCopyOptions(options); const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; // Dest is an existing file, but not forcing @@ -7097,7 +8103,6 @@ function cp(source, dest, options = {}) { } }); } -exports.cp = cp; /** * Moves a path. * @@ -7105,8 +8110,8 @@ exports.cp = cp; * @param dest destination path * @param options optional. See MoveOptions. */ -function mv(source, dest, options = {}) { - return __awaiter(this, void 0, void 0, function* () { +function mv(source_1, dest_1) { + return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) { if (yield ioUtil.exists(dest)) { let destExists = true; if (yield ioUtil.isDirectory(dest)) { @@ -7127,7 +8132,6 @@ function mv(source, dest, options = {}) { yield ioUtil.rename(source, dest); }); } -exports.mv = mv; /** * Remove a path recursively with force * @@ -7156,7 +8160,6 @@ function rmRF(inputPath) { } }); } -exports.rmRF = rmRF; /** * Make a directory. Creates the full path with folders in between * Will throw if it fails @@ -7166,11 +8169,10 @@ exports.rmRF = rmRF; */ function mkdirP(fsPath) { return __awaiter(this, void 0, void 0, function* () { - assert_1.ok(fsPath, 'a path argument must be provided'); + (0, assert_1.ok)(fsPath, 'a path argument must be provided'); yield ioUtil.mkdir(fsPath, { recursive: true }); }); } -exports.mkdirP = mkdirP; /** * Returns path of a tool had the tool actually been invoked. Resolves via paths. * If you check and the tool does not exist, it will throw. @@ -7204,7 +8206,6 @@ function which(tool, check) { return ''; }); } -exports.which = which; /** * Returns a list of all occurrences of the given tool on the system path. * @@ -7261,7 +8262,6 @@ function findInPath(tool) { return matches; }); } -exports.findInPath = findInPath; function readCopyOptions(options) { const force = options.force == null ? true : options.force; const recursive = Boolean(options.recursive); @@ -84639,7 +85639,7 @@ var external_node_path_ = __nccwpck_require__(76760); // EXTERNAL MODULE: ./src/inputs.ts + 1 modules var inputs = __nccwpck_require__(53900); // EXTERNAL MODULE: ./src/utils.ts + 145 modules -var utils = __nccwpck_require__(25749); +var utils = __nccwpck_require__(3159); ;// CONCATENATED MODULE: ./src/runner.ts @@ -85135,7 +86135,7 @@ async function buildProject() { /* harmony export */ }); /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(73024); /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(16966); +/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(71635); /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(84903); /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nccwpck_require__.n(_actions_github__WEBPACK_IMPORTED_MODULE_2__); @@ -85251,7 +86251,7 @@ __nccwpck_require__.a(module, async (__webpack_handle_async_dependencies__, __we /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(76760); /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(16966); +/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(71635); /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nccwpck_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _build__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(90532); /* harmony import */ var _create_release__WEBPACK_IMPORTED_MODULE_4__ = __nccwpck_require__(60644); @@ -85259,7 +86259,7 @@ __nccwpck_require__.a(module, async (__webpack_handle_async_dependencies__, __we /* harmony import */ var _upload_release_assets__WEBPACK_IMPORTED_MODULE_6__ = __nccwpck_require__(21103); /* harmony import */ var _upload_version_json__WEBPACK_IMPORTED_MODULE_7__ = __nccwpck_require__(46715); /* harmony import */ var _upload_workflow_artifacts__WEBPACK_IMPORTED_MODULE_8__ = __nccwpck_require__(34689); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __nccwpck_require__(25749); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __nccwpck_require__(3159); @@ -85300,6 +86300,7 @@ async function run() { _actions_core__WEBPACK_IMPORTED_MODULE_2__.setOutput('appVersion', info.version); // Since artifacts are .zip archives we can do this before the .tar.gz step below. if (_inputs__WEBPACK_IMPORTED_MODULE_5__/* .shouldUploadWorkflowArtifacts */ .Jc) { + console.log('uploadWorkflowArtifacts enabled'); await (0,_upload_workflow_artifacts__WEBPACK_IMPORTED_MODULE_8__/* .uploadWorkflowArtifacts */ .I)(artifacts); } // Other steps may benefit from this so we do this whether or not we want to upload it. @@ -85413,8 +86414,8 @@ __nccwpck_require__.d(__webpack_exports__, { var external_node_path_ = __nccwpck_require__(76760); // EXTERNAL MODULE: external "node:util" var external_node_util_ = __nccwpck_require__(57975); -// EXTERNAL MODULE: ./node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js -var core = __nccwpck_require__(16966); +// EXTERNAL MODULE: ./node_modules/.pnpm/@actions+core@2.0.1/node_modules/@actions/core/lib/core.js +var core = __nccwpck_require__(71635); // EXTERNAL MODULE: ./node_modules/.pnpm/@actions+github@6.0.1/node_modules/@actions/github/lib/github.js var github = __nccwpck_require__(84903); ;// CONCATENATED MODULE: ./node_modules/.pnpm/string-argv@0.3.2/node_modules/string-argv/index.js @@ -85523,7 +86524,7 @@ const isDebug = parsedArgs['debug']; /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(84903); /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(_actions_github__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(25749); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(3159); /* harmony import */ var _inputs__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(53900); @@ -85602,7 +86603,7 @@ async function uploadAssets(releaseId, assets, retryAttempts) { /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nccwpck_require__.n(_actions_github__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _inputs__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(53900); /* harmony import */ var _upload_release_assets__WEBPACK_IMPORTED_MODULE_4__ = __nccwpck_require__(21103); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __nccwpck_require__(25749); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __nccwpck_require__(3159); @@ -85847,11 +86848,11 @@ async function uploadVersionJSON(version, notes, tagName, releaseId, artifacts, /* harmony export */ }); /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(76760); /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _actions_artifact__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(56037); +/* harmony import */ var _actions_artifact__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(47429); /* harmony import */ var _actions_artifact__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(_actions_artifact__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var globby__WEBPACK_IMPORTED_MODULE_4__ = __nccwpck_require__(26116); /* harmony import */ var _inputs__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(53900); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(25749); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(3159); @@ -85878,7 +86879,7 @@ async function uploadWorkflowArtifacts(artifacts) { /***/ }), -/***/ 25749: +/***/ 3159: /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => { @@ -87064,7 +88065,7 @@ function isPlainObject(value) { // EXTERNAL MODULE: external "node:url" var external_node_url_ = __nccwpck_require__(73136); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/file-url.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/file-url.js // Allow some arguments/options to be either a file path string or a file URL @@ -87091,7 +88092,7 @@ const isDenoExecPath = file => typeof file !== 'string' // Same but also allows other values, e.g. `boolean` for the `shell` option const normalizeFileUrl = file => file instanceof URL ? (0,external_node_url_.fileURLToPath)(file) : file; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/parameters.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/parameters.js @@ -87128,7 +88129,7 @@ const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => { var external_node_child_process_ = __nccwpck_require__(31421); // EXTERNAL MODULE: external "node:string_decoder" var external_node_string_decoder_ = __nccwpck_require__(46193); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/uint-array.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/uint-array.js const {toString: objectToString} = Object.prototype; @@ -87199,7 +88200,7 @@ const getJoinLength = uint8Arrays => { return joinLength; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/template.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/template.js @@ -87358,7 +88359,7 @@ const getSubprocessResult = ({stdout}) => { var external_node_util_ = __nccwpck_require__(57975); // EXTERNAL MODULE: external "node:process" var external_node_process_ = __nccwpck_require__(1708); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/standard-stream.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js const isStandardStream = stream => STANDARD_STREAMS.includes(stream); @@ -87366,7 +88367,7 @@ const STANDARD_STREAMS = [external_node_process_.stdin, external_node_process_.s const STANDARD_STREAMS_ALIASES = ['stdin', 'stdout', 'stderr']; const getStreamName = fdNumber => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/specific.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/specific.js @@ -87479,7 +88480,7 @@ const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === 'ipc' ? optionArray.at(-1) : optionArray[fdNumber]; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/values.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/values.js // The `verbose` option can have different values for `stdout`/`stderr` @@ -87514,7 +88515,7 @@ const isVerboseFunction = fdVerbose => typeof fdVerbose === 'function'; const VERBOSE_VALUES = ['none', 'short', 'full']; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/escape.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/escape.js @@ -88019,7 +89020,7 @@ const bgMagentaBright = format(105, 49); const bgCyanBright = format(106, 49); const bgWhiteBright = format(107, 49); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/default.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/default.js @@ -88070,7 +89071,7 @@ const COLORS = { duration: () => gray, }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/custom.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/custom.js // Apply the `verbose` function on each line @@ -88098,7 +89099,7 @@ const appendNewline = printedLine => printedLine.endsWith('\n') ? printedLine : `${printedLine}\n`; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/log.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/log.js @@ -88154,7 +89155,7 @@ const serializeVerboseMessage = message => { // Same as `util.inspect()` const TAB_SIZE = 2; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/start.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/start.js @@ -88171,7 +89172,7 @@ const logCommand = (escapedCommand, verboseInfo) => { }); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/info.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/info.js // Information computed before spawning, used by the `verbose` option @@ -88212,7 +89213,7 @@ const validateVerbose = verbose => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/duration.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/duration.js // Start counting time before spawning the subprocess @@ -88222,7 +89223,7 @@ const getStartTime = () => external_node_process_.hrtime.bigint(); // Printed by the `verbose` option. const getDurationMs = startTime => Number(external_node_process_.hrtime.bigint() - startTime) / 1e6; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/command.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/command.js @@ -88370,7 +89371,7 @@ const npmRunPathEnv = ({env = external_node_process_.env, ...options} = {}) => { ;// CONCATENATED MODULE: external "node:timers/promises" const promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:timers/promises"); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/final-error.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/final-error.js // When the subprocess fails, this is the error instance being returned. // If another error instance is being thrown, it is kept as `error.cause`. const getFinalError = (originalError, message, isSync) => { @@ -88811,7 +89812,7 @@ return signals.find((signalA)=>signalA.number===number) }; const signalsByNumber=getSignalsByNumber(); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/signal.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/signal.js @@ -88883,7 +89884,7 @@ const getAvailableSignalIntegers = () => [...new Set(Object.values(external_node // Human-friendly description of a signal const getSignalDescription = signal => signalsByName[signal].description; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/kill.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/kill.js @@ -88980,7 +89981,7 @@ const killOnTimeout = async ({kill, forceKillAfterDelay, context, controllerSign // EXTERNAL MODULE: external "node:events" var external_node_events_ = __nccwpck_require__(78474); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/abort-signal.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/abort-signal.js // Combines `util.aborted()` and `events.addAbortListener()`: promise-based and cleaned up with a stop signal @@ -88990,7 +89991,7 @@ const onAbortedSignal = async (mainSignal, stopSignal) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/cancel.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/cancel.js // Validate the `cancelSignal` option @@ -89012,7 +90013,7 @@ const terminateOnCancel = async (subprocess, cancelSignal, context, {signal}) => throw cancelSignal.reason; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/validation.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/validation.js // Validate the IPC channel is connected before receiving/sending messages const validateIpcMethod = ({methodName, isSubprocess, ipc, isConnected}) => { validateIpcOption(methodName, isSubprocess, ipc); @@ -89125,7 +90126,7 @@ const disconnect = anyProcess => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/deferred.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/deferred.js const createDeferred = () => { const methods = {}; const promise = new Promise((resolve, reject) => { @@ -89134,7 +90135,7 @@ const createDeferred = () => { return Object.assign(promise, methods); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/fd-options.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/fd-options.js // Retrieve stream targeted by the `to` option @@ -89244,7 +90245,7 @@ const serializeOptionValue = value => { return typeof value === 'number' ? `${value}` : 'Stream'; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/max-listeners.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/max-listeners.js // Temporarily increase the maximum number of listeners on an eventEmitter @@ -89260,7 +90261,7 @@ const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => { }); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/reference.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/reference.js // By default, Node.js keeps the subprocess alive while it has a `message` or `disconnect` listener. // We replicate the same logic for the events that we proxy. // This ensures the subprocess is kept alive while `getOneMessage()` and `getEachMessage()` are ongoing. @@ -89306,7 +90307,7 @@ const redoAddedReferences = (channel, isSubprocess) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/incoming.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/incoming.js @@ -89387,7 +90388,7 @@ const onDisconnect = async ({anyProcess, channel, isSubprocess, ipcEmitter, boun const INCOMING_MESSAGES = new WeakMap(); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/forward.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/forward.js @@ -89445,7 +90446,7 @@ const isConnected = anyProcess => { : ipcEmitter.connected; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/strict.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/strict.js @@ -89560,7 +90561,7 @@ const throwOnDisconnect = async (anyProcess, isSubprocess, {signal}) => { const REQUEST_TYPE = 'execa:ipc:request'; const RESPONSE_TYPE = 'execa:ipc:response'; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/outgoing.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/outgoing.js @@ -89609,7 +90610,7 @@ const getMinListenerCount = anyProcess => SUBPROCESS_OPTIONS.has(anyProcess) ? 1 : 0; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/send.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/send.js @@ -89697,7 +90698,7 @@ const getSendMethod = anyProcess => { const PROCESS_SEND_METHODS = new WeakMap(); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/graceful.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/graceful.js @@ -89771,7 +90772,7 @@ const abortOnDisconnect = () => { const cancelController = new AbortController(); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/graceful.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/graceful.js @@ -89844,7 +90845,7 @@ const getReason = ({reason}) => { return error; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/timeout.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/timeout.js @@ -89867,7 +90868,7 @@ const killAfterTimeout = async (subprocess, timeout, context, {signal}) => { throw new DiscardedError(); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/node.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/node.js @@ -89922,7 +90923,7 @@ const handleNodeOption = (file, commandArguments, { ;// CONCATENATED MODULE: external "node:v8" const external_node_v8_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:v8"); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/ipc-input.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/ipc-input.js // Validate the `ipcInput` option @@ -89968,7 +90969,7 @@ const sendIpcInput = async (subprocess, ipcInput) => { await subprocess.sendMessage(ipcInput); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/encoding-option.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/encoding-option.js // Validate `encoding` option const validateEncoding = ({encoding}) => { if (ENCODINGS.has(encoding)) { @@ -90020,7 +91021,7 @@ const ENCODING_ALIASES = { const serializeEncoding = encoding => typeof encoding === 'string' ? `"${encoding}"` : String(encoding); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/cwd.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/cwd.js @@ -90061,7 +91062,7 @@ const fixCwdError = (originalMessage, cwd) => { return originalMessage; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/options.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/options.js @@ -90159,7 +91160,7 @@ const getEnv = ({env: envOption, extendEnv, preferLocal, node, localDirectory, n return env; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/shell.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/arguments/shell.js // When the `shell` option is set, any command argument is concatenated as a single string by Node.js: // https://github.com/nodejs/node/blob/e38ce27f3ca0a65f68a31cedd984cddb927d4002/lib/child_process.js#L614-L624 // However, since Node 24, it also prints a deprecation warning. @@ -90523,7 +91524,7 @@ class MaxBufferError extends Error { } } -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/max-buffer.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/max-buffer.js @@ -90614,7 +91615,7 @@ const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => { // `spawnSync()` does not allow differentiating `maxBuffer` per file descriptor, so we always use `stdout` const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/message.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/message.js @@ -90773,7 +91774,7 @@ const serializeMessageItem = messageItem => { return ''; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/result.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/result.js @@ -91159,7 +92160,7 @@ function prettyMilliseconds(milliseconds, options) { return sign + result.join(separator); } -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/error.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/error.js // When `verbose` is `short|full|custom`, print each command's error when it fails @@ -91174,7 +92175,7 @@ const logError = (result, verboseInfo) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/complete.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/complete.js @@ -91200,7 +92201,7 @@ const logDuration = (result, verboseInfo) => { }); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/reject.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/reject.js // Applies the `reject` option. @@ -91215,7 +92216,7 @@ const handleResult = (result, verboseInfo, {reject}) => { return result; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/type.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/type.js @@ -91390,7 +92391,7 @@ const TYPE_TO_MESSAGE = { uint8Array: 'a Uint8Array', }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/object-mode.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/object-mode.js /* @@ -91433,7 +92434,7 @@ const getFdObjectMode = (stdioItems, direction) => { : lastTransform.value.readableObjectMode; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/normalize.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/normalize.js @@ -91546,7 +92547,7 @@ const normalizeGenerator = ({stdioItem, stdioItem: {value}, index, newTransforms const sortTransforms = (newTransforms, direction) => direction === 'input' ? newTransforms.reverse() : newTransforms; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/direction.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/direction.js @@ -91620,13 +92621,13 @@ const getStandardStreamDirection = value => { // When the ambiguity remains, we default to `output` since it is the most common use case for additional file descriptors. const DEFAULT_DIRECTION = 'output'; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/array.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/array.js // The `ipc` option adds an `ipc` item to the `stdio` option const normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes('ipc') ? [...stdioArray, 'ipc'] : stdioArray; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/stdio-option.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/stdio-option.js @@ -91688,7 +92689,7 @@ const normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map(( const isOutputPipeOnly = stdioOption => stdioOption === 'pipe' || (Array.isArray(stdioOption) && stdioOption.every(item => item === 'pipe')); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/native.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/native.js @@ -91796,7 +92797,7 @@ const getStandardStream = (fdNumber, value, optionName) => { return standardStream; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/input-option.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/input-option.js @@ -91848,7 +92849,7 @@ const getInputFileType = inputFile => { throw new Error('The `inputFile` option must be a file path string or a file URL.'); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/duplicate.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/duplicate.js // Duplicates in the same file descriptor is most likely an error. @@ -91961,7 +92962,7 @@ const throwOnDuplicateStream = (stdioItem, optionName, type) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/handle.js @@ -92172,7 +93173,7 @@ const forwardStdio = stdioItems => { return type === 'native' ? value : 'pipe'; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle-sync.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/handle-sync.js @@ -92231,7 +93232,7 @@ const addPropertiesSync = { }, }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/strip-newline.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/strip-newline.js // Apply `stripFinalNewline` option, which applies to `result.stdout|stderr|all|stdio[*]`. @@ -92247,7 +93248,7 @@ const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === 'all' // EXTERNAL MODULE: external "node:stream" var external_node_stream_ = __nccwpck_require__(57075); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/split.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/split.js // Split chunks line-wise for generators passed to the `std*` options const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? undefined @@ -92361,7 +93362,7 @@ const linesUint8ArrayInfo = { // EXTERNAL MODULE: external "node:buffer" var external_node_buffer_ = __nccwpck_require__(4573); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/validate.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/validate.js @@ -92406,7 +93407,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/encoding-transform.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/encoding-transform.js @@ -92459,7 +93460,7 @@ const encodingStringFinal = function * (stringDecoder) { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/run-async.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/run-async.js // Applies a series of generator functions asynchronously @@ -92521,7 +93522,7 @@ const identityGenerator = function * (chunk) { yield chunk; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/run-sync.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/run-sync.js // Duplicate the code from `run-async.js` but as synchronous functions const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => { try { @@ -92573,7 +93574,7 @@ const run_sync_identityGenerator = function * (chunk) { yield chunk; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/generator.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/transform/generator.js @@ -92672,7 +93673,7 @@ const addInternalGenerators = ( ].filter(Boolean); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/input-sync.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/input-sync.js @@ -92718,7 +93719,7 @@ const validateSerializable = newContents => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/output.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/output.js @@ -92780,7 +93781,7 @@ const logLine = (line, fdNumber, verboseInfo) => { }); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/output-sync.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/output-sync.js @@ -92917,7 +93918,7 @@ const writeToFiles = (serializedResult, stdioItems, outputFiles) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/all-sync.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/resolve/all-sync.js @@ -92952,7 +93953,7 @@ const getAllSync = ([, stdout, stderr], options) => { return `${stdout}${stderr}`; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/exit-async.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/resolve/exit-async.js @@ -93008,7 +94009,7 @@ const isSubprocessErrorExit = (exitCode, signal) => exitCode === undefined && si // When the subprocess fails due to a non-0 exit code or to a signal termination const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/exit-sync.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/resolve/exit-sync.js @@ -93035,7 +94036,7 @@ const getResultError = (error, exitCode, signal) => { return isFailedExit(exitCode, signal) ? new DiscardedError() : undefined; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/main-sync.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/main-sync.js @@ -93200,7 +94201,7 @@ const getSyncResult = ({error, exitCode, signal, timedOut, isMaxBuffer, stdio, a isSync: true, }); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/get-one.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/get-one.js @@ -93266,7 +94267,7 @@ const throwOnStrictError = async (ipcEmitter, isSubprocess, {signal}) => { throw getStrictResponseError(error, isSubprocess); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/get-each.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/get-each.js @@ -93357,7 +94358,7 @@ const throwIfStrictError = ({error}) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/methods.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/methods.js @@ -93408,7 +94409,7 @@ const getIpcMethods = (anyProcess, isSubprocess, ipc) => ({ }), }); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/early-error.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/early-error.js @@ -93465,7 +94466,7 @@ const duplex = () => new external_node_stream_.Duplex({read() {}, write() {}}); const handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle-async.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/stdio/handle-async.js @@ -93523,7 +94524,7 @@ const addPropertiesAsync = { var merge_streams = __nccwpck_require__(85956); // EXTERNAL MODULE: external "node:stream/promises" var promises_ = __nccwpck_require__(46466); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/pipeline.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/pipeline.js @@ -93573,7 +94574,7 @@ const abortSourceStream = source => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/output-async.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/output-async.js @@ -93971,7 +94972,7 @@ load, */ unload, } = signalExitWrap(processOk(mjs_process) ? new SignalExit(mjs_process) : new SignalExitFallback()); //# sourceMappingURL=index.js.map -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/cleanup.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/cleanup.js @@ -93989,7 +94990,7 @@ const cleanupOnExit = (subprocess, {cleanup, detached}, {signal}) => { }); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/pipe-arguments.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/pipe/pipe-arguments.js @@ -94082,7 +95083,7 @@ const getSourceStream = (source, from) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/throw.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/pipe/throw.js @@ -94142,7 +95143,7 @@ const createNonCommandError = ({error, fileDescriptors, sourceOptions, startTime const PIPE_COMMAND_MESSAGE = 'source.pipe(destination)'; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/sequence.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/pipe/sequence.js // Like Bash, we await both subprocesses. This is unlike some other shells which only await the destination subprocess. // Like Bash with the `pipefail` option, if either subprocess fails, the whole pipe fails. // Like Bash, if both subprocesses fail, we return the failure of the destination. @@ -94168,7 +95169,7 @@ const waitForBothSubprocesses = async subprocessPromises => { return destinationResult; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/streaming.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/pipe/streaming.js @@ -94221,7 +95222,7 @@ const SOURCE_LISTENERS_PER_PIPE = 2; // Those are added by `finished()` in `cleanupMergedStreamsMap()` const DESTINATION_LISTENERS_PER_PIPE = 1; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/abort.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/pipe/abort.js @@ -94243,7 +95244,7 @@ const unpipeOnSignalAbort = async (unpipeSignal, {sourceStream, mergedStream, fi }); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/setup.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/pipe/setup.js @@ -94488,7 +95489,7 @@ const stringMethods = { finalize: getContentsProperty, }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/iterate.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/iterate.js @@ -94600,7 +95601,7 @@ const getGenerators = ({binary, shouldEncode, encoding, shouldSplit, preserveNew getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {}), ].filter(Boolean); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/contents.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/io/contents.js @@ -94718,7 +95719,7 @@ const handleBufferedData = ({bufferedData}) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/wait-stream.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/resolve/wait-stream.js // Wraps `finished(stream)` to handle the following case: @@ -94816,7 +95817,7 @@ const isStreamAbort = error => error?.code === 'ERR_STREAM_PREMATURE_CLOSE'; // Therefore, we ignore this error on writable streams. const isStreamEpipe = error => error?.code === 'EPIPE'; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/stdio.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/resolve/stdio.js @@ -94865,7 +95866,7 @@ const waitForSubprocessStream = async ({stream, fdNumber, encoding, buffer, maxB return output; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/all-async.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/resolve/all-async.js @@ -94913,7 +95914,7 @@ const getAllMixed = ({all, stdout, stderr}) => all && stderr && stdout.readableObjectMode !== stderr.readableObjectMode; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/ipc.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/verbose/ipc.js @@ -94930,7 +95931,7 @@ const logIpcOutput = (message, verboseInfo) => { }); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/buffer-messages.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/ipc/buffer-messages.js @@ -94979,7 +95980,7 @@ const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => { return ipcOutput; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/wait-subprocess.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/resolve/wait-subprocess.js @@ -95127,7 +96128,7 @@ const throwOnSubprocessError = async (subprocess, {signal}) => { throw error; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/concurrent.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/convert/concurrent.js // When using multiple `.readable()`/`.writable()`/`.duplex()`, `final` and `destroy` should wait for other streams @@ -95162,7 +96163,7 @@ const waitForConcurrentStreams = async ({resolve, promises}, subprocess) => { return !isSubprocessExit; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/shared.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/convert/shared.js @@ -95210,7 +96211,7 @@ const destroyOtherStream = (stream, isOpen, error) => { } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/readable.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/convert/readable.js @@ -95320,7 +96321,7 @@ const destroyOtherReadable = (stream, error) => { destroyOtherStream(stream, stream.readable, error); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/writable.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/convert/writable.js @@ -95407,7 +96408,7 @@ const destroyOtherWritable = (stream, error) => { destroyOtherStream(stream, stream.writable, error); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/duplex.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/convert/duplex.js @@ -95467,7 +96468,7 @@ const onDuplexDestroy = async ({subprocessStdout, subprocessStdin, subprocess, w ]); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/iterable.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/convert/iterable.js @@ -95503,7 +96504,7 @@ const iterateOnStdoutData = async function * (onStdoutData, subprocessStdout, su } }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/add.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/convert/add.js @@ -95520,7 +96521,7 @@ const addConvertedStreams = (subprocess, {encoding}) => { subprocess[Symbol.asyncIterator] = createIterable.bind(undefined, subprocess, encoding, {}); }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/promise.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/promise.js // The return value is a mixin of `subprocess` and `Promise` const mergePromise = (subprocess, promise) => { for (const [property, descriptor] of descriptors) { @@ -95537,7 +96538,7 @@ const descriptors = ['then', 'catch', 'finally'].map(property => [ Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property), ]); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/main-async.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/main-async.js @@ -95733,7 +96734,7 @@ const getAsyncResult = ({errorInfo, exitCode, signal, stdio, all, ipcOutput, con startTime, }); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/bind.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/bind.js @@ -95758,7 +96759,7 @@ const mergeOption = (optionName, boundOptionValue, optionValue) => { const DEEP_OPTIONS = new Set(['env', ...FD_SPECIFIC_OPTIONS]); -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/create.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/create.js @@ -95825,7 +96826,7 @@ const parseArguments = ({mapArguments, firstArgument, nextArguments, deepOptions }; }; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/command.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/command.js // Main logic for `execaCommand()` const mapCommandAsync = ({file, commandArguments}) => parseCommand(file, commandArguments); @@ -95870,7 +96871,7 @@ const parseCommandString = command => { const SPACES_REGEXP = / +/g; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/script.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/script.js // Sets `$.sync` and `$.s` const setScriptSync = (boundExeca, createNested, boundOptions) => { boundExeca.sync = createNested(mapScriptSync, boundOptions); @@ -95894,7 +96895,7 @@ const getScriptStdinOption = ({input, inputFile, stdio}) => input === undefined // However, some options (like `stdin: 'inherit'`) would create issues with piping, i.e. cannot be deep. const deepScriptOptions = {preferLocal: true}; -;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.0/node_modules/execa/index.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/execa@9.6.1/node_modules/execa/index.js @@ -96278,7 +97279,18 @@ function createArtifact({ path, name, platform, arch, bundle, version, }) { const ext = exts[0] || (0,external_node_path_.extname)(path); let workflowArtifactName; if (name === 'binary' || - ['.app', '.dmg', '.exe', '.msi', '.deb', '.rpm', '.AppImage'].includes(ext)) { + [ + '.app', + '.dmg', + '.exe', + '.msi', + '.deb', + '.rpm', + '.AppImage', + '.apk', + '.aab', + '.ipa', + ].includes(ext)) { workflowArtifactName = `${platform}-${arch}-${bundle}`; } return { @@ -100720,7 +101732,7 @@ Object.defineProperty(exports, "LroEngine", ({ enumerable: true, get: function ( Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LroEngine = void 0; const operation_js_1 = __nccwpck_require__(58000); -const constants_js_1 = __nccwpck_require__(8831); +const constants_js_1 = __nccwpck_require__(31212); const poller_js_1 = __nccwpck_require__(12581); const operation_js_2 = __nccwpck_require__(60459); /** @@ -101282,7 +102294,7 @@ exports.logger = (0, logger_1.createClientLogger)("core-lro"); /***/ }), -/***/ 8831: +/***/ 31212: /***/ ((__unused_webpack_module, exports) => { @@ -101311,7 +102323,7 @@ exports.terminalStates = ["succeeded", "canceled", "failed"]; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.pollOperation = exports.initOperation = exports.deserializeState = void 0; const logger_js_1 = __nccwpck_require__(40567); -const constants_js_1 = __nccwpck_require__(8831); +const constants_js_1 = __nccwpck_require__(31212); /** * Deserializes the state */ @@ -101489,7 +102501,7 @@ exports.pollOperation = pollOperation; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.buildCreatePoller = void 0; const operation_js_1 = __nccwpck_require__(60459); -const constants_js_1 = __nccwpck_require__(8831); +const constants_js_1 = __nccwpck_require__(31212); const core_util_1 = __nccwpck_require__(33000); const createStateProxy = () => ({ /** @@ -135845,7 +136857,7 @@ const pipeline_js_1 = __nccwpck_require__(46415); const redirectPolicy_js_1 = __nccwpck_require__(8884); const userAgentPolicy_js_1 = __nccwpck_require__(49046); const decompressResponsePolicy_js_1 = __nccwpck_require__(82576); -const defaultRetryPolicy_js_1 = __nccwpck_require__(46893); +const defaultRetryPolicy_js_1 = __nccwpck_require__(69274); const formDataPolicy_js_1 = __nccwpck_require__(94910); const checkEnvironment_js_1 = __nccwpck_require__(15777); const proxyPolicy_js_1 = __nccwpck_require__(67010); @@ -137402,7 +138414,7 @@ function decompressResponsePolicy() { /***/ }), -/***/ 46893: +/***/ 69274: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { @@ -137591,7 +138603,7 @@ Object.defineProperty(exports, "agentPolicyName", ({ enumerable: true, get: func var decompressResponsePolicy_js_1 = __nccwpck_require__(82576); Object.defineProperty(exports, "decompressResponsePolicy", ({ enumerable: true, get: function () { return decompressResponsePolicy_js_1.decompressResponsePolicy; } })); Object.defineProperty(exports, "decompressResponsePolicyName", ({ enumerable: true, get: function () { return decompressResponsePolicy_js_1.decompressResponsePolicyName; } })); -var defaultRetryPolicy_js_1 = __nccwpck_require__(46893); +var defaultRetryPolicy_js_1 = __nccwpck_require__(69274); Object.defineProperty(exports, "defaultRetryPolicy", ({ enumerable: true, get: function () { return defaultRetryPolicy_js_1.defaultRetryPolicy; } })); Object.defineProperty(exports, "defaultRetryPolicyName", ({ enumerable: true, get: function () { return defaultRetryPolicy_js_1.defaultRetryPolicyName; } })); var exponentialRetryPolicy_js_1 = __nccwpck_require__(60519); @@ -148944,10 +149956,10 @@ const {convertPathToPattern} = out; /***/ }), -/***/ 39586: +/***/ 75074: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/artifact","version":"4.0.0","preview":true,"description":"Actions artifact lib","keywords":["github","actions","artifact"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/artifact","license":"MIT","main":"lib/artifact.js","types":"lib/artifact.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/artifact"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"cd ../../ && npm run test ./packages/artifact","bootstrap":"cd ../../ && npm run bootstrap","tsc-run":"tsc","tsc":"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.10.0","@actions/github":"^6.0.1","@actions/http-client":"^2.1.0","@azure/core-http":"^3.0.5","@azure/storage-blob":"^12.15.0","@octokit/core":"^5.2.1","@octokit/plugin-request-log":"^1.0.4","@octokit/plugin-retry":"^3.0.9","@octokit/request":"^8.4.1","@octokit/request-error":"^5.1.1","@protobuf-ts/plugin":"^2.2.3-alpha.1","archiver":"^7.0.1","jwt-decode":"^3.1.2","unzip-stream":"^0.3.1"},"devDependencies":{"@types/archiver":"^5.3.2","@types/unzip-stream":"^0.3.4","typedoc":"^0.28.13","typedoc-plugin-markdown":"^3.17.1","typescript":"^5.2.2"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/artifact","version":"5.0.1","preview":true,"description":"Actions artifact lib","keywords":["github","actions","artifact"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/artifact","license":"MIT","main":"lib/artifact.js","types":"lib/artifact.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/artifact"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"cd ../../ && npm run test ./packages/artifact","bootstrap":"cd ../../ && npm run bootstrap","tsc-run":"tsc","tsc":"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^2.0.0","@actions/github":"^6.0.1","@actions/http-client":"^3.0.0","@azure/storage-blob":"^12.29.1","@octokit/core":"^5.2.1","@octokit/plugin-request-log":"^1.0.4","@octokit/plugin-retry":"^3.0.9","@octokit/request":"^8.4.1","@octokit/request-error":"^5.1.1","@protobuf-ts/plugin":"^2.2.3-alpha.1","archiver":"^7.0.1","jwt-decode":"^3.1.2","unzip-stream":"^0.3.1"},"devDependencies":{"@types/archiver":"^5.3.2","@types/unzip-stream":"^0.3.4","typedoc":"^0.28.13","typedoc-plugin-markdown":"^3.17.1","typescript":"^5.2.2"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}'); /***/ }) diff --git a/src/index.ts b/src/index.ts index fa52d07..105a022 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,6 +61,7 @@ async function run(): Promise { // Since artifacts are .zip archives we can do this before the .tar.gz step below. if (shouldUploadWorkflowArtifacts) { + console.log('uploadWorkflowArtifacts enabled'); await uploadWorkflowArtifacts(artifacts); } diff --git a/src/utils.ts b/src/utils.ts index 934b67e..473ef80 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -157,7 +157,18 @@ export function createArtifact({ let workflowArtifactName; if ( name === 'binary' || - ['.app', '.dmg', '.exe', '.msi', '.deb', '.rpm', '.AppImage'].includes(ext) + [ + '.app', + '.dmg', + '.exe', + '.msi', + '.deb', + '.rpm', + '.AppImage', + '.apk', + '.aab', + '.ipa', + ].includes(ext) ) { workflowArtifactName = `${platform}-${arch}-${bundle}`; }