@ai-sdk/provider-utils 5.0.0-beta.17 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.0-beta.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
8
+
3
9
  ## 5.0.0-beta.17
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -678,7 +678,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
678
678
  }
679
679
 
680
680
  // src/version.ts
681
- var VERSION = true ? "5.0.0-beta.17" : "0.0.0-test";
681
+ var VERSION = true ? "5.0.0-beta.18" : "0.0.0-test";
682
682
 
683
683
  // src/get-from-api.ts
684
684
  var getOriginalFetch = () => globalThis.fetch;
@@ -1184,7 +1184,7 @@ function parseDateDef(def, refs, overrideDateStrategy) {
1184
1184
  const strategy = overrideDateStrategy != null ? overrideDateStrategy : refs.dateStrategy;
1185
1185
  if (Array.isArray(strategy)) {
1186
1186
  return {
1187
- anyOf: strategy.map((item, i) => parseDateDef(def, refs, item))
1187
+ anyOf: strategy.map((item) => parseDateDef(def, refs, item))
1188
1188
  };
1189
1189
  }
1190
1190
  switch (strategy) {
@@ -1265,7 +1265,7 @@ function parseIntersectionDef(def, refs) {
1265
1265
  } else {
1266
1266
  let nestedSchema = schema;
1267
1267
  if ("additionalProperties" in schema && schema.additionalProperties === false) {
1268
- const { additionalProperties, ...rest } = schema;
1268
+ const { additionalProperties: _additionalProperties, ...rest } = schema;
1269
1269
  nestedSchema = rest;
1270
1270
  }
1271
1271
  mergedAllOf.push(nestedSchema);
@@ -1638,7 +1638,7 @@ function parseRecordDef(def, refs) {
1638
1638
  })) != null ? _a2 : refs.allowedAdditionalProperties
1639
1639
  };
1640
1640
  if (((_b2 = def.keyType) == null ? void 0 : _b2._def.typeName) === import_v32.ZodFirstPartyTypeKind.ZodString && ((_c = def.keyType._def.checks) == null ? void 0 : _c.length)) {
1641
- const { type, ...keyType } = parseStringDef(def.keyType._def, refs);
1641
+ const { type: _type, ...keyType } = parseStringDef(def.keyType._def, refs);
1642
1642
  return {
1643
1643
  ...schema,
1644
1644
  propertyNames: keyType
@@ -1651,7 +1651,7 @@ function parseRecordDef(def, refs) {
1651
1651
  }
1652
1652
  };
1653
1653
  } else if (((_e = def.keyType) == null ? void 0 : _e._def.typeName) === import_v32.ZodFirstPartyTypeKind.ZodBranded && def.keyType._def.type._def.typeName === import_v32.ZodFirstPartyTypeKind.ZodString && ((_f = def.keyType._def.type._def.checks) == null ? void 0 : _f.length)) {
1654
- const { type, ...keyType } = parseBrandedDef(
1654
+ const { type: _type, ...keyType } = parseBrandedDef(
1655
1655
  def.keyType._def,
1656
1656
  refs
1657
1657
  );
@@ -2726,7 +2726,7 @@ var createJsonErrorResponseHandler = ({
2726
2726
  isRetryable: isRetryable == null ? void 0 : isRetryable(response, parsedError)
2727
2727
  })
2728
2728
  };
2729
- } catch (parseError) {
2729
+ } catch (e) {
2730
2730
  return {
2731
2731
  responseHeaders,
2732
2732
  value: new import_provider13.APICallError({