@ai-sdk/provider-utils 3.0.9 → 3.1.0-beta.1

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
@@ -194,7 +194,7 @@ function handleFetchError({
194
194
  }
195
195
 
196
196
  // src/version.ts
197
- var VERSION = true ? "3.0.9" : "0.0.0-test";
197
+ var VERSION = true ? "3.1.0-beta.1" : "0.0.0-test";
198
198
 
199
199
  // src/get-from-api.ts
200
200
  var getOriginalFetch = () => globalThis.fetch;
@@ -987,8 +987,7 @@ import * as z4 from "zod/v4";
987
987
  var getRelativePath = (pathA, pathB) => {
988
988
  let i = 0;
989
989
  for (; i < pathA.length && i < pathB.length; i++) {
990
- if (pathA[i] !== pathB[i])
991
- break;
990
+ if (pathA[i] !== pathB[i]) break;
992
991
  }
993
992
  return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
994
993
  };
@@ -1066,8 +1065,7 @@ function parseBigintDef(def) {
1066
1065
  type: "integer",
1067
1066
  format: "int64"
1068
1067
  };
1069
- if (!def.checks)
1070
- return res;
1068
+ if (!def.checks) return res;
1071
1069
  for (const check of def.checks) {
1072
1070
  switch (check.kind) {
1073
1071
  case "min":
@@ -1172,8 +1170,7 @@ function parseEnumDef(def) {
1172
1170
 
1173
1171
  // src/zod-to-json-schema/parsers/intersection.ts
1174
1172
  var isJsonSchema7AllOfType = (type) => {
1175
- if ("type" in type && type.type === "string")
1176
- return false;
1173
+ if ("type" in type && type.type === "string") return false;
1177
1174
  return "allOf" in type;
1178
1175
  };
1179
1176
  function parseIntersectionDef(def, refs) {
@@ -1679,8 +1676,7 @@ function parseUnionDef(def, refs) {
1679
1676
  case "bigint":
1680
1677
  return [...acc, "integer"];
1681
1678
  case "object":
1682
- if (x._def.value === null)
1683
- return [...acc, "null"];
1679
+ if (x._def.value === null) return [...acc, "null"];
1684
1680
  case "symbol":
1685
1681
  case "undefined":
1686
1682
  case "function":
@@ -1752,8 +1748,7 @@ function parseNumberDef(def) {
1752
1748
  const res = {
1753
1749
  type: "number"
1754
1750
  };
1755
- if (!def.checks)
1756
- return res;
1751
+ if (!def.checks) return res;
1757
1752
  for (const check of def.checks) {
1758
1753
  switch (check.kind) {
1759
1754
  case "int":