@webpieces/http-client-browser 0.4.894 → 0.4.896
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 +6 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -29,5 +29,9 @@ A browser cannot hold service credentials, so a contract with an `oidc(...)` end
|
|
|
29
29
|
|
|
30
30
|
Calls have a **30-second default timeout**, including reading the response body. Configure
|
|
31
31
|
`CallRegistry` from `@webpieces/core-util` for ALL, API or API-method overrides and explicit retry
|
|
32
|
-
strategies
|
|
33
|
-
POSTs may not be idempotent.
|
|
32
|
+
strategies — the same `CallRegistry.execute` the node and Cloud Tasks clients run. Any strategy
|
|
33
|
+
replaces the entire timeout ladder; there is no default retry because POSTs may not be idempotent.
|
|
34
|
+
Opt a contract in with `CallRegistry.setStrategy(new RetryStrategy(...).run, CatalogApi)`: it retries
|
|
35
|
+
only a `CallOutcome.TRANSIENT_FAILURE` (from `ClientRegistry.classify`) on a `READ` /
|
|
36
|
+
`WRITE_IDEMPOTENT` endpoint, logs each retried attempt as `[API-client-attempt-TRANSIENT]`, and gives
|
|
37
|
+
up with a 502 `ApiRetriesExhaustedError`. See [client timeouts and testing](../../../docs/client-timeouts.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webpieces/http-client-browser",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.896",
|
|
4
4
|
"description": "Browser HTTP client for webpieces: DI-free (React or Angular), app-managed context store, no AsyncLocalStorage",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@webpieces/core-util": "0.4.
|
|
26
|
-
"@webpieces/http-client-core": "0.4.
|
|
25
|
+
"@webpieces/core-util": "0.4.896",
|
|
26
|
+
"@webpieces/http-client-core": "0.4.896"
|
|
27
27
|
}
|
|
28
28
|
}
|