@ai-sdk/provider-utils 3.0.37 → 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 +13 -0
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ function combineHeaders(...headers) {
|
|
|
3
3
|
return headers.reduce(
|
|
4
4
|
(combinedHeaders, currentHeaders) => ({
|
|
5
5
|
...combinedHeaders,
|
|
6
|
-
...currentHeaders
|
|
6
|
+
...currentHeaders
|
|
7
7
|
}),
|
|
8
8
|
{}
|
|
9
9
|
);
|
|
@@ -223,7 +223,6 @@ function validateDownloadUrl(url) {
|
|
|
223
223
|
message: `URL with IP address ${hostname} is not allowed`
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
return;
|
|
227
226
|
}
|
|
228
227
|
}
|
|
229
228
|
function validateDownloadAddress({
|
|
@@ -709,7 +708,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
709
708
|
}
|
|
710
709
|
|
|
711
710
|
// src/version.ts
|
|
712
|
-
var VERSION = true ? "3.0.
|
|
711
|
+
var VERSION = true ? "3.0.39" : "0.0.0-test";
|
|
713
712
|
|
|
714
713
|
// src/get-from-api.ts
|
|
715
714
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -1897,7 +1896,7 @@ var zodPatterns = {
|
|
|
1897
1896
|
/**
|
|
1898
1897
|
* `a-z` was added to replicate /i flag
|
|
1899
1898
|
*/
|
|
1900
|
-
email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'
|
|
1899
|
+
email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}$/,
|
|
1901
1900
|
/**
|
|
1902
1901
|
* Constructed a valid Unicode RegExp
|
|
1903
1902
|
*
|