nestjs-pino 4.3.0-alpha.89de3e → 4.3.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.
- package/LoggerModule.js +4 -0
- package/package.json +1 -1
- package/postinstall.js +2 -2
package/LoggerModule.js
CHANGED
|
@@ -14,6 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
var LoggerModule_1;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.LoggerModule = void 0;
|
|
17
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
17
18
|
const common_1 = require("@nestjs/common");
|
|
18
19
|
const pino_http_1 = require("pino-http");
|
|
19
20
|
const InjectPinoLogger_1 = require("./InjectPinoLogger");
|
|
@@ -107,6 +108,9 @@ function bindLoggerMiddlewareFactory(useExisting, assignResponse) {
|
|
|
107
108
|
if (assignResponse && !useExisting && res.allLogs) {
|
|
108
109
|
resLog = res.allLogs[res.allLogs.length - 1];
|
|
109
110
|
}
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
112
|
+
// @ts-ignore: run requires arguments for next but should not because it can
|
|
113
|
+
// be called without arguments
|
|
110
114
|
storage_1.storage.run(new storage_1.Store(log, resLog), next);
|
|
111
115
|
};
|
|
112
116
|
}
|
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -9,10 +9,10 @@ console.log(`
|
|
|
9
9
|
\t\tbombed cities (including schools, hospitals, etc), hundreds of killed children, millions of refugees.
|
|
10
10
|
\t\tSo if you enjoy this library you can thank the author by donating to one of this funds:
|
|
11
11
|
\t\t• https://war.ukraine.ua/donate/ – Armed Forces of Ukraine
|
|
12
|
-
\t\t• https://
|
|
12
|
+
\t\t• https://www.comebackalive.in.ua/ – Ukrainian volunteers
|
|
13
13
|
|
|
14
14
|
\t\tThanks for your support! 🇺🇦
|
|
15
15
|
|
|
16
16
|
`);
|
|
17
17
|
|
|
18
|
-
new Promise(
|
|
18
|
+
new Promise(r => setTimeout(r, 5000));
|