mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-10 20:37:29 -08:00
5ca2148c7e
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
13 lines
362 B
TypeScript
13 lines
362 B
TypeScript
import { IVersion } from '@/Interface';
|
|
import { INSTANCE_ID_HEADER } from '@/constants';
|
|
import { get } from '@/utils';
|
|
|
|
export async function getNextVersions(
|
|
endpoint: string,
|
|
version: string,
|
|
instanceId: string,
|
|
): Promise<IVersion[]> {
|
|
const headers = { [INSTANCE_ID_HEADER as string]: instanceId };
|
|
return await get(endpoint, version, {}, headers);
|
|
}
|