better-call 1.0.10 → 1.0.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/dist/index.js CHANGED
@@ -4835,7 +4835,6 @@ var createRouter = (endpoints, config) => {
4835
4835
  const url = new URL(request.url);
4836
4836
  const path = config?.basePath ? url.pathname.split(config.basePath)[1] : url.pathname;
4837
4837
  if (!path?.length) {
4838
- config?.onError?.(new Error("NOT_FOUND"));
4839
4838
  return new Response(null, { status: 404, statusText: "Not Found" });
4840
4839
  }
4841
4840
  const route = findRoute(router, request.method, path);