@dnax/core 0.74.6 → 0.74.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.
package/app/hono.ts CHANGED
@@ -792,6 +792,9 @@ function HonoInstance(): typeof app {
792
792
  success: false,
793
793
  meta: err?.meta || {},
794
794
  };
795
+ if (plugins?.sentry) {
796
+ plugins?.sentry?.captureException(err) ?? null;
797
+ }
795
798
  if (Cfg?.api?.onError && typeof Cfg?.api?.onError == "function") {
796
799
  try {
797
800
  await Cfg?.api?.onError(errorFormated, err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.74.6",
3
+ "version": "0.74.8",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},
package/types/index.ts CHANGED
@@ -116,7 +116,7 @@ export type Field = {
116
116
  useNumbers?: boolean;
117
117
  includeSymbols?: Array<any>;
118
118
  excludeSymbols?: Array<any>;
119
- startWith?: string;
119
+ startWith?: string | ((code: string) => string);
120
120
  endWith?: string;
121
121
  toUpperCase?: boolean;
122
122
  toLowerCase?: boolean;