fix: implement flavor across the app

This commit is contained in:
waterplea
2024-08-20 18:53:55 +04:00
parent befa9eb16d
commit fa93e195cb
20 changed files with 283 additions and 236 deletions

View File

@@ -521,7 +521,7 @@ export class MockApiService extends ApiService {
versionRange: string,
): Promise<GetPackageRes> {
await pauseFor(2000)
if (!versionRange) {
if (!versionRange || versionRange === '=*') {
return Mock.RegistryPackages[id]
} else {
return Mock.OtherPackageVersions[id][versionRange]