@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -303,7 +303,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
// src/version.ts
|
|
306
|
-
var VERSION = true ? "4.0.0-beta.
|
|
306
|
+
var VERSION = true ? "4.0.0-beta.32" : "0.0.0-test";
|
|
307
307
|
|
|
308
308
|
// src/get-from-api.ts
|
|
309
309
|
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 {
|