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 CHANGED
@@ -149,7 +149,7 @@ async function getBody(request) {
149
149
  return await request.text();
150
150
  }
151
151
  function isAPIError(error) {
152
- return error instanceof APIError || error.name === "APIError";
152
+ return error instanceof APIError || error?.name === "APIError";
153
153
  }
154
154
 
155
155
  // src/to-response.ts