@ai-sdk/provider-utils 5.0.0-beta.16 → 5.0.0-beta.18

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
@@ -577,7 +577,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
577
577
  }
578
578
 
579
579
  // src/version.ts
580
- var VERSION = true ? "5.0.0-beta.16" : "0.0.0-test";
580
+ var VERSION = true ? "5.0.0-beta.18" : "0.0.0-test";
581
581
 
582
582
  // src/get-from-api.ts
583
583
  var getOriginalFetch = () => globalThis.fetch;
@@ -1086,7 +1086,7 @@ function parseDateDef(def, refs, overrideDateStrategy) {
1086
1086
  const strategy = overrideDateStrategy != null ? overrideDateStrategy : refs.dateStrategy;
1087
1087
  if (Array.isArray(strategy)) {
1088
1088
  return {
1089
- anyOf: strategy.map((item, i) => parseDateDef(def, refs, item))
1089
+ anyOf: strategy.map((item) => parseDateDef(def, refs, item))
1090
1090
  };
1091
1091
  }
1092
1092
  switch (strategy) {
@@ -1167,7 +1167,7 @@ function parseIntersectionDef(def, refs) {
1167
1167
  } else {
1168
1168
  let nestedSchema = schema;
1169
1169
  if ("additionalProperties" in schema && schema.additionalProperties === false) {
1170
- const { additionalProperties, ...rest } = schema;
1170
+ const { additionalProperties: _additionalProperties, ...rest } = schema;
1171
1171
  nestedSchema = rest;
1172
1172
  }
1173
1173
  mergedAllOf.push(nestedSchema);
@@ -1542,7 +1542,7 @@ function parseRecordDef(def, refs) {
1542
1542
  })) != null ? _a2 : refs.allowedAdditionalProperties
1543
1543
  };
1544
1544
  if (((_b2 = def.keyType) == null ? void 0 : _b2._def.typeName) === ZodFirstPartyTypeKind2.ZodString && ((_c = def.keyType._def.checks) == null ? void 0 : _c.length)) {
1545
- const { type, ...keyType } = parseStringDef(def.keyType._def, refs);
1545
+ const { type: _type, ...keyType } = parseStringDef(def.keyType._def, refs);
1546
1546
  return {
1547
1547
  ...schema,
1548
1548
  propertyNames: keyType
@@ -1555,7 +1555,7 @@ function parseRecordDef(def, refs) {
1555
1555
  }
1556
1556
  };
1557
1557
  } else if (((_e = def.keyType) == null ? void 0 : _e._def.typeName) === ZodFirstPartyTypeKind2.ZodBranded && def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind2.ZodString && ((_f = def.keyType._def.type._def.checks) == null ? void 0 : _f.length)) {
1558
- const { type, ...keyType } = parseBrandedDef(
1558
+ const { type: _type, ...keyType } = parseBrandedDef(
1559
1559
  def.keyType._def,
1560
1560
  refs
1561
1561
  );
@@ -2634,7 +2634,7 @@ var createJsonErrorResponseHandler = ({
2634
2634
  isRetryable: isRetryable == null ? void 0 : isRetryable(response, parsedError)
2635
2635
  })
2636
2636
  };
2637
- } catch (parseError) {
2637
+ } catch (e) {
2638
2638
  return {
2639
2639
  responseHeaders,
2640
2640
  value: new APICallError4({