@tsed/platform-log-middleware 7.29.0 → 7.30.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.
@@ -5,15 +5,15 @@ export interface PlatformLogMiddlewareSettings {
5
5
  */
6
6
  requestFields?: LoggerRequestFields;
7
7
  /**
8
- * Log all incoming request. By default is true and print the configured `logger.requestFields`.
8
+ * Log all incoming request. By default, is true and print the configured `logger.requestFields`.
9
9
  */
10
10
  logRequest?: boolean;
11
11
  /**
12
- * Log start of all incoming request. By default is true
12
+ * Log start of all incoming request. By default, is false
13
13
  */
14
14
  logStart?: boolean;
15
15
  /**
16
- * Log end of all incoming request. By default is true
16
+ * Log end of all incoming request. By default, is true
17
17
  */
18
18
  logEnd?: boolean;
19
19
  }
@@ -16,15 +16,15 @@ export declare class PlatformLogMiddleware implements MiddlewareMethods {
16
16
  * Handle the request.
17
17
  */
18
18
  use(ctx: Context): void;
19
+ /**
20
+ * Called when the `$onResponse` is called by Ts.ED (through Express.end).
21
+ */
22
+ onLogEnd(ctx: Context): void;
19
23
  /**
20
24
  * The separate onLogStart() function will allow developer to overwrite the initial request log.
21
25
  * @param ctx
22
26
  */
23
27
  protected onLogStart(ctx: Context): void;
24
- /**
25
- * Called when the `$onResponse` is called by Ts.ED (through Express.end).
26
- */
27
- onLogEnd(ctx: Context): void;
28
28
  /**
29
29
  * Attach all information that will be necessary to log the request. Attach a new `request.log` object.
30
30
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-log-middleware",
3
- "version": "7.29.0",
3
+ "version": "7.30.0",
4
4
  "description": "Log request middleware module for Ts.ED Framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -25,17 +25,17 @@
25
25
  "tslib": "2.5.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@tsed/di": "7.29.0",
29
- "@tsed/eslint": "7.29.0",
30
- "@tsed/platform-middlewares": "7.29.0",
31
- "@tsed/platform-params": "7.29.0",
32
- "@tsed/typescript": "7.29.0",
28
+ "@tsed/di": "7.30.0",
29
+ "@tsed/eslint": "7.30.0",
30
+ "@tsed/platform-middlewares": "7.30.0",
31
+ "@tsed/platform-params": "7.30.0",
32
+ "@tsed/typescript": "7.30.0",
33
33
  "eslint": "^8.12.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@tsed/di": "^7.29.0",
37
- "@tsed/platform-middlewares": "^7.29.0",
38
- "@tsed/platform-params": "^7.29.0"
36
+ "@tsed/di": "^7.30.0",
37
+ "@tsed/platform-middlewares": "^7.30.0",
38
+ "@tsed/platform-params": "^7.30.0"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@tsed/di": {