@dnax/core 0.52.0 → 0.52.1

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
@@ -718,8 +718,10 @@ function HonoInstance(): typeof app {
718
718
  success: false,
719
719
  meta: err?.meta || {},
720
720
  };
721
- if (Cfg?.api?.onError && typeof Cfg.api?.onError == "function") {
722
- await Cfg.api?.onError(errorFormated).catch((err: any) => {});
721
+ if (Cfg?.api?.onError && typeof Cfg?.api?.onError == "function") {
722
+ try {
723
+ await Cfg.api?.onError(errorFormated);
724
+ } catch (e) {}
723
725
  }
724
726
  return c.json(errorFormated);
725
727
  }
package/config/index.ts CHANGED
@@ -80,7 +80,7 @@ async function setCfg(config: Config) {
80
80
  }
81
81
  });
82
82
 
83
- //console.log(Cfg.tenants);
83
+ console.log(Cfg.api);
84
84
  }
85
85
 
86
86
  async function loadCfg() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {