@ai-sdk/provider-utils 4.0.4 → 4.0.5
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 +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -475,7 +475,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
// src/version.ts
|
|
478
|
-
var VERSION = true ? "4.0.
|
|
478
|
+
var VERSION = true ? "4.0.5" : "0.0.0-test";
|
|
479
479
|
|
|
480
480
|
// src/get-from-api.ts
|
|
481
481
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -2014,9 +2014,11 @@ function asSchema(schema) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
function standardSchema(standardSchema2) {
|
|
2016
2016
|
return jsonSchema(
|
|
2017
|
-
() =>
|
|
2018
|
-
|
|
2019
|
-
|
|
2017
|
+
() => addAdditionalPropertiesToJsonSchema(
|
|
2018
|
+
standardSchema2["~standard"].jsonSchema.input({
|
|
2019
|
+
target: "draft-07"
|
|
2020
|
+
})
|
|
2021
|
+
),
|
|
2020
2022
|
{
|
|
2021
2023
|
validate: async (value) => {
|
|
2022
2024
|
const result = await standardSchema2["~standard"].validate(value);
|