Skip to content

Commit

Permalink
Update package.json (#28)
Browse files Browse the repository at this point in the history
* Update package.json

* Update README.md
  • Loading branch information
vcfvct authored May 25, 2023
1 parent 6311d3e commit 152dfd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` <br/> The max interval each wait and the multiplier for the `backOff`. |
| exponentialOption | object | No | `{ maxInterval: 2000, multiplier: 2 }` | This is for the `ExponentialBackOffPolicy` <br/> 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. |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 152dfd0

Please sign in to comment.