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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 5.0.115
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1bcc2d7]
|
|
8
|
+
- @ai-sdk/gateway@2.0.22
|
|
9
|
+
|
|
10
|
+
## 5.0.114
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- fc633bd: fix header loss when statusText is undefined in writeHead
|
|
15
|
+
|
|
3
16
|
## 5.0.113
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -777,7 +777,7 @@ function detectMediaType({
|
|
|
777
777
|
var import_provider_utils2 = require("@ai-sdk/provider-utils");
|
|
778
778
|
|
|
779
779
|
// src/version.ts
|
|
780
|
-
var VERSION = true ? "5.0.
|
|
780
|
+
var VERSION = true ? "5.0.115" : "0.0.0-test";
|
|
781
781
|
|
|
782
782
|
// src/util/download/download.ts
|
|
783
783
|
var download = async ({ url }) => {
|
|
@@ -2848,7 +2848,12 @@ function writeToServerResponse({
|
|
|
2848
2848
|
headers,
|
|
2849
2849
|
stream
|
|
2850
2850
|
}) {
|
|
2851
|
-
|
|
2851
|
+
const statusCode = status != null ? status : 200;
|
|
2852
|
+
if (statusText !== void 0) {
|
|
2853
|
+
response.writeHead(statusCode, statusText, headers);
|
|
2854
|
+
} else {
|
|
2855
|
+
response.writeHead(statusCode, headers);
|
|
2856
|
+
}
|
|
2852
2857
|
const reader = stream.getReader();
|
|
2853
2858
|
const read = async () => {
|
|
2854
2859
|
try {
|