@eka-care/ekascribe-ts-sdk 1.4.34 → 1.4.35
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.
|
@@ -6,6 +6,7 @@ export default async function fetchWrapper(url, options = {}, timeoutMs = API_TI
|
|
|
6
6
|
try {
|
|
7
7
|
// Set up timeout
|
|
8
8
|
timeoutId = setTimeout(() => {
|
|
9
|
+
console.log('request aborted due to timeout');
|
|
9
10
|
controller.abort();
|
|
10
11
|
}, timeoutMs);
|
|
11
12
|
const newHeaders = new Headers(options.headers);
|
|
@@ -25,7 +26,6 @@ export default async function fetchWrapper(url, options = {}, timeoutMs = API_TI
|
|
|
25
26
|
if (response.status === 401 || response.status === 403) {
|
|
26
27
|
console.log('unauthorized - fetch wrapper ', response.status);
|
|
27
28
|
}
|
|
28
|
-
// Always return the response, even for error status codes
|
|
29
29
|
return response;
|
|
30
30
|
}
|
|
31
31
|
catch (error) {
|