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 getVersions(
request: CatalogVersionRequest,
abortSignal?: AbortSignal
): Promise {
const startVersion = request.getStartVersion() || -1;
let endVersion = request.getEndVersion();
if (endVersion === undefined) {
endVersion = await this.getLatestVersion(request);
}
const builder = await this.getRequestBuilder(
"metadata",
HRN.fromString(this.hrn),
abortSignal
).catch(error => Promise.reject(error));
return MetadataApi.listVersions(builder, {
startVersion,
endVersion,
billingTag: request.getBillingTag()
});
}