@ai-sdk/provider-utils 4.0.0-beta.31 → 4.0.0-beta.32
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 +3 -2
package/dist/index.mjs
CHANGED
|
@@ -216,7 +216,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
// src/version.ts
|
|
219
|
-
var VERSION = true ? "4.0.0-beta.
|
|
219
|
+
var VERSION = true ? "4.0.0-beta.32" : "0.0.0-test";
|
|
220
220
|
|
|
221
221
|
// src/get-from-api.ts
|
|
222
222
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -490,7 +490,11 @@ function filter(obj) {
|
|
|
490
490
|
}
|
|
491
491
|
function secureJsonParse(text) {
|
|
492
492
|
const { stackTraceLimit } = Error;
|
|
493
|
-
|
|
493
|
+
try {
|
|
494
|
+
Error.stackTraceLimit = 0;
|
|
495
|
+
} catch (e) {
|
|
496
|
+
return _parse(text);
|
|
497
|
+
}
|
|
494
498
|
try {
|
|
495
499
|
return _parse(text);
|
|
496
500
|
} finally {
|