seam 1.235.0 → 1.236.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 +9 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -399,7 +399,7 @@ const pages = seam.createPaginator(
|
|
|
399
399
|
)
|
|
400
400
|
|
|
401
401
|
for await (const device of pages.flatten()) {
|
|
402
|
-
console.log(
|
|
402
|
+
console.log(device.display_name)
|
|
403
403
|
}
|
|
404
404
|
```
|
|
405
405
|
|
|
@@ -523,7 +523,8 @@ default.
|
|
|
523
523
|
|
|
524
524
|
The Axios client and retry behavior may be configured with custom initiation options
|
|
525
525
|
via [`axiosOptions`][axiosOptions] and [`axiosRetryOptions`][axiosRetryOptions].
|
|
526
|
-
Options are
|
|
526
|
+
Options are shallow merged with the default options:
|
|
527
|
+
each provided top-level option replaces the default value.
|
|
527
528
|
|
|
528
529
|
By default, the SDK makes up to three attempts: the initial request and two
|
|
529
530
|
retries. Retries are limited to `GET`, `HEAD`, `OPTIONS`, `PUT`, and `DELETE`
|
|
@@ -586,6 +587,12 @@ console.log(`${request.method} ${request.url}`, JSON.stringify(request.body))
|
|
|
586
587
|
const devices = await request.execute()
|
|
587
588
|
```
|
|
588
589
|
|
|
590
|
+
A `SeamHttpRequest` is sent at most once.
|
|
591
|
+
Awaiting the same request again,
|
|
592
|
+
or calling `execute`, `then`, `catch`, or `finally` more than once,
|
|
593
|
+
always returns the result of the first execution
|
|
594
|
+
and never repeats the HTTP request.
|
|
595
|
+
|
|
589
596
|
#### Serializing URL search params
|
|
590
597
|
|
|
591
598
|
The Seam API parses URL search params as complex types.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seam",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.236.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.34.
|
|
79
|
-
"@seamapi/http": "2.23.
|
|
78
|
+
"@seamapi/cli": "0.34.1",
|
|
79
|
+
"@seamapi/http": "2.23.7",
|
|
80
80
|
"@seamapi/webhook": "1.4.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|