ai 6.0.277 → 6.0.279

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.279
4
+
5
+ ### Patch Changes
6
+
7
+ - 6517262: fix(ai): decode text data URLs in Node.js
8
+
9
+ ## 6.0.278
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [fc032e8]
14
+ - Updated dependencies [761dae9]
15
+ - @ai-sdk/gateway@3.0.190
16
+
3
17
  ## 6.0.277
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1334,7 +1334,7 @@ function detectMediaType({
1334
1334
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
1335
1335
 
1336
1336
  // src/version.ts
1337
- var VERSION = true ? "6.0.277" : "0.0.0-test";
1337
+ var VERSION = true ? "6.0.279" : "0.0.0-test";
1338
1338
 
1339
1339
  // src/util/download/download.ts
1340
1340
  var download = async ({
@@ -11643,7 +11643,7 @@ function getTextFromDataUrl(dataUrl) {
11643
11643
  throw new Error("Invalid data URL format");
11644
11644
  }
11645
11645
  try {
11646
- return window.atob(base64Content);
11646
+ return globalThis.atob(base64Content);
11647
11647
  } catch (error) {
11648
11648
  throw new Error(`Error decoding data URL`);
11649
11649
  }