@dnax/core 0.5.1 → 0.5.2

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/app/hono.ts CHANGED
@@ -28,10 +28,7 @@ const API_PATH = "/api";
28
28
  function HonoInstance(): typeof app {
29
29
  if (Cfg?.server?.logger) {
30
30
  if (typeof Cfg?.server?.logger == "function") {
31
- app.use(async (c, next) => {
32
- Cfg?.server?.logger(c);
33
- return await next();
34
- });
31
+ app.use(logger(Cfg?.server?.logger));
35
32
  }
36
33
  if (typeof Cfg?.server?.logger == "boolean") {
37
34
  app.use(logger());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
package/types/index.ts CHANGED
@@ -294,7 +294,7 @@ export type Collection = {
294
294
  }>;
295
295
  };
296
296
 
297
- export type loggerFunction = (c: Context) => void;
297
+ export type loggerFunction = (message: string, rest: any) => void;
298
298
 
299
299
  export type Config = {
300
300
  email?: {