MCPcopy
hub / github.com/subquery/subql / imageVersions

Function imageVersions

packages/cli/src/controller/deploy-controller.ts:181–190  ·  view source on GitHub ↗
(name: string, version: string, authToken: string, url: string)

Source from the content-addressed store, hash-verified

179}
180
181export async function imageVersions(name: string, version: string, authToken: string, url: string): Promise<string[]> {
182 try {
183 const res = await getAxiosInstance(url, authToken).get<string[]>(
184 `info/images/${encodeURIComponent(name)}?version=${encodeURIComponent(version)}`
185 );
186 return res.data;
187 } catch (e) {
188 throw errorHandle(e, 'Failed to get image:');
189 }
190}
191
192export function splitEndpoints(endpointStr: string): string[] {
193 return endpointStr.split(',').map((e) => e.trim());

Callers 3

deployTestProjectFunction · 0.90
promptImageVersionFunction · 0.85

Calls 2

errorHandleFunction · 0.90
getAxiosInstanceFunction · 0.85

Tested by 1

deployTestProjectFunction · 0.72