@tsed/platform-log-request 8.25.5 → 8.26.1

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.
@@ -13,13 +13,15 @@ function factory() {
13
13
  export const PlatformLogRequestFactory = injectable(Symbol.for("PLATFORM:LOGGER:REQUEST"))
14
14
  .factory(factory)
15
15
  .hooks({
16
- $onRequest(instance, $ctx) {
16
+ $onRequest(instance, ...args) {
17
+ const $ctx = args[0];
17
18
  if (instance) {
18
19
  $ctx.logger.alterLog((obj, level) => instance.alterLog(level, obj, $ctx));
19
20
  $ctx.logStarted = true;
20
21
  }
21
22
  },
22
- $onResponse(instance, $ctx) {
23
+ $onResponse(instance, ...args) {
24
+ const $ctx = args[0];
23
25
  if (instance && $ctx.logStarted) {
24
26
  instance.onLogResponse($ctx);
25
27
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/platform-log-request",
3
3
  "description": "Log request module for Ts.ED Framework (Express, Koa, Serverless)",
4
4
  "type": "module",
5
- "version": "8.25.5",
5
+ "version": "8.26.1",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -23,16 +23,16 @@
23
23
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
24
24
  },
25
25
  "dependencies": {
26
- "tslib": "2.7.0"
26
+ "tslib": ">=2.7.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@tsed/barrels": "8.25.5",
30
- "@tsed/di": "8.25.5",
31
- "@tsed/platform-middlewares": "8.25.5",
32
- "@tsed/platform-params": "8.25.5",
33
- "@tsed/typescript": "8.25.5",
29
+ "@tsed/barrels": "8.26.1",
30
+ "@tsed/di": "8.26.1",
31
+ "@tsed/platform-middlewares": "8.26.1",
32
+ "@tsed/platform-params": "8.26.1",
33
+ "@tsed/typescript": "8.26.1",
34
34
  "eslint": "9.12.0",
35
- "typescript": "5.9.3",
35
+ "typescript": "6.0.2",
36
36
  "vitest": "3.2.4"
37
37
  },
38
38
  "peerDependencies": {
package/readme.md CHANGED
@@ -173,7 +173,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
173
173
 
174
174
  The MIT License (MIT)
175
175
 
176
- Copyright (c) 2016 - 2022 Romain Lenzotti
176
+ Copyright (c) 2016 - Today Romain Lenzotti
177
177
 
178
178
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
179
179