@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.
@@ -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) return "Stream is empty";
2236
+ if (!response.body) throw new Error("Response body is null");
2237
2237
  if (sseTask.parser === void 0) {
2238
- return "onMessage is undefined \u2192 Stream parser skipped";
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) {