async getManifest()

in src/ems_client.ts [285:304]


  async getManifest<T>(endpointUrl: string): Promise<T> {
    try {
      const url = extendUrl(endpointUrl, { query: this._queryParams });
      const response = await this._fetchWithTimeout(url);
      if (!response.ok) {
        throw new Error(response.statusText);
      }
      if (response) {
        return (await response.json()) as Promise<T>;
      } else {
        throw new Error('Response not found');
      }
    } catch (e) {
      if (e instanceof Error) {
        throw e;
      } else {
        throw new Error('Unknown error');
      }
    }
  }