intelicoreact 1.3.79 → 1.3.80
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.
|
@@ -96,10 +96,10 @@ class ApiUtils extends _Utils.default {
|
|
|
96
96
|
if (typeof getBodyAs === 'string' && getBodyAs in response && typeof response[getBodyAs] === 'function') {
|
|
97
97
|
return response[getBodyAs];
|
|
98
98
|
}
|
|
99
|
-
if (contentType.includes('text/csv')) {
|
|
99
|
+
if (contentType !== null && contentType !== void 0 && contentType.includes('text/csv')) {
|
|
100
100
|
return response.blob;
|
|
101
101
|
}
|
|
102
|
-
return contentType.includes(
|
|
102
|
+
if (contentType) return contentType.includes("json") ? response.json : response.text;
|
|
103
103
|
})();
|
|
104
104
|
|
|
105
105
|
// обработка случаев краша метода json при отсутствии тела ответа
|