@maioradv/nestjs-core 1.6.8 → 1.7.0

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.
@@ -27,7 +27,7 @@ let AllExceptionsFilter = class AllExceptionsFilter {
27
27
  stack: exception.stack?.split('\n')
28
28
  } : {
29
29
  statusCode: status,
30
- message: 'Internal Server Error',
30
+ message: exception.message ?? 'Internal Server Error',
31
31
  };
32
32
  response
33
33
  .status(status)
@@ -4,5 +4,8 @@ export declare abstract class BaseEvent<B extends string, E extends string, P ex
4
4
  constructor(payload: P);
5
5
  }
6
6
  export type Events<B extends string, H extends Record<string, any>> = {
7
- readonly [K in keyof H]: new (payload: H[K]) => BaseEvent<B, Extract<K, string>, H[K]>;
7
+ readonly [K in keyof H]: {
8
+ name: `${B}.${Extract<K, string>}`;
9
+ class: new (payload: H[K]) => BaseEvent<B, Extract<K, string>, H[K]>;
10
+ };
8
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/nestjs-core",
3
- "version": "1.6.8",
3
+ "version": "1.7.0",
4
4
  "description": "NestJS helpers by MaiorADV",
5
5
  "repository": "https://github.com/maioradv/nestjs-core.git",
6
6
  "author": "Maior ADV Srl",