@mittwald/api-client-commons 4.251.0 → 4.251.1
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.
|
@@ -5,7 +5,9 @@ function isMutatingRequest(request) {
|
|
|
5
5
|
function configureConsistencyHandlingInterceptor(axios) {
|
|
6
6
|
let lastEventId = undefined;
|
|
7
7
|
axios.interceptors.request.use((config) => {
|
|
8
|
-
if (lastEventId !== undefined &&
|
|
8
|
+
if (lastEventId !== undefined &&
|
|
9
|
+
!isMutatingRequest(config) &&
|
|
10
|
+
config.headers["if-event-reached"] === undefined) {
|
|
9
11
|
config.headers["if-event-reached"] = lastEventId;
|
|
10
12
|
}
|
|
11
13
|
return config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/api-client-commons",
|
|
3
|
-
"version": "4.251.
|
|
3
|
+
"version": "4.251.1",
|
|
4
4
|
"author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Common types and utilities for mittwald API clients",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"optional": true
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "a7652dc265b17b35f3e536c3c78212af23810052"
|
|
84
84
|
}
|