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.cjs +0 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4873,7 +4873,6 @@ var createRouter = (endpoints, config) => {
|
|
|
4873
4873
|
const url = new URL(request.url);
|
|
4874
4874
|
const path = config?.basePath ? url.pathname.split(config.basePath)[1] : url.pathname;
|
|
4875
4875
|
if (!path?.length) {
|
|
4876
|
-
config?.onError?.(new Error("NOT_FOUND"));
|
|
4877
4876
|
return new Response(null, { status: 404, statusText: "Not Found" });
|
|
4878
4877
|
}
|
|
4879
4878
|
const route = (0, import_rou3.findRoute)(router, request.method, path);
|