chore: Bump API (#263)

This commit is contained in:
oSumAtrIX
2024-11-06 01:36:41 +01:00
committed by GitHub
parent 486e9ef62e
commit 68f8c1fd59
8 changed files with 37 additions and 39 deletions

View File

@@ -41,6 +41,15 @@ async function patches(): Promise<PatchesData> {
const json = await get_json('v3/patches/list');
const packagesWithCount: { [key: string]: number } = {};
json.forEach((patch) => {
if (!patch.compatiblePackages) return;
patch.compatiblePackages = Object.keys(patch.compatiblePackages).map((name) => ({
name,
versions: patch.compatiblePackages[name]
}));
});
// gets packages and patch count
for (let i = 0; i < json.length; i++) {
json[i].compatiblePackages?.forEach((pkg: CompatiblePackage) => {