Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Dec 15, 2023
1 parent 91f6289 commit b96a879
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -32,23 +32,23 @@ with several improvements that we describe below:
- **Resource-scoped SDK methods**: Endpoints are scoped under their resource. For
example, instead of `courier.deleteBrands` the SDK now reads `courier.brands.delete(...)`
- **Docs on Hover**: All endpoint and parameter level documentation that you see
on our docs website now also embedded directly within the SDKs.
on our docs website is now embedded directly within the SDKs.
- **Retries with exponential backoff**: The SDK will automatically retry failures with
exponential backoff. You can configure the retries by setting `maxRetries`.
```typescript
const response = courier.send(..., {
maxReries: 0 // set to 0 if you want to disable retries
})
```
- **Configurable Timeouts**: The SDK defaults to 60 second timeout. You can also
- **Configurable Timeouts**: The SDK defaults to a 60 second timeout. You can also
configure this value per-request.
```typescript
const response = courier.send(..., {
timeoutInSeconds: 45 // set to 45 seconds for this particular request
})
```
- **Support for multiple runtimes**: The SDK uses global fetch when available, otherwise
defaults to nod-fetch. This means you can use Courier in multiple runtimes; Node.js,
defaults to node-fetch. This means you can use Courier in multiple runtimes; Node.js,
Vercel, and Cloudflare Workers.

### v3 to v4
Expand Down

0 comments on commit b96a879

Please sign in to comment.