@dnax/core 0.5.6 → 0.5.8

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.
Files changed (2) hide show
  1. package/app/hono.ts +8 -5
  2. package/package.json +1 -1
package/app/hono.ts CHANGED
@@ -65,14 +65,17 @@ function HonoInstance(): typeof app {
65
65
  const info = getConnInfo(c);
66
66
  if (c.req.method == "OPTIONS") return await next();
67
67
  const start = Date.now();
68
- const { action, collection, cleanDeep, useCache } = c.req.query() as Q;
68
+ const { action, collection, cleanDeep, useCache, name } =
69
+ c.req.query() as Q;
69
70
  // Log the incoming request
70
71
  console.log(
71
72
  `<-- ${info.remote.address} | ${c.req.method.gray} ${
72
73
  c.req.path?.gray
73
74
  } -C ${colors.blue(`${collection || ""}`)} -A ${
74
75
  action?.gray || ""
75
- } -T ${moment(start).format("YYYY-DD-MM:HH:mm:ss").gray} \n`
76
+ } -Sn ${name?.gray || ""} -t ${
77
+ moment(start).format("YYYY-DD-MM:HH:mm:ss").gray
78
+ } \n`
76
79
  );
77
80
 
78
81
  await next();
@@ -83,9 +86,9 @@ function HonoInstance(): typeof app {
83
86
  c.req.path?.gray
84
87
  } -C ${colors.blue(`${collection || ""}`)} -A ${
85
88
  action?.gray || ""
86
- } -S ${c.res.status} -D ${colors.green(`(${duration}ms)`)} -T ${
87
- moment().format("YYYY-DD-MM:HH:mm:ss").gray
88
- } \n`
89
+ } -Sn ${name?.gray || ""} -s ${c.res.status} -d ${colors.green(
90
+ `(${duration}ms)`
91
+ )} -t ${moment().format("YYYY-DD-MM:HH:mm:ss").gray} \n`
89
92
  );
90
93
  });
91
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {