@ai-sdk/provider-utils 3.0.15 → 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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 3.0.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 056c471: fix(provider-utils): compatibility with V8 readonly execution environment
8
+
9
+ ## 3.0.16
10
+
11
+ ### Patch Changes
12
+
13
+ - 51aa5de: backport: test server
14
+
3
15
  ## 3.0.15
4
16
 
5
17
  ### Patch Changes
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.15" : "0.0.0-test";
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
- Error.stackTraceLimit = 0;
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 {