@x1-labs/logging-nestjs 0.1.21 → 0.1.22
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/dist/nest.js +5 -0
- package/dist/nest.js.map +1 -1
- package/package.json +2 -2
package/dist/nest.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.createNestLoggerModule = createNestLoggerModule;
|
|
7
|
+
const pino_1 = __importDefault(require("pino"));
|
|
4
8
|
const nestjs_pino_1 = require("nestjs-pino");
|
|
5
9
|
const logging_1 = require("@x1-labs/logging");
|
|
6
10
|
function createNestLoggerModule(options = {}) {
|
|
@@ -14,6 +18,7 @@ function createNestLoggerModule(options = {}) {
|
|
|
14
18
|
level,
|
|
15
19
|
...(base !== undefined ? { base } : {}),
|
|
16
20
|
autoLogging: httpLogging,
|
|
21
|
+
timestamp: pino_1.default.stdTimeFunctions.isoTime,
|
|
17
22
|
formatters: {
|
|
18
23
|
level: (label) => ({ level: label.toUpperCase() }),
|
|
19
24
|
},
|
package/dist/nest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nest.js","sourceRoot":"","sources":["../src/nest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nest.js","sourceRoot":"","sources":["../src/nest.ts"],"names":[],"mappings":";;;;;AAiBA,wDAoCC;AApDD,gDAAwB;AAExB,6CAA2C;AAC3C,8CAK0B;AAQ1B,SAAgB,sBAAsB,CACpC,UAAyC,EAAE;IAE3C,MAAM,KAAK,GAAG,IAAA,yBAAe,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,IAAA,0BAAgB,EAAC,OAAO,CA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0.1.22",
|
|
4
4
|
"description": "NestJS pino logging integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"check": "bun run lint && bun run typecheck && bun run format --check"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@x1-labs/logging": "^0.1.
|
|
27
|
+
"@x1-labs/logging": "^0.1.22"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"pino-pretty": "^13.0.0",
|