feat: malware warning modal changes (#6721)

* feat: improved warning modals

* fix: qa

* feat: install to play and update to play changes

* fix: dont warn for server projects as already reviewed

* fix: lint
This commit is contained in:
Calum H.
2026-07-14 20:47:10 +00:00
committed by GitHub
parent 8cca911775
commit 905204cc5f
58 changed files with 1244 additions and 1351 deletions
@@ -73,6 +73,18 @@ export class LabrinthVersionsV2Module extends AbstractModule {
})
}
public async getVersionFromFileHash(
hash: string,
algorithm: keyof Labrinth.Versions.v2.VersionFileHash,
): Promise<Labrinth.Versions.v2.Version> {
return this.client.request<Labrinth.Versions.v2.Version>(`/version_file/${hash}`, {
api: 'labrinth',
version: 2,
method: 'GET',
params: { algorithm },
})
}
/**
* Get multiple versions by IDs (v2)
*