@ai-sdk/provider-utils 4.0.46 → 4.0.47
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/add-additional-properties-to-json-schema.ts +9 -2
package/dist/index.mjs
CHANGED
|
@@ -790,7 +790,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
// src/version.ts
|
|
793
|
-
var VERSION = true ? "4.0.
|
|
793
|
+
var VERSION = true ? "4.0.47" : "0.0.0-test";
|
|
794
794
|
|
|
795
795
|
// src/get-from-api.ts
|
|
796
796
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -1097,7 +1097,8 @@ import * as z4 from "zod/v4";
|
|
|
1097
1097
|
// src/add-additional-properties-to-json-schema.ts
|
|
1098
1098
|
function addAdditionalPropertiesToJsonSchema(jsonSchema2) {
|
|
1099
1099
|
if (jsonSchema2.type === "object" || Array.isArray(jsonSchema2.type) && jsonSchema2.type.includes("object")) {
|
|
1100
|
-
|
|
1100
|
+
const { additionalProperties } = jsonSchema2;
|
|
1101
|
+
jsonSchema2.additionalProperties = additionalProperties != null && typeof additionalProperties !== "boolean" ? visit(additionalProperties) : false;
|
|
1101
1102
|
const { properties } = jsonSchema2;
|
|
1102
1103
|
if (properties != null) {
|
|
1103
1104
|
for (const key of Object.keys(properties)) {
|