bun-router 0.7.4-experimental.7 → 0.7.4-experimental.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ _ _
9
9
  |___|___|_|_| |_| |___|___|_| |___|_|
10
10
 
11
11
  `;
12
- const VERSION = '0.7.4-experimental.7';
12
+ const VERSION = '0.7.4-experimental.8';
13
13
  const Logger = (): BunLogger => {
14
14
  return {
15
15
  info: async (statusCode: number, routePath: string, method: string, message?: string) => {
@@ -51,7 +51,7 @@ const Router: BunRouter = (port?: number | string, options?: RouterOptions<Optio
51
51
  children: new Map(),
52
52
  dynamicPath: '',
53
53
  isLast: true,
54
- path: patternPath.slice(1),
54
+ path: patternPath.slice(1), // remove the leading '/'
55
55
  method: 'GET',
56
56
  handler: async () => {
57
57
  if (extension === '.tsx') {
@@ -63,8 +63,6 @@ const Router: BunRouter = (port?: number | string, options?: RouterOptions<Optio
63
63
  },
64
64
  };
65
65
 
66
- console.log(route.path);
67
-
68
66
  addRoute(route.path, 'GET', route.handler);
69
67
  });
70
68
  },
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "peerDependencies": {
15
15
  "typescript": "^5.0.0"
16
16
  },
17
- "version": "0.7.4-experimental.7",
17
+ "version": "0.7.4-experimental.8",
18
18
  "dependencies": {
19
19
  "@types/react": "^18.2.22",
20
20
  "eslint-plugin-react-hooks": "^4.6.0",