@ai-sdk/provider-utils 4.0.3 → 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 +13 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -382,7 +382,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
// src/version.ts
|
|
385
|
-
var VERSION = true ? "4.0.
|
|
385
|
+
var VERSION = true ? "4.0.5" : "0.0.0-test";
|
|
386
386
|
|
|
387
387
|
// src/get-from-api.ts
|
|
388
388
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -1926,9 +1926,11 @@ function asSchema(schema) {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
function standardSchema(standardSchema2) {
|
|
1928
1928
|
return jsonSchema(
|
|
1929
|
-
() =>
|
|
1930
|
-
|
|
1931
|
-
|
|
1929
|
+
() => addAdditionalPropertiesToJsonSchema(
|
|
1930
|
+
standardSchema2["~standard"].jsonSchema.input({
|
|
1931
|
+
target: "draft-07"
|
|
1932
|
+
})
|
|
1933
|
+
),
|
|
1932
1934
|
{
|
|
1933
1935
|
validate: async (value) => {
|
|
1934
1936
|
const result = await standardSchema2["~standard"].validate(value);
|