@ai-sdk/provider-utils 3.0.42 → 3.0.43
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 +6 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -740,7 +740,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
740
740
|
}
|
|
741
741
|
|
|
742
742
|
// src/version.ts
|
|
743
|
-
var VERSION = true ? "3.0.
|
|
743
|
+
var VERSION = true ? "3.0.43" : "0.0.0-test";
|
|
744
744
|
|
|
745
745
|
// src/get-from-api.ts
|
|
746
746
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -3291,6 +3291,14 @@ function convertBase64ToUint8Array(base64String) {
|
|
|
3291
3291
|
return Uint8Array.from(latin1string, (byte) => byte.codePointAt(0));
|
|
3292
3292
|
}
|
|
3293
3293
|
function convertUint8ArrayToBase64(array) {
|
|
3294
|
+
var _a2;
|
|
3295
|
+
if (typeof ((_a2 = globalThis.Buffer) == null ? void 0 : _a2.from) === "function") {
|
|
3296
|
+
return globalThis.Buffer.from(
|
|
3297
|
+
array.buffer,
|
|
3298
|
+
array.byteOffset,
|
|
3299
|
+
array.byteLength
|
|
3300
|
+
).toString("base64");
|
|
3301
|
+
}
|
|
3294
3302
|
const chunks = [];
|
|
3295
3303
|
const chunkSize = 4096;
|
|
3296
3304
|
for (let i = 0; i < array.length; i += chunkSize) {
|