bun-router 0.2.0 → 0.2.1

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.
@@ -60,7 +60,7 @@ const extractParams = (route: Route, req: HttpRequest) => {
60
60
  }
61
61
 
62
62
  const match = (route: Route, req: HttpRequest): boolean => {
63
- return req.params.size !== 0 && route.method === req.request.method
63
+ return req.params.size !== 0 || route.method === req.request.method
64
64
  }
65
65
 
66
66
  const router: Router = (port?: number | string, options?: Options) => {
package/package.json CHANGED
@@ -8,5 +8,5 @@
8
8
  "peerDependencies": {
9
9
  "typescript": "^5.0.0"
10
10
  },
11
- "version": "0.2.0"
11
+ "version": "0.2.1"
12
12
  }