bun-router 0.7.3-experimental.0 → 0.7.4-experimental.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/logger/logger.ts +2 -2
- package/package.json +1 -1
package/lib/logger/logger.ts
CHANGED
@@ -9,7 +9,7 @@ _ _
|
|
9
9
|
|___|___|_|_| |_| |___|___|_| |___|_|
|
10
10
|
|
11
11
|
`;
|
12
|
-
const VERSION = '0.7.
|
12
|
+
const VERSION = '0.7.4-experimental';
|
13
13
|
const Logger = (): BunLogger => {
|
14
14
|
return {
|
15
15
|
info: async (statusCode: number, routePath: string, method: string, message?: string) => {
|
@@ -17,7 +17,7 @@ const Logger = (): BunLogger => {
|
|
17
17
|
const source = color('green', 'bgBlack', `[bun-router ${stamp}]`);
|
18
18
|
const rp = color('white', 'bgBlack', routePath);
|
19
19
|
|
20
|
-
message = `${source}: ${setColor(statusCode)}: ${rp} ${(method === 'GET') ? ' ->' : ' <-'} ${method}${ message ?? ''}\n`;
|
20
|
+
message = `${source}: ${setColor(statusCode)}: ${rp} ${(method === 'GET') ? ' ->' : ' <-'} ${method} ${ message ?? ''}\n`;
|
21
21
|
|
22
22
|
await Bun.write(Bun.stdout, message);
|
23
23
|
|