@dnax/core 0.74.5 → 0.74.6

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
@@ -794,7 +794,7 @@ function HonoInstance(): typeof app {
794
794
  };
795
795
  if (Cfg?.api?.onError && typeof Cfg?.api?.onError == "function") {
796
796
  try {
797
- await Cfg?.api?.onError(errorFormated);
797
+ await Cfg?.api?.onError(errorFormated, err);
798
798
  } catch (e) {}
799
799
  }
800
800
  return c.json(errorFormated);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.74.5",
3
+ "version": "0.74.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},
package/types/index.ts CHANGED
@@ -628,7 +628,7 @@ export type Config = {
628
628
  };
629
629
  clusterMode?: boolean;
630
630
  api?: {
631
- onError?: (error: ApiError) => Promise<ApiError> | ApiError | void;
631
+ onError?: (errorFormated: ApiError,err?:Error) => Promise<ApiError> | ApiError | void;
632
632
  };
633
633
  server: {
634
634
  name?: string;