mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
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:
@@ -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)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user