@ai-sdk/provider-utils 3.0.28 → 3.0.29
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
542
|
+
var VERSION = true ? "3.0.29" : "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 :
|
|
854
|
+
return isValidator(value) ? value : "~standard" in value ? standardSchemaValidator(value) : value();
|
|
855
855
|
}
|
|
856
856
|
function standardSchemaValidator(standardSchema) {
|
|
857
857
|
return validator(async (value) => {
|