From 152dfd0df215e68f1f684d42e88eaf586b1ae4b6 Mon Sep 17 00:00:00 2001 From: leon Date: Wed, 24 May 2023 21:04:11 -0400 Subject: [PATCH] Update package.json (#28) * Update package.json * Update README.md --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bff7b3b..0f4e303 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Import and use it. Retry for `Promise` is supported as long as the `runtime` has | maxAttempts | number | Yes | - | The max attempts to try | | backOff | number | No | 0 | number in `ms` to back off. If not set, then no wait | | backOffPolicy | enum | No | FixedBackOffPolicy | can be fixed or exponential | -| exponentialOption | object | No | `{ maxInterval: 2000, multiplier: 2 }` | This is for the `ExponentialBackOffPolicy`
The max interval each wait and the multiplier for the `backOff`. | +| exponentialOption | object | No | `{ maxInterval: 2000, multiplier: 2 }` | This is for the `ExponentialBackOffPolicy`
The max interval each wait and the multiplier for the `backOff`. For `backoffStrategy`, more details below | | doRetry | (e: any) => boolean | No | - | Function with error parameter to decide if repetition is necessary. | | value | Error/Exception class | No | [ ] | An array of Exception types that are retryable. | | useConsoleLogger | boolean | No | true | Print errors on console. | diff --git a/package.json b/package.json index ec50aaa..33d3b66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typescript-retry-decorator", - "version": "2.2.0", + "version": "2.3.0", "description": "A simple retry decorator for typescript with no dependency.", "main": "dist/index.js", "types": "dist/index.d.ts",