@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/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 ? "3.0.
|
|
219
|
+
var VERSION = true ? "3.0.17" : "0.0.0-test";
|
|
220
220
|
|
|
221
221
|
// src/get-from-api.ts
|
|
222
222
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -485,7 +485,11 @@ function filter(obj) {
|
|
|
485
485
|
}
|
|
486
486
|
function secureJsonParse(text) {
|
|
487
487
|
const { stackTraceLimit } = Error;
|
|
488
|
-
|
|
488
|
+
try {
|
|
489
|
+
Error.stackTraceLimit = 0;
|
|
490
|
+
} catch (e) {
|
|
491
|
+
return _parse(text);
|
|
492
|
+
}
|
|
489
493
|
try {
|
|
490
494
|
return _parse(text);
|
|
491
495
|
} finally {
|