bun-router 0.7.3-experimental.0 → 0.7.4-experimental.0
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/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
|
|