ai 5.0.113 → 5.0.114

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.mjs CHANGED
@@ -684,7 +684,7 @@ import {
684
684
  } from "@ai-sdk/provider-utils";
685
685
 
686
686
  // src/version.ts
687
- var VERSION = true ? "5.0.113" : "0.0.0-test";
687
+ var VERSION = true ? "5.0.114" : "0.0.0-test";
688
688
 
689
689
  // src/util/download/download.ts
690
690
  var download = async ({ url }) => {
@@ -2773,7 +2773,12 @@ function writeToServerResponse({
2773
2773
  headers,
2774
2774
  stream
2775
2775
  }) {
2776
- response.writeHead(status != null ? status : 200, statusText, headers);
2776
+ const statusCode = status != null ? status : 200;
2777
+ if (statusText !== void 0) {
2778
+ response.writeHead(statusCode, statusText, headers);
2779
+ } else {
2780
+ response.writeHead(statusCode, headers);
2781
+ }
2777
2782
  const reader = stream.getReader();
2778
2783
  const read = async () => {
2779
2784
  try {