@geode/opengeodeweb-front 10.35.0-rc.1 → 10.35.0-rc.2
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.
|
@@ -83,7 +83,7 @@ async function api_fetch(
|
|
|
83
83
|
timeout,
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
request_error_function(error: unknown) {
|
|
86
|
+
async request_error_function(error: unknown) {
|
|
87
87
|
microservice.stop_request();
|
|
88
88
|
const typedError = toFetchErrorLike(error);
|
|
89
89
|
if (skip_feedback_error !== true) {
|
|
@@ -95,17 +95,17 @@ async function api_fetch(
|
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
97
|
if (request_error_function) {
|
|
98
|
-
|
|
98
|
+
await request_error_function(error);
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
|
-
response_function(data: unknown) {
|
|
101
|
+
async response_function(data: unknown) {
|
|
102
102
|
endRequestLog(microservice, schema, requestStartingTime);
|
|
103
103
|
microservice.stop_request();
|
|
104
104
|
if (response_function) {
|
|
105
|
-
response_function(data);
|
|
105
|
+
await response_function(data);
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
response_error_function(response: unknown) {
|
|
108
|
+
async response_error_function(response: unknown) {
|
|
109
109
|
microservice.stop_request();
|
|
110
110
|
const typedResponse = toFetchErrorResponseLike(response);
|
|
111
111
|
if (skip_feedback_error !== true) {
|
|
@@ -117,7 +117,7 @@ async function api_fetch(
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
if (response_error_function) {
|
|
120
|
-
|
|
120
|
+
await response_error_function(response);
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
validation_error_function({ code, name, error }) {
|
package/package.json
CHANGED