@ai-sdk/provider-utils 4.0.35 → 4.0.37

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/dist/index.mjs CHANGED
@@ -677,7 +677,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
677
677
  }
678
678
 
679
679
  // src/version.ts
680
- var VERSION = true ? "4.0.35" : "0.0.0-test";
680
+ var VERSION = true ? "4.0.37" : "0.0.0-test";
681
681
 
682
682
  // src/get-from-api.ts
683
683
  var getOriginalFetch = () => globalThis.fetch;
@@ -2228,7 +2228,11 @@ function isSchema(value) {
2228
2228
  return typeof value === "object" && value !== null && schemaSymbol in value && value[schemaSymbol] === true && "jsonSchema" in value && "validate" in value;
2229
2229
  }
2230
2230
  function asSchema(schema) {
2231
- return schema == null ? jsonSchema({ properties: {}, additionalProperties: false }) : isSchema(schema) ? schema : "~standard" in schema ? schema["~standard"].vendor === "zod" ? zodSchema(schema) : standardSchema(schema) : schema();
2231
+ return schema == null ? jsonSchema({
2232
+ type: "object",
2233
+ properties: {},
2234
+ additionalProperties: false
2235
+ }) : isSchema(schema) ? schema : "~standard" in schema ? schema["~standard"].vendor === "zod" ? zodSchema(schema) : standardSchema(schema) : schema();
2232
2236
  }
2233
2237
  function standardSchema(standardSchema2) {
2234
2238
  return jsonSchema(
@@ -2953,6 +2957,7 @@ export {
2953
2957
  retryWithExponentialBackoff,
2954
2958
  safeParseJSON,
2955
2959
  safeValidateTypes,
2960
+ secureJsonParse,
2956
2961
  stripFileExtension,
2957
2962
  tool,
2958
2963
  validateDownloadUrl,