mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-28 21:31:04 +00:00
chore: Bump API (#263)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user