Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async getCatalog(
request: CatalogRequest,
abortSignal?: AbortSignal
): Promise {
const builder = await this.getRequestBuilder(
"config",
undefined,
abortSignal
);
return ConfigApi.getCatalog(builder, {
catalogHrn: this.hrn,
billingTag: request.getBillingTag()
}).catch((err: Response) =>
Promise.reject(
`Can't load catalog configuration. HRN: ${this.hrn}, error: ${err}`
)
);
}