ai 5.0.113 → 5.0.115
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 +13 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +2 -2
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.
|
|
687
|
+
var VERSION = true ? "5.0.115" : "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
|
-
|
|
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 {
|