@jsfsi-core/ts-nestjs 1.1.40 → 1.1.42

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.
@@ -6,5 +6,6 @@ export declare class AllExceptionsFilter implements ExceptionFilter {
6
6
  constructor(httpAdapterHost: HttpAdapterHost);
7
7
  private mapStatusCode;
8
8
  private mapError;
9
+ private statusCodeToSeverity;
9
10
  catch(error: object, host: ArgumentsHost): void;
10
11
  }
@@ -1,5 +1,6 @@
1
1
  export * from './app/bootstrap';
2
2
  export * from './middlewares/RequestMiddleware';
3
+ export * from './middlewares/RequestMiddlewareLogCustomizer';
3
4
  export * from './test/testing-app';
4
5
  export * from './app/app';
5
6
  export * from './configuration/AppConfigurationService';
@@ -1,7 +1,10 @@
1
1
  import { NestMiddleware } from '@nestjs/common';
2
2
  import { Request, Response, NextFunction } from 'express';
3
+ import { RequestMiddlewareLogCustomizer } from './RequestMiddlewareLogCustomizer';
3
4
  export declare class RequestMiddleware implements NestMiddleware {
5
+ private readonly customizer?;
4
6
  private readonly logger;
7
+ constructor(customizer?: RequestMiddlewareLogCustomizer | undefined);
5
8
  private statusCodeToSeverity;
6
9
  use(req: Request, res: Response, next: NextFunction): void;
7
10
  }
@@ -0,0 +1,5 @@
1
+ import { Request, Response } from 'express';
2
+ export declare const REQUEST_MIDDLEWARE_LOG_CUSTOMIZER = "REQUEST_MIDDLEWARE_LOG_CUSTOMIZER";
3
+ export interface RequestMiddlewareLogCustomizer {
4
+ buildLogPayload(req: Request, res: Response): Record<string, unknown>;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsfsi-core/ts-nestjs",
3
- "version": "1.1.40",
3
+ "version": "1.1.42",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/jsfsi/jsfsi-core-typescript.git"
@@ -68,7 +68,7 @@
68
68
  }
69
69
  },
70
70
  "engines": {
71
- "node": "25.6.1",
72
- "npm": "11.9.0"
71
+ "node": "25.8.0",
72
+ "npm": "11.11.0"
73
73
  }
74
74
  }