From 85365c8ace2a1729af272e695f3cf521e2d0d192 Mon Sep 17 00:00:00 2001 From: Oj Date: Fri, 19 Mar 2021 20:38:27 +0000 Subject: [PATCH] [Base] Make getting GitHub API info async --- src/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 0ea5d39..393e39a 100644 --- a/src/index.js +++ b/src/index.js @@ -124,8 +124,8 @@ for (const parentRepo of ModuleRepos) { continue; } - const githubInfo = await getGithubInfo(repo[0]); - + let githubInfo = getGithubInfo(repo[0]); + // console.log(repo); const url = `https://github.com/${repo[0]}.git`; @@ -181,6 +181,8 @@ for (const parentRepo of ModuleRepos) { const jsHash = createHash('sha512').update(jsCode).digest('hex'); + githubInfo = await githubInfo; // GitHub info is gotten async during other stuff to reduce time + const manifestJson = { name: manifest.name, description: manifest.description,