ai 6.0.0-beta.156 → 6.0.0-beta.159

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
@@ -866,7 +866,7 @@ import {
866
866
  } from "@ai-sdk/provider-utils";
867
867
 
868
868
  // src/version.ts
869
- var VERSION = true ? "6.0.0-beta.156" : "0.0.0-test";
869
+ var VERSION = true ? "6.0.0-beta.159" : "0.0.0-test";
870
870
 
871
871
  // src/util/download/download.ts
872
872
  var download = async ({ url }) => {
@@ -4064,7 +4064,12 @@ function writeToServerResponse({
4064
4064
  headers,
4065
4065
  stream
4066
4066
  }) {
4067
- response.writeHead(status != null ? status : 200, statusText, headers);
4067
+ const statusCode = status != null ? status : 200;
4068
+ if (statusText !== void 0) {
4069
+ response.writeHead(statusCode, statusText, headers);
4070
+ } else {
4071
+ response.writeHead(statusCode, headers);
4072
+ }
4068
4073
  const reader = stream.getReader();
4069
4074
  const read = async () => {
4070
4075
  try {