Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async getRequestBuilder(
builderType: ApiName,
abortSignal?: AbortSignal
): Promise {
return RequestFactory.create(
builderType,
this.apiVersion,
this.settings,
HRN.fromString(this.hrn),
abortSignal
).catch(err =>
Promise.reject(
`Error retrieving from cache builder for resource "${this.hrn}" and api: "${builderType}.\n${err}"`
)
);
}
private async getRequestBuilder(
builderType: ApiName,
abortSignal?: AbortSignal
): Promise {
return RequestFactory.create(
builderType,
this.apiVersion,
this.settings,
HRN.fromString(this.hrn),
abortSignal
).catch(err =>
Promise.reject(
`Error retrieving from cache builder for resource "${this.hrn}" and api: "${builderType}.\n${err}"`
)
);
}