better-call 1.0.4-beta.2 → 1.0.4
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -111,7 +111,7 @@ async function getBody(request) {
|
|
|
111
111
|
return await request.text();
|
|
112
112
|
}
|
|
113
113
|
function isAPIError(error) {
|
|
114
|
-
return error instanceof APIError || error
|
|
114
|
+
return error instanceof APIError || error?.name === "APIError";
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
// src/to-response.ts
|