@nuxtseo/sdk 0.5.9 → 0.5.11
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/dist/client.js +7 -2
- package/package.json +2 -2
package/dist/client.js
CHANGED
|
@@ -285,8 +285,13 @@ export function createSdkClient(options) {
|
|
|
285
285
|
};
|
|
286
286
|
if (canRetry && failure.retryable && attempt < retry.maxAttempts) {
|
|
287
287
|
const waited = await waitForRetry(retryDelay(attempt, response.headers.get('retry-after'), retry), resolvedExecuteOptions.signal, retry);
|
|
288
|
-
if (waited._tag === 'Err')
|
|
289
|
-
|
|
288
|
+
if (waited._tag === 'Err') {
|
|
289
|
+
// A request deadline must not erase the verified server failure.
|
|
290
|
+
// Explicit cancellation still returns the interruption.
|
|
291
|
+
return waited.error.cause instanceof DOMException && waited.error.cause.name === 'TimeoutError'
|
|
292
|
+
? err(failure)
|
|
293
|
+
: waited;
|
|
294
|
+
}
|
|
290
295
|
continue;
|
|
291
296
|
}
|
|
292
297
|
return err(failure);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtseo/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.11",
|
|
5
5
|
"description": "Descriptor-driven client for the Nuxt SEO public HTTP interface.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://nuxtseo.com/pro/api",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"node": ">=22"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxtseo/protocol": "^0.5.
|
|
35
|
+
"@nuxtseo/protocol": "^0.5.11"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "npm:typescript-native-bridge@6.0.3-bridge.16.tsgo.7.0.2"
|