mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-12-17 10:52:34 +08:00
semver range
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user