ai 6.0.16 → 6.0.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.17
4
+
5
+ ### Patch Changes
6
+
7
+ - af0955e: streamText should throw timeout error with proper cause when it times out
8
+
3
9
  ## 6.0.16
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1013,7 +1013,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1013
1013
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1014
1014
 
1015
1015
  // src/version.ts
1016
- var VERSION = true ? "6.0.16" : "0.0.0-test";
1016
+ var VERSION = true ? "6.0.17" : "0.0.0-test";
1017
1017
 
1018
1018
  // src/util/download/download.ts
1019
1019
  var download = async ({ url }) => {
@@ -6058,7 +6058,7 @@ var DefaultStreamTextResult = class {
6058
6058
  async flush(controller) {
6059
6059
  try {
6060
6060
  if (recordedSteps.length === 0) {
6061
- const error = new NoOutputGeneratedError({
6061
+ const error = (abortSignal == null ? void 0 : abortSignal.aborted) ? abortSignal.reason : new NoOutputGeneratedError({
6062
6062
  message: "No output generated. Check the stream for errors."
6063
6063
  });
6064
6064
  self._finishReason.reject(error);