@ai-sdk/provider-utils 3.0.38 → 3.0.39

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
+ ## 3.0.39
4
+
5
+ ### Patch Changes
6
+
7
+ - bf29419: chore: enable dead code lint rules
8
+
3
9
  ## 3.0.38
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -105,7 +105,7 @@ function combineHeaders(...headers) {
105
105
  return headers.reduce(
106
106
  (combinedHeaders, currentHeaders) => ({
107
107
  ...combinedHeaders,
108
- ...currentHeaders != null ? currentHeaders : {}
108
+ ...currentHeaders
109
109
  }),
110
110
  {}
111
111
  );
@@ -325,7 +325,6 @@ function validateDownloadUrl(url) {
325
325
  message: `URL with IP address ${hostname} is not allowed`
326
326
  });
327
327
  }
328
- return;
329
328
  }
330
329
  }
331
330
  function validateDownloadAddress({
@@ -811,7 +810,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
811
810
  }
812
811
 
813
812
  // src/version.ts
814
- var VERSION = true ? "3.0.38" : "0.0.0-test";
813
+ var VERSION = true ? "3.0.39" : "0.0.0-test";
815
814
 
816
815
  // src/get-from-api.ts
817
816
  var getOriginalFetch = () => globalThis.fetch;
@@ -1992,7 +1991,7 @@ var zodPatterns = {
1992
1991
  /**
1993
1992
  * `a-z` was added to replicate /i flag
1994
1993
  */
1995
- email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,
1994
+ email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}$/,
1996
1995
  /**
1997
1996
  * Constructed a valid Unicode RegExp
1998
1997
  *