ai 5.0.203 → 5.0.204
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 +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/dist/index.mjs
CHANGED
|
@@ -679,6 +679,7 @@ function detectMediaType({
|
|
|
679
679
|
|
|
680
680
|
// src/util/download/download.ts
|
|
681
681
|
import {
|
|
682
|
+
cancelResponseBody,
|
|
682
683
|
DownloadError as DownloadError2,
|
|
683
684
|
readResponseWithSizeLimit,
|
|
684
685
|
DEFAULT_MAX_DOWNLOAD_SIZE,
|
|
@@ -688,7 +689,7 @@ import {
|
|
|
688
689
|
} from "@ai-sdk/provider-utils";
|
|
689
690
|
|
|
690
691
|
// src/version.ts
|
|
691
|
-
var VERSION = true ? "5.0.
|
|
692
|
+
var VERSION = true ? "5.0.204" : "0.0.0-test";
|
|
692
693
|
|
|
693
694
|
// src/util/download/download.ts
|
|
694
695
|
var download = async ({
|
|
@@ -710,6 +711,7 @@ var download = async ({
|
|
|
710
711
|
abortSignal
|
|
711
712
|
});
|
|
712
713
|
if (!response.ok) {
|
|
714
|
+
await cancelResponseBody(response);
|
|
713
715
|
throw new DownloadError2({
|
|
714
716
|
url: urlText,
|
|
715
717
|
statusCode: response.status,
|