parent
7188cb1e62
commit
17e88b6567
|
@ -100154,10 +100154,12 @@ class BaseDistribution {
|
||||||
return response.result || [];
|
return response.result || [];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
getMirrorUrVersions() {
|
getMirrorUrlVersions() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const initialUrl = this.getDistributionMirrorUrl();
|
const initialUrl = this.getDistributionMirrorUrl();
|
||||||
|
core.info('initialUrl from getDistributionMirrorUrl ' + initialUrl);
|
||||||
const dataUrl = `${initialUrl}/index.json`;
|
const dataUrl = `${initialUrl}/index.json`;
|
||||||
|
core.info('dataUrl from index ' + dataUrl);
|
||||||
const response = yield this.httpClient.getJson(dataUrl);
|
const response = yield this.httpClient.getJson(dataUrl);
|
||||||
return response.result || [];
|
return response.result || [];
|
||||||
});
|
});
|
||||||
|
@ -100726,7 +100728,7 @@ class OfficialBuilds extends base_distribution_1.default {
|
||||||
}
|
}
|
||||||
downloadFromMirrorURL() {
|
downloadFromMirrorURL() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const nodeJsVersions = yield this.getMirrorUrVersions();
|
const nodeJsVersions = yield this.getMirrorUrlVersions();
|
||||||
core.info('nodeJsVersions from getMirrorUrVersions ' + nodeJsVersions);
|
core.info('nodeJsVersions from getMirrorUrVersions ' + nodeJsVersions);
|
||||||
const versions = this.filterVersions(nodeJsVersions);
|
const versions = this.filterVersions(nodeJsVersions);
|
||||||
core.info('versions from filterVersions ' + versions);
|
core.info('versions from filterVersions ' + versions);
|
||||||
|
|
|
@ -105,9 +105,12 @@ export default abstract class BaseDistribution {
|
||||||
return response.result || [];
|
return response.result || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async getMirrorUrVersions(): Promise<INodeVersion[]> {
|
protected async getMirrorUrlVersions(): Promise<INodeVersion[]> {
|
||||||
const initialUrl = this.getDistributionMirrorUrl();
|
const initialUrl = this.getDistributionMirrorUrl();
|
||||||
|
core.info('initialUrl from getDistributionMirrorUrl '+initialUrl);
|
||||||
|
|
||||||
const dataUrl = `${initialUrl}/index.json`;
|
const dataUrl = `${initialUrl}/index.json`;
|
||||||
|
core.info('dataUrl from index '+dataUrl);
|
||||||
|
|
||||||
const response = await this.httpClient.getJson<INodeVersion[]>(dataUrl);
|
const response = await this.httpClient.getJson<INodeVersion[]>(dataUrl);
|
||||||
return response.result || [];
|
return response.result || [];
|
||||||
|
|
|
@ -317,7 +317,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async downloadFromMirrorURL() {
|
protected async downloadFromMirrorURL() {
|
||||||
const nodeJsVersions = await this.getMirrorUrVersions();
|
const nodeJsVersions = await this.getMirrorUrlVersions();
|
||||||
core.info('nodeJsVersions from getMirrorUrVersions '+nodeJsVersions);
|
core.info('nodeJsVersions from getMirrorUrVersions '+nodeJsVersions);
|
||||||
const versions = this.filterVersions(nodeJsVersions);
|
const versions = this.filterVersions(nodeJsVersions);
|
||||||
core.info('versions from filterVersions '+versions);
|
core.info('versions from filterVersions '+versions);
|
||||||
|
|
Loading…
Reference in New Issue