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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user