@ai-sdk/provider-utils 3.0.16 → 3.0.17
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 +6 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -308,7 +308,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
// src/version.ts
|
|
311
|
-
var VERSION = true ? "3.0.
|
|
311
|
+
var VERSION = true ? "3.0.17" : "0.0.0-test";
|
|
312
312
|
|
|
313
313
|
// src/get-from-api.ts
|
|
314
314
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -574,7 +574,11 @@ function filter(obj) {
|
|
|
574
574
|
}
|
|
575
575
|
function secureJsonParse(text) {
|
|
576
576
|
const { stackTraceLimit } = Error;
|
|
577
|
-
|
|
577
|
+
try {
|
|
578
|
+
Error.stackTraceLimit = 0;
|
|
579
|
+
} catch (e) {
|
|
580
|
+
return _parse(text);
|
|
581
|
+
}
|
|
578
582
|
try {
|
|
579
583
|
return _parse(text);
|
|
580
584
|
} finally {
|