ref: rename .getDistributables()

This commit is contained in:
AJ ONeal
2024-09-13 08:33:33 +00:00
parent 3364dcb075
commit e3e61ca256
12 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ let pkgMap = {
musl: ['tar.gz', 'tar.xz'],
};
async function getAllReleases(request) {
async function getDistributables(request) {
let all = {
releases: [],
download: '',
@@ -174,10 +174,10 @@ async function getAllReleases(request) {
return all;
}
module.exports = getAllReleases;
module.exports = getDistributables;
if (module === require.main) {
getAllReleases(require('@root/request')).then(function (all) {
getDistributables(require('@root/request')).then(function (all) {
all = require('../_webi/normalize.js')(all);
console.info(JSON.stringify(all));
//console.info(JSON.stringify(all, null, 2));