@codebit-programando-solucoes/codebit-web 1.1.10 → 1.1.11
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/dist/index.cjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -196,7 +196,7 @@ async function makeRequest(url, options = {}) {
|
|
|
196
196
|
inferredResponseType = contentType?.includes('application/json') ? 'json' : isBinaryContent(contentType) ? 'blob' : 'text';
|
|
197
197
|
const finalResponseType = responseType || inferredResponseType;
|
|
198
198
|
let data;
|
|
199
|
-
data = 'json' === finalResponseType ? await response.json() : 'blob' === finalResponseType ? await response.blob() : 'arraybuffer' === finalResponseType ? await response.arrayBuffer() : await response.text();
|
|
199
|
+
data = 'json' === finalResponseType ? await response.json() : 'blob' === finalResponseType ? await response.blob() : 'arraybuffer' === finalResponseType ? await response.arrayBuffer() : 'stream' === finalResponseType ? response.body : await response.text();
|
|
200
200
|
return {
|
|
201
201
|
data,
|
|
202
202
|
status: response.status,
|