1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-12-17 10:52:34 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

semver range

This commit is contained in:
sunnylqm
2025-05-15 22:13:42 +08:00
parent 002e8662d6
commit 8c31ee5762
10 changed files with 181 additions and 203 deletions

View File

@@ -11,7 +11,7 @@ import {
credentialFile,
defaultEndpoint,
} from './utils/constants';
import type { Session } from 'types';
import type { Session, Package } from 'types';
import FormData from 'form-data';
import { t } from './utils/i18n';
@@ -177,3 +177,8 @@ export async function uploadFile(fn: string, key?: string) {
// const body = await response.json();
return { hash: key || formData.key };
}
export const getAllPackages = async (appId: string) => {
const { data } = await get(`/app/${appId}/package/list?limit=1000`);
return data as Package[] | undefined | null;
};