@ai-sdk/provider-utils 3.0.28 → 3.0.30

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
@@ -539,7 +539,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
539
539
  }
540
540
 
541
541
  // src/version.ts
542
- var VERSION = true ? "3.0.28" : "0.0.0-test";
542
+ var VERSION = true ? "3.0.30" : "0.0.0-test";
543
543
 
544
544
  // src/get-from-api.ts
545
545
  var getOriginalFetch = () => globalThis.fetch;
@@ -851,7 +851,7 @@ function lazyValidator(createValidator) {
851
851
  };
852
852
  }
853
853
  function asValidator(value) {
854
- return isValidator(value) ? value : typeof value === "function" ? value() : standardSchemaValidator(value);
854
+ return isValidator(value) ? value : "~standard" in value ? standardSchemaValidator(value) : value();
855
855
  }
856
856
  function standardSchemaValidator(standardSchema) {
857
857
  return validator(async (value) => {