v3.7.4: feat(#251, #291) add optional endpoint rate limit parsing, add deprecation warnings for v1/v2 rest clients, improve v5 types, bump dependencies

This commit is contained in:
tiagosiebler
2023-10-30 13:53:25 +00:00
parent 27192d23e6
commit 7c67d5f98f
3 changed files with 9 additions and 3 deletions

View File

@@ -155,6 +155,12 @@ const restClientOptions = {
/** Default: true. whether to try and post-process request exceptions. */
parse_exceptions?: boolean;
/** Default: false. Enable to parse/include per-API/endpoint rate limits in responses. */
parseAPIRateLimits?: boolean;
/** Default: false. Enable to throw error if rate limit parser fails */
throwOnFailedRateLimitParse?: boolean;
};
const API_KEY = 'xxx';