From ca58de2b6a32c539a10aad5165ec68e2ba7238f6 Mon Sep 17 00:00:00 2001 From: qodana-bot Date: Fri, 1 Dec 2023 13:54:04 +0000 Subject: [PATCH] :arrow_up: Update `qodana` to `v2023.2.9` --- .github/workflows/node.yml | 4 +- common/cli.json | 12 +- orb/commands/scan.yml | 6 +- orb/examples/scan.yml | 2 +- scan/__tests__/main.test.ts | 2 +- scan/dist/index.js | 4136 +++++------------ .../kotlin/org/jetbrains/qodana/Qodana.kt | 2 +- vsts/QodanaScan/index.js | 51 +- vsts/QodanaScan/task.json | 2 +- vsts/vss-extension.json | 2 +- 10 files changed, 1195 insertions(+), 3024 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index a7fba74b..50bc7541 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -108,12 +108,12 @@ jobs: - uses: actions/checkout@v4 - uses: ./ with: - args: --ide,QDJS + args: --ide,QDNET pr-mode: false post-pr-comment: false use-annotations: false env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_TESTS }} + QODANA_LICENSE_ONLY_TOKEN: ${{ secrets.QODANA_TOKEN }} azure-dev-release: runs-on: ubuntu-latest diff --git a/common/cli.json b/common/cli.json index 6e872391..91b1209a 100644 --- a/common/cli.json +++ b/common/cli.json @@ -1,12 +1,12 @@ { - "version": "2023.2.8", + "version": "2023.2.9", "checksum": { - "windows_x86_64": "045d850ed636798d1c7a131791740f25ed88ec0fd876de89df906a005c02e32a", - "linux_arm64": "ed8f5c1e692d411fafab72a1f09819957bc234eadb8d94b19eb54cd64639f2e7", + "windows_x86_64": "ad783e3d6e13a360725d44cb5ffa5c5fd8b5fa898e46c0232978361710276e02", + "linux_arm64": "90b43711c9632d58ea384dff5e1f9c777c91d03988a3a8dae10e3298df23e4b1", "darwin_arm64": "722ffb66a23fa0d6d8aef4dabf8b1e520bab04c7c1232b5d0d1859e7113dc6a8", "darwin_x86_64": "cc7bf6af28bc26cbe7f4ff76906a1a87e19321082003edf4c014f6bdd4874c95", - "windows_arm64": "b753315f835949d8b1ff5329e60f732c914c371d37352f23dc27c2c1f28c05e7", - "linux_x86_64": "996bdd7e1df184dd8177a7b1fee4955f52dd8d26128d9375f60dd9a570dde2ed", - "darwin_all": "4709f410a140b30b351002755e1c69133b0b808acf1c6823e2b631e1d305dbc9" + "windows_arm64": "9cb88885d1380850a34f8e51a38fb1be012d2348312293c779d5b0a1b57b7daa", + "linux_x86_64": "6131b22269b9392608341ede868875d46adf1b10d6751eb4caf64df7657ce71f", + "darwin_all": "bebded982b84e1dda3d62db5ef8638dd22f9ff131206e6a5b6368662d178915a" } } \ No newline at end of file diff --git a/orb/commands/scan.yml b/orb/commands/scan.yml index e5ba07d2..786a3fc8 100644 --- a/orb/commands/scan.yml +++ b/orb/commands/scan.yml @@ -53,12 +53,12 @@ steps: name: Qodana Scan command: | set -e - QODANA_SHA_256=e0bfc6088eec1c7d323ae243c7ebacb0201060af634b544fa2e982f39d0f60f7 - CLI_DIRECTORY=/tmp/cache/qodana-cli/2023.2.8 + QODANA_SHA_256=58437c2cd061b8dff291a26544ff813189b8a797a6a68a287989e556ac5560d8 + CLI_DIRECTORY=/tmp/cache/qodana-cli/2023.2.9 mkdir -p $CLI_DIRECTORY if [[ ! -x "$CLI_DIRECTORY/qodana" ]]; then curl -fsSL https://jb.gg/qodana-cli/install | bash -s -- \ - v2023.2.8 $CLI_DIRECTORY \ + v2023.2.9 $CLI_DIRECTORY \ 1> /dev/null fi echo "$QODANA_SHA_256 $CLI_DIRECTORY/qodana" | sha256sum -c diff --git a/orb/examples/scan.yml b/orb/examples/scan.yml index 168b5fca..1305e41a 100755 --- a/orb/examples/scan.yml +++ b/orb/examples/scan.yml @@ -3,7 +3,7 @@ description: > usage: version: 2.1 orbs: - qodana: jetbrains/qodana@2023.2.8 + qodana: jetbrains/qodana@2023.2.9 jobs: code-quality: machine: diff --git a/scan/__tests__/main.test.ts b/scan/__tests__/main.test.ts index f2c81575..f8c513fe 100644 --- a/scan/__tests__/main.test.ts +++ b/scan/__tests__/main.test.ts @@ -228,7 +228,7 @@ To get \`*.log\` files or any other Qodana artifacts, run the action with \`uplo so that the action will upload the files as the job artifacts: \`\`\`yaml - name: 'Qodana Scan' - uses: JetBrains/qodana-action@v2023.2.8 + uses: JetBrains/qodana-action@v2023.2.9 with: upload-result: true \`\`\` diff --git a/scan/dist/index.js b/scan/dist/index.js index 848a652e..e9ec436a 100644 --- a/scan/dist/index.js +++ b/scan/dist/index.js @@ -72,7 +72,7 @@ var require_utils = __commonJS({ var require_command = __commonJS({ "../node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -83,26 +83,26 @@ var require_command = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.issue = exports2.issueCommand = void 0; - var os = __importStar5(require("os")); + var os = __importStar3(require("os")); var utils_12 = require_utils(); function issueCommand(command, properties, message) { const cmd = new Command(command, properties, message); @@ -511,7 +511,7 @@ var init_esm_node = __esm({ var require_file_command = __commonJS({ "../node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -522,27 +522,27 @@ var require_file_command = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0; - var fs2 = __importStar5(require("fs")); - var os = __importStar5(require("os")); + var fs2 = __importStar3(require("fs")); + var os = __importStar3(require("os")); var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); var utils_12 = require_utils(); function issueFileCommand(command, message) { @@ -5670,7 +5670,10 @@ var require_request = __commonJS({ } } else if (request.contentType === null && key.length === 12 && key.toLowerCase() === "content-type") { request.contentType = val; - request.headers += processHeaderValue(key, val); + if (skipAppend) + request.headers[key] = processHeaderValue(key, val, skipAppend); + else + request.headers += processHeaderValue(key, val); } else if (key.length === 17 && key.toLowerCase() === "transfer-encoding") { throw new InvalidArgumentError("invalid transfer-encoding header"); } else if (key.length === 10 && key.toLowerCase() === "connection") { @@ -6601,6 +6604,7 @@ var require_client = __commonJS({ "use strict"; var assert = require("assert"); var net = require("net"); + var http = require("http"); var { pipeline } = require("stream"); var util = require_util(); var timers = require_timers(); @@ -6684,6 +6688,7 @@ var require_client = __commonJS({ HTTP2_HEADER_AUTHORITY, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, + HTTP2_HEADER_SCHEME, HTTP2_HEADER_CONTENT_LENGTH, HTTP2_HEADER_EXPECT, HTTP2_HEADER_STATUS @@ -6824,7 +6829,7 @@ var require_client = __commonJS({ this[kConnector] = connect2; this[kSocket] = null; this[kPipelining] = pipelining != null ? pipelining : 1; - this[kMaxHeadersSize] = maxHeaderSize || 16384; + this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize; this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout; this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 6e5 : keepAliveMaxTimeout; this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold; @@ -7902,7 +7907,7 @@ upgrade: ${upgrade}\r let stream; const h2State = client[kHTTP2SessionState]; headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]; - headers[HTTP2_HEADER_PATH] = path; + headers[HTTP2_HEADER_METHOD] = method; if (method === "CONNECT") { session.ref(); stream = session.request(headers, { endStream: false, signal }); @@ -7921,9 +7926,9 @@ upgrade: ${upgrade}\r session.unref(); }); return true; - } else { - headers[HTTP2_HEADER_METHOD] = method; } + headers[HTTP2_HEADER_PATH] = path; + headers[HTTP2_HEADER_SCHEME] = "https"; const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH"; if (body && typeof body.read === "function") { body.read(0); @@ -8000,6 +8005,7 @@ upgrade: ${upgrade}\r stream.cork(); stream.write(body); stream.uncork(); + stream.end(); request.onBodySent(body); request.onRequestSent(); } else if (util.isBlobLike(body)) { @@ -8192,13 +8198,17 @@ upgrade: ${upgrade}\r if (socket[kError]) { throw socket[kError]; } - if (!h2stream.write(chunk)) { + const res = h2stream.write(chunk); + request.onBodySent(chunk); + if (!res) { await waitForDrain(); } } } catch (err) { h2stream.destroy(err); } finally { + request.onRequestSent(); + h2stream.end(); h2stream.off("close", onDrain).off("drain", onDrain); } return; @@ -8851,11 +8861,13 @@ var require_dispatcher_weakref = __commonJS({ this.finalizer = finalizer; } register(dispatcher, key) { - dispatcher.on("disconnect", () => { - if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) { - this.finalizer(key); - } - }); + if (dispatcher.on) { + dispatcher.on("disconnect", () => { + if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) { + this.finalizer(key); + } + }); + } } }; module2.exports = function() { @@ -13154,6 +13166,8 @@ var require_fetch = __commonJS({ } if (!sameOrigin(requestCurrentURL(request), locationURL)) { request.headersList.delete("authorization"); + request.headersList.delete("cookie"); + request.headersList.delete("host"); } if (request.body != null) { assert(request.body.source != null); @@ -13204,7 +13218,7 @@ var require_fetch = __commonJS({ appendRequestOriginHeader(httpRequest); appendFetchMetadata(httpRequest); if (!httpRequest.headersList.contains("user-agent")) { - httpRequest.headersList.append("user-agent", "undici"); + httpRequest.headersList.append("user-agent", typeof esbuildDetection === "undefined" ? "undici" : "node"); } if (httpRequest.cache === "default" && (httpRequest.headersList.contains("if-modified-since") || httpRequest.headersList.contains("if-none-match") || httpRequest.headersList.contains("if-unmodified-since") || httpRequest.headersList.contains("if-match") || httpRequest.headersList.contains("if-range"))) { httpRequest.cache = "no-store"; @@ -13230,6 +13244,7 @@ var require_fetch = __commonJS({ httpRequest.headersList.append("accept-encoding", "gzip, deflate"); } } + httpRequest.headersList.delete("host"); if (includeCredentials) { } if (httpCache == null) { @@ -16985,7 +17000,7 @@ var require_undici = __commonJS({ var require_lib = __commonJS({ "../node_modules/@actions/http-client/lib/index.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -17000,24 +17015,24 @@ var require_lib = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -17050,10 +17065,10 @@ var require_lib = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.HttpClient = exports2.isHttps = exports2.HttpClientResponse = exports2.HttpClientError = exports2.getProxyUrl = exports2.MediaTypes = exports2.Headers = exports2.HttpCodes = void 0; - var http = __importStar5(require("http")); - var https = __importStar5(require("https")); - var pm = __importStar5(require_proxy()); - var tunnel = __importStar5(require_tunnel2()); + var http = __importStar3(require("http")); + var https = __importStar3(require("https")); + var pm = __importStar3(require_proxy()); + var tunnel = __importStar3(require_tunnel2()); var undici_1 = require_undici(); var HttpCodes; (function(HttpCodes2) { @@ -17135,8 +17150,8 @@ var require_lib = __commonJS({ this.message = message; } readBody() { - return __awaiter5(this, void 0, void 0, function* () { - return new Promise((resolve) => __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter3(this, void 0, void 0, function* () { let output = Buffer.alloc(0); this.message.on("data", (chunk) => { output = Buffer.concat([output, chunk]); @@ -17148,8 +17163,8 @@ var require_lib = __commonJS({ }); } readBodyBuffer() { - return __awaiter5(this, void 0, void 0, function* () { - return new Promise((resolve) => __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter3(this, void 0, void 0, function* () { const chunks = []; this.message.on("data", (chunk) => { chunks.push(chunk); @@ -17210,42 +17225,42 @@ var require_lib = __commonJS({ } } options(requestUrl, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request("OPTIONS", requestUrl, null, additionalHeaders || {}); }); } get(requestUrl, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request("GET", requestUrl, null, additionalHeaders || {}); }); } del(requestUrl, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request("DELETE", requestUrl, null, additionalHeaders || {}); }); } post(requestUrl, data, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request("POST", requestUrl, data, additionalHeaders || {}); }); } patch(requestUrl, data, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request("PATCH", requestUrl, data, additionalHeaders || {}); }); } put(requestUrl, data, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request("PUT", requestUrl, data, additionalHeaders || {}); }); } head(requestUrl, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request("HEAD", requestUrl, null, additionalHeaders || {}); }); } sendStream(verb, requestUrl, stream, additionalHeaders) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.request(verb, requestUrl, stream, additionalHeaders); }); } @@ -17254,14 +17269,14 @@ var require_lib = __commonJS({ * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise */ getJson(requestUrl, additionalHeaders = {}) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { 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, obj, additionalHeaders = {}) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const data = JSON.stringify(obj, null, 2); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); @@ -17270,7 +17285,7 @@ var require_lib = __commonJS({ }); } putJson(requestUrl, obj, additionalHeaders = {}) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const data = JSON.stringify(obj, null, 2); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); @@ -17279,7 +17294,7 @@ var require_lib = __commonJS({ }); } patchJson(requestUrl, obj, additionalHeaders = {}) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const data = JSON.stringify(obj, null, 2); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); @@ -17293,7 +17308,7 @@ var require_lib = __commonJS({ * Prefer get, del, post and patch */ request(verb, requestUrl, data, headers) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (this._disposed) { throw new Error("Client has already been disposed."); } @@ -17367,7 +17382,7 @@ var require_lib = __commonJS({ * @param data */ requestRaw(info, data) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return new Promise((resolve, reject) => { function callbackForResult(err, res) { if (err) { @@ -17559,15 +17574,15 @@ var require_lib = __commonJS({ return proxyAgent; } _performExponentialBackoff(retryNumber) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(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 __awaiter5(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter3(this, void 0, void 0, function* () { const statusCode = res.message.statusCode || 0; const response = { statusCode, @@ -17630,7 +17645,7 @@ var require_lib = __commonJS({ var require_auth = __commonJS({ "../node_modules/@actions/http-client/lib/auth.js"(exports2) { "use strict"; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -17682,7 +17697,7 @@ var require_auth = __commonJS({ return false; } handleAuthentication() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { throw new Error("not implemented"); }); } @@ -17708,7 +17723,7 @@ var require_auth = __commonJS({ return false; } handleAuthentication() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { throw new Error("not implemented"); }); } @@ -17734,7 +17749,7 @@ var require_auth = __commonJS({ return false; } handleAuthentication() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { throw new Error("not implemented"); }); } @@ -17747,7 +17762,7 @@ var require_auth = __commonJS({ var require_oidc_utils = __commonJS({ "../node_modules/@actions/core/lib/oidc-utils.js"(exports2) { "use strict"; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -17810,7 +17825,7 @@ var require_oidc_utils = __commonJS({ } static getCall(id_token_url) { var _a; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const httpclient = _OidcClient.createHttpClient(); const res = yield httpclient.getJson(id_token_url).catch((error) => { throw new Error(`Failed to get ID Token. @@ -17827,7 +17842,7 @@ var require_oidc_utils = __commonJS({ }); } static getIDToken(audience) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { try { let id_token_url = _OidcClient.getIDTokenUrl(); if (audience) { @@ -17852,7 +17867,7 @@ var require_oidc_utils = __commonJS({ var require_summary = __commonJS({ "../node_modules/@actions/core/lib/summary.js"(exports2) { "use strict"; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -17904,7 +17919,7 @@ var require_summary = __commonJS({ * @returns step summary file path */ filePath() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (this._filePath) { return this._filePath; } @@ -17945,7 +17960,7 @@ var require_summary = __commonJS({ * @returns {Promise} summary instance */ write(options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); const filePath = yield this.filePath(); const writeFunc = overwrite ? writeFile : appendFile; @@ -17959,7 +17974,7 @@ var require_summary = __commonJS({ * @returns {Summary} summary instance */ clear() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return this.emptyBuffer().write({ overwrite: true }); }); } @@ -18153,7 +18168,7 @@ var require_summary = __commonJS({ var require_path_utils = __commonJS({ "../node_modules/@actions/core/lib/path-utils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -18164,26 +18179,26 @@ var require_path_utils = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.toPlatformPath = exports2.toWin32Path = exports2.toPosixPath = void 0; - var path = __importStar5(require("path")); + var path = __importStar3(require("path")); function toPosixPath(pth) { return pth.replace(/[\\]/g, "/"); } @@ -18206,7 +18221,7 @@ var require_path_utils = __commonJS({ var require_core = __commonJS({ "../node_modules/@actions/core/lib/core.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -18217,24 +18232,24 @@ var require_core = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -18270,8 +18285,8 @@ var require_core = __commonJS({ var command_1 = require_command(); var file_command_1 = require_file_command(); var utils_12 = require_utils(); - var os = __importStar5(require("os")); - var path = __importStar5(require("path")); + var os = __importStar3(require("os")); + var path = __importStar3(require("path")); var oidc_utils_1 = require_oidc_utils(); var ExitCode; (function(ExitCode2) { @@ -18401,7 +18416,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); __name(endGroup, "endGroup"); exports2.endGroup = endGroup; function group(name, fn) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { startGroup(name); let result; try { @@ -18429,7 +18444,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); __name(getState, "getState"); exports2.getState = getState; function getIDToken(aud) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return yield oidc_utils_1.OidcClient.getIDToken(aud); }); } @@ -18521,7 +18536,7 @@ var require_context = __commonJS({ var require_utils3 = __commonJS({ "node_modules/@actions/github/lib/internal/utils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -18532,26 +18547,26 @@ var require_utils3 = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getApiBaseUrl = exports2.getProxyAgent = exports2.getAuthString = void 0; - var httpClient = __importStar5(require_lib()); + var httpClient = __importStar3(require_lib()); function getAuthString(token, options) { if (!token && !options.auth) { throw new Error("Parameter token or opts.auth is required"); @@ -24092,7 +24107,7 @@ var require_dist_node10 = __commonJS({ var require_utils5 = __commonJS({ "node_modules/@actions/github/lib/utils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -24103,27 +24118,27 @@ var require_utils5 = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getOctokitOptions = exports2.GitHub = exports2.defaults = exports2.context = void 0; - var Context = __importStar5(require_context()); - var Utils = __importStar5(require_utils3()); + var Context = __importStar3(require_context()); + var Utils = __importStar3(require_utils3()); var core_1 = require_dist_node8(); var plugin_rest_endpoint_methods_1 = require_dist_node9(); var plugin_paginate_rest_1 = require_dist_node10(); @@ -24153,7 +24168,7 @@ var require_utils5 = __commonJS({ var require_github = __commonJS({ "node_modules/@actions/github/lib/github.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -24164,26 +24179,26 @@ var require_github = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getOctokit = exports2.context = void 0; - var Context = __importStar5(require_context()); + var Context = __importStar3(require_context()); var utils_12 = require_utils5(); exports2.context = new Context.Context(); function getOctokit(token, options, ...additionalPlugins) { @@ -24199,7 +24214,7 @@ var require_github = __commonJS({ var require_io_util = __commonJS({ "../node_modules/@actions/io/lib/io-util.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -24210,24 +24225,24 @@ var require_io_util = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -24261,14 +24276,14 @@ var require_io_util = __commonJS({ var _a; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getCmdPath = exports2.tryGetExecutablePath = exports2.isRooted = exports2.isDirectory = exports2.exists = exports2.READONLY = exports2.UV_FS_O_EXLOCK = exports2.IS_WINDOWS = exports2.unlink = exports2.symlink = exports2.stat = exports2.rmdir = exports2.rm = exports2.rename = exports2.readlink = exports2.readdir = exports2.open = exports2.mkdir = exports2.lstat = exports2.copyFile = exports2.chmod = void 0; - var fs2 = __importStar5(require("fs")); - var path = __importStar5(require("path")); + var fs2 = __importStar3(require("fs")); + var path = __importStar3(require("path")); _a = fs2.promises, exports2.chmod = _a.chmod, exports2.copyFile = _a.copyFile, exports2.lstat = _a.lstat, exports2.mkdir = _a.mkdir, exports2.open = _a.open, exports2.readdir = _a.readdir, exports2.readlink = _a.readlink, exports2.rename = _a.rename, exports2.rm = _a.rm, exports2.rmdir = _a.rmdir, exports2.stat = _a.stat, exports2.symlink = _a.symlink, exports2.unlink = _a.unlink; exports2.IS_WINDOWS = process.platform === "win32"; exports2.UV_FS_O_EXLOCK = 268435456; exports2.READONLY = fs2.constants.O_RDONLY; function exists(fsPath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { try { yield exports2.stat(fsPath); } catch (err) { @@ -24283,7 +24298,7 @@ var require_io_util = __commonJS({ __name(exists, "exists"); exports2.exists = exists; function isDirectory(fsPath, useStat = false) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const stats = useStat ? yield exports2.stat(fsPath) : yield exports2.lstat(fsPath); return stats.isDirectory(); }); @@ -24303,7 +24318,7 @@ var require_io_util = __commonJS({ __name(isRooted, "isRooted"); exports2.isRooted = isRooted; function tryGetExecutablePath(filePath, extensions) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let stats = void 0; try { stats = yield exports2.stat(filePath); @@ -24388,7 +24403,7 @@ var require_io_util = __commonJS({ var require_io = __commonJS({ "../node_modules/@actions/io/lib/io.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -24399,24 +24414,24 @@ var require_io = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -24450,10 +24465,10 @@ var require_io = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.findInPath = exports2.which = exports2.mkdirP = exports2.rmRF = exports2.mv = exports2.cp = void 0; var assert_1 = require("assert"); - var path = __importStar5(require("path")); - var ioUtil = __importStar5(require_io_util()); + var path = __importStar3(require("path")); + var ioUtil = __importStar3(require_io_util()); function cp(source, dest, options = {}) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const { force, recursive, copySourceDirectory } = readCopyOptions(options); const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; if (destStat && destStat.isFile() && !force) { @@ -24481,7 +24496,7 @@ var require_io = __commonJS({ __name(cp, "cp"); exports2.cp = cp; function mv(source, dest, options = {}) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (yield ioUtil.exists(dest)) { let destExists = true; if (yield ioUtil.isDirectory(dest)) { @@ -24503,7 +24518,7 @@ var require_io = __commonJS({ __name(mv, "mv"); exports2.mv = mv; function rmRF(inputPath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (ioUtil.IS_WINDOWS) { if (/[*"<>|]/.test(inputPath)) { throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows'); @@ -24524,7 +24539,7 @@ var require_io = __commonJS({ __name(rmRF, "rmRF"); exports2.rmRF = rmRF; function mkdirP(fsPath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { assert_1.ok(fsPath, "a path argument must be provided"); yield ioUtil.mkdir(fsPath, { recursive: true }); }); @@ -24532,7 +24547,7 @@ var require_io = __commonJS({ __name(mkdirP, "mkdirP"); exports2.mkdirP = mkdirP; function which(tool, check) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!tool) { throw new Error("parameter 'tool' is required"); } @@ -24557,7 +24572,7 @@ var require_io = __commonJS({ __name(which, "which"); exports2.which = which; function findInPath(tool) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!tool) { throw new Error("parameter 'tool' is required"); } @@ -24607,7 +24622,7 @@ var require_io = __commonJS({ } __name(readCopyOptions, "readCopyOptions"); function cpDirRecursive(sourceDir, destDir, currentDepth, force) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (currentDepth >= 255) return; currentDepth++; @@ -24628,7 +24643,7 @@ var require_io = __commonJS({ } __name(cpDirRecursive, "cpDirRecursive"); function copyFile(srcFile, destFile, force) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { try { yield ioUtil.lstat(destFile); @@ -24654,15 +24669,15 @@ var require_io = __commonJS({ var version2, checksum; var init_cli = __esm({ "../common/cli.json"() { - version2 = "2023.2.8"; + version2 = "2023.2.9"; checksum = { - windows_x86_64: "045d850ed636798d1c7a131791740f25ed88ec0fd876de89df906a005c02e32a", - linux_arm64: "ed8f5c1e692d411fafab72a1f09819957bc234eadb8d94b19eb54cd64639f2e7", + windows_x86_64: "ad783e3d6e13a360725d44cb5ffa5c5fd8b5fa898e46c0232978361710276e02", + linux_arm64: "90b43711c9632d58ea384dff5e1f9c777c91d03988a3a8dae10e3298df23e4b1", darwin_arm64: "722ffb66a23fa0d6d8aef4dabf8b1e520bab04c7c1232b5d0d1859e7113dc6a8", darwin_x86_64: "cc7bf6af28bc26cbe7f4ff76906a1a87e19321082003edf4c014f6bdd4874c95", - windows_arm64: "b753315f835949d8b1ff5329e60f732c914c371d37352f23dc27c2c1f28c05e7", - linux_x86_64: "996bdd7e1df184dd8177a7b1fee4955f52dd8d26128d9375f60dd9a570dde2ed", - darwin_all: "4709f410a140b30b351002755e1c69133b0b808acf1c6823e2b631e1d305dbc9" + windows_arm64: "9cb88885d1380850a34f8e51a38fb1be012d2348312293c779d5b0a1b57b7daa", + linux_x86_64: "6131b22269b9392608341ede868875d46adf1b10d6751eb4caf64df7657ce71f", + darwin_all: "bebded982b84e1dda3d62db5ef8638dd22f9ff131206e6a5b6368662d178915a" }; } }); @@ -24917,7 +24932,7 @@ The following characters are not allowed in files that are uploaded due to limit var require_upload_specification = __commonJS({ "../node_modules/@actions/artifact/lib/internal/upload-specification.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -24932,26 +24947,26 @@ var require_upload_specification = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getUploadSpecification = void 0; - var fs2 = __importStar5(require("fs")); + var fs2 = __importStar3(require("fs")); var core_1 = require_core(); var path_1 = require("path"); var path_and_artifact_name_validation_1 = require_path_and_artifact_name_validation(); @@ -28431,7 +28446,7 @@ var require_crc64 = __commonJS({ var require_utils6 = __commonJS({ "../node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { "use strict"; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -28462,18 +28477,18 @@ var require_utils6 = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __importDefault4 = exports2 && exports2.__importDefault || function(mod) { + var __importDefault2 = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.digestForStream = exports2.sleep = exports2.getProperRetention = exports2.rmFile = exports2.getFileSize = exports2.createEmptyFilesForArtifact = exports2.createDirectoriesForArtifact = exports2.displayHttpDiagnostics = exports2.getArtifactUrl = exports2.createHttpClient = exports2.getUploadHeaders = exports2.getDownloadHeaders = exports2.getContentRange = exports2.tryGetRetryAfterValueTimeInMilliseconds = exports2.isThrottledStatusCode = exports2.isRetryableStatusCode = exports2.isForbiddenStatusCode = exports2.isSuccessStatusCode = exports2.getApiVersion = exports2.parseEnvNumber = exports2.getExponentialRetryTimeInMilliseconds = void 0; - var crypto_1 = __importDefault4(require("crypto")); + var crypto_1 = __importDefault2(require("crypto")); var fs_1 = require("fs"); var core_1 = require_core(); var http_client_1 = require_lib(); var auth_1 = require_auth(); var config_variables_1 = require_config_variables(); - var crc64_1 = __importDefault4(require_crc64()); + var crc64_1 = __importDefault2(require_crc64()); function getExponentialRetryTimeInMilliseconds(retryCount) { if (retryCount < 0) { throw new Error("RetryCount should not be negative"); @@ -28633,7 +28648,7 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} __name(displayHttpDiagnostics, "displayHttpDiagnostics"); exports2.displayHttpDiagnostics = displayHttpDiagnostics; function createDirectoriesForArtifact(directories) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { for (const directory of directories) { yield fs_1.promises.mkdir(directory, { recursive: true @@ -28644,7 +28659,7 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} __name(createDirectoriesForArtifact, "createDirectoriesForArtifact"); exports2.createDirectoriesForArtifact = createDirectoriesForArtifact; function createEmptyFilesForArtifact(emptyFilesToCreate) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { for (const filePath of emptyFilesToCreate) { yield (yield fs_1.promises.open(filePath, "w")).close(); } @@ -28653,7 +28668,7 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} __name(createEmptyFilesForArtifact, "createEmptyFilesForArtifact"); exports2.createEmptyFilesForArtifact = createEmptyFilesForArtifact; function getFileSize(filePath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const stats = yield fs_1.promises.stat(filePath); (0, core_1.debug)(`${filePath} size:(${stats.size}) blksize:(${stats.blksize}) blocks:(${stats.blocks})`); return stats.size; @@ -28662,7 +28677,7 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} __name(getFileSize, "getFileSize"); exports2.getFileSize = getFileSize; function rmFile(filePath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { yield fs_1.promises.unlink(filePath); }); } @@ -28685,14 +28700,14 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} __name(getProperRetention, "getProperRetention"); exports2.getProperRetention = getProperRetention; function sleep(milliseconds) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return new Promise((resolve) => setTimeout(resolve, milliseconds)); }); } __name(sleep, "sleep"); exports2.sleep = sleep; function digestForStream(stream) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return new Promise((resolve, reject) => { const crc64 = new crc64_1.default(); const md53 = crypto_1.default.createHash("md5"); @@ -28801,7 +28816,7 @@ var require_http_manager = __commonJS({ var require_upload_gzip = __commonJS({ "../node_modules/@actions/artifact/lib/internal/upload-gzip.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -28816,24 +28831,24 @@ var require_upload_gzip = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -28864,7 +28879,7 @@ var require_upload_gzip = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __asyncValues4 = exports2 && exports2.__asyncValues || function(o) { + var __asyncValues2 = exports2 && exports2.__asyncValues || function(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; @@ -28888,8 +28903,8 @@ var require_upload_gzip = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.createGZipFileInBuffer = exports2.createGZipFileOnDisk = void 0; - var fs2 = __importStar5(require("fs")); - var zlib = __importStar5(require("zlib")); + var fs2 = __importStar3(require("fs")); + var zlib = __importStar3(require("zlib")); var util_1 = require("util"); var stat = (0, util_1.promisify)(fs2.stat); var gzipExemptFileExtensions = [ @@ -28917,7 +28932,7 @@ var require_upload_gzip = __commonJS({ // 7ZIP ]; function createGZipFileOnDisk(originalFilePath, tempFilePath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { for (const gzipExemptExtension of gzipExemptFileExtensions) { if (originalFilePath.endsWith(gzipExemptExtension)) { return Number.MAX_SAFE_INTEGER; @@ -28928,7 +28943,7 @@ var require_upload_gzip = __commonJS({ const gzip = zlib.createGzip(); const outputStream = fs2.createWriteStream(tempFilePath); inputStream.pipe(gzip).pipe(outputStream); - outputStream.on("finish", () => __awaiter5(this, void 0, void 0, function* () { + outputStream.on("finish", () => __awaiter3(this, void 0, void 0, function* () { const size = (yield stat(tempFilePath)).size; resolve(size); })); @@ -28942,15 +28957,15 @@ var require_upload_gzip = __commonJS({ __name(createGZipFileOnDisk, "createGZipFileOnDisk"); exports2.createGZipFileOnDisk = createGZipFileOnDisk; function createGZipFileInBuffer(originalFilePath) { - return __awaiter5(this, void 0, void 0, function* () { - return new Promise((resolve) => __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter3(this, void 0, void 0, function* () { var _a, e_1, _b, _c; const inputStream = fs2.createReadStream(originalFilePath); const gzip = zlib.createGzip(); inputStream.pipe(gzip); const chunks = []; try { - for (var _d = true, gzip_1 = __asyncValues4(gzip), gzip_1_1; gzip_1_1 = yield gzip_1.next(), _a = gzip_1_1.done, !_a; ) { + for (var _d = true, gzip_1 = __asyncValues2(gzip), gzip_1_1; gzip_1_1 = yield gzip_1.next(), _a = gzip_1_1.done, !_a; ) { _c = gzip_1_1.value; _d = false; try { @@ -28984,7 +28999,7 @@ var require_upload_gzip = __commonJS({ var require_requestUtils = __commonJS({ "../node_modules/@actions/artifact/lib/internal/requestUtils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -28999,24 +29014,24 @@ var require_requestUtils = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -29050,10 +29065,10 @@ var require_requestUtils = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.retryHttpClientRequest = exports2.retry = void 0; var utils_12 = require_utils6(); - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); var config_variables_1 = require_config_variables(); function retry(name, operation, customErrorMessages, maxAttempts) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let response = void 0; let statusCode = void 0; let isRetryable = false; @@ -29099,7 +29114,7 @@ var require_requestUtils = __commonJS({ __name(retry, "retry"); exports2.retry = retry; function retryHttpClientRequest(name, method, customErrorMessages = /* @__PURE__ */ new Map(), maxAttempts = (0, config_variables_1.getRetryLimit)()) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return yield retry(name, method, customErrorMessages, maxAttempts); }); } @@ -29112,7 +29127,7 @@ var require_requestUtils = __commonJS({ var require_upload_http_client = __commonJS({ "../node_modules/@actions/artifact/lib/internal/upload-http-client.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -29127,24 +29142,24 @@ var require_upload_http_client = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -29177,10 +29192,10 @@ var require_upload_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.UploadHttpClient = void 0; - var fs2 = __importStar5(require("fs")); - var core2 = __importStar5(require_core()); - var tmp = __importStar5(require_tmp_promise()); - var stream = __importStar5(require("stream")); + var fs2 = __importStar3(require("fs")); + var core2 = __importStar3(require_core()); + var tmp = __importStar3(require_tmp_promise()); + var stream = __importStar3(require("stream")); var utils_12 = require_utils6(); var config_variables_1 = require_config_variables(); var util_1 = require("util"); @@ -29206,7 +29221,7 @@ var require_upload_http_client = __commonJS({ * @returns The response from the Artifact Service if the file container was successfully created */ createArtifactInFileContainer(artifactName, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const parameters = { Type: "actions_storage", Name: artifactName @@ -29229,7 +29244,7 @@ var require_upload_http_client = __commonJS({ `The artifact name ${artifactName} is not valid. Request URL ${artifactUrl}` ] ]); - const response = yield (0, requestUtils_1.retryHttpClientRequest)("Create Artifact Container", () => __awaiter5(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryHttpClientRequest)("Create Artifact Container", () => __awaiter3(this, void 0, void 0, function* () { return client.post(artifactUrl, data, headers); }), customErrorMessages); const body = yield response.readBody(); @@ -29243,7 +29258,7 @@ var require_upload_http_client = __commonJS({ * @returns The size of all the files uploaded in bytes */ uploadArtifactToFileContainer(uploadUrl, filesToUpload, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const FILE_CONCURRENCY = (0, config_variables_1.getUploadFileConcurrency)(); const MAX_CHUNK_SIZE = (0, config_variables_1.getUploadChunkSize)(); core2.debug(`File Concurrency: ${FILE_CONCURRENCY}, and Chunk Size: ${MAX_CHUNK_SIZE}`); @@ -29273,7 +29288,7 @@ var require_upload_http_client = __commonJS({ let abortPendingFileUploads = false; this.statusReporter.setTotalNumberOfFilesToProcess(filesToUpload.length); this.statusReporter.start(); - yield Promise.all(parallelUploads.map((index) => __awaiter5(this, void 0, void 0, function* () { + yield Promise.all(parallelUploads.map((index) => __awaiter3(this, void 0, void 0, function* () { while (currentFile < filesToUpload.length) { const currentFileParameters = parameters[currentFile]; currentFile += 1; @@ -29316,7 +29331,7 @@ var require_upload_http_client = __commonJS({ * @returns The size of the file that was uploaded in bytes along with any failed uploads */ uploadFileAsync(httpClientIndex, parameters) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const fileStat = yield stat(parameters.file); const totalFileSize = fileStat.size; const isFIFO = fileStat.isFIFO(); @@ -29417,10 +29432,10 @@ var require_upload_http_client = __commonJS({ * @returns if the chunk was successfully uploaded */ uploadChunk(httpClientIndex, resourceUrl, openStream, start, end, uploadFileSize, isGzip, totalFileSize) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const digest = yield (0, utils_12.digestForStream)(openStream()); const headers = (0, utils_12.getUploadHeaders)("application/octet-stream", true, isGzip, totalFileSize, end - start + 1, (0, utils_12.getContentRange)(start, end, uploadFileSize), digest); - const uploadChunkRequest = /* @__PURE__ */ __name(() => __awaiter5(this, void 0, void 0, function* () { + const uploadChunkRequest = /* @__PURE__ */ __name(() => __awaiter3(this, void 0, void 0, function* () { const client = this.uploadHttpManager.getClient(httpClientIndex); return yield client.sendStream("PUT", resourceUrl, openStream(), headers); }), "uploadChunkRequest"); @@ -29437,7 +29452,7 @@ var require_upload_http_client = __commonJS({ } return false; }, "incrementAndCheckRetryLimit"); - const backOff = /* @__PURE__ */ __name((retryAfterValue) => __awaiter5(this, void 0, void 0, function* () { + const backOff = /* @__PURE__ */ __name((retryAfterValue) => __awaiter3(this, void 0, void 0, function* () { this.uploadHttpManager.disposeAndReplaceClient(httpClientIndex); if (retryAfterValue) { core2.info(`Backoff due to too many requests, retry #${retryCount}. Waiting for ${retryAfterValue} milliseconds before continuing the upload`); @@ -29486,7 +29501,7 @@ var require_upload_http_client = __commonJS({ * Updating the size indicates that we are done uploading all the contents of the artifact */ patchArtifactSize(size, artifactName) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const resourceUrl = new url_1.URL((0, utils_12.getArtifactUrl)()); resourceUrl.searchParams.append("artifactName", artifactName); const parameters = { Size: size }; @@ -29500,7 +29515,7 @@ var require_upload_http_client = __commonJS({ `An Artifact with the name ${artifactName} was not found` ] ]); - const response = yield (0, requestUtils_1.retryHttpClientRequest)("Finalize artifact upload", () => __awaiter5(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryHttpClientRequest)("Finalize artifact upload", () => __awaiter3(this, void 0, void 0, function* () { return client.patch(resourceUrl.toString(), data, headers); }), customErrorMessages); yield response.readBody(); @@ -29516,7 +29531,7 @@ var require_upload_http_client = __commonJS({ var require_download_http_client = __commonJS({ "../node_modules/@actions/artifact/lib/internal/download-http-client.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -29531,24 +29546,24 @@ var require_download_http_client = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -29581,9 +29596,9 @@ var require_download_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.DownloadHttpClient = void 0; - var fs2 = __importStar5(require("fs")); - var core2 = __importStar5(require_core()); - var zlib = __importStar5(require("zlib")); + var fs2 = __importStar3(require("fs")); + var core2 = __importStar3(require_core()); + var zlib = __importStar3(require("zlib")); var utils_12 = require_utils6(); var url_1 = require("url"); var status_reporter_1 = require_status_reporter(); @@ -29603,11 +29618,11 @@ var require_download_http_client = __commonJS({ * Gets a list of all artifacts that are in a specific container */ listArtifacts() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const artifactUrl = (0, utils_12.getArtifactUrl)(); const client = this.downloadHttpManager.getClient(0); const headers = (0, utils_12.getDownloadHeaders)("application/json"); - const response = yield (0, requestUtils_1.retryHttpClientRequest)("List Artifacts", () => __awaiter5(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryHttpClientRequest)("List Artifacts", () => __awaiter3(this, void 0, void 0, function* () { return client.get(artifactUrl, headers); })); const body = yield response.readBody(); @@ -29620,12 +29635,12 @@ var require_download_http_client = __commonJS({ * @param containerUrl the artifact container URL for the run */ getContainerItems(artifactName, containerUrl) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const resourceUrl = new url_1.URL(containerUrl); resourceUrl.searchParams.append("itemPath", artifactName); const client = this.downloadHttpManager.getClient(0); const headers = (0, utils_12.getDownloadHeaders)("application/json"); - const response = yield (0, requestUtils_1.retryHttpClientRequest)("Get Container Items", () => __awaiter5(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryHttpClientRequest)("Get Container Items", () => __awaiter3(this, void 0, void 0, function* () { return client.get(resourceUrl.toString(), headers); })); const body = yield response.readBody(); @@ -29637,7 +29652,7 @@ var require_download_http_client = __commonJS({ * @param downloadItems information about what items to download and where to save them */ downloadSingleArtifact(downloadItems) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const DOWNLOAD_CONCURRENCY = (0, config_variables_1.getDownloadFileConcurrency)(); core2.debug(`Download file concurrency is set to ${DOWNLOAD_CONCURRENCY}`); const parallelDownloads = [...new Array(DOWNLOAD_CONCURRENCY).keys()]; @@ -29646,7 +29661,7 @@ var require_download_http_client = __commonJS({ core2.info(`Total number of files that will be downloaded: ${downloadItems.length}`); this.statusReporter.setTotalNumberOfFilesToProcess(downloadItems.length); this.statusReporter.start(); - yield Promise.all(parallelDownloads.map((index) => __awaiter5(this, void 0, void 0, function* () { + yield Promise.all(parallelDownloads.map((index) => __awaiter3(this, void 0, void 0, function* () { while (currentFile < downloadItems.length) { const currentFileToDownload = downloadItems[currentFile]; currentFile += 1; @@ -29672,19 +29687,19 @@ var require_download_http_client = __commonJS({ * @param downloadPath destination location for the file being downloaded */ downloadIndividualFile(httpClientIndex, artifactLocation, downloadPath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let retryCount = 0; const retryLimit = (0, config_variables_1.getRetryLimit)(); let destinationStream = fs2.createWriteStream(downloadPath); const headers = (0, utils_12.getDownloadHeaders)("application/json", true, true); - const makeDownloadRequest = /* @__PURE__ */ __name(() => __awaiter5(this, void 0, void 0, function* () { + const makeDownloadRequest = /* @__PURE__ */ __name(() => __awaiter3(this, void 0, void 0, function* () { const client = this.downloadHttpManager.getClient(httpClientIndex); return yield client.get(artifactLocation, headers); }), "makeDownloadRequest"); const isGzip = /* @__PURE__ */ __name((incomingHeaders) => { return "content-encoding" in incomingHeaders && incomingHeaders["content-encoding"] === "gzip"; }, "isGzip"); - const backOff = /* @__PURE__ */ __name((retryAfterValue) => __awaiter5(this, void 0, void 0, function* () { + const backOff = /* @__PURE__ */ __name((retryAfterValue) => __awaiter3(this, void 0, void 0, function* () { retryCount++; if (retryCount > retryLimit) { return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${artifactLocation}`)); @@ -29708,7 +29723,7 @@ var require_download_http_client = __commonJS({ } return parseInt(expected) === received; }, "isAllBytesReceived"); - const resetDestinationStream = /* @__PURE__ */ __name((fileDownloadPath) => __awaiter5(this, void 0, void 0, function* () { + const resetDestinationStream = /* @__PURE__ */ __name((fileDownloadPath) => __awaiter3(this, void 0, void 0, function* () { destinationStream.close(); yield new Promise((resolve) => { destinationStream.on("close", resolve); @@ -29761,7 +29776,7 @@ var require_download_http_client = __commonJS({ * @param isGzip a boolean denoting if the content is compressed using gzip and if we need to decode it */ pipeResponseToFile(response, destinationStream, isGzip) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { yield new Promise((resolve, reject) => { if (isGzip) { const gunzip = zlib.createGunzip(); @@ -29805,7 +29820,7 @@ var require_download_http_client = __commonJS({ var require_download_specification = __commonJS({ "../node_modules/@actions/artifact/lib/internal/download-specification.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -29820,26 +29835,26 @@ var require_download_specification = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getDownloadSpecification = void 0; - var path = __importStar5(require("path")); + var path = __importStar3(require("path")); function getDownloadSpecification(artifactName, artifactEntries, downloadPath, includeRootDirectory) { const directories = /* @__PURE__ */ new Set(); const specifications = { @@ -29877,7 +29892,7 @@ var require_download_specification = __commonJS({ var require_artifact_client = __commonJS({ "../node_modules/@actions/artifact/lib/internal/artifact-client.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -29892,24 +29907,24 @@ var require_artifact_client = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -29942,7 +29957,7 @@ var require_artifact_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.DefaultArtifactClient = void 0; - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); var upload_specification_1 = require_upload_specification(); var upload_http_client_1 = require_upload_http_client(); var utils_12 = require_utils6(); @@ -29965,7 +29980,7 @@ var require_artifact_client = __commonJS({ * Uploads an artifact */ uploadArtifact(name, files, rootDirectory, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { core2.info(`Starting artifact upload For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging`); (0, path_and_artifact_name_validation_1.checkArtifactName)(name); @@ -30009,7 +30024,7 @@ Note: The size of downloaded zips can differ significantly from the reported siz }); } downloadArtifact(name, path, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); const artifacts = yield downloadHttpClient.listArtifacts(); if (artifacts.count === 0) { @@ -30043,7 +30058,7 @@ Note: The size of downloaded zips can differ significantly from the reported siz }); } downloadAllArtifacts(path) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); const response = []; const artifacts = yield downloadHttpClient.listArtifacts(); @@ -30102,7 +30117,7 @@ var require_artifact_client2 = __commonJS({ var require_toolrunner = __commonJS({ "../node_modules/@actions/exec/lib/toolrunner.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -30113,24 +30128,24 @@ var require_toolrunner = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -30163,12 +30178,12 @@ var require_toolrunner = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.argStringToArray = exports2.ToolRunner = void 0; - var os = __importStar5(require("os")); - var events = __importStar5(require("events")); - var child = __importStar5(require("child_process")); - var path = __importStar5(require("path")); - var io2 = __importStar5(require_io()); - var ioUtil = __importStar5(require_io_util()); + var os = __importStar3(require("os")); + var events = __importStar3(require("events")); + var child = __importStar3(require("child_process")); + var path = __importStar3(require("path")); + var io2 = __importStar3(require_io()); + var ioUtil = __importStar3(require_io_util()); var timers_1 = require("timers"); var IS_WINDOWS = process.platform === "win32"; var ToolRunner = class extends events.EventEmitter { @@ -30382,12 +30397,12 @@ var require_toolrunner = __commonJS({ * @returns number */ exec() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!ioUtil.isRooted(this.toolPath) && (this.toolPath.includes("/") || IS_WINDOWS && this.toolPath.includes("\\"))) { this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); } this.toolPath = yield io2.which(this.toolPath, true); - return new Promise((resolve, reject) => __awaiter5(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter3(this, void 0, void 0, function* () { this._debug(`exec tool: ${this.toolPath}`); this._debug("arguments:"); for (const arg of this.args) { @@ -30603,7 +30618,7 @@ var require_toolrunner = __commonJS({ var require_exec = __commonJS({ "../node_modules/@actions/exec/lib/exec.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -30614,24 +30629,24 @@ var require_exec = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -30665,9 +30680,9 @@ var require_exec = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getExecOutput = exports2.exec = void 0; var string_decoder_1 = require("string_decoder"); - var tr = __importStar5(require_toolrunner()); + var tr = __importStar3(require_toolrunner()); function exec(commandLine, args, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const commandArgs = tr.argStringToArray(commandLine); if (commandArgs.length === 0) { throw new Error(`Parameter 'commandLine' cannot be null or empty.`); @@ -30682,7 +30697,7 @@ var require_exec = __commonJS({ exports2.exec = exec; function getExecOutput(commandLine, args, options) { var _a, _b; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let stdout = ""; let stderr = ""; const stdoutDecoder = new string_decoder_1.StringDecoder("utf8"); @@ -30721,7 +30736,7 @@ var require_exec = __commonJS({ var require_internal_glob_options_helper = __commonJS({ "../node_modules/@actions/glob/lib/internal-glob-options-helper.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -30732,26 +30747,26 @@ var require_internal_glob_options_helper = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getOptions = void 0; - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); function getOptions(copy) { const result = { followSymbolicLinks: true, @@ -30783,7 +30798,7 @@ var require_internal_glob_options_helper = __commonJS({ var require_internal_path_helper = __commonJS({ "../node_modules/@actions/glob/lib/internal-path-helper.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -30794,30 +30809,30 @@ var require_internal_path_helper = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __importDefault4 = exports2 && exports2.__importDefault || function(mod) { + var __importDefault2 = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.safeTrimTrailingSeparator = exports2.normalizeSeparators = exports2.hasRoot = exports2.hasAbsoluteRoot = exports2.ensureAbsoluteRoot = exports2.dirname = void 0; - var path = __importStar5(require("path")); - var assert_1 = __importDefault4(require("assert")); + var path = __importStar3(require("path")); + var assert_1 = __importDefault2(require("assert")); var IS_WINDOWS = process.platform === "win32"; function dirname(p) { p = safeTrimTrailingSeparator(p); @@ -30941,7 +30956,7 @@ var require_internal_match_kind = __commonJS({ var require_internal_pattern_helper = __commonJS({ "../node_modules/@actions/glob/lib/internal-pattern-helper.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -30952,26 +30967,26 @@ var require_internal_pattern_helper = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.partialMatch = exports2.match = exports2.getSearchPaths = void 0; - var pathHelper = __importStar5(require_internal_path_helper()); + var pathHelper = __importStar3(require_internal_path_helper()); var internal_match_kind_1 = require_internal_match_kind(); var IS_WINDOWS = process.platform === "win32"; function getSearchPaths(patterns) { @@ -31028,719 +31043,344 @@ var require_internal_pattern_helper = __commonJS({ } }); -// ../node_modules/@actions/glob/node_modules/minimatch/minimatch.js -var require_minimatch2 = __commonJS({ - "../node_modules/@actions/glob/node_modules/minimatch/minimatch.js"(exports2, module2) { - module2.exports = minimatch; - minimatch.Minimatch = Minimatch; - var path = function() { - try { - return require("path"); - } catch (e) { - } - }() || { - sep: "/" - }; - minimatch.sep = path.sep; - var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; - var expand = require_brace_expansion(); - var plTypes = { - "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, - "?": { open: "(?:", close: ")?" }, - "+": { open: "(?:", close: ")+" }, - "*": { open: "(?:", close: ")*" }, - "@": { open: "(?:", close: ")" } - }; - var qmark = "[^/]"; - var star = qmark + "*?"; - var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; - var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; - var reSpecials = charSet("().*{}+?[]^$\\!"); - function charSet(s) { - return s.split("").reduce(function(set, c) { - set[c] = true; - return set; - }, {}); - } - __name(charSet, "charSet"); - var slashSplit = /\/+/; - minimatch.filter = filter; - function filter(pattern, options) { - options = options || {}; - return function(p, i, list) { - return minimatch(p, pattern, options); - }; - } - __name(filter, "filter"); - function ext(a, b) { - b = b || {}; - var t = {}; - Object.keys(a).forEach(function(k) { - t[k] = a[k]; - }); - Object.keys(b).forEach(function(k) { - t[k] = b[k]; - }); - return t; - } - __name(ext, "ext"); - minimatch.defaults = function(def) { - if (!def || typeof def !== "object" || !Object.keys(def).length) { - return minimatch; +// ../node_modules/@actions/glob/lib/internal-path.js +var require_internal_path = __commonJS({ + "../node_modules/@actions/glob/lib/internal-path.js"(exports2) { + "use strict"; + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; + } }); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar3 = exports2 && exports2.__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)) + __createBinding3(result, mod, k); } - var orig = minimatch; - var m = /* @__PURE__ */ __name(function minimatch2(p, pattern, options) { - return orig(p, pattern, ext(def, options)); - }, "minimatch"); - m.Minimatch = /* @__PURE__ */ __name(function Minimatch2(pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)); - }, "Minimatch"); - m.Minimatch.defaults = /* @__PURE__ */ __name(function defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; - }, "defaults"); - m.filter = /* @__PURE__ */ __name(function filter2(pattern, options) { - return orig.filter(pattern, ext(def, options)); - }, "filter"); - m.defaults = /* @__PURE__ */ __name(function defaults(options) { - return orig.defaults(ext(def, options)); - }, "defaults"); - m.makeRe = /* @__PURE__ */ __name(function makeRe2(pattern, options) { - return orig.makeRe(pattern, ext(def, options)); - }, "makeRe"); - m.braceExpand = /* @__PURE__ */ __name(function braceExpand2(pattern, options) { - return orig.braceExpand(pattern, ext(def, options)); - }, "braceExpand"); - m.match = function(list, pattern, options) { - return orig.match(list, pattern, ext(def, options)); - }; - return m; + __setModuleDefault3(result, mod); + return result; }; - Minimatch.defaults = function(def) { - return minimatch.defaults(def).Minimatch; + var __importDefault2 = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; }; - function minimatch(p, pattern, options) { - assertValidPattern(pattern); - if (!options) - options = {}; - if (!options.nocomment && pattern.charAt(0) === "#") { - return false; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Path = void 0; + var path = __importStar3(require("path")); + var pathHelper = __importStar3(require_internal_path_helper()); + var assert_1 = __importDefault2(require("assert")); + var IS_WINDOWS = process.platform === "win32"; + var Path = class { + static { + __name(this, "Path"); } - return new Minimatch(pattern, options).match(p); - } - __name(minimatch, "minimatch"); - function Minimatch(pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options); + /** + * Constructs a Path + * @param itemPath Path or array of segments + */ + constructor(itemPath) { + this.segments = []; + if (typeof itemPath === "string") { + assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`); + itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + if (!pathHelper.hasRoot(itemPath)) { + this.segments = itemPath.split(path.sep); + } else { + let remaining = itemPath; + let dir = pathHelper.dirname(remaining); + while (dir !== remaining) { + const basename = path.basename(remaining); + this.segments.unshift(basename); + remaining = dir; + dir = pathHelper.dirname(remaining); + } + this.segments.unshift(remaining); + } + } else { + assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); + for (let i = 0; i < itemPath.length; i++) { + let segment = itemPath[i]; + assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`); + segment = pathHelper.normalizeSeparators(itemPath[i]); + if (i === 0 && pathHelper.hasRoot(segment)) { + segment = pathHelper.safeTrimTrailingSeparator(segment); + assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); + this.segments.push(segment); + } else { + assert_1.default(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`); + this.segments.push(segment); + } + } + } } - assertValidPattern(pattern); - if (!options) - options = {}; - pattern = pattern.trim(); - if (path.sep !== "/") { - pattern = pattern.split(path.sep).join("/"); + /** + * Converts the path to it's string representation + */ + toString() { + let result = this.segments[0]; + let skipSlash = result.endsWith(path.sep) || IS_WINDOWS && /^[A-Z]:$/i.test(result); + for (let i = 1; i < this.segments.length; i++) { + if (skipSlash) { + skipSlash = false; + } else { + result += path.sep; + } + result += this.segments[i]; + } + return result; } - this.options = options; - this.set = []; - this.pattern = pattern; - this.regexp = null; - this.negate = false; - this.comment = false; - this.empty = false; - this.partial = !!options.partial; - this.make(); - } - __name(Minimatch, "Minimatch"); - Minimatch.prototype.debug = function() { }; - Minimatch.prototype.make = make; - function make() { - var pattern = this.pattern; - var options = this.options; - if (!options.nocomment && pattern.charAt(0) === "#") { - this.comment = true; - return; - } - if (!pattern) { - this.empty = true; - return; - } - this.parseNegate(); - var set = this.globSet = this.braceExpand(); - if (options.debug) - this.debug = /* @__PURE__ */ __name(function debug() { - console.error.apply(console, arguments); - }, "debug"); - this.debug(this.pattern, set); - set = this.globParts = set.map(function(s) { - return s.split(slashSplit); - }); - this.debug(this.pattern, set); - set = set.map(function(s, si, set2) { - return s.map(this.parse, this); - }, this); - this.debug(this.pattern, set); - set = set.filter(function(s) { - return s.indexOf(false) === -1; - }); - this.debug(this.pattern, set); - this.set = set; - } - __name(make, "make"); - Minimatch.prototype.parseNegate = parseNegate; - function parseNegate() { - var pattern = this.pattern; - var negate = false; - var options = this.options; - var negateOffset = 0; - if (options.nonegate) - return; - for (var i = 0, l = pattern.length; i < l && pattern.charAt(i) === "!"; i++) { - negate = !negate; - negateOffset++; + exports2.Path = Path; + } +}); + +// ../node_modules/@actions/glob/lib/internal-pattern.js +var require_internal_pattern = __commonJS({ + "../node_modules/@actions/glob/lib/internal-pattern.js"(exports2) { + "use strict"; + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; + } }); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar3 = exports2 && exports2.__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)) + __createBinding3(result, mod, k); } - if (negateOffset) - this.pattern = pattern.substr(negateOffset); - this.negate = negate; - } - __name(parseNegate, "parseNegate"); - minimatch.braceExpand = function(pattern, options) { - return braceExpand(pattern, options); + __setModuleDefault3(result, mod); + return result; }; - Minimatch.prototype.braceExpand = braceExpand; - function braceExpand(pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options; + var __importDefault2 = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Pattern = void 0; + var os = __importStar3(require("os")); + var path = __importStar3(require("path")); + var pathHelper = __importStar3(require_internal_path_helper()); + var assert_1 = __importDefault2(require("assert")); + var minimatch_1 = require_minimatch(); + var internal_match_kind_1 = require_internal_match_kind(); + var internal_path_1 = require_internal_path(); + var IS_WINDOWS = process.platform === "win32"; + var Pattern = class _Pattern { + static { + __name(this, "Pattern"); + } + constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) { + this.negate = false; + let pattern; + if (typeof patternOrNegate === "string") { + pattern = patternOrNegate.trim(); } else { - options = {}; + segments = segments || []; + assert_1.default(segments.length, `Parameter 'segments' must not empty`); + const root = _Pattern.getLiteral(segments[0]); + assert_1.default(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); + pattern = new internal_path_1.Path(segments).toString().trim(); + if (patternOrNegate) { + pattern = `!${pattern}`; + } } + while (pattern.startsWith("!")) { + this.negate = !this.negate; + pattern = pattern.substr(1).trim(); + } + pattern = _Pattern.fixupPattern(pattern, homedir); + this.segments = new internal_path_1.Path(pattern).segments; + this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path.sep); + pattern = pathHelper.safeTrimTrailingSeparator(pattern); + let foundGlob = false; + const searchSegments = this.segments.map((x) => _Pattern.getLiteral(x)).filter((x) => !foundGlob && !(foundGlob = x === "")); + this.searchPath = new internal_path_1.Path(searchSegments).toString(); + this.rootRegExp = new RegExp(_Pattern.regExpEscape(searchSegments[0]), IS_WINDOWS ? "i" : ""); + this.isImplicitPattern = isImplicitPattern; + const minimatchOptions = { + dot: true, + nobrace: true, + nocase: IS_WINDOWS, + nocomment: true, + noext: true, + nonegate: true + }; + pattern = IS_WINDOWS ? pattern.replace(/\\/g, "/") : pattern; + this.minimatch = new minimatch_1.Minimatch(pattern, minimatchOptions); } - pattern = typeof pattern === "undefined" ? this.pattern : pattern; - assertValidPattern(pattern); - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - return [pattern]; - } - return expand(pattern); - } - __name(braceExpand, "braceExpand"); - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = /* @__PURE__ */ __name(function(pattern) { - if (typeof pattern !== "string") { - throw new TypeError("invalid pattern"); + /** + * Matches the pattern against the specified path + */ + match(itemPath) { + if (this.segments[this.segments.length - 1] === "**") { + itemPath = pathHelper.normalizeSeparators(itemPath); + if (!itemPath.endsWith(path.sep) && this.isImplicitPattern === false) { + itemPath = `${itemPath}${path.sep}`; + } + } else { + itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + } + if (this.minimatch.match(itemPath)) { + return this.trailingSeparator ? internal_match_kind_1.MatchKind.Directory : internal_match_kind_1.MatchKind.All; + } + return internal_match_kind_1.MatchKind.None; } - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError("pattern is too long"); + /** + * Indicates whether the pattern may match descendants of the specified path + */ + partialMatch(itemPath) { + itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + if (pathHelper.dirname(itemPath) === itemPath) { + return this.rootRegExp.test(itemPath); + } + return this.minimatch.matchOne(itemPath.split(IS_WINDOWS ? /\\+/ : /\/+/), this.minimatch.set[0], true); } - }, "assertValidPattern"); - Minimatch.prototype.parse = parse3; - var SUBPARSE = {}; - function parse3(pattern, isSub) { - assertValidPattern(pattern); - var options = this.options; - if (pattern === "**") { - if (!options.noglobstar) - return GLOBSTAR; - else - pattern = "*"; + /** + * Escapes glob patterns within a path + */ + static globEscape(s) { + return (IS_WINDOWS ? s : s.replace(/\\/g, "\\\\")).replace(/(\[)(?=[^/]+\])/g, "[[]").replace(/\?/g, "[?]").replace(/\*/g, "[*]"); } - if (pattern === "") - return ""; - var re = ""; - var hasMagic = !!options.nocase; - var escaping = false; - var patternListStack = []; - var negativeLists = []; - var stateChar; - var inClass = false; - var reClassStart = -1; - var classStart = -1; - var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; - var self2 = this; - function clearStateChar() { - if (stateChar) { - switch (stateChar) { - case "*": - re += star; - hasMagic = true; - break; - case "?": - re += qmark; - hasMagic = true; - break; - default: - re += "\\" + stateChar; - break; + /** + * Normalizes slashes and ensures absolute root + */ + static fixupPattern(pattern, homedir) { + assert_1.default(pattern, "pattern cannot be empty"); + const literalSegments = new internal_path_1.Path(pattern).segments.map((x) => _Pattern.getLiteral(x)); + assert_1.default(literalSegments.every((x, i) => (x !== "." || i === 0) && x !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); + assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); + pattern = pathHelper.normalizeSeparators(pattern); + if (pattern === "." || pattern.startsWith(`.${path.sep}`)) { + pattern = _Pattern.globEscape(process.cwd()) + pattern.substr(1); + } else if (pattern === "~" || pattern.startsWith(`~${path.sep}`)) { + homedir = homedir || os.homedir(); + assert_1.default(homedir, "Unable to determine HOME directory"); + assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); + pattern = _Pattern.globEscape(homedir) + pattern.substr(1); + } else if (IS_WINDOWS && (pattern.match(/^[A-Z]:$/i) || pattern.match(/^[A-Z]:[^\\]/i))) { + let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", pattern.substr(0, 2)); + if (pattern.length > 2 && !root.endsWith("\\")) { + root += "\\"; } - self2.debug("clearStateChar %j %j", stateChar, re); - stateChar = false; + pattern = _Pattern.globEscape(root) + pattern.substr(2); + } else if (IS_WINDOWS && (pattern === "\\" || pattern.match(/^\\[^\\]/))) { + let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", "\\"); + if (!root.endsWith("\\")) { + root += "\\"; + } + pattern = _Pattern.globEscape(root) + pattern.substr(1); + } else { + pattern = pathHelper.ensureAbsoluteRoot(_Pattern.globEscape(process.cwd()), pattern); } + return pathHelper.normalizeSeparators(pattern); } - __name(clearStateChar, "clearStateChar"); - for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re, c); - if (escaping && reSpecials[c]) { - re += "\\" + c; - escaping = false; - continue; - } - switch (c) { - case "/": { - return false; - } - case "\\": - clearStateChar(); - escaping = true; + /** + * Attempts to unescape a pattern segment to create a literal path segment. + * Otherwise returns empty string. + */ + static getLiteral(segment) { + let literal = ""; + for (let i = 0; i < segment.length; i++) { + const c = segment[i]; + if (c === "\\" && !IS_WINDOWS && i + 1 < segment.length) { + literal += segment[++i]; continue; - case "?": - case "*": - case "+": - case "@": - case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c); - if (inClass) { - this.debug(" in class"); - if (c === "!" && i === classStart + 1) - c = "^"; - re += c; - continue; + } else if (c === "*" || c === "?") { + return ""; + } else if (c === "[" && i + 1 < segment.length) { + let set = ""; + let closed = -1; + for (let i2 = i + 1; i2 < segment.length; i2++) { + const c2 = segment[i2]; + if (c2 === "\\" && !IS_WINDOWS && i2 + 1 < segment.length) { + set += segment[++i2]; + continue; + } else if (c2 === "]") { + closed = i2; + break; + } else { + set += c2; + } } - self2.debug("call clearStateChar %j", stateChar); - clearStateChar(); - stateChar = c; - if (options.noext) - clearStateChar(); - continue; - case "(": - if (inClass) { - re += "("; - continue; - } - if (!stateChar) { - re += "\\("; - continue; - } - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }); - re += stateChar === "!" ? "(?:(?!(?:" : "(?:"; - this.debug("plType %j %j", stateChar, re); - stateChar = false; - continue; - case ")": - if (inClass || !patternListStack.length) { - re += "\\)"; - continue; - } - clearStateChar(); - hasMagic = true; - var pl = patternListStack.pop(); - re += pl.close; - if (pl.type === "!") { - negativeLists.push(pl); - } - pl.reEnd = re.length; - continue; - case "|": - if (inClass || !patternListStack.length || escaping) { - re += "\\|"; - escaping = false; - continue; - } - clearStateChar(); - re += "|"; - continue; - case "[": - clearStateChar(); - if (inClass) { - re += "\\" + c; - continue; - } - inClass = true; - classStart = i; - reClassStart = re.length; - re += c; - continue; - case "]": - if (i === classStart + 1 || !inClass) { - re += "\\" + c; - escaping = false; - continue; - } - var cs = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs + "]"); - } catch (er) { - var sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]"; - hasMagic = hasMagic || sp[1]; - inClass = false; - continue; - } - hasMagic = true; - inClass = false; - re += c; - continue; - default: - clearStateChar(); - if (escaping) { - escaping = false; - } else if (reSpecials[c] && !(c === "^" && inClass)) { - re += "\\"; - } - re += c; - } - } - if (inClass) { - cs = pattern.substr(classStart + 1); - sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0]; - hasMagic = hasMagic || sp[1]; - } - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length); - this.debug("setting tail", re, pl); - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_, $1, $2) { - if (!$2) { - $2 = "\\"; - } - return $1 + $1 + $2 + "|"; - }); - this.debug("tail=%j\n %s", tail, tail, pl, re); - var t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; - hasMagic = true; - re = re.slice(0, pl.reStart) + t + "\\(" + tail; - } - clearStateChar(); - if (escaping) { - re += "\\\\"; - } - var addPatternStart = false; - switch (re.charAt(0)) { - case "[": - case ".": - case "(": - addPatternStart = true; - } - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n]; - var nlBefore = re.slice(0, nl.reStart); - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8); - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd); - var nlAfter = re.slice(nl.reEnd); - nlLast += nlAfter; - var openParensBefore = nlBefore.split("(").length - 1; - var cleanAfter = nlAfter; - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, ""); - } - nlAfter = cleanAfter; - var dollar = ""; - if (nlAfter === "" && isSub !== SUBPARSE) { - dollar = "$"; - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast; - re = newRe; - } - if (re !== "" && hasMagic) { - re = "(?=.)" + re; - } - if (addPatternStart) { - re = patternStart + re; - } - if (isSub === SUBPARSE) { - return [re, hasMagic]; - } - if (!hasMagic) { - return globUnescape(pattern); - } - var flags = options.nocase ? "i" : ""; - try { - var regExp = new RegExp("^" + re + "$", flags); - } catch (er) { - return new RegExp("$."); - } - regExp._glob = pattern; - regExp._src = re; - return regExp; - } - __name(parse3, "parse"); - minimatch.makeRe = function(pattern, options) { - return new Minimatch(pattern, options || {}).makeRe(); - }; - Minimatch.prototype.makeRe = makeRe; - function makeRe() { - if (this.regexp || this.regexp === false) - return this.regexp; - var set = this.set; - if (!set.length) { - this.regexp = false; - return this.regexp; - } - var options = this.options; - var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; - var flags = options.nocase ? "i" : ""; - var re = set.map(function(pattern) { - return pattern.map(function(p) { - return p === GLOBSTAR ? twoStar : typeof p === "string" ? regExpEscape(p) : p._src; - }).join("\\/"); - }).join("|"); - re = "^(?:" + re + ")$"; - if (this.negate) - re = "^(?!" + re + ").*$"; - try { - this.regexp = new RegExp(re, flags); - } catch (ex) { - this.regexp = false; - } - return this.regexp; - } - __name(makeRe, "makeRe"); - minimatch.match = function(list, pattern, options) { - options = options || {}; - var mm = new Minimatch(pattern, options); - list = list.filter(function(f) { - return mm.match(f); - }); - if (mm.options.nonull && !list.length) { - list.push(pattern); - } - return list; - }; - Minimatch.prototype.match = /* @__PURE__ */ __name(function match(f, partial) { - if (typeof partial === "undefined") - partial = this.partial; - this.debug("match", f, this.pattern); - if (this.comment) - return false; - if (this.empty) - return f === ""; - if (f === "/" && partial) - return true; - var options = this.options; - if (path.sep !== "/") { - f = f.split(path.sep).join("/"); - } - f = f.split(slashSplit); - this.debug(this.pattern, "split", f); - var set = this.set; - this.debug(this.pattern, "set", set); - var filename; - var i; - for (i = f.length - 1; i >= 0; i--) { - filename = f[i]; - if (filename) - break; - } - for (i = 0; i < set.length; i++) { - var pattern = set[i]; - var file = f; - if (options.matchBase && pattern.length === 1) { - file = [filename]; - } - var hit = this.matchOne(file, pattern, partial); - if (hit) { - if (options.flipNegate) - return true; - return !this.negate; - } - } - if (options.flipNegate) - return false; - return this.negate; - }, "match"); - Minimatch.prototype.matchOne = function(file, pattern, partial) { - var options = this.options; - this.debug( - "matchOne", - { "this": this, file, pattern } - ); - this.debug("matchOne", file.length, pattern.length); - for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) { - this.debug("matchOne loop"); - var p = pattern[pi]; - var f = file[fi]; - this.debug(pattern, p, f); - if (p === false) - return false; - if (p === GLOBSTAR) { - this.debug("GLOBSTAR", [pattern, p, f]); - var fr = fi; - var pr = pi + 1; - if (pr === pl) { - this.debug("** at the end"); - for (; fi < fl; fi++) { - if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") - return false; - } - return true; - } - while (fr < fl) { - var swallowee = file[fr]; - this.debug("\nglobstar while", file, fr, pattern, pr, swallowee); - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug("globstar found match!", fr, fl, swallowee); - return true; - } else { - if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") { - this.debug("dot detected!", file, fr, pattern, pr); - break; + if (closed >= 0) { + if (set.length > 1) { + return ""; + } + if (set) { + literal += set; + i = closed; + continue; } - this.debug("globstar swallow a segment, and continue"); - fr++; } } - if (partial) { - this.debug("\n>>> no match, partial?", file, fr, pattern, pr); - if (fr === fl) - return true; - } - return false; - } - var hit; - if (typeof p === "string") { - hit = f === p; - this.debug("string match", p, f, hit); - } else { - hit = f.match(p); - this.debug("pattern match", p, f, hit); + literal += c; } - if (!hit) - return false; + return literal; } - if (fi === fl && pi === pl) { - return true; - } else if (fi === fl) { - return partial; - } else if (pi === pl) { - return fi === fl - 1 && file[fi] === ""; + /** + * Escapes regexp special characters + * https://javascript.info/regexp-escaping + */ + static regExpEscape(s) { + return s.replace(/[[\\^$.|?*+()]/g, "\\$&"); } - throw new Error("wtf?"); }; - function globUnescape(s) { - return s.replace(/\\(.)/g, "$1"); - } - __name(globUnescape, "globUnescape"); - function regExpEscape(s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - } - __name(regExpEscape, "regExpEscape"); + exports2.Pattern = Pattern; } }); -// ../node_modules/@actions/glob/lib/internal-path.js -var require_internal_path = __commonJS({ - "../node_modules/@actions/glob/lib/internal-path.js"(exports2) { +// ../node_modules/@actions/glob/lib/internal-search-state.js +var require_internal_search_state = __commonJS({ + "../node_modules/@actions/glob/lib/internal-search-state.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m[k]; - } }); - } : function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; - }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; - }); - var __importStar5 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); - } - __setModuleDefault5(result, mod); - return result; - }; - var __importDefault4 = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { "default": mod }; - }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.Path = void 0; - var path = __importStar5(require("path")); - var pathHelper = __importStar5(require_internal_path_helper()); - var assert_1 = __importDefault4(require("assert")); - var IS_WINDOWS = process.platform === "win32"; - var Path = class { + exports2.SearchState = void 0; + var SearchState = class { static { - __name(this, "Path"); - } - /** - * Constructs a Path - * @param itemPath Path or array of segments - */ - constructor(itemPath) { - this.segments = []; - if (typeof itemPath === "string") { - assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`); - itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); - if (!pathHelper.hasRoot(itemPath)) { - this.segments = itemPath.split(path.sep); - } else { - let remaining = itemPath; - let dir = pathHelper.dirname(remaining); - while (dir !== remaining) { - const basename = path.basename(remaining); - this.segments.unshift(basename); - remaining = dir; - dir = pathHelper.dirname(remaining); - } - this.segments.unshift(remaining); - } - } else { - assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); - for (let i = 0; i < itemPath.length; i++) { - let segment = itemPath[i]; - assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`); - segment = pathHelper.normalizeSeparators(itemPath[i]); - if (i === 0 && pathHelper.hasRoot(segment)) { - segment = pathHelper.safeTrimTrailingSeparator(segment); - assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); - this.segments.push(segment); - } else { - assert_1.default(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`); - this.segments.push(segment); - } - } - } + __name(this, "SearchState"); } - /** - * Converts the path to it's string representation - */ - toString() { - let result = this.segments[0]; - let skipSlash = result.endsWith(path.sep) || IS_WINDOWS && /^[A-Z]:$/i.test(result); - for (let i = 1; i < this.segments.length; i++) { - if (skipSlash) { - skipSlash = false; - } else { - result += path.sep; - } - result += this.segments[i]; - } - return result; + constructor(path, level) { + this.path = path; + this.level = level; } }; - exports2.Path = Path; + exports2.SearchState = SearchState; } }); -// ../node_modules/@actions/glob/lib/internal-pattern.js -var require_internal_pattern = __commonJS({ - "../node_modules/@actions/glob/lib/internal-pattern.js"(exports2) { +// ../node_modules/@actions/glob/lib/internal-globber.js +var require_internal_globber = __commonJS({ + "../node_modules/@actions/glob/lib/internal-globber.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -31751,272 +31391,44 @@ var require_internal_pattern = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __importDefault4 = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { "default": mod }; - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.Pattern = void 0; - var os = __importStar5(require("os")); - var path = __importStar5(require("path")); - var pathHelper = __importStar5(require_internal_path_helper()); - var assert_1 = __importDefault4(require("assert")); - var minimatch_1 = require_minimatch2(); - var internal_match_kind_1 = require_internal_match_kind(); - var internal_path_1 = require_internal_path(); - var IS_WINDOWS = process.platform === "win32"; - var Pattern = class _Pattern { - static { - __name(this, "Pattern"); + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); } - constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) { - this.negate = false; - let pattern; - if (typeof patternOrNegate === "string") { - pattern = patternOrNegate.trim(); - } else { - segments = segments || []; - assert_1.default(segments.length, `Parameter 'segments' must not empty`); - const root = _Pattern.getLiteral(segments[0]); - assert_1.default(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); - pattern = new internal_path_1.Path(segments).toString().trim(); - if (patternOrNegate) { - pattern = `!${pattern}`; + __name(adopt, "adopt"); + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); } } - while (pattern.startsWith("!")) { - this.negate = !this.negate; - pattern = pattern.substr(1).trim(); - } - pattern = _Pattern.fixupPattern(pattern, homedir); - this.segments = new internal_path_1.Path(pattern).segments; - this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path.sep); - pattern = pathHelper.safeTrimTrailingSeparator(pattern); - let foundGlob = false; - const searchSegments = this.segments.map((x) => _Pattern.getLiteral(x)).filter((x) => !foundGlob && !(foundGlob = x === "")); - this.searchPath = new internal_path_1.Path(searchSegments).toString(); - this.rootRegExp = new RegExp(_Pattern.regExpEscape(searchSegments[0]), IS_WINDOWS ? "i" : ""); - this.isImplicitPattern = isImplicitPattern; - const minimatchOptions = { - dot: true, - nobrace: true, - nocase: IS_WINDOWS, - nocomment: true, - noext: true, - nonegate: true - }; - pattern = IS_WINDOWS ? pattern.replace(/\\/g, "/") : pattern; - this.minimatch = new minimatch_1.Minimatch(pattern, minimatchOptions); - } - /** - * Matches the pattern against the specified path - */ - match(itemPath) { - if (this.segments[this.segments.length - 1] === "**") { - itemPath = pathHelper.normalizeSeparators(itemPath); - if (!itemPath.endsWith(path.sep) && this.isImplicitPattern === false) { - itemPath = `${itemPath}${path.sep}`; - } - } else { - itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); - } - if (this.minimatch.match(itemPath)) { - return this.trailingSeparator ? internal_match_kind_1.MatchKind.Directory : internal_match_kind_1.MatchKind.All; - } - return internal_match_kind_1.MatchKind.None; - } - /** - * Indicates whether the pattern may match descendants of the specified path - */ - partialMatch(itemPath) { - itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); - if (pathHelper.dirname(itemPath) === itemPath) { - return this.rootRegExp.test(itemPath); - } - return this.minimatch.matchOne(itemPath.split(IS_WINDOWS ? /\\+/ : /\/+/), this.minimatch.set[0], true); - } - /** - * Escapes glob patterns within a path - */ - static globEscape(s) { - return (IS_WINDOWS ? s : s.replace(/\\/g, "\\\\")).replace(/(\[)(?=[^/]+\])/g, "[[]").replace(/\?/g, "[?]").replace(/\*/g, "[*]"); - } - /** - * Normalizes slashes and ensures absolute root - */ - static fixupPattern(pattern, homedir) { - assert_1.default(pattern, "pattern cannot be empty"); - const literalSegments = new internal_path_1.Path(pattern).segments.map((x) => _Pattern.getLiteral(x)); - assert_1.default(literalSegments.every((x, i) => (x !== "." || i === 0) && x !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); - assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); - pattern = pathHelper.normalizeSeparators(pattern); - if (pattern === "." || pattern.startsWith(`.${path.sep}`)) { - pattern = _Pattern.globEscape(process.cwd()) + pattern.substr(1); - } else if (pattern === "~" || pattern.startsWith(`~${path.sep}`)) { - homedir = homedir || os.homedir(); - assert_1.default(homedir, "Unable to determine HOME directory"); - assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); - pattern = _Pattern.globEscape(homedir) + pattern.substr(1); - } else if (IS_WINDOWS && (pattern.match(/^[A-Z]:$/i) || pattern.match(/^[A-Z]:[^\\]/i))) { - let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", pattern.substr(0, 2)); - if (pattern.length > 2 && !root.endsWith("\\")) { - root += "\\"; - } - pattern = _Pattern.globEscape(root) + pattern.substr(2); - } else if (IS_WINDOWS && (pattern === "\\" || pattern.match(/^\\[^\\]/))) { - let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", "\\"); - if (!root.endsWith("\\")) { - root += "\\"; - } - pattern = _Pattern.globEscape(root) + pattern.substr(1); - } else { - pattern = pathHelper.ensureAbsoluteRoot(_Pattern.globEscape(process.cwd()), pattern); - } - return pathHelper.normalizeSeparators(pattern); - } - /** - * Attempts to unescape a pattern segment to create a literal path segment. - * Otherwise returns empty string. - */ - static getLiteral(segment) { - let literal = ""; - for (let i = 0; i < segment.length; i++) { - const c = segment[i]; - if (c === "\\" && !IS_WINDOWS && i + 1 < segment.length) { - literal += segment[++i]; - continue; - } else if (c === "*" || c === "?") { - return ""; - } else if (c === "[" && i + 1 < segment.length) { - let set = ""; - let closed = -1; - for (let i2 = i + 1; i2 < segment.length; i2++) { - const c2 = segment[i2]; - if (c2 === "\\" && !IS_WINDOWS && i2 + 1 < segment.length) { - set += segment[++i2]; - continue; - } else if (c2 === "]") { - closed = i2; - break; - } else { - set += c2; - } - } - if (closed >= 0) { - if (set.length > 1) { - return ""; - } - if (set) { - literal += set; - i = closed; - continue; - } - } - } - literal += c; - } - return literal; - } - /** - * Escapes regexp special characters - * https://javascript.info/regexp-escaping - */ - static regExpEscape(s) { - return s.replace(/[[\\^$.|?*+()]/g, "\\$&"); - } - }; - exports2.Pattern = Pattern; - } -}); - -// ../node_modules/@actions/glob/lib/internal-search-state.js -var require_internal_search_state = __commonJS({ - "../node_modules/@actions/glob/lib/internal-search-state.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SearchState = void 0; - var SearchState = class { - static { - __name(this, "SearchState"); - } - constructor(path, level) { - this.path = path; - this.level = level; - } - }; - exports2.SearchState = SearchState; - } -}); - -// ../node_modules/@actions/glob/lib/internal-globber.js -var require_internal_globber = __commonJS({ - "../node_modules/@actions/glob/lib/internal-globber.js"(exports2) { - "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m[k]; - } }); - } : function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; - }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; - }); - var __importStar5 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); - } - __setModuleDefault5(result, mod); - return result; - }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - __name(adopt, "adopt"); - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - __name(fulfilled, "fulfilled"); - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); + __name(fulfilled, "fulfilled"); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); } } __name(rejected, "rejected"); @@ -32027,7 +31439,7 @@ var require_internal_globber = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __asyncValues4 = exports2 && exports2.__asyncValues || function(o) { + var __asyncValues2 = exports2 && exports2.__asyncValues || function(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; @@ -32049,10 +31461,10 @@ var require_internal_globber = __commonJS({ } __name(settle, "settle"); }; - var __await4 = exports2 && exports2.__await || function(v) { - return this instanceof __await4 ? (this.v = v, this) : new __await4(v); + var __await2 = exports2 && exports2.__await || function(v) { + return this instanceof __await2 ? (this.v = v, this) : new __await2(v); }; - var __asyncGenerator4 = exports2 && exports2.__asyncGenerator || function(thisArg, _arguments, generator) { + var __asyncGenerator2 = exports2 && exports2.__asyncGenerator || function(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; @@ -32077,7 +31489,7 @@ var require_internal_globber = __commonJS({ } __name(resume, "resume"); function step(r) { - r.value instanceof __await4 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } __name(step, "step"); function fulfill(value) { @@ -32096,11 +31508,11 @@ var require_internal_globber = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.DefaultGlobber = void 0; - var core2 = __importStar5(require_core()); - var fs2 = __importStar5(require("fs")); - var globOptionsHelper = __importStar5(require_internal_glob_options_helper()); - var path = __importStar5(require("path")); - var patternHelper = __importStar5(require_internal_pattern_helper()); + var core2 = __importStar3(require_core()); + var fs2 = __importStar3(require("fs")); + var globOptionsHelper = __importStar3(require_internal_glob_options_helper()); + var path = __importStar3(require("path")); + var patternHelper = __importStar3(require_internal_pattern_helper()); var internal_match_kind_1 = require_internal_match_kind(); var internal_pattern_1 = require_internal_pattern(); var internal_search_state_1 = require_internal_search_state(); @@ -32119,10 +31531,10 @@ var require_internal_globber = __commonJS({ } glob() { var e_1, _a; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const result = []; try { - for (var _b = __asyncValues4(this.globGenerator()), _c; _c = yield _b.next(), !_c.done; ) { + for (var _b = __asyncValues2(this.globGenerator()), _c; _c = yield _b.next(), !_c.done; ) { const itemPath = _c.value; result.push(itemPath); } @@ -32141,7 +31553,7 @@ var require_internal_globber = __commonJS({ }); } globGenerator() { - return __asyncGenerator4(this, arguments, /* @__PURE__ */ __name(function* globGenerator_1() { + return __asyncGenerator2(this, arguments, /* @__PURE__ */ __name(function* globGenerator_1() { const options = globOptionsHelper.getOptions(this.options); const patterns = []; for (const pattern of this.patterns) { @@ -32154,7 +31566,7 @@ var require_internal_globber = __commonJS({ for (const searchPath of patternHelper.getSearchPaths(patterns)) { core2.debug(`Search path '${searchPath}'`); try { - yield __await4(fs2.promises.lstat(searchPath)); + yield __await2(fs2.promises.lstat(searchPath)); } catch (err) { if (err.code === "ENOENT") { continue; @@ -32171,7 +31583,7 @@ var require_internal_globber = __commonJS({ if (!match && !partialMatch) { continue; } - const stats = yield __await4( + const stats = yield __await2( _DefaultGlobber.stat(item, options, traversalChain) // Broken symlink, or symlink cycle detected, or no longer exists ); @@ -32180,15 +31592,15 @@ var require_internal_globber = __commonJS({ } if (stats.isDirectory()) { if (match & internal_match_kind_1.MatchKind.Directory) { - yield yield __await4(item.path); + yield yield __await2(item.path); } else if (!partialMatch) { continue; } const childLevel = item.level + 1; - const childItems = (yield __await4(fs2.promises.readdir(item.path))).map((x) => new internal_search_state_1.SearchState(path.join(item.path, x), childLevel)); + const childItems = (yield __await2(fs2.promises.readdir(item.path))).map((x) => new internal_search_state_1.SearchState(path.join(item.path, x), childLevel)); stack.push(...childItems.reverse()); } else if (match & internal_match_kind_1.MatchKind.File) { - yield yield __await4(item.path); + yield yield __await2(item.path); } } }, "globGenerator_1")); @@ -32197,7 +31609,7 @@ var require_internal_globber = __commonJS({ * Constructs a DefaultGlobber */ static create(patterns, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const result = new _DefaultGlobber(options); if (IS_WINDOWS) { patterns = patterns.replace(/\r\n/g, "\n"); @@ -32216,7 +31628,7 @@ var require_internal_globber = __commonJS({ }); } static stat(item, options, traversalChain) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let stats; if (options.followSymbolicLinks) { try { @@ -32257,7 +31669,7 @@ var require_internal_globber = __commonJS({ var require_glob2 = __commonJS({ "../node_modules/@actions/glob/lib/glob.js"(exports2) { "use strict"; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -32292,7 +31704,7 @@ var require_glob2 = __commonJS({ exports2.create = void 0; var internal_globber_1 = require_internal_globber(); function create(patterns, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return yield internal_globber_1.DefaultGlobber.create(patterns, options); }); } @@ -33503,9 +32915,9 @@ var require_semver = __commonJS({ } }); -// ../node_modules/@actions/cache/node_modules/uuid/lib/rng.js +// ../node_modules/uuid/lib/rng.js var require_rng = __commonJS({ - "../node_modules/@actions/cache/node_modules/uuid/lib/rng.js"(exports2, module2) { + "../node_modules/uuid/lib/rng.js"(exports2, module2) { var crypto7 = require("crypto"); module2.exports = /* @__PURE__ */ __name(function nodeRNG() { return crypto7.randomBytes(16); @@ -33513,9 +32925,9 @@ var require_rng = __commonJS({ } }); -// ../node_modules/@actions/cache/node_modules/uuid/lib/bytesToUuid.js +// ../node_modules/uuid/lib/bytesToUuid.js var require_bytesToUuid = __commonJS({ - "../node_modules/@actions/cache/node_modules/uuid/lib/bytesToUuid.js"(exports2, module2) { + "../node_modules/uuid/lib/bytesToUuid.js"(exports2, module2) { var byteToHex3 = []; for (i = 0; i < 256; ++i) { byteToHex3[i] = (i + 256).toString(16).substr(1); @@ -33552,9 +32964,9 @@ var require_bytesToUuid = __commonJS({ } }); -// ../node_modules/@actions/cache/node_modules/uuid/v1.js +// ../node_modules/uuid/v1.js var require_v1 = __commonJS({ - "../node_modules/@actions/cache/node_modules/uuid/v1.js"(exports2, module2) { + "../node_modules/uuid/v1.js"(exports2, module2) { var rng3 = require_rng(); var bytesToUuid = require_bytesToUuid(); var _nodeId3; @@ -33621,9 +33033,9 @@ var require_v1 = __commonJS({ } }); -// ../node_modules/@actions/cache/node_modules/uuid/v4.js +// ../node_modules/uuid/v4.js var require_v4 = __commonJS({ - "../node_modules/@actions/cache/node_modules/uuid/v4.js"(exports2, module2) { + "../node_modules/uuid/v4.js"(exports2, module2) { var rng3 = require_rng(); var bytesToUuid = require_bytesToUuid(); function v43(options, buf, offset) { @@ -33648,9 +33060,9 @@ var require_v4 = __commonJS({ } }); -// ../node_modules/@actions/cache/node_modules/uuid/index.js +// ../node_modules/uuid/index.js var require_uuid = __commonJS({ - "../node_modules/@actions/cache/node_modules/uuid/index.js"(exports2, module2) { + "../node_modules/uuid/index.js"(exports2, module2) { var v13 = require_v1(); var v43 = require_v4(); var uuid = v43; @@ -33696,7 +33108,7 @@ var require_constants5 = __commonJS({ var require_cacheUtils = __commonJS({ "../node_modules/@actions/cache/lib/internal/cacheUtils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -33711,24 +33123,24 @@ var require_cacheUtils = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -33759,7 +33171,7 @@ var require_cacheUtils = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __asyncValues4 = exports2 && exports2.__asyncValues || function(o) { + var __asyncValues2 = exports2 && exports2.__asyncValues || function(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; @@ -33783,18 +33195,18 @@ var require_cacheUtils = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.isGhes = exports2.assertDefined = exports2.getGnuTarPathOnWindows = exports2.getCacheFileName = exports2.getCompressionMethod = exports2.unlinkFile = exports2.resolvePaths = exports2.getArchiveFileSizeInBytes = exports2.createTempDirectory = void 0; - var core2 = __importStar5(require_core()); - var exec = __importStar5(require_exec()); - var glob = __importStar5(require_glob2()); - var io2 = __importStar5(require_io()); - var fs2 = __importStar5(require("fs")); - var path = __importStar5(require("path")); - var semver = __importStar5(require_semver()); - var util = __importStar5(require("util")); + var core2 = __importStar3(require_core()); + var exec = __importStar3(require_exec()); + var glob = __importStar3(require_glob2()); + var io2 = __importStar3(require_io()); + var fs2 = __importStar3(require("fs")); + var path = __importStar3(require("path")); + var semver = __importStar3(require_semver()); + var util = __importStar3(require("util")); var uuid_1 = require_uuid(); var constants_1 = require_constants5(); function createTempDirectory() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const IS_WINDOWS = process.platform === "win32"; let tempDirectory = process.env["RUNNER_TEMP"] || ""; if (!tempDirectory) { @@ -33825,14 +33237,14 @@ var require_cacheUtils = __commonJS({ function resolvePaths(patterns) { var _a, e_1, _b, _c; var _d; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const paths = []; const workspace = (_d = process.env["GITHUB_WORKSPACE"]) !== null && _d !== void 0 ? _d : process.cwd(); const globber = yield glob.create(patterns.join("\n"), { implicitDescendants: false }); try { - for (var _e = true, _f = __asyncValues4(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a; ) { + for (var _e = true, _f = __asyncValues2(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a; ) { _c = _g.value; _e = false; try { @@ -33865,14 +33277,14 @@ var require_cacheUtils = __commonJS({ __name(resolvePaths, "resolvePaths"); exports2.resolvePaths = resolvePaths; function unlinkFile(filePath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return util.promisify(fs2.unlink)(filePath); }); } __name(unlinkFile, "unlinkFile"); exports2.unlinkFile = unlinkFile; function getVersion(app, additionalArgs = []) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let versionOutput = ""; additionalArgs.push("--version"); core2.debug(`Checking ${app} ${additionalArgs.join(" ")}`); @@ -33895,7 +33307,7 @@ var require_cacheUtils = __commonJS({ } __name(getVersion, "getVersion"); function getCompressionMethod() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const versionOutput = yield getVersion("zstd", ["--quiet"]); const version4 = semver.clean(versionOutput); core2.debug(`zstd version: ${version4}`); @@ -33914,7 +33326,7 @@ var require_cacheUtils = __commonJS({ __name(getCacheFileName, "getCacheFileName"); exports2.getCacheFileName = getCacheFileName; function getGnuTarPathOnWindows() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (fs2.existsSync(constants_1.GnuTarPathOnWindows)) { return constants_1.GnuTarPathOnWindows; } @@ -34286,7 +33698,7 @@ var init_esm_node2 = __esm({ } }); -// ../node_modules/@azure/core-http/node_modules/tslib/tslib.es6.mjs +// ../node_modules/tslib/tslib.es6.mjs var tslib_es6_exports = {}; __export(tslib_es6_exports, { __addDisposableResource: () => __addDisposableResource, @@ -34772,7 +34184,7 @@ function __disposeResources(env) { } var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default; var init_tslib_es6 = __esm({ - "../node_modules/@azure/core-http/node_modules/tslib/tslib.es6.mjs"() { + "../node_modules/tslib/tslib.es6.mjs"() { extendStatics = /* @__PURE__ */ __name(function(d, b) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { d2.__proto__ = b2; @@ -34785,7 +34197,7 @@ var init_tslib_es6 = __esm({ }, "extendStatics"); __name(__extends, "__extends"); __assign = /* @__PURE__ */ __name(function() { - __assign = Object.assign || /* @__PURE__ */ __name(function __assign4(t) { + __assign = Object.assign || /* @__PURE__ */ __name(function __assign2(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) @@ -50740,9 +50152,9 @@ var require_asynckit = __commonJS({ } }); -// ../node_modules/@azure/core-http/node_modules/form-data/lib/populate.js +// ../node_modules/form-data/lib/populate.js var require_populate = __commonJS({ - "../node_modules/@azure/core-http/node_modules/form-data/lib/populate.js"(exports2, module2) { + "../node_modules/form-data/lib/populate.js"(exports2, module2) { module2.exports = function(dst, src) { Object.keys(src).forEach(function(prop) { dst[prop] = dst[prop] || src[prop]; @@ -50752,9 +50164,9 @@ var require_populate = __commonJS({ } }); -// ../node_modules/@azure/core-http/node_modules/form-data/lib/form_data.js +// ../node_modules/form-data/lib/form_data.js var require_form_data = __commonJS({ - "../node_modules/@azure/core-http/node_modules/form-data/lib/form_data.js"(exports2, module2) { + "../node_modules/form-data/lib/form_data.js"(exports2, module2) { var CombinedStream = require_combined_stream(); var util = require("util"); var path = require("path"); @@ -51082,7 +50494,7 @@ var require_globalThis = __commonJS({ var require_node = __commonJS({ "../node_modules/@opentelemetry/api/build/src/platform/node/index.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -51093,13 +50505,13 @@ var require_node = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __exportStar4 = exports2 && exports2.__exportStar || function(m, exports3) { + var __exportStar2 = exports2 && exports2.__exportStar || function(m, exports3) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) - __createBinding5(exports3, m, p); + __createBinding3(exports3, m, p); }; Object.defineProperty(exports2, "__esModule", { value: true }); - __exportStar4(require_globalThis(), exports2); + __exportStar2(require_globalThis(), exports2); } }); @@ -51107,7 +50519,7 @@ var require_node = __commonJS({ var require_platform = __commonJS({ "../node_modules/@opentelemetry/api/build/src/platform/index.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -51118,13 +50530,13 @@ var require_platform = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __exportStar4 = exports2 && exports2.__exportStar || function(m, exports3) { + var __exportStar2 = exports2 && exports2.__exportStar || function(m, exports3) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) - __createBinding5(exports3, m, p); + __createBinding3(exports3, m, p); }; Object.defineProperty(exports2, "__esModule", { value: true }); - __exportStar4(require_node(), exports2); + __exportStar2(require_node(), exports2); } }); @@ -57189,1462 +56601,274 @@ var require_dist6 = __commonJS({ if (bodyMapper || _response.request.method === "HEAD" || isPrimitiveType(_response.parsedBody)) { return addOperationResponse(Object.assign(Object.assign({}, parsedHeaders), { body: _response.parsedBody })); } - return addOperationResponse(Object.assign(Object.assign({}, parsedHeaders), _response.parsedBody)); - } - __name(flattenResponse, "flattenResponse"); - function getCredentialScopes(options, baseUri) { - if (options === null || options === void 0 ? void 0 : options.credentialScopes) { - return options.credentialScopes; - } - if (baseUri) { - return `${baseUri}/.default`; - } - return void 0; - } - __name(getCredentialScopes, "getCredentialScopes"); - function createSpanFunction(args) { - return coreTracing.createSpanFunction(args); - } - __name(createSpanFunction, "createSpanFunction"); - var TokenRefreshBufferMs = 2 * 60 * 1e3; - var ExpiringAccessTokenCache = class { - static { - __name(this, "ExpiringAccessTokenCache"); - } - /** - * Constructs an instance of {@link ExpiringAccessTokenCache} with - * an optional expiration buffer time. - */ - constructor(tokenRefreshBufferMs = TokenRefreshBufferMs) { - this.cachedToken = void 0; - this.tokenRefreshBufferMs = tokenRefreshBufferMs; - } - /** - * Saves an access token into the internal in-memory cache. - * @param accessToken - Access token or undefined to clear the cache. - */ - setCachedToken(accessToken) { - this.cachedToken = accessToken; - } - /** - * Returns the cached access token, or `undefined` if one is not cached or the cached one is expiring soon. - */ - getCachedToken() { - if (this.cachedToken && Date.now() + this.tokenRefreshBufferMs >= this.cachedToken.expiresOnTimestamp) { - this.cachedToken = void 0; - } - return this.cachedToken; - } - }; - var AccessTokenRefresher = class { - static { - __name(this, "AccessTokenRefresher"); - } - constructor(credential, scopes, requiredMillisecondsBeforeNewRefresh = 3e4) { - this.credential = credential; - this.scopes = scopes; - this.requiredMillisecondsBeforeNewRefresh = requiredMillisecondsBeforeNewRefresh; - this.lastCalled = 0; - } - /** - * Returns true if the required milliseconds(defaulted to 30000) have been passed signifying - * that we are ready for a new refresh. - */ - isReady() { - return !this.lastCalled || Date.now() - this.lastCalled > this.requiredMillisecondsBeforeNewRefresh; - } - /** - * Stores the time in which it is called, - * then requests a new token, - * then sets this.promise to undefined, - * then returns the token. - */ - async getToken(options) { - this.lastCalled = Date.now(); - const token = await this.credential.getToken(this.scopes, options); - this.promise = void 0; - return token || void 0; - } - /** - * Requests a new token if we're not currently waiting for a new token. - * Returns null if the required time between each call hasn't been reached. - */ - refresh(options) { - if (!this.promise) { - this.promise = this.getToken(options); - } - return this.promise; - } - }; - var HeaderConstants = Constants.HeaderConstants; - var DEFAULT_AUTHORIZATION_SCHEME = "Basic"; - var BasicAuthenticationCredentials = class { - static { - __name(this, "BasicAuthenticationCredentials"); - } - /** - * Creates a new BasicAuthenticationCredentials object. - * - * @param userName - User name. - * @param password - Password. - * @param authorizationScheme - The authorization scheme. - */ - constructor(userName, password, authorizationScheme = DEFAULT_AUTHORIZATION_SCHEME) { - this.authorizationScheme = DEFAULT_AUTHORIZATION_SCHEME; - if (userName === null || userName === void 0 || typeof userName.valueOf() !== "string") { - throw new Error("userName cannot be null or undefined and must be of type string."); - } - if (password === null || password === void 0 || typeof password.valueOf() !== "string") { - throw new Error("password cannot be null or undefined and must be of type string."); - } - this.userName = userName; - this.password = password; - this.authorizationScheme = authorizationScheme; - } - /** - * Signs a request with the Authentication header. - * - * @param webResource - The WebResourceLike to be signed. - * @returns The signed request object. - */ - signRequest(webResource) { - const credentials = `${this.userName}:${this.password}`; - const encodedCredentials = `${this.authorizationScheme} ${encodeString(credentials)}`; - if (!webResource.headers) - webResource.headers = new HttpHeaders(); - webResource.headers.set(HeaderConstants.AUTHORIZATION, encodedCredentials); - return Promise.resolve(webResource); - } - }; - var ApiKeyCredentials = class { - static { - __name(this, "ApiKeyCredentials"); - } - /** - * @param options - Specifies the options to be provided for auth. Either header or query needs to be provided. - */ - constructor(options) { - if (!options || options && !options.inHeader && !options.inQuery) { - throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`); - } - this.inHeader = options.inHeader; - this.inQuery = options.inQuery; - } - /** - * Signs a request with the values provided in the inHeader and inQuery parameter. - * - * @param webResource - The WebResourceLike to be signed. - * @returns The signed request object. - */ - signRequest(webResource) { - if (!webResource) { - return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`)); - } - if (this.inHeader) { - if (!webResource.headers) { - webResource.headers = new HttpHeaders(); - } - for (const headerName in this.inHeader) { - webResource.headers.set(headerName, this.inHeader[headerName]); - } - } - if (this.inQuery) { - if (!webResource.url) { - return Promise.reject(new Error(`url cannot be null in the request object.`)); - } - if (webResource.url.indexOf("?") < 0) { - webResource.url += "?"; - } - for (const key in this.inQuery) { - if (!webResource.url.endsWith("?")) { - webResource.url += "&"; - } - webResource.url += `${key}=${this.inQuery[key]}`; - } - } - return Promise.resolve(webResource); - } - }; - var TopicCredentials = class extends ApiKeyCredentials { - static { - __name(this, "TopicCredentials"); - } - /** - * Creates a new EventGrid TopicCredentials object. - * - * @param topicKey - The EventGrid topic key - */ - constructor(topicKey) { - if (!topicKey || topicKey && typeof topicKey !== "string") { - throw new Error("topicKey cannot be null or undefined and must be of type string."); - } - const options = { - inHeader: { - "aeg-sas-key": topicKey - } - }; - super(options); - } - }; - Object.defineProperty(exports2, "delay", { - enumerable: true, - get: function() { - return coreUtil.delay; - } - }); - Object.defineProperty(exports2, "isNode", { - enumerable: true, - get: function() { - return coreUtil.isNode; - } - }); - Object.defineProperty(exports2, "isTokenCredential", { - enumerable: true, - get: function() { - return coreAuth.isTokenCredential; - } - }); - exports2.AccessTokenRefresher = AccessTokenRefresher; - exports2.ApiKeyCredentials = ApiKeyCredentials; - exports2.BaseRequestPolicy = BaseRequestPolicy; - exports2.BasicAuthenticationCredentials = BasicAuthenticationCredentials; - exports2.Constants = Constants; - exports2.DefaultHttpClient = NodeFetchHttpClient; - exports2.ExpiringAccessTokenCache = ExpiringAccessTokenCache; - exports2.HttpHeaders = HttpHeaders; - exports2.MapperType = MapperType; - exports2.RequestPolicyOptions = RequestPolicyOptions; - exports2.RestError = RestError; - exports2.Serializer = Serializer; - exports2.ServiceClient = ServiceClient; - exports2.TopicCredentials = TopicCredentials; - exports2.URLBuilder = URLBuilder; - exports2.URLQuery = URLQuery; - exports2.WebResource = WebResource; - exports2.XML_ATTRKEY = XML_ATTRKEY; - exports2.XML_CHARKEY = XML_CHARKEY; - exports2.applyMixins = applyMixins; - exports2.bearerTokenAuthenticationPolicy = bearerTokenAuthenticationPolicy; - exports2.createPipelineFromOptions = createPipelineFromOptions; - exports2.createSpanFunction = createSpanFunction; - exports2.deserializationPolicy = deserializationPolicy; - exports2.deserializeResponseBody = deserializeResponseBody; - exports2.disableResponseDecompressionPolicy = disableResponseDecompressionPolicy; - exports2.encodeUri = encodeUri; - exports2.executePromisesSequentially = executePromisesSequentially; - exports2.exponentialRetryPolicy = exponentialRetryPolicy; - exports2.flattenResponse = flattenResponse; - exports2.generateClientRequestIdPolicy = generateClientRequestIdPolicy; - exports2.generateUuid = generateUuid; - exports2.getDefaultProxySettings = getDefaultProxySettings; - exports2.getDefaultUserAgentValue = getDefaultUserAgentValue; - exports2.isDuration = isDuration; - exports2.isValidUuid = isValidUuid; - exports2.keepAlivePolicy = keepAlivePolicy; - exports2.logPolicy = logPolicy; - exports2.operationOptionsToRequestOptionsBase = operationOptionsToRequestOptionsBase; - exports2.parseXML = parseXML; - exports2.promiseToCallback = promiseToCallback; - exports2.promiseToServiceCallback = promiseToServiceCallback; - exports2.proxyPolicy = proxyPolicy; - exports2.redirectPolicy = redirectPolicy; - exports2.serializeObject = serializeObject; - exports2.signingPolicy = signingPolicy; - exports2.stringifyXML = stringifyXML; - exports2.stripRequest = stripRequest; - exports2.stripResponse = stripResponse; - exports2.systemErrorRetryPolicy = systemErrorRetryPolicy; - exports2.throttlingRetryPolicy = throttlingRetryPolicy; - exports2.tracingPolicy = tracingPolicy; - exports2.userAgentPolicy = userAgentPolicy; - } -}); - -// ../node_modules/@azure/storage-blob/node_modules/tslib/tslib.es6.mjs -var tslib_es6_exports2 = {}; -__export(tslib_es6_exports2, { - __addDisposableResource: () => __addDisposableResource2, - __assign: () => __assign2, - __asyncDelegator: () => __asyncDelegator2, - __asyncGenerator: () => __asyncGenerator2, - __asyncValues: () => __asyncValues2, - __await: () => __await2, - __awaiter: () => __awaiter2, - __classPrivateFieldGet: () => __classPrivateFieldGet2, - __classPrivateFieldIn: () => __classPrivateFieldIn2, - __classPrivateFieldSet: () => __classPrivateFieldSet2, - __createBinding: () => __createBinding2, - __decorate: () => __decorate2, - __disposeResources: () => __disposeResources2, - __esDecorate: () => __esDecorate2, - __exportStar: () => __exportStar2, - __extends: () => __extends2, - __generator: () => __generator2, - __importDefault: () => __importDefault2, - __importStar: () => __importStar2, - __makeTemplateObject: () => __makeTemplateObject2, - __metadata: () => __metadata2, - __param: () => __param2, - __propKey: () => __propKey2, - __read: () => __read2, - __rest: () => __rest2, - __runInitializers: () => __runInitializers2, - __setFunctionName: () => __setFunctionName2, - __spread: () => __spread2, - __spreadArray: () => __spreadArray2, - __spreadArrays: () => __spreadArrays2, - __values: () => __values3, - default: () => tslib_es6_default2 -}); -function __extends2(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics2(d, b); - function __() { - this.constructor = d; - } - __name(__, "__"); - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} -function __rest2(s, e) { - var t = {}; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} -function __decorate2(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} -function __param2(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; -} -function __esDecorate2(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { - if (f !== void 0 && typeof f !== "function") - throw new TypeError("Function expected"); - return f; - } - __name(accept, "accept"); - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) - context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) - context.access[p] = contextIn.access[p]; - context.addInitializer = function(f) { - if (done) - throw new TypeError("Cannot add initializers after decoration has completed"); - extraInitializers.push(accept(f || null)); - }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) - continue; - if (result === null || typeof result !== "object") - throw new TypeError("Object expected"); - if (_ = accept(result.get)) - descriptor.get = _; - if (_ = accept(result.set)) - descriptor.set = _; - if (_ = accept(result.init)) - initializers.unshift(_); - } else if (_ = accept(result)) { - if (kind === "field") - initializers.unshift(_); - else - descriptor[key] = _; - } - } - if (target) - Object.defineProperty(target, contextIn.name, descriptor); - done = true; -} -function __runInitializers2(thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; -} -function __propKey2(x) { - return typeof x === "symbol" ? x : "".concat(x); -} -function __setFunctionName2(f, name, prefix) { - if (typeof name === "symbol") - name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); -} -function __metadata2(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(metadataKey, metadataValue); -} -function __awaiter2(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - __name(adopt, "adopt"); - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - __name(fulfilled, "fulfilled"); - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - __name(rejected, "rejected"); - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - __name(step, "step"); - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} -function __generator2(thisArg, body) { - var _ = { label: 0, sent: function() { - if (t[0] & 1) - throw t[1]; - return t[1]; - }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { - return this; - }), g; - function verb(n) { - return function(v) { - return step([n, v]); - }; - } - __name(verb, "verb"); - function step(op) { - if (f) - throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) - try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) - return t; - if (y = 0, t) - op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { value: op[1], done: false }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) - _.ops.pop(); - _.trys.pop(); - continue; - } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - if (op[0] & 5) - throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; - } - __name(step, "step"); -} -function __exportStar2(m, o) { - for (var p in m) - if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) - __createBinding2(o, m, p); -} -function __values3(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) - return m.call(o); - if (o && typeof o.length === "number") - return { - next: function() { - if (o && i >= o.length) - o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} -function __read2(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) - return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) - ar.push(r.value); - } catch (error) { - e = { error }; - } finally { - try { - if (r && !r.done && (m = i["return"])) - m.call(i); - } finally { - if (e) - throw e.error; - } - } - return ar; -} -function __spread2() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read2(arguments[i])); - return ar; -} -function __spreadArrays2() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) - s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} -function __spreadArray2(to, from, pack) { - if (pack || arguments.length === 2) - for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) - ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -} -function __await2(v) { - return this instanceof __await2 ? (this.v = v, this) : new __await2(v); -} -function __asyncGenerator2(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i; - function verb(n) { - if (g[n]) - i[n] = function(v) { - return new Promise(function(a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; - } - __name(verb, "verb"); - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); - } - } - __name(resume, "resume"); - function step(r) { - r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); - } - __name(step, "step"); - function fulfill(value) { - resume("next", value); - } - __name(fulfill, "fulfill"); - function reject(value) { - resume("throw", value); - } - __name(reject, "reject"); - function settle(f, v) { - if (f(v), q.shift(), q.length) - resume(q[0][0], q[0][1]); - } - __name(settle, "settle"); -} -function __asyncDelegator2(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function(e) { - throw e; - }), verb("return"), i[Symbol.iterator] = function() { - return this; - }, i; - function verb(n, f) { - i[n] = o[n] ? function(v) { - return (p = !p) ? { value: __await2(o[n](v)), done: false } : f ? f(v) : v; - } : f; - } - __name(verb, "verb"); -} -function __asyncValues2(o) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values3 === "function" ? __values3(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i); - function verb(n) { - i[n] = o[n] && function(v) { - return new Promise(function(resolve, reject) { - v = o[n](v), settle(resolve, reject, v.done, v.value); - }); - }; - } - __name(verb, "verb"); - function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function(v2) { - resolve({ value: v2, done: d }); - }, reject); - } - __name(settle, "settle"); -} -function __makeTemplateObject2(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, "raw", { value: raw }); - } else { - cooked.raw = raw; - } - return cooked; -} -function __importStar2(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)) - __createBinding2(result, mod, k); - } - __setModuleDefault2(result, mod); - return result; -} -function __importDefault2(mod) { - return mod && mod.__esModule ? mod : { default: mod }; -} -function __classPrivateFieldGet2(receiver, state, kind, f) { - if (kind === "a" && !f) - throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -} -function __classPrivateFieldSet2(receiver, state, value, kind, f) { - if (kind === "m") - throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) - throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -} -function __classPrivateFieldIn2(state, receiver) { - if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") - throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); -} -function __addDisposableResource2(env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") - throw new TypeError("Object expected."); - var dispose; - if (async) { - if (!Symbol.asyncDispose) - throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) - throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - } - if (typeof dispose !== "function") - throw new TypeError("Object not disposable."); - env.stack.push({ value, dispose, async }); - } else if (async) { - env.stack.push({ async: true }); - } - return value; -} -function __disposeResources2(env) { - function fail(e) { - env.error = env.hasError ? new _SuppressedError2(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - __name(fail, "fail"); - function next() { - while (env.stack.length) { - var rec = env.stack.pop(); - try { - var result = rec.dispose && rec.dispose.call(rec.value); - if (rec.async) - return Promise.resolve(result).then(next, function(e) { - fail(e); - return next(); - }); - } catch (e) { - fail(e); - } - } - if (env.hasError) - throw env.error; - } - __name(next, "next"); - return next(); -} -var extendStatics2, __assign2, __createBinding2, __setModuleDefault2, _SuppressedError2, tslib_es6_default2; -var init_tslib_es62 = __esm({ - "../node_modules/@azure/storage-blob/node_modules/tslib/tslib.es6.mjs"() { - extendStatics2 = /* @__PURE__ */ __name(function(d, b) { - extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { - d2.__proto__ = b2; - } || function(d2, b2) { - for (var p in b2) - if (Object.prototype.hasOwnProperty.call(b2, p)) - d2[p] = b2[p]; - }; - return extendStatics2(d, b); - }, "extendStatics"); - __name(__extends2, "__extends"); - __assign2 = /* @__PURE__ */ __name(function() { - __assign2 = Object.assign || /* @__PURE__ */ __name(function __assign4(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }, "__assign"); - return __assign2.apply(this, arguments); - }, "__assign"); - __name(__rest2, "__rest"); - __name(__decorate2, "__decorate"); - __name(__param2, "__param"); - __name(__esDecorate2, "__esDecorate"); - __name(__runInitializers2, "__runInitializers"); - __name(__propKey2, "__propKey"); - __name(__setFunctionName2, "__setFunctionName"); - __name(__metadata2, "__metadata"); - __name(__awaiter2, "__awaiter"); - __name(__generator2, "__generator"); - __createBinding2 = Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - 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 === void 0) - k2 = k; - o[k2] = m[k]; - }; - __name(__exportStar2, "__exportStar"); - __name(__values3, "__values"); - __name(__read2, "__read"); - __name(__spread2, "__spread"); - __name(__spreadArrays2, "__spreadArrays"); - __name(__spreadArray2, "__spreadArray"); - __name(__await2, "__await"); - __name(__asyncGenerator2, "__asyncGenerator"); - __name(__asyncDelegator2, "__asyncDelegator"); - __name(__asyncValues2, "__asyncValues"); - __name(__makeTemplateObject2, "__makeTemplateObject"); - __setModuleDefault2 = Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; - }; - __name(__importStar2, "__importStar"); - __name(__importDefault2, "__importDefault"); - __name(__classPrivateFieldGet2, "__classPrivateFieldGet"); - __name(__classPrivateFieldSet2, "__classPrivateFieldSet"); - __name(__classPrivateFieldIn2, "__classPrivateFieldIn"); - __name(__addDisposableResource2, "__addDisposableResource"); - _SuppressedError2 = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - }; - __name(__disposeResources2, "__disposeResources"); - tslib_es6_default2 = { - __extends: __extends2, - __assign: __assign2, - __rest: __rest2, - __decorate: __decorate2, - __param: __param2, - __metadata: __metadata2, - __awaiter: __awaiter2, - __generator: __generator2, - __createBinding: __createBinding2, - __exportStar: __exportStar2, - __values: __values3, - __read: __read2, - __spread: __spread2, - __spreadArrays: __spreadArrays2, - __spreadArray: __spreadArray2, - __await: __await2, - __asyncGenerator: __asyncGenerator2, - __asyncDelegator: __asyncDelegator2, - __asyncValues: __asyncValues2, - __makeTemplateObject: __makeTemplateObject2, - __importStar: __importStar2, - __importDefault: __importDefault2, - __classPrivateFieldGet: __classPrivateFieldGet2, - __classPrivateFieldSet: __classPrivateFieldSet2, - __classPrivateFieldIn: __classPrivateFieldIn2, - __addDisposableResource: __addDisposableResource2, - __disposeResources: __disposeResources2 - }; - } -}); - -// ../node_modules/@azure/core-paging/node_modules/tslib/tslib.es6.mjs -var tslib_es6_exports3 = {}; -__export(tslib_es6_exports3, { - __addDisposableResource: () => __addDisposableResource3, - __assign: () => __assign3, - __asyncDelegator: () => __asyncDelegator3, - __asyncGenerator: () => __asyncGenerator3, - __asyncValues: () => __asyncValues3, - __await: () => __await3, - __awaiter: () => __awaiter3, - __classPrivateFieldGet: () => __classPrivateFieldGet3, - __classPrivateFieldIn: () => __classPrivateFieldIn3, - __classPrivateFieldSet: () => __classPrivateFieldSet3, - __createBinding: () => __createBinding3, - __decorate: () => __decorate3, - __disposeResources: () => __disposeResources3, - __esDecorate: () => __esDecorate3, - __exportStar: () => __exportStar3, - __extends: () => __extends3, - __generator: () => __generator3, - __importDefault: () => __importDefault3, - __importStar: () => __importStar3, - __makeTemplateObject: () => __makeTemplateObject3, - __metadata: () => __metadata3, - __param: () => __param3, - __propKey: () => __propKey3, - __read: () => __read3, - __rest: () => __rest3, - __runInitializers: () => __runInitializers3, - __setFunctionName: () => __setFunctionName3, - __spread: () => __spread3, - __spreadArray: () => __spreadArray3, - __spreadArrays: () => __spreadArrays3, - __values: () => __values4, - default: () => tslib_es6_default3 -}); -function __extends3(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics3(d, b); - function __() { - this.constructor = d; - } - __name(__, "__"); - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} -function __rest3(s, e) { - var t = {}; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} -function __decorate3(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} -function __param3(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; -} -function __esDecorate3(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { - if (f !== void 0 && typeof f !== "function") - throw new TypeError("Function expected"); - return f; - } - __name(accept, "accept"); - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) - context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) - context.access[p] = contextIn.access[p]; - context.addInitializer = function(f) { - if (done) - throw new TypeError("Cannot add initializers after decoration has completed"); - extraInitializers.push(accept(f || null)); - }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) - continue; - if (result === null || typeof result !== "object") - throw new TypeError("Object expected"); - if (_ = accept(result.get)) - descriptor.get = _; - if (_ = accept(result.set)) - descriptor.set = _; - if (_ = accept(result.init)) - initializers.unshift(_); - } else if (_ = accept(result)) { - if (kind === "field") - initializers.unshift(_); - else - descriptor[key] = _; - } - } - if (target) - Object.defineProperty(target, contextIn.name, descriptor); - done = true; -} -function __runInitializers3(thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; -} -function __propKey3(x) { - return typeof x === "symbol" ? x : "".concat(x); -} -function __setFunctionName3(f, name, prefix) { - if (typeof name === "symbol") - name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); -} -function __metadata3(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(metadataKey, metadataValue); -} -function __awaiter3(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - __name(adopt, "adopt"); - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - __name(fulfilled, "fulfilled"); - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - __name(rejected, "rejected"); - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - __name(step, "step"); - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} -function __generator3(thisArg, body) { - var _ = { label: 0, sent: function() { - if (t[0] & 1) - throw t[1]; - return t[1]; - }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { - return this; - }), g; - function verb(n) { - return function(v) { - return step([n, v]); - }; - } - __name(verb, "verb"); - function step(op) { - if (f) - throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) - try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) - return t; - if (y = 0, t) - op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { value: op[1], done: false }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) - _.ops.pop(); - _.trys.pop(); - continue; - } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - if (op[0] & 5) - throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; - } - __name(step, "step"); -} -function __exportStar3(m, o) { - for (var p in m) - if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) - __createBinding3(o, m, p); -} -function __values4(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) - return m.call(o); - if (o && typeof o.length === "number") - return { - next: function() { - if (o && i >= o.length) - o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} -function __read3(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) - return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) - ar.push(r.value); - } catch (error) { - e = { error }; - } finally { - try { - if (r && !r.done && (m = i["return"])) - m.call(i); - } finally { - if (e) - throw e.error; - } - } - return ar; -} -function __spread3() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read3(arguments[i])); - return ar; -} -function __spreadArrays3() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) - s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} -function __spreadArray3(to, from, pack) { - if (pack || arguments.length === 2) - for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) - ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; + return addOperationResponse(Object.assign(Object.assign({}, parsedHeaders), _response.parsedBody)); + } + __name(flattenResponse, "flattenResponse"); + function getCredentialScopes(options, baseUri) { + if (options === null || options === void 0 ? void 0 : options.credentialScopes) { + return options.credentialScopes; + } + if (baseUri) { + return `${baseUri}/.default`; } + return void 0; } - return to.concat(ar || Array.prototype.slice.call(from)); -} -function __await3(v) { - return this instanceof __await3 ? (this.v = v, this) : new __await3(v); -} -function __asyncGenerator3(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i; - function verb(n) { - if (g[n]) - i[n] = function(v) { - return new Promise(function(a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; - } - __name(verb, "verb"); - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); + __name(getCredentialScopes, "getCredentialScopes"); + function createSpanFunction(args) { + return coreTracing.createSpanFunction(args); } - } - __name(resume, "resume"); - function step(r) { - r.value instanceof __await3 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); - } - __name(step, "step"); - function fulfill(value) { - resume("next", value); - } - __name(fulfill, "fulfill"); - function reject(value) { - resume("throw", value); - } - __name(reject, "reject"); - function settle(f, v) { - if (f(v), q.shift(), q.length) - resume(q[0][0], q[0][1]); - } - __name(settle, "settle"); -} -function __asyncDelegator3(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function(e) { - throw e; - }), verb("return"), i[Symbol.iterator] = function() { - return this; - }, i; - function verb(n, f) { - i[n] = o[n] ? function(v) { - return (p = !p) ? { value: __await3(o[n](v)), done: false } : f ? f(v) : v; - } : f; - } - __name(verb, "verb"); -} -function __asyncValues3(o) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values4 === "function" ? __values4(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i); - function verb(n) { - i[n] = o[n] && function(v) { - return new Promise(function(resolve, reject) { - v = o[n](v), settle(resolve, reject, v.done, v.value); - }); + __name(createSpanFunction, "createSpanFunction"); + var TokenRefreshBufferMs = 2 * 60 * 1e3; + var ExpiringAccessTokenCache = class { + static { + __name(this, "ExpiringAccessTokenCache"); + } + /** + * Constructs an instance of {@link ExpiringAccessTokenCache} with + * an optional expiration buffer time. + */ + constructor(tokenRefreshBufferMs = TokenRefreshBufferMs) { + this.cachedToken = void 0; + this.tokenRefreshBufferMs = tokenRefreshBufferMs; + } + /** + * Saves an access token into the internal in-memory cache. + * @param accessToken - Access token or undefined to clear the cache. + */ + setCachedToken(accessToken) { + this.cachedToken = accessToken; + } + /** + * Returns the cached access token, or `undefined` if one is not cached or the cached one is expiring soon. + */ + getCachedToken() { + if (this.cachedToken && Date.now() + this.tokenRefreshBufferMs >= this.cachedToken.expiresOnTimestamp) { + this.cachedToken = void 0; + } + return this.cachedToken; + } }; - } - __name(verb, "verb"); - function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function(v2) { - resolve({ value: v2, done: d }); - }, reject); - } - __name(settle, "settle"); -} -function __makeTemplateObject3(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, "raw", { value: raw }); - } else { - cooked.raw = raw; - } - return cooked; -} -function __importStar3(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)) - __createBinding3(result, mod, k); - } - __setModuleDefault3(result, mod); - return result; -} -function __importDefault3(mod) { - return mod && mod.__esModule ? mod : { default: mod }; -} -function __classPrivateFieldGet3(receiver, state, kind, f) { - if (kind === "a" && !f) - throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -} -function __classPrivateFieldSet3(receiver, state, value, kind, f) { - if (kind === "m") - throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) - throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -} -function __classPrivateFieldIn3(state, receiver) { - if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") - throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); -} -function __addDisposableResource3(env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") - throw new TypeError("Object expected."); - var dispose; - if (async) { - if (!Symbol.asyncDispose) - throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) - throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - } - if (typeof dispose !== "function") - throw new TypeError("Object not disposable."); - env.stack.push({ value, dispose, async }); - } else if (async) { - env.stack.push({ async: true }); - } - return value; -} -function __disposeResources3(env) { - function fail(e) { - env.error = env.hasError ? new _SuppressedError3(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - __name(fail, "fail"); - function next() { - while (env.stack.length) { - var rec = env.stack.pop(); - try { - var result = rec.dispose && rec.dispose.call(rec.value); - if (rec.async) - return Promise.resolve(result).then(next, function(e) { - fail(e); - return next(); - }); - } catch (e) { - fail(e); + var AccessTokenRefresher = class { + static { + __name(this, "AccessTokenRefresher"); } - } - if (env.hasError) - throw env.error; - } - __name(next, "next"); - return next(); -} -var extendStatics3, __assign3, __createBinding3, __setModuleDefault3, _SuppressedError3, tslib_es6_default3; -var init_tslib_es63 = __esm({ - "../node_modules/@azure/core-paging/node_modules/tslib/tslib.es6.mjs"() { - extendStatics3 = /* @__PURE__ */ __name(function(d, b) { - extendStatics3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { - d2.__proto__ = b2; - } || function(d2, b2) { - for (var p in b2) - if (Object.prototype.hasOwnProperty.call(b2, p)) - d2[p] = b2[p]; - }; - return extendStatics3(d, b); - }, "extendStatics"); - __name(__extends3, "__extends"); - __assign3 = /* @__PURE__ */ __name(function() { - __assign3 = Object.assign || /* @__PURE__ */ __name(function __assign4(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; + constructor(credential, scopes, requiredMillisecondsBeforeNewRefresh = 3e4) { + this.credential = credential; + this.scopes = scopes; + this.requiredMillisecondsBeforeNewRefresh = requiredMillisecondsBeforeNewRefresh; + this.lastCalled = 0; + } + /** + * Returns true if the required milliseconds(defaulted to 30000) have been passed signifying + * that we are ready for a new refresh. + */ + isReady() { + return !this.lastCalled || Date.now() - this.lastCalled > this.requiredMillisecondsBeforeNewRefresh; + } + /** + * Stores the time in which it is called, + * then requests a new token, + * then sets this.promise to undefined, + * then returns the token. + */ + async getToken(options) { + this.lastCalled = Date.now(); + const token = await this.credential.getToken(this.scopes, options); + this.promise = void 0; + return token || void 0; + } + /** + * Requests a new token if we're not currently waiting for a new token. + * Returns null if the required time between each call hasn't been reached. + */ + refresh(options) { + if (!this.promise) { + this.promise = this.getToken(options); } - return t; - }, "__assign"); - return __assign3.apply(this, arguments); - }, "__assign"); - __name(__rest3, "__rest"); - __name(__decorate3, "__decorate"); - __name(__param3, "__param"); - __name(__esDecorate3, "__esDecorate"); - __name(__runInitializers3, "__runInitializers"); - __name(__propKey3, "__propKey"); - __name(__setFunctionName3, "__setFunctionName"); - __name(__metadata3, "__metadata"); - __name(__awaiter3, "__awaiter"); - __name(__generator3, "__generator"); - __createBinding3 = Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - 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]; - } }; + return this.promise; } - Object.defineProperty(o, k2, desc); - } : function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; }; - __name(__exportStar3, "__exportStar"); - __name(__values4, "__values"); - __name(__read3, "__read"); - __name(__spread3, "__spread"); - __name(__spreadArrays3, "__spreadArrays"); - __name(__spreadArray3, "__spreadArray"); - __name(__await3, "__await"); - __name(__asyncGenerator3, "__asyncGenerator"); - __name(__asyncDelegator3, "__asyncDelegator"); - __name(__asyncValues3, "__asyncValues"); - __name(__makeTemplateObject3, "__makeTemplateObject"); - __setModuleDefault3 = Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; + var HeaderConstants = Constants.HeaderConstants; + var DEFAULT_AUTHORIZATION_SCHEME = "Basic"; + var BasicAuthenticationCredentials = class { + static { + __name(this, "BasicAuthenticationCredentials"); + } + /** + * Creates a new BasicAuthenticationCredentials object. + * + * @param userName - User name. + * @param password - Password. + * @param authorizationScheme - The authorization scheme. + */ + constructor(userName, password, authorizationScheme = DEFAULT_AUTHORIZATION_SCHEME) { + this.authorizationScheme = DEFAULT_AUTHORIZATION_SCHEME; + if (userName === null || userName === void 0 || typeof userName.valueOf() !== "string") { + throw new Error("userName cannot be null or undefined and must be of type string."); + } + if (password === null || password === void 0 || typeof password.valueOf() !== "string") { + throw new Error("password cannot be null or undefined and must be of type string."); + } + this.userName = userName; + this.password = password; + this.authorizationScheme = authorizationScheme; + } + /** + * Signs a request with the Authentication header. + * + * @param webResource - The WebResourceLike to be signed. + * @returns The signed request object. + */ + signRequest(webResource) { + const credentials = `${this.userName}:${this.password}`; + const encodedCredentials = `${this.authorizationScheme} ${encodeString(credentials)}`; + if (!webResource.headers) + webResource.headers = new HttpHeaders(); + webResource.headers.set(HeaderConstants.AUTHORIZATION, encodedCredentials); + return Promise.resolve(webResource); + } }; - __name(__importStar3, "__importStar"); - __name(__importDefault3, "__importDefault"); - __name(__classPrivateFieldGet3, "__classPrivateFieldGet"); - __name(__classPrivateFieldSet3, "__classPrivateFieldSet"); - __name(__classPrivateFieldIn3, "__classPrivateFieldIn"); - __name(__addDisposableResource3, "__addDisposableResource"); - _SuppressedError3 = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + var ApiKeyCredentials = class { + static { + __name(this, "ApiKeyCredentials"); + } + /** + * @param options - Specifies the options to be provided for auth. Either header or query needs to be provided. + */ + constructor(options) { + if (!options || options && !options.inHeader && !options.inQuery) { + throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`); + } + this.inHeader = options.inHeader; + this.inQuery = options.inQuery; + } + /** + * Signs a request with the values provided in the inHeader and inQuery parameter. + * + * @param webResource - The WebResourceLike to be signed. + * @returns The signed request object. + */ + signRequest(webResource) { + if (!webResource) { + return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`)); + } + if (this.inHeader) { + if (!webResource.headers) { + webResource.headers = new HttpHeaders(); + } + for (const headerName in this.inHeader) { + webResource.headers.set(headerName, this.inHeader[headerName]); + } + } + if (this.inQuery) { + if (!webResource.url) { + return Promise.reject(new Error(`url cannot be null in the request object.`)); + } + if (webResource.url.indexOf("?") < 0) { + webResource.url += "?"; + } + for (const key in this.inQuery) { + if (!webResource.url.endsWith("?")) { + webResource.url += "&"; + } + webResource.url += `${key}=${this.inQuery[key]}`; + } + } + return Promise.resolve(webResource); + } }; - __name(__disposeResources3, "__disposeResources"); - tslib_es6_default3 = { - __extends: __extends3, - __assign: __assign3, - __rest: __rest3, - __decorate: __decorate3, - __param: __param3, - __metadata: __metadata3, - __awaiter: __awaiter3, - __generator: __generator3, - __createBinding: __createBinding3, - __exportStar: __exportStar3, - __values: __values4, - __read: __read3, - __spread: __spread3, - __spreadArrays: __spreadArrays3, - __spreadArray: __spreadArray3, - __await: __await3, - __asyncGenerator: __asyncGenerator3, - __asyncDelegator: __asyncDelegator3, - __asyncValues: __asyncValues3, - __makeTemplateObject: __makeTemplateObject3, - __importStar: __importStar3, - __importDefault: __importDefault3, - __classPrivateFieldGet: __classPrivateFieldGet3, - __classPrivateFieldSet: __classPrivateFieldSet3, - __classPrivateFieldIn: __classPrivateFieldIn3, - __addDisposableResource: __addDisposableResource3, - __disposeResources: __disposeResources3 + var TopicCredentials = class extends ApiKeyCredentials { + static { + __name(this, "TopicCredentials"); + } + /** + * Creates a new EventGrid TopicCredentials object. + * + * @param topicKey - The EventGrid topic key + */ + constructor(topicKey) { + if (!topicKey || topicKey && typeof topicKey !== "string") { + throw new Error("topicKey cannot be null or undefined and must be of type string."); + } + const options = { + inHeader: { + "aeg-sas-key": topicKey + } + }; + super(options); + } }; + Object.defineProperty(exports2, "delay", { + enumerable: true, + get: function() { + return coreUtil.delay; + } + }); + Object.defineProperty(exports2, "isNode", { + enumerable: true, + get: function() { + return coreUtil.isNode; + } + }); + Object.defineProperty(exports2, "isTokenCredential", { + enumerable: true, + get: function() { + return coreAuth.isTokenCredential; + } + }); + exports2.AccessTokenRefresher = AccessTokenRefresher; + exports2.ApiKeyCredentials = ApiKeyCredentials; + exports2.BaseRequestPolicy = BaseRequestPolicy; + exports2.BasicAuthenticationCredentials = BasicAuthenticationCredentials; + exports2.Constants = Constants; + exports2.DefaultHttpClient = NodeFetchHttpClient; + exports2.ExpiringAccessTokenCache = ExpiringAccessTokenCache; + exports2.HttpHeaders = HttpHeaders; + exports2.MapperType = MapperType; + exports2.RequestPolicyOptions = RequestPolicyOptions; + exports2.RestError = RestError; + exports2.Serializer = Serializer; + exports2.ServiceClient = ServiceClient; + exports2.TopicCredentials = TopicCredentials; + exports2.URLBuilder = URLBuilder; + exports2.URLQuery = URLQuery; + exports2.WebResource = WebResource; + exports2.XML_ATTRKEY = XML_ATTRKEY; + exports2.XML_CHARKEY = XML_CHARKEY; + exports2.applyMixins = applyMixins; + exports2.bearerTokenAuthenticationPolicy = bearerTokenAuthenticationPolicy; + exports2.createPipelineFromOptions = createPipelineFromOptions; + exports2.createSpanFunction = createSpanFunction; + exports2.deserializationPolicy = deserializationPolicy; + exports2.deserializeResponseBody = deserializeResponseBody; + exports2.disableResponseDecompressionPolicy = disableResponseDecompressionPolicy; + exports2.encodeUri = encodeUri; + exports2.executePromisesSequentially = executePromisesSequentially; + exports2.exponentialRetryPolicy = exponentialRetryPolicy; + exports2.flattenResponse = flattenResponse; + exports2.generateClientRequestIdPolicy = generateClientRequestIdPolicy; + exports2.generateUuid = generateUuid; + exports2.getDefaultProxySettings = getDefaultProxySettings; + exports2.getDefaultUserAgentValue = getDefaultUserAgentValue; + exports2.isDuration = isDuration; + exports2.isValidUuid = isValidUuid; + exports2.keepAlivePolicy = keepAlivePolicy; + exports2.logPolicy = logPolicy; + exports2.operationOptionsToRequestOptionsBase = operationOptionsToRequestOptionsBase; + exports2.parseXML = parseXML; + exports2.promiseToCallback = promiseToCallback; + exports2.promiseToServiceCallback = promiseToServiceCallback; + exports2.proxyPolicy = proxyPolicy; + exports2.redirectPolicy = redirectPolicy; + exports2.serializeObject = serializeObject; + exports2.signingPolicy = signingPolicy; + exports2.stringifyXML = stringifyXML; + exports2.stripRequest = stripRequest; + exports2.stripResponse = stripResponse; + exports2.systemErrorRetryPolicy = systemErrorRetryPolicy; + exports2.throttlingRetryPolicy = throttlingRetryPolicy; + exports2.tracingPolicy = tracingPolicy; + exports2.userAgentPolicy = userAgentPolicy; } }); @@ -58653,7 +56877,7 @@ var require_dist7 = __commonJS({ "../node_modules/@azure/core-paging/dist/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib = (init_tslib_es63(), __toCommonJS(tslib_es6_exports3)); + var tslib = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); function getPagedAsyncIterator(pagedResult) { var _a; const iter = getItemAsyncIterator(pagedResult); @@ -59805,7 +58029,7 @@ var require_dist9 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); var coreHttp = require_dist6(); - var tslib = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2)); + var tslib = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var coreTracing = require_dist5(); var logger$1 = require_dist3(); var abortController = require_dist(); @@ -83267,7 +81491,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`; var require_requestUtils2 = __commonJS({ "../node_modules/@actions/cache/lib/internal/requestUtils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -83282,24 +81506,24 @@ var require_requestUtils2 = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -83332,7 +81556,7 @@ var require_requestUtils2 = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.retryHttpClientResponse = exports2.retryTypedResponse = exports2.retry = exports2.isRetryableStatusCode = exports2.isServerErrorStatusCode = exports2.isSuccessStatusCode = void 0; - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); var http_client_1 = require_lib(); var constants_1 = require_constants5(); function isSuccessStatusCode(statusCode) { @@ -83365,13 +81589,13 @@ var require_requestUtils2 = __commonJS({ __name(isRetryableStatusCode, "isRetryableStatusCode"); exports2.isRetryableStatusCode = isRetryableStatusCode; function sleep(milliseconds) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return new Promise((resolve) => setTimeout(resolve, milliseconds)); }); } __name(sleep, "sleep"); function retry(name, method, getStatusCode, maxAttempts = constants_1.DefaultRetryAttempts, delay = constants_1.DefaultRetryDelay, onError = void 0) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let errorMessage = ""; let attempt = 1; while (attempt <= maxAttempts) { @@ -83411,7 +81635,7 @@ var require_requestUtils2 = __commonJS({ __name(retry, "retry"); exports2.retry = retry; function retryTypedResponse(name, method, maxAttempts = constants_1.DefaultRetryAttempts, delay = constants_1.DefaultRetryDelay) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return yield retry( name, method, @@ -83438,7 +81662,7 @@ var require_requestUtils2 = __commonJS({ __name(retryTypedResponse, "retryTypedResponse"); exports2.retryTypedResponse = retryTypedResponse; function retryHttpClientResponse(name, method, maxAttempts = constants_1.DefaultRetryAttempts, delay = constants_1.DefaultRetryDelay) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return yield retry(name, method, (response) => response.message.statusCode, maxAttempts, delay); }); } @@ -83451,7 +81675,7 @@ var require_requestUtils2 = __commonJS({ var require_downloadUtils = __commonJS({ "../node_modules/@actions/cache/lib/internal/downloadUtils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -83466,24 +81690,24 @@ var require_downloadUtils = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -83516,19 +81740,19 @@ var require_downloadUtils = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.downloadCacheStorageSDK = exports2.downloadCacheHttpClientConcurrent = exports2.downloadCacheHttpClient = exports2.DownloadProgress = void 0; - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); var http_client_1 = require_lib(); var storage_blob_1 = require_dist9(); - var buffer = __importStar5(require("buffer")); - var fs2 = __importStar5(require("fs")); - var stream = __importStar5(require("stream")); - var util = __importStar5(require("util")); - var utils = __importStar5(require_cacheUtils()); + var buffer = __importStar3(require("buffer")); + var fs2 = __importStar3(require("fs")); + var stream = __importStar3(require("stream")); + var util = __importStar3(require("util")); + var utils = __importStar3(require_cacheUtils()); var constants_1 = require_constants5(); var requestUtils_1 = require_requestUtils2(); var abort_controller_1 = require_dist(); function pipeResponseToStream(response, output) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const pipeline = util.promisify(stream.pipeline); yield pipeline(response.message, output); }); @@ -83634,10 +81858,10 @@ var require_downloadUtils = __commonJS({ }; exports2.DownloadProgress = DownloadProgress; function downloadCacheHttpClient(archiveLocation, archivePath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const writeStream = fs2.createWriteStream(archivePath); const httpClient = new http_client_1.HttpClient("actions/cache"); - const downloadResponse = yield (0, requestUtils_1.retryHttpClientResponse)("downloadCache", () => __awaiter5(this, void 0, void 0, function* () { + const downloadResponse = yield (0, requestUtils_1.retryHttpClientResponse)("downloadCache", () => __awaiter3(this, void 0, void 0, function* () { return httpClient.get(archiveLocation); })); downloadResponse.message.socket.setTimeout(constants_1.SocketTimeout, () => { @@ -83661,14 +81885,14 @@ var require_downloadUtils = __commonJS({ exports2.downloadCacheHttpClient = downloadCacheHttpClient; function downloadCacheHttpClientConcurrent(archiveLocation, archivePath, options) { var _a; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const archiveDescriptor = yield fs2.promises.open(archivePath, "w"); const httpClient = new http_client_1.HttpClient("actions/cache", void 0, { socketTimeout: options.timeoutInMs, keepAlive: true }); try { - const res = yield (0, requestUtils_1.retryHttpClientResponse)("downloadCacheMetadata", () => __awaiter5(this, void 0, void 0, function* () { + const res = yield (0, requestUtils_1.retryHttpClientResponse)("downloadCacheMetadata", () => __awaiter3(this, void 0, void 0, function* () { return yield httpClient.request("HEAD", archiveLocation, null, {}); })); const lengthHeader = res.message.headers["content-length"]; @@ -83685,7 +81909,7 @@ var require_downloadUtils = __commonJS({ const count = Math.min(blockSize, length - offset); downloads.push({ offset, - promiseGetter: () => __awaiter5(this, void 0, void 0, function* () { + promiseGetter: () => __awaiter3(this, void 0, void 0, function* () { return yield downloadSegmentRetry(httpClient, archiveLocation, offset, count); }) }); @@ -83698,7 +81922,7 @@ var require_downloadUtils = __commonJS({ const progressFn = progress.onProgress(); const activeDownloads = []; let nextDownload; - const waitAndWrite = /* @__PURE__ */ __name(() => __awaiter5(this, void 0, void 0, function* () { + const waitAndWrite = /* @__PURE__ */ __name(() => __awaiter3(this, void 0, void 0, function* () { const segment = yield Promise.race(Object.values(activeDownloads)); yield archiveDescriptor.write(segment.buffer, 0, segment.count, segment.offset); actives--; @@ -83725,7 +81949,7 @@ var require_downloadUtils = __commonJS({ __name(downloadCacheHttpClientConcurrent, "downloadCacheHttpClientConcurrent"); exports2.downloadCacheHttpClientConcurrent = downloadCacheHttpClientConcurrent; function downloadSegmentRetry(httpClient, archiveLocation, offset, count) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const retries = 5; let failures = 0; while (true) { @@ -83747,8 +81971,8 @@ var require_downloadUtils = __commonJS({ } __name(downloadSegmentRetry, "downloadSegmentRetry"); function downloadSegment(httpClient, archiveLocation, offset, count) { - return __awaiter5(this, void 0, void 0, function* () { - const partRes = yield (0, requestUtils_1.retryHttpClientResponse)("downloadCachePart", () => __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { + const partRes = yield (0, requestUtils_1.retryHttpClientResponse)("downloadCachePart", () => __awaiter3(this, void 0, void 0, function* () { return yield httpClient.get(archiveLocation, { Range: `bytes=${offset}-${offset + count - 1}` }); @@ -83766,7 +81990,7 @@ var require_downloadUtils = __commonJS({ __name(downloadSegment, "downloadSegment"); function downloadCacheStorageSDK(archiveLocation, archivePath, options) { var _a; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const client = new storage_blob_1.BlockBlobClient(archiveLocation, void 0, { retryOptions: { // Override the timeout used when downloading each 4 MB chunk @@ -83812,7 +82036,7 @@ var require_downloadUtils = __commonJS({ } __name(downloadCacheStorageSDK, "downloadCacheStorageSDK"); exports2.downloadCacheStorageSDK = downloadCacheStorageSDK; - var promiseWithTimeout = /* @__PURE__ */ __name((timeoutMs, promise) => __awaiter5(void 0, void 0, void 0, function* () { + var promiseWithTimeout = /* @__PURE__ */ __name((timeoutMs, promise) => __awaiter3(void 0, void 0, void 0, function* () { let timeoutHandle; const timeoutPromise = new Promise((resolve) => { timeoutHandle = setTimeout(() => resolve("timeout"), timeoutMs); @@ -83829,7 +82053,7 @@ var require_downloadUtils = __commonJS({ var require_options = __commonJS({ "../node_modules/@actions/cache/lib/options.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -83844,26 +82068,26 @@ var require_options = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getDownloadOptions = exports2.getUploadOptions = void 0; - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); function getUploadOptions(copy) { const result = { uploadConcurrency: 4, @@ -83933,7 +82157,7 @@ var require_options = __commonJS({ var require_cacheHttpClient = __commonJS({ "../node_modules/@actions/cache/lib/internal/cacheHttpClient.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -83948,24 +82172,24 @@ var require_cacheHttpClient = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -83998,13 +82222,13 @@ var require_cacheHttpClient = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.saveCache = exports2.reserveCache = exports2.downloadCache = exports2.getCacheEntry = exports2.getCacheVersion = void 0; - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); var http_client_1 = require_lib(); var auth_1 = require_auth(); - var crypto7 = __importStar5(require("crypto")); - var fs2 = __importStar5(require("fs")); + var crypto7 = __importStar3(require("crypto")); + var fs2 = __importStar3(require("fs")); var url_1 = require("url"); - var utils = __importStar5(require_cacheUtils()); + var utils = __importStar3(require_cacheUtils()); var downloadUtils_1 = require_downloadUtils(); var options_1 = require_options(); var requestUtils_1 = require_requestUtils2(); @@ -84052,11 +82276,11 @@ var require_cacheHttpClient = __commonJS({ __name(getCacheVersion, "getCacheVersion"); exports2.getCacheVersion = getCacheVersion; function getCacheEntry(keys, paths, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const httpClient = createHttpClient(); const version4 = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive); const resource = `cache?keys=${encodeURIComponent(keys.join(","))}&version=${version4}`; - const response = yield (0, requestUtils_1.retryTypedResponse)("getCacheEntry", () => __awaiter5(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryTypedResponse)("getCacheEntry", () => __awaiter3(this, void 0, void 0, function* () { return httpClient.getJson(getCacheApiUrl(resource)); })); if (response.statusCode === 204) { @@ -84082,9 +82306,9 @@ var require_cacheHttpClient = __commonJS({ __name(getCacheEntry, "getCacheEntry"); exports2.getCacheEntry = getCacheEntry; function printCachesListForDiagnostics(key, httpClient, version4) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const resource = `caches?key=${encodeURIComponent(key)}`; - const response = yield (0, requestUtils_1.retryTypedResponse)("listCache", () => __awaiter5(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryTypedResponse)("listCache", () => __awaiter3(this, void 0, void 0, function* () { return httpClient.getJson(getCacheApiUrl(resource)); })); if (response.statusCode === 200) { @@ -84102,7 +82326,7 @@ Other caches with similar key:`); } __name(printCachesListForDiagnostics, "printCachesListForDiagnostics"); function downloadCache(archiveLocation, archivePath, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const archiveUrl = new url_1.URL(archiveLocation); const downloadOptions = (0, options_1.getDownloadOptions)(options); if (archiveUrl.hostname.endsWith(".blob.core.windows.net")) { @@ -84121,7 +82345,7 @@ Other caches with similar key:`); __name(downloadCache, "downloadCache"); exports2.downloadCache = downloadCache; function reserveCache(key, paths, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const httpClient = createHttpClient(); const version4 = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive); const reserveCacheRequest = { @@ -84129,7 +82353,7 @@ Other caches with similar key:`); version: version4, cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize }; - const response = yield (0, requestUtils_1.retryTypedResponse)("reserveCache", () => __awaiter5(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryTypedResponse)("reserveCache", () => __awaiter3(this, void 0, void 0, function* () { return httpClient.postJson(getCacheApiUrl("caches"), reserveCacheRequest); })); return response; @@ -84142,13 +82366,13 @@ Other caches with similar key:`); } __name(getContentRange, "getContentRange"); function uploadChunk(httpClient, resourceUrl, openStream, start, end) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { core2.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start} with content range: ${getContentRange(start, end)}`); const additionalHeaders = { "Content-Type": "application/octet-stream", "Content-Range": getContentRange(start, end) }; - const uploadChunkResponse = yield (0, requestUtils_1.retryHttpClientResponse)(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter5(this, void 0, void 0, function* () { + const uploadChunkResponse = yield (0, requestUtils_1.retryHttpClientResponse)(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter3(this, void 0, void 0, function* () { return httpClient.sendStream("PATCH", resourceUrl, openStream(), additionalHeaders); })); if (!(0, requestUtils_1.isSuccessStatusCode)(uploadChunkResponse.message.statusCode)) { @@ -84158,7 +82382,7 @@ Other caches with similar key:`); } __name(uploadChunk, "uploadChunk"); function uploadFile(httpClient, cacheId, archivePath, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const fileSize = utils.getArchiveFileSizeInBytes(archivePath); const resourceUrl = getCacheApiUrl(`caches/${cacheId.toString()}`); const fd = fs2.openSync(archivePath, "r"); @@ -84169,7 +82393,7 @@ Other caches with similar key:`); core2.debug("Awaiting all uploads"); let offset = 0; try { - yield Promise.all(parallelUploads.map(() => __awaiter5(this, void 0, void 0, function* () { + yield Promise.all(parallelUploads.map(() => __awaiter3(this, void 0, void 0, function* () { while (offset < fileSize) { const chunkSize = Math.min(fileSize - offset, maxChunkSize); const start = offset; @@ -84193,16 +82417,16 @@ Other caches with similar key:`); } __name(uploadFile, "uploadFile"); function commitCache(httpClient, cacheId, filesize) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const commitCacheRequest = { size: filesize }; - return yield (0, requestUtils_1.retryTypedResponse)("commitCache", () => __awaiter5(this, void 0, void 0, function* () { + return yield (0, requestUtils_1.retryTypedResponse)("commitCache", () => __awaiter3(this, void 0, void 0, function* () { return httpClient.postJson(getCacheApiUrl(`caches/${cacheId.toString()}`), commitCacheRequest); })); }); } __name(commitCache, "commitCache"); function saveCache(cacheId, archivePath, options) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const httpClient = createHttpClient(); core2.debug("Upload cache"); yield uploadFile(httpClient, cacheId, archivePath, options); @@ -84225,7 +82449,7 @@ Other caches with similar key:`); var require_tar = __commonJS({ "../node_modules/@actions/cache/lib/internal/tar.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -84240,24 +82464,24 @@ var require_tar = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -84291,14 +82515,14 @@ var require_tar = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.createTar = exports2.extractTar = exports2.listTar = void 0; var exec_1 = require_exec(); - var io2 = __importStar5(require_io()); + var io2 = __importStar3(require_io()); var fs_1 = require("fs"); - var path = __importStar5(require("path")); - var utils = __importStar5(require_cacheUtils()); + var path = __importStar3(require("path")); + var utils = __importStar3(require_cacheUtils()); var constants_1 = require_constants5(); var IS_WINDOWS = process.platform === "win32"; function getTarPath() { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { switch (process.platform) { case "win32": { const gnuTar = yield utils.getGnuTarPathOnWindows(); @@ -84332,7 +82556,7 @@ var require_tar = __commonJS({ } __name(getTarPath, "getTarPath"); function getTarArgs(tarPath, compressionMethod, type, archivePath = "") { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const args = [`"${tarPath.path}"`]; const cacheFileName = utils.getCacheFileName(compressionMethod); const tarFile = "cache.tar"; @@ -84364,7 +82588,7 @@ var require_tar = __commonJS({ } __name(getTarArgs, "getTarArgs"); function getCommands(compressionMethod, type, archivePath = "") { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let args; const tarPath = yield getTarPath(); const tarArgs = yield getTarArgs(tarPath, compressionMethod, type, archivePath); @@ -84388,7 +82612,7 @@ var require_tar = __commonJS({ } __name(getWorkingDirectory, "getWorkingDirectory"); function getDecompressionProgram(tarPath, compressionMethod, archivePath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const BSD_TAR_ZSTD = tarPath.type === constants_1.ArchiveToolType.BSD && compressionMethod !== constants_1.CompressionMethod.Gzip && IS_WINDOWS; switch (compressionMethod) { case constants_1.CompressionMethod.Zstd: @@ -84413,7 +82637,7 @@ var require_tar = __commonJS({ } __name(getDecompressionProgram, "getDecompressionProgram"); function getCompressionProgram(tarPath, compressionMethod) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const cacheFileName = utils.getCacheFileName(compressionMethod); const BSD_TAR_ZSTD = tarPath.type === constants_1.ArchiveToolType.BSD && compressionMethod !== constants_1.CompressionMethod.Gzip && IS_WINDOWS; switch (compressionMethod) { @@ -84439,7 +82663,7 @@ var require_tar = __commonJS({ } __name(getCompressionProgram, "getCompressionProgram"); function execCommands(commands, cwd) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { for (const command of commands) { try { yield (0, exec_1.exec)(command, void 0, { @@ -84454,7 +82678,7 @@ var require_tar = __commonJS({ } __name(execCommands, "execCommands"); function listTar(archivePath, compressionMethod) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const commands = yield getCommands(compressionMethod, "list", archivePath); yield execCommands(commands); }); @@ -84462,7 +82686,7 @@ var require_tar = __commonJS({ __name(listTar, "listTar"); exports2.listTar = listTar; function extractTar(archivePath, compressionMethod) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const workingDirectory = getWorkingDirectory(); yield io2.mkdirP(workingDirectory); const commands = yield getCommands(compressionMethod, "extract", archivePath); @@ -84472,7 +82696,7 @@ var require_tar = __commonJS({ __name(extractTar, "extractTar"); exports2.extractTar = extractTar; function createTar(archiveFolder, sourceDirectories, compressionMethod) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { (0, fs_1.writeFileSync)(path.join(archiveFolder, constants_1.ManifestFilename), sourceDirectories.join("\n")); const commands = yield getCommands(compressionMethod, "create"); yield execCommands(commands, archiveFolder); @@ -84487,7 +82711,7 @@ var require_tar = __commonJS({ var require_cache2 = __commonJS({ "../node_modules/@actions/cache/lib/cache.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -84502,24 +82726,24 @@ var require_cache2 = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -84552,10 +82776,10 @@ var require_cache2 = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0; - var core2 = __importStar5(require_core()); - var path = __importStar5(require("path")); - var utils = __importStar5(require_cacheUtils()); - var cacheHttpClient = __importStar5(require_cacheHttpClient()); + var core2 = __importStar3(require_core()); + var path = __importStar3(require("path")); + var utils = __importStar3(require_cacheUtils()); + var cacheHttpClient = __importStar3(require_cacheHttpClient()); var tar_1 = require_tar(); var ValidationError = class _ValidationError extends Error { static { @@ -84601,7 +82825,7 @@ var require_cache2 = __commonJS({ __name(isFeatureAvailable, "isFeatureAvailable"); exports2.isFeatureAvailable = isFeatureAvailable; function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { checkPaths(paths); restoreKeys = restoreKeys || []; const keys = [primaryKey, ...restoreKeys]; @@ -84659,7 +82883,7 @@ var require_cache2 = __commonJS({ exports2.restoreCache = restoreCache; function saveCache(paths, key, options, enableCrossOsArchive = false) { var _a, _b, _c, _d, _e; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { checkPaths(paths); checkKey(key); const compressionMethod = yield utils.getCompressionMethod(); @@ -85929,7 +84153,7 @@ var require_semver3 = __commonJS({ var require_manifest = __commonJS({ "../node_modules/@actions/tool-cache/lib/manifest.js"(exports2, module2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -85940,24 +84164,24 @@ var require_manifest = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -85990,13 +84214,13 @@ var require_manifest = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2._readLinuxVersionFile = exports2._getOsVersion = exports2._findMatch = void 0; - var semver = __importStar5(require_semver3()); + var semver = __importStar3(require_semver3()); var core_1 = require_core(); var os = require("os"); var cp = require("child_process"); var fs2 = require("fs"); function _findMatch(versionSpec, stable, candidates, archFilter) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const platFilter = os.platform(); let result; let match; @@ -86072,87 +84296,11 @@ var require_manifest = __commonJS({ } }); -// ../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js -var require_rng2 = __commonJS({ - "../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js"(exports2, module2) { - var crypto7 = require("crypto"); - module2.exports = /* @__PURE__ */ __name(function nodeRNG() { - return crypto7.randomBytes(16); - }, "nodeRNG"); - } -}); - -// ../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js -var require_bytesToUuid2 = __commonJS({ - "../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js"(exports2, module2) { - var byteToHex3 = []; - for (i = 0; i < 256; ++i) { - byteToHex3[i] = (i + 256).toString(16).substr(1); - } - var i; - function bytesToUuid(buf, offset) { - var i2 = offset || 0; - var bth = byteToHex3; - return [ - bth[buf[i2++]], - bth[buf[i2++]], - bth[buf[i2++]], - bth[buf[i2++]], - "-", - bth[buf[i2++]], - bth[buf[i2++]], - "-", - bth[buf[i2++]], - bth[buf[i2++]], - "-", - bth[buf[i2++]], - bth[buf[i2++]], - "-", - bth[buf[i2++]], - bth[buf[i2++]], - bth[buf[i2++]], - bth[buf[i2++]], - bth[buf[i2++]], - bth[buf[i2++]] - ].join(""); - } - __name(bytesToUuid, "bytesToUuid"); - module2.exports = bytesToUuid; - } -}); - -// ../node_modules/@actions/tool-cache/node_modules/uuid/v4.js -var require_v42 = __commonJS({ - "../node_modules/@actions/tool-cache/node_modules/uuid/v4.js"(exports2, module2) { - var rng3 = require_rng2(); - var bytesToUuid = require_bytesToUuid2(); - function v43(options, buf, offset) { - var i = buf && offset || 0; - if (typeof options == "string") { - buf = options === "binary" ? new Array(16) : null; - options = null; - } - options = options || {}; - var rnds = options.random || (options.rng || rng3)(); - rnds[6] = rnds[6] & 15 | 64; - rnds[8] = rnds[8] & 63 | 128; - if (buf) { - for (var ii = 0; ii < 16; ++ii) { - buf[i + ii] = rnds[ii]; - } - } - return buf || bytesToUuid(rnds); - } - __name(v43, "v4"); - module2.exports = v43; - } -}); - // ../node_modules/@actions/tool-cache/lib/retry-helper.js var require_retry_helper = __commonJS({ "../node_modules/@actions/tool-cache/lib/retry-helper.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -86163,24 +84311,24 @@ var require_retry_helper = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -86213,7 +84361,7 @@ var require_retry_helper = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.RetryHelper = void 0; - var core2 = __importStar5(require_core()); + var core2 = __importStar3(require_core()); var RetryHelper = class { static { __name(this, "RetryHelper"); @@ -86230,7 +84378,7 @@ var require_retry_helper = __commonJS({ } } execute(action, isRetryable) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let attempt = 1; while (attempt < this.maxAttempts) { try { @@ -86253,7 +84401,7 @@ var require_retry_helper = __commonJS({ return Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + this.minSeconds; } sleep(seconds) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return new Promise((resolve) => setTimeout(resolve, seconds * 1e3)); }); } @@ -86266,7 +84414,7 @@ var require_retry_helper = __commonJS({ var require_tool_cache = __commonJS({ "../node_modules/@actions/tool-cache/lib/tool-cache.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { @@ -86277,24 +84425,24 @@ var require_tool_cache = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -86325,23 +84473,23 @@ var require_tool_cache = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __importDefault4 = exports2 && exports2.__importDefault || function(mod) { + var __importDefault2 = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.evaluateVersions = exports2.isExplicitVersion = exports2.findFromManifest = exports2.getManifestFromRepo = exports2.findAllVersions = exports2.find = exports2.cacheFile = exports2.cacheDir = exports2.extractZip = exports2.extractXar = exports2.extractTar = exports2.extract7z = exports2.downloadTool = exports2.HTTPError = void 0; - var core2 = __importStar5(require_core()); - var io2 = __importStar5(require_io()); - var fs2 = __importStar5(require("fs")); - var mm = __importStar5(require_manifest()); - var os = __importStar5(require("os")); - var path = __importStar5(require("path")); - var httpm = __importStar5(require_lib()); - var semver = __importStar5(require_semver3()); - var stream = __importStar5(require("stream")); - var util = __importStar5(require("util")); + var core2 = __importStar3(require_core()); + var io2 = __importStar3(require_io()); + var fs2 = __importStar3(require("fs")); + var mm = __importStar3(require_manifest()); + var os = __importStar3(require("os")); + var path = __importStar3(require("path")); + var httpm = __importStar3(require_lib()); + var semver = __importStar3(require_semver3()); + var stream = __importStar3(require("stream")); + var util = __importStar3(require("util")); var assert_1 = require("assert"); - var v4_1 = __importDefault4(require_v42()); + var v4_1 = __importDefault2(require_v4()); var exec_1 = require_exec(); var retry_helper_1 = require_retry_helper(); var HTTPError = class extends Error { @@ -86359,7 +84507,7 @@ var require_tool_cache = __commonJS({ var IS_MAC = process.platform === "darwin"; var userAgent = "actions/tool-cache"; function downloadTool(url, dest, auth, headers) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { dest = dest || path.join(_getTempDirectory(), v4_1.default()); yield io2.mkdirP(path.dirname(dest)); core2.debug(`Downloading ${url}`); @@ -86368,7 +84516,7 @@ var require_tool_cache = __commonJS({ const minSeconds = _getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS", 10); const maxSeconds = _getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS", 20); const retryHelper = new retry_helper_1.RetryHelper(maxAttempts, minSeconds, maxSeconds); - return yield retryHelper.execute(() => __awaiter5(this, void 0, void 0, function* () { + return yield retryHelper.execute(() => __awaiter3(this, void 0, void 0, function* () { return yield downloadToolAttempt(url, dest || "", auth, headers); }), (err) => { if (err instanceof HTTPError && err.httpStatusCode) { @@ -86383,7 +84531,7 @@ var require_tool_cache = __commonJS({ __name(downloadTool, "downloadTool"); exports2.downloadTool = downloadTool; function downloadToolAttempt(url, dest, auth, headers) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (fs2.existsSync(dest)) { throw new Error(`Destination file path ${dest} already exists`); } @@ -86426,7 +84574,7 @@ var require_tool_cache = __commonJS({ } __name(downloadToolAttempt, "downloadToolAttempt"); function extract7z(file, dest, _7zPath) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { assert_1.ok(IS_WINDOWS, "extract7z() not supported on current OS"); assert_1.ok(file, 'parameter "file" is required'); dest = yield _createExtractFolder(dest); @@ -86480,7 +84628,7 @@ var require_tool_cache = __commonJS({ __name(extract7z, "extract7z"); exports2.extract7z = extract7z; function extractTar(file, dest, flags = "xz") { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!file) { throw new Error("parameter 'file' is required"); } @@ -86525,7 +84673,7 @@ var require_tool_cache = __commonJS({ __name(extractTar, "extractTar"); exports2.extractTar = extractTar; function extractXar(file, dest, flags = []) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { assert_1.ok(IS_MAC, "extractXar() not supported on current OS"); assert_1.ok(file, 'parameter "file" is required'); dest = yield _createExtractFolder(dest); @@ -86547,7 +84695,7 @@ var require_tool_cache = __commonJS({ __name(extractXar, "extractXar"); exports2.extractXar = extractXar; function extractZip(file, dest) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!file) { throw new Error("parameter 'file' is required"); } @@ -86563,7 +84711,7 @@ var require_tool_cache = __commonJS({ __name(extractZip, "extractZip"); exports2.extractZip = extractZip; function extractZipWin(file, dest) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ""); const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, ""); const pwshPath = yield io2.which("pwsh", false); @@ -86610,7 +84758,7 @@ var require_tool_cache = __commonJS({ } __name(extractZipWin, "extractZipWin"); function extractZipNix(file, dest) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const unzipPath = yield io2.which("unzip", true); const args = [file]; if (!core2.isDebug()) { @@ -86622,7 +84770,7 @@ var require_tool_cache = __commonJS({ } __name(extractZipNix, "extractZipNix"); function cacheDir(sourceDir, tool, version4, arch) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { version4 = semver.clean(version4) || version4; arch = arch || os.arch(); core2.debug(`Caching tool ${tool} ${version4} ${arch}`); @@ -86642,7 +84790,7 @@ var require_tool_cache = __commonJS({ __name(cacheDir, "cacheDir"); exports2.cacheDir = cacheDir; function cacheFile(sourceFile, targetFile, tool, version4, arch) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { version4 = semver.clean(version4) || version4; arch = arch || os.arch(); core2.debug(`Caching tool ${tool} ${version4} ${arch}`); @@ -86709,7 +84857,7 @@ var require_tool_cache = __commonJS({ __name(findAllVersions, "findAllVersions"); exports2.findAllVersions = findAllVersions; function getManifestFromRepo(owner, repo, auth, branch = "master") { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { let releases = []; const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`; const http = new httpm.HttpClient("tool-cache"); @@ -86745,7 +84893,7 @@ var require_tool_cache = __commonJS({ __name(getManifestFromRepo, "getManifestFromRepo"); exports2.getManifestFromRepo = getManifestFromRepo; function findFromManifest(versionSpec, stable, manifest, archFilter = os.arch()) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const match = yield mm._findMatch(versionSpec, stable, manifest, archFilter); return match; }); @@ -86753,7 +84901,7 @@ var require_tool_cache = __commonJS({ __name(findFromManifest, "findFromManifest"); exports2.findFromManifest = findFromManifest; function _createExtractFolder(dest) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!dest) { dest = path.join(_getTempDirectory(), v4_1.default()); } @@ -86763,7 +84911,7 @@ var require_tool_cache = __commonJS({ } __name(_createExtractFolder, "_createExtractFolder"); function _createToolPath(tool, version4, arch) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const folderPath = path.join(_getCacheDirectory(), tool, semver.clean(version4) || version4, arch || ""); core2.debug(`destination ${folderPath}`); const markerPath = `${folderPath}.complete`; @@ -86844,7 +84992,7 @@ var require_tool_cache = __commonJS({ var require_output = __commonJS({ "lib/output.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -86859,24 +85007,24 @@ var require_output = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -86909,8 +85057,8 @@ var require_output = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.prFixesBody = exports2.getProblemPlural = exports2.getSummary = exports2.publishOutput = exports2.getCoverageStats = exports2.COMMIT_EMAIL = exports2.COMMIT_USER = void 0; - var core2 = __importStar5(require_core()); - var fs2 = __importStar5(require("fs")); + var core2 = __importStar3(require_core()); + var fs2 = __importStar3(require("fs")); var qodana_12 = (init_qodana(), __toCommonJS(qodana_exports)); var utils_12 = require_utils9(); var annotations_1 = require_annotations(); @@ -86975,7 +85123,7 @@ ${c.freshLines} lines analyzed, ${c.freshCoveredLines} lines covered`; exports2.getCoverageStats = getCoverageStats; function publishOutput(failedByThreshold, resultsDir, useAnnotations, postComment, isPrMode, execute) { var _a, _b; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!execute) { return; } @@ -87113,7 +85261,7 @@ Best, var require_annotations = __commonJS({ "lib/annotations.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -87128,24 +85276,24 @@ var require_annotations = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -87178,8 +85326,8 @@ var require_annotations = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.toAnnotationProperties = exports2.getGitHubCheckConclusion = exports2.parseSarif = exports2.publishAnnotations = exports2.ANNOTATION_NOTICE = exports2.ANNOTATION_WARNING = exports2.ANNOTATION_FAILURE = void 0; - var core2 = __importStar5(require_core()); - var fs2 = __importStar5(require("fs")); + var core2 = __importStar3(require_core()); + var fs2 = __importStar3(require("fs")); var utils_12 = require_utils9(); var output_12 = require_output(); function getQodanaHelpString() { @@ -87194,7 +85342,7 @@ var require_annotations = __commonJS({ var SUCCESS_STATUS = "success"; var MAX_ANNOTATIONS = 50; function publishAnnotations(name, problems, failedByThreshold, execute) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!execute) { return; } @@ -87326,7 +85474,7 @@ var require_annotations = __commonJS({ var require_utils9 = __commonJS({ "lib/utils.js"(exports2) { "use strict"; - var __createBinding5 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -87341,24 +85489,24 @@ var require_utils9 = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __setModuleDefault5 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); - var __importStar5 = exports2 && exports2.__importStar || function(mod) { + var __importStar3 = exports2 && exports2.__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)) - __createBinding5(result, mod, k); + __createBinding3(result, mod, k); } - __setModuleDefault5(result, mod); + __setModuleDefault3(result, mod); return result; }; - var __awaiter5 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter3 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -87389,23 +85537,23 @@ var require_utils9 = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __importDefault4 = exports2 && exports2.__importDefault || function(mod) { + var __importDefault2 = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.publishGitHubCheck = exports2.putReaction = exports2.updateComment = exports2.createComment = exports2.findCommentByTag = exports2.postResultsToPRComments = exports2.getWorkflowRunUrl = exports2.isNeedToUploadCache = exports2.restoreCaches = exports2.uploadCaches = exports2.uploadArtifacts = exports2.prepareAgent = exports2.pushQuickFixes = exports2.qodana = exports2.getInputs = exports2.ANALYSIS_STARTED_REACTION = exports2.ANALYSIS_FINISHED_REACTION = void 0; - var artifact = __importStar5(require_artifact_client2()); - var cache = __importStar5(require_cache2()); - var core2 = __importStar5(require_core()); - var exec = __importStar5(require_exec()); - var github2 = __importStar5(require_github()); - var glob = __importStar5(require_glob2()); - var tc = __importStar5(require_tool_cache()); + var artifact = __importStar3(require_artifact_client2()); + var cache = __importStar3(require_cache2()); + var core2 = __importStar3(require_core()); + var exec = __importStar3(require_exec()); + var github2 = __importStar3(require_github()); + var glob = __importStar3(require_glob2()); + var tc = __importStar3(require_tool_cache()); var annotations_1 = require_annotations(); var qodana_12 = (init_qodana(), __toCommonJS(qodana_exports)); - var path_1 = __importDefault4(require("path")); - var fs2 = __importStar5(require("fs")); - var os = __importStar5(require("os")); + var path_1 = __importDefault2(require("path")); + var fs2 = __importStar3(require("fs")); + var os = __importStar3(require("os")); var output_12 = require_output(); exports2.ANALYSIS_FINISHED_REACTION = "+1"; exports2.ANALYSIS_STARTED_REACTION = "eyes"; @@ -87432,7 +85580,7 @@ var require_utils9 = __commonJS({ __name(getInputs, "getInputs"); exports2.getInputs = getInputs; function qodana(inputs, args = []) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (args.length === 0) { args = (0, qodana_12.getQodanaScanArgs)(inputs.args, inputs.resultsDir, inputs.cacheDir); if (inputs.prMode && github2.context.payload.pull_request !== void 0) { @@ -87450,7 +85598,7 @@ var require_utils9 = __commonJS({ exports2.qodana = qodana; function pushQuickFixes(mode, commitMessage) { var _a; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (mode === qodana_12.NONE) { return; } @@ -87482,7 +85630,7 @@ var require_utils9 = __commonJS({ __name(pushQuickFixes, "pushQuickFixes"); exports2.pushQuickFixes = pushQuickFixes; function prepareAgent(args) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const arch = (0, qodana_12.getProcessArchName)(); const platform = (0, qodana_12.getProcessPlatformName)(); const expectedChecksum = (0, qodana_12.getQodanaSha256)(arch, platform); @@ -87510,7 +85658,7 @@ var require_utils9 = __commonJS({ __name(prepareAgent, "prepareAgent"); exports2.prepareAgent = prepareAgent; function uploadArtifacts(resultsDir, artifactName, execute) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!execute) { return; } @@ -87529,7 +85677,7 @@ var require_utils9 = __commonJS({ __name(uploadArtifacts, "uploadArtifacts"); exports2.uploadArtifacts = uploadArtifacts; function uploadCaches(cacheDir, primaryKey, reservedCacheKey, execute) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!execute) { return; } @@ -87552,7 +85700,7 @@ var require_utils9 = __commonJS({ __name(uploadCaches, "uploadCaches"); exports2.uploadCaches = uploadCaches; function restoreCaches(cacheDir, primaryKey, additionalCacheKey, execute) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { if (!execute) { return ""; } @@ -87601,7 +85749,7 @@ var require_utils9 = __commonJS({ exports2.getWorkflowRunUrl = getWorkflowRunUrl; function postResultsToPRComments(toolName, content, postComment) { var _a; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const pr = (_a = github2.context.payload.pull_request) !== null && _a !== void 0 ? _a : ""; if (!postComment || !pr) { return; @@ -87621,7 +85769,7 @@ ${comment_tag_pattern}`; __name(postResultsToPRComments, "postResultsToPRComments"); exports2.postResultsToPRComments = postResultsToPRComments; function findCommentByTag(client, tag) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { try { const { data: comments } = yield client.rest.issues.listComments(Object.assign(Object.assign({}, github2.context.repo), { issue_number: github2.context.issue.number })); const comment = comments.find((c) => { @@ -87638,7 +85786,7 @@ ${comment_tag_pattern}`; __name(findCommentByTag, "findCommentByTag"); exports2.findCommentByTag = findCommentByTag; function createComment(client, body) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { try { yield client.rest.issues.createComment({ owner: github2.context.repo.owner, @@ -87654,7 +85802,7 @@ ${comment_tag_pattern}`; __name(createComment, "createComment"); exports2.createComment = createComment; function updateComment(client, comment_id, body) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { try { yield client.rest.issues.updateComment({ owner: github2.context.repo.owner, @@ -87671,7 +85819,7 @@ ${comment_tag_pattern}`; exports2.updateComment = updateComment; function putReaction(newReaction, oldReaction) { var _a; - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const client = github2.getOctokit(getInputs().githubToken); const issue_number = (_a = github2.context.payload.pull_request) === null || _a === void 0 ? void 0 : _a.number; if (oldReaction !== "") { @@ -87695,7 +85843,7 @@ ${comment_tag_pattern}`; __name(putReaction, "putReaction"); exports2.putReaction = putReaction; function publishGitHubCheck(failedByThreshold, name, output) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const conclusion = (0, annotations_1.getGitHubCheckConclusion)(output.annotations, failedByThreshold); let sha = github2.context.sha; if (github2.context.payload.pull_request) { @@ -87714,7 +85862,7 @@ ${comment_tag_pattern}`; __name(publishGitHubCheck, "publishGitHubCheck"); exports2.publishGitHubCheck = publishGitHubCheck; function createCheck(client, conclusion, head_sha, name, output) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { yield client.rest.checks.create(Object.assign(Object.assign({}, github2.context.repo), { accept: "application/vnd.github.v3+json", status: "completed", @@ -87727,7 +85875,7 @@ ${comment_tag_pattern}`; } __name(createCheck, "createCheck"); function updateCheck(client, conclusion, check_run_id, output) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { yield client.rest.checks.update(Object.assign(Object.assign({}, github2.context.repo), { accept: "application/vnd.github.v3+json", status: "completed", @@ -87739,13 +85887,13 @@ ${comment_tag_pattern}`; } __name(updateCheck, "updateCheck"); function git(args, options = {}) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { return (yield exec.getExecOutput("git", args, options)).exitCode; }); } __name(git, "git"); function createPr(title, repo, base, head) { - return __awaiter5(this, void 0, void 0, function* () { + return __awaiter3(this, void 0, void 0, function* () { const prBodyFile = path_1.default.join(os.tmpdir(), "pr-body.txt"); fs2.writeFileSync(prBodyFile, (0, output_12.prFixesBody)(getWorkflowRunUrl())); yield exec.getExecOutput("gh", [ @@ -87771,7 +85919,7 @@ ${comment_tag_pattern}`; }); // lib/main.js -var __createBinding4 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { +var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -87786,24 +85934,24 @@ var __createBinding4 = exports && exports.__createBinding || (Object.create ? fu k2 = k; o[k2] = m[k]; }); -var __setModuleDefault4 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { +var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); -var __importStar4 = exports && exports.__importStar || function(mod) { +var __importStar2 = exports && exports.__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)) - __createBinding4(result, mod, k); + __createBinding2(result, mod, k); } - __setModuleDefault4(result, mod); + __setModuleDefault2(result, mod); return result; }; -var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { +var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -87835,9 +85983,9 @@ var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P }); }; Object.defineProperty(exports, "__esModule", { value: true }); -var core = __importStar4(require_core()); -var github = __importStar4(require_github()); -var io = __importStar4(require_io()); +var core = __importStar2(require_core()); +var github = __importStar2(require_github()); +var io = __importStar2(require_io()); var qodana_1 = (init_qodana(), __toCommonJS(qodana_exports)); var utils_1 = require_utils9(); var output_1 = require_output(); @@ -87847,7 +85995,7 @@ function setFailed(message) { } __name(setFailed, "setFailed"); function main() { - return __awaiter4(this, void 0, void 0, function* () { + return __awaiter2(this, void 0, void 0, function* () { try { const inputs = (0, utils_1.getInputs)(); if (inputs.pushFixes !== qodana_1.NONE && inputs.prMode && github.context.payload.pull_request !== void 0) { diff --git a/src/main/kotlin/org/jetbrains/qodana/Qodana.kt b/src/main/kotlin/org/jetbrains/qodana/Qodana.kt index 72159753..282465a4 100644 --- a/src/main/kotlin/org/jetbrains/qodana/Qodana.kt +++ b/src/main/kotlin/org/jetbrains/qodana/Qodana.kt @@ -14,7 +14,7 @@ import java.nio.file.attribute.PosixFilePermission class Installer { val log: Logger = org.gradle.api.logging.Logging.getLogger(Installer::class.java) companion object { - private const val VERSION = "2023.2.8" + private const val VERSION = "2023.2.9" private const val RELEASE_DOWNLOAD_URL = "https://github.com/JetBrains/qodana-cli/releases/download/v%s/qodana_%s_%s" fun getQodanaUrl(platform: String = getPlatformName(), arch: String = getArchName(), version: String = VERSION): String { diff --git a/vsts/QodanaScan/index.js b/vsts/QodanaScan/index.js index a229f0c1..147950ec 100644 --- a/vsts/QodanaScan/index.js +++ b/vsts/QodanaScan/index.js @@ -37,15 +37,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru var version, checksum; var init_cli = __esm({ "../common/cli.json"() { - version = "2023.2.8"; + version = "2023.2.9"; checksum = { - windows_x86_64: "045d850ed636798d1c7a131791740f25ed88ec0fd876de89df906a005c02e32a", - linux_arm64: "ed8f5c1e692d411fafab72a1f09819957bc234eadb8d94b19eb54cd64639f2e7", + windows_x86_64: "ad783e3d6e13a360725d44cb5ffa5c5fd8b5fa898e46c0232978361710276e02", + linux_arm64: "90b43711c9632d58ea384dff5e1f9c777c91d03988a3a8dae10e3298df23e4b1", darwin_arm64: "722ffb66a23fa0d6d8aef4dabf8b1e520bab04c7c1232b5d0d1859e7113dc6a8", darwin_x86_64: "cc7bf6af28bc26cbe7f4ff76906a1a87e19321082003edf4c014f6bdd4874c95", - windows_arm64: "b753315f835949d8b1ff5329e60f732c914c371d37352f23dc27c2c1f28c05e7", - linux_x86_64: "996bdd7e1df184dd8177a7b1fee4955f52dd8d26128d9375f60dd9a570dde2ed", - darwin_all: "4709f410a140b30b351002755e1c69133b0b808acf1c6823e2b631e1d305dbc9" + windows_arm64: "9cb88885d1380850a34f8e51a38fb1be012d2348312293c779d5b0a1b57b7daa", + linux_x86_64: "6131b22269b9392608341ede868875d46adf1b10d6751eb4caf64df7657ce71f", + darwin_all: "bebded982b84e1dda3d62db5ef8638dd22f9ff131206e6a5b6368662d178915a" }; } }); @@ -4116,9 +4116,9 @@ var require_semver_compare = __commonJS({ } }); -// ../node_modules/azure-pipelines-tool-lib/node_modules/uuid/lib/rng.js +// ../node_modules/uuid/lib/rng.js var require_rng = __commonJS({ - "../node_modules/azure-pipelines-tool-lib/node_modules/uuid/lib/rng.js"(exports2, module2) { + "../node_modules/uuid/lib/rng.js"(exports2, module2) { var crypto = require("crypto"); module2.exports = function nodeRNG() { return crypto.randomBytes(16); @@ -4126,9 +4126,9 @@ var require_rng = __commonJS({ } }); -// ../node_modules/azure-pipelines-tool-lib/node_modules/uuid/lib/bytesToUuid.js +// ../node_modules/uuid/lib/bytesToUuid.js var require_bytesToUuid = __commonJS({ - "../node_modules/azure-pipelines-tool-lib/node_modules/uuid/lib/bytesToUuid.js"(exports2, module2) { + "../node_modules/uuid/lib/bytesToUuid.js"(exports2, module2) { var byteToHex = []; for (i = 0; i < 256; ++i) { byteToHex[i] = (i + 256).toString(16).substr(1); @@ -4164,9 +4164,9 @@ var require_bytesToUuid = __commonJS({ } }); -// ../node_modules/azure-pipelines-tool-lib/node_modules/uuid/v4.js +// ../node_modules/uuid/v4.js var require_v4 = __commonJS({ - "../node_modules/azure-pipelines-tool-lib/node_modules/uuid/v4.js"(exports2, module2) { + "../node_modules/uuid/v4.js"(exports2, module2) { var rng = require_rng(); var bytesToUuid = require_bytesToUuid(); function v4(options, buf, offset) { @@ -4222,7 +4222,7 @@ var require_tool = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.scrape = exports2.extractZip = exports2.extractTar = exports2.extract7z = exports2.cacheFile = exports2.cacheDir = exports2.downloadTool = exports2.findLocalToolVersions = exports2.findLocalTool = exports2.evaluateVersions = exports2.cleanVersion = exports2.isExplicitVersion = exports2.prependPath = exports2.debug = void 0; + exports2.scrape = exports2.extractZip = exports2.extractTar = exports2.extract7z = exports2.cacheFile = exports2.cacheDir = exports2.downloadToolWithRetries = exports2.downloadTool = exports2.findLocalToolVersions = exports2.findLocalTool = exports2.evaluateVersions = exports2.cleanVersion = exports2.isExplicitVersion = exports2.prependPath = exports2.debug = void 0; var httpm = require_HttpClient(); var path = require("path"); var os = require("os"); @@ -4261,6 +4261,9 @@ var require_tool = __commonJS({ console.log("##vso[task.prependpath]" + toolPath); } exports2.prependPath = prependPath; + function delay(ms) { + return new Promise((resolve) => setTimeout(resolve, ms)); + } function isExplicitVersion(versionSpec) { let c = semver.clean(versionSpec); tl2.debug("isExplicit: " + c); @@ -4356,7 +4359,7 @@ var require_tool = __commonJS({ destPath = path.join(_getAgentTemp(), fileName); } tl2.mkdirP(path.dirname(destPath)); - console.log(tl2.loc("TOOL_LIB_Downloading", url)); + console.log(tl2.loc("TOOL_LIB_Downloading", url.replace(/sig=[^&]*/, "sig=-REDACTED-"))); tl2.debug("destination " + destPath); if (fs2.existsSync(destPath)) { throw new Error("Destination file path already exists"); @@ -4418,6 +4421,26 @@ var require_tool = __commonJS({ }); } exports2.downloadTool = downloadTool; + function downloadToolWithRetries(url, fileName, handlers, additionalHeaders, maxAttempts = 3, retryInterval = 500) { + return __awaiter2(this, void 0, void 0, function* () { + let attempt = 1; + let destinationPath = ""; + while (attempt <= maxAttempts && destinationPath == "") { + try { + destinationPath = yield downloadTool(url, fileName, handlers, additionalHeaders); + } catch (err) { + if (attempt === maxAttempts) + throw err; + const attemptInterval = attempt * retryInterval; + tl2.debug(`Attempt ${attempt} failed. Retrying after ${attemptInterval} ms`); + yield delay(attemptInterval); + attempt++; + } + } + return destinationPath; + }); + } + exports2.downloadToolWithRetries = downloadToolWithRetries; function _getContentLengthOfDownloadedFile(response) { let contentLengthHeader = response.message.headers["content-length"]; let parsedContentLength = parseInt(contentLengthHeader); diff --git a/vsts/QodanaScan/task.json b/vsts/QodanaScan/task.json index 95d2676c..a7d0be2f 100644 --- a/vsts/QodanaScan/task.json +++ b/vsts/QodanaScan/task.json @@ -10,7 +10,7 @@ "version": { "Major": 2023, "Minor": 2, - "Patch": 8 + "Patch": 9 }, "demands": [ "RemoteDockerServerOS -equals linux" diff --git a/vsts/vss-extension.json b/vsts/vss-extension.json index 05831932..a93938e2 100644 --- a/vsts/vss-extension.json +++ b/vsts/vss-extension.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "qodana", "name": "Qodana", - "version": "2023.2.8", + "version": "2023.2.9", "public": true, "publisher": "JetBrains", "targets": [