@tinycloud/sdk-services 3.2.0-beta.7 → 3.2.0
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 +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5246,14 +5246,12 @@ async function responseError(service, message, response) {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
} catch {
|
|
5248
5248
|
}
|
|
5249
|
-
|
|
5249
|
+
return serviceError(
|
|
5250
|
+
response.status === 408 || response.status === 504 ? ErrorCodes.TIMEOUT : ErrorCodes.NETWORK_ERROR,
|
|
5251
|
+
`${message}: ${response.status} ${detail}`,
|
|
5250
5252
|
service,
|
|
5251
|
-
|
|
5253
|
+
{ meta: { status: response.status, statusText: response.statusText } }
|
|
5252
5254
|
);
|
|
5253
|
-
return {
|
|
5254
|
-
...error,
|
|
5255
|
-
meta: { ...error.meta, status: response.status, statusText: response.statusText }
|
|
5256
|
-
};
|
|
5257
5255
|
}
|
|
5258
5256
|
async function* parseSseStream(body, signal) {
|
|
5259
5257
|
if (!body) {
|