@ai-sdk/provider-utils 5.0.0-beta.25 → 5.0.0-beta.26
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/test/index.js +1 -1
- package/dist/test/index.js.map +1 -1
- package/package.json +1 -1
- package/src/parse-json.ts +1 -1
- package/src/post-to-api.ts +2 -2
- package/src/test/convert-response-stream-to-array.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -576,7 +576,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
// src/version.ts
|
|
579
|
-
var VERSION = true ? "5.0.0-beta.
|
|
579
|
+
var VERSION = true ? "5.0.0-beta.26" : "0.0.0-test";
|
|
580
580
|
|
|
581
581
|
// src/get-from-api.ts
|
|
582
582
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -2298,7 +2298,7 @@ async function parseJSON({
|
|
|
2298
2298
|
if (schema == null) {
|
|
2299
2299
|
return value;
|
|
2300
2300
|
}
|
|
2301
|
-
return validateTypes({ value, schema });
|
|
2301
|
+
return await validateTypes({ value, schema });
|
|
2302
2302
|
} catch (error) {
|
|
2303
2303
|
if (JSONParseError.isInstance(error) || TypeValidationError3.isInstance(error)) {
|
|
2304
2304
|
throw error;
|
|
@@ -2388,7 +2388,7 @@ var postJsonToApi = async ({
|
|
|
2388
2388
|
successfulResponseHandler,
|
|
2389
2389
|
abortSignal,
|
|
2390
2390
|
fetch: fetch2
|
|
2391
|
-
}) => postToApi({
|
|
2391
|
+
}) => await postToApi({
|
|
2392
2392
|
url,
|
|
2393
2393
|
headers: {
|
|
2394
2394
|
"Content-Type": "application/json",
|
|
@@ -2411,7 +2411,7 @@ var postFormDataToApi = async ({
|
|
|
2411
2411
|
successfulResponseHandler,
|
|
2412
2412
|
abortSignal,
|
|
2413
2413
|
fetch: fetch2
|
|
2414
|
-
}) => postToApi({
|
|
2414
|
+
}) => await postToApi({
|
|
2415
2415
|
url,
|
|
2416
2416
|
headers,
|
|
2417
2417
|
body: {
|