@ai-sdk/provider-utils 5.0.0-beta.10 → 5.0.0-beta.11
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 +8 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/get-error-message.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -453,7 +453,7 @@ function getErrorMessage(error) {
|
|
|
453
453
|
return error;
|
|
454
454
|
}
|
|
455
455
|
if (error instanceof Error) {
|
|
456
|
-
return error.
|
|
456
|
+
return error.toString();
|
|
457
457
|
}
|
|
458
458
|
return JSON.stringify(error);
|
|
459
459
|
}
|
|
@@ -577,7 +577,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
// src/version.ts
|
|
580
|
-
var VERSION = true ? "5.0.0-beta.
|
|
580
|
+
var VERSION = true ? "5.0.0-beta.11" : "0.0.0-test";
|
|
581
581
|
|
|
582
582
|
// src/get-from-api.ts
|
|
583
583
|
var getOriginalFetch = () => globalThis.fetch;
|