This commit is contained in:
Aparna Jyothi 2025-01-31 11:51:22 +05:30
parent 7188cb1e62
commit 17e88b6567
3 changed files with 9 additions and 4 deletions

6
dist/setup/index.js vendored
View file

@ -100154,10 +100154,12 @@ class BaseDistribution {
return response.result || [];
});
}
getMirrorUrVersions() {
getMirrorUrlVersions() {
return __awaiter(this, void 0, void 0, function* () {
const initialUrl = this.getDistributionMirrorUrl();
core.info('initialUrl from getDistributionMirrorUrl ' + initialUrl);
const dataUrl = `${initialUrl}/index.json`;
core.info('dataUrl from index ' + dataUrl);
const response = yield this.httpClient.getJson(dataUrl);
return response.result || [];
});
@ -100726,7 +100728,7 @@ class OfficialBuilds extends base_distribution_1.default {
}
downloadFromMirrorURL() {
return __awaiter(this, void 0, void 0, function* () {
const nodeJsVersions = yield this.getMirrorUrVersions();
const nodeJsVersions = yield this.getMirrorUrlVersions();
core.info('nodeJsVersions from getMirrorUrVersions ' + nodeJsVersions);
const versions = this.filterVersions(nodeJsVersions);
core.info('versions from filterVersions ' + versions);