@base-web-kits/base-tools-web 1.3.5 → 1.3.6
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/base-tools-web.umd.global.js +4 -2
- package/dist/base-tools-web.umd.global.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -7
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/network/request.d.ts +14 -6
- package/dist/network/request.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/web/network/request.ts +18 -7
|
@@ -2233,9 +2233,11 @@ var baseToolsWeb = (() => {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
function handleStreamResponse(response, sseTask) {
|
|
2235
2235
|
return __async(this, null, function* () {
|
|
2236
|
-
if (!response.body)
|
|
2236
|
+
if (!response.body) throw new Error("Response body is null");
|
|
2237
2237
|
if (sseTask.parser === void 0) {
|
|
2238
|
-
|
|
2238
|
+
throw new Error(
|
|
2239
|
+
"Stream parser missing: Please set config.onMessage when enableChunked is true"
|
|
2240
|
+
);
|
|
2239
2241
|
}
|
|
2240
2242
|
const reader = response.body.getReader();
|
|
2241
2243
|
while (true) {
|