@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 4.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 34d1c8a: fix(provider-utils): add additionalProperties field for standard schema function
8
+
3
9
  ## 4.0.4
4
10
 
5
11
  ### Patch Changes
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.4" : "0.0.0-test";
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
- () => standardSchema2["~standard"].jsonSchema.input({
2018
- target: "draft-07"
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);