ai 6.0.205 → 6.0.207
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 +20 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/util/download/download.ts +4 -0
package/dist/index.mjs
CHANGED
|
@@ -1161,6 +1161,7 @@ function detectMediaType({
|
|
|
1161
1161
|
|
|
1162
1162
|
// src/util/download/download.ts
|
|
1163
1163
|
import {
|
|
1164
|
+
cancelResponseBody,
|
|
1164
1165
|
DownloadError as DownloadError2,
|
|
1165
1166
|
readResponseWithSizeLimit,
|
|
1166
1167
|
DEFAULT_MAX_DOWNLOAD_SIZE,
|
|
@@ -1170,7 +1171,7 @@ import {
|
|
|
1170
1171
|
} from "@ai-sdk/provider-utils";
|
|
1171
1172
|
|
|
1172
1173
|
// src/version.ts
|
|
1173
|
-
var VERSION = true ? "6.0.
|
|
1174
|
+
var VERSION = true ? "6.0.207" : "0.0.0-test";
|
|
1174
1175
|
|
|
1175
1176
|
// src/util/download/download.ts
|
|
1176
1177
|
var download = async ({
|
|
@@ -1192,6 +1193,7 @@ var download = async ({
|
|
|
1192
1193
|
abortSignal
|
|
1193
1194
|
});
|
|
1194
1195
|
if (!response.ok) {
|
|
1196
|
+
await cancelResponseBody(response);
|
|
1195
1197
|
throw new DownloadError2({
|
|
1196
1198
|
url: urlText,
|
|
1197
1199
|
statusCode: response.status,
|