seam 1.258.0 → 1.260.0
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/README.md +12 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -604,6 +604,18 @@ Retries use exponential backoff with jitter: approximately 200–240 ms before
|
|
|
604
604
|
the first retry and 400–480 ms before the second. A longer `Retry-After` header
|
|
605
605
|
is honored. The request timeout is reset for each attempt.
|
|
606
606
|
|
|
607
|
+
Retries are configured per client. If your application has its own retry
|
|
608
|
+
behavior for some calls, create a second client with retries disabled and send
|
|
609
|
+
those calls through it, while other calls keep the default retries:
|
|
610
|
+
|
|
611
|
+
```ts
|
|
612
|
+
const seam = Seam.fromApiKey('some-api-key')
|
|
613
|
+
|
|
614
|
+
const seamWithoutRetries = Seam.fromApiKey('some-api-key', {
|
|
615
|
+
axiosRetryOptions: { retries: 0 },
|
|
616
|
+
})
|
|
617
|
+
```
|
|
618
|
+
|
|
607
619
|
[axiosOptions]: https://axios-http.com/docs/config_defaults
|
|
608
620
|
[axiosRetryOptions]: https://github.com/softonic/axios-retry
|
|
609
621
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seam",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.260.0",
|
|
4
4
|
"description": "JavaScript SDK for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
},
|
|
76
76
|
"packageManager": "npm@11.19.0",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@seamapi/cli": "0.
|
|
79
|
-
"@seamapi/http": "2.
|
|
78
|
+
"@seamapi/cli": "0.49.0",
|
|
79
|
+
"@seamapi/http": "2.48.0",
|
|
80
80
|
"@seamapi/webhook": "1.5.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|