@dereekb/zoho 13.6.15 → 13.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -0
- package/index.esm.js +1 -0
- package/nestjs/package.json +5 -5
- package/package.json +4 -4
- package/src/lib/zoho.limit.d.ts +7 -0
package/index.cjs.js
CHANGED
|
@@ -3345,6 +3345,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
3345
3345
|
var rateLimiter = util.resetPeriodPromiseRateLimiter(defaultConfig);
|
|
3346
3346
|
return fetch.rateLimitedFetchHandler({
|
|
3347
3347
|
rateLimiter: rateLimiter,
|
|
3348
|
+
maxRetries: config === null || config === void 0 ? void 0 : config.maxRetries,
|
|
3348
3349
|
/**
|
|
3349
3350
|
* Inspects each response for Zoho rate limit headers and updates the limiter accordingly.
|
|
3350
3351
|
* Returns `true` to signal a retry when a 429 status is received.
|
package/index.esm.js
CHANGED
|
@@ -3343,6 +3343,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
3343
3343
|
var rateLimiter = resetPeriodPromiseRateLimiter(defaultConfig);
|
|
3344
3344
|
return rateLimitedFetchHandler({
|
|
3345
3345
|
rateLimiter: rateLimiter,
|
|
3346
|
+
maxRetries: config === null || config === void 0 ? void 0 : config.maxRetries,
|
|
3346
3347
|
/**
|
|
3347
3348
|
* Inspects each response for Zoho rate limit headers and updates the limiter accordingly.
|
|
3348
3349
|
* Returns `true` to signal a retry when a 429 status is received.
|
package/nestjs/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho/nestjs",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.17",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/nestjs": "13.6.
|
|
6
|
-
"@dereekb/rxjs": "13.6.
|
|
7
|
-
"@dereekb/util": "13.6.
|
|
8
|
-
"@dereekb/zoho": "13.6.
|
|
5
|
+
"@dereekb/nestjs": "13.6.17",
|
|
6
|
+
"@dereekb/rxjs": "13.6.17",
|
|
7
|
+
"@dereekb/util": "13.6.17",
|
|
8
|
+
"@dereekb/zoho": "13.6.17",
|
|
9
9
|
"@nestjs/common": "^11.1.17",
|
|
10
10
|
"@nestjs/config": "^4.0.3",
|
|
11
11
|
"express": "^5.0.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.17",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./nestjs": {
|
|
6
6
|
"module": "./nestjs/index.esm.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@dereekb/nestjs": "13.6.
|
|
21
|
-
"@dereekb/rxjs": "13.6.
|
|
22
|
-
"@dereekb/util": "13.6.
|
|
20
|
+
"@dereekb/nestjs": "13.6.17",
|
|
21
|
+
"@dereekb/rxjs": "13.6.17",
|
|
22
|
+
"@dereekb/util": "13.6.17",
|
|
23
23
|
"@nestjs/common": "^11.1.17",
|
|
24
24
|
"@nestjs/config": "^4.0.3",
|
|
25
25
|
"express": "^5.0.0",
|
package/src/lib/zoho.limit.d.ts
CHANGED
|
@@ -41,6 +41,13 @@ export interface ZohoRateLimitedFetchHandlerConfig {
|
|
|
41
41
|
* Defaults to {@link DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD} (1 minute).
|
|
42
42
|
*/
|
|
43
43
|
readonly resetPeriod?: Milliseconds;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum number of automatic retries when a 429 Too Many Requests response is received.
|
|
46
|
+
*
|
|
47
|
+
* Defaults to 1. Set to 0 to disable retries entirely, which causes the 429 error to be
|
|
48
|
+
* immediately thrown to the caller instead of waiting for the rate limit reset.
|
|
49
|
+
*/
|
|
50
|
+
readonly maxRetries?: number;
|
|
44
51
|
/**
|
|
45
52
|
* Optional callback invoked when a 429 Too Many Requests response is received.
|
|
46
53
|
*
|