nestjs-pino 3.1.2 → 3.1.3-alpha.fbf090

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.
@@ -1,5 +1,5 @@
1
1
  import { Provider } from '@nestjs/common';
2
2
  import { PinoLogger } from './PinoLogger';
3
- export declare function InjectPinoLogger(context?: string): (target: object, key: string | symbol, index?: number | undefined) => void;
3
+ export declare function InjectPinoLogger(context?: string): (target: object, key: string | symbol | undefined, index?: number | undefined) => void;
4
4
  export declare function createProvidersForDecorated(): Array<Provider<PinoLogger>>;
5
5
  export declare function getLoggerToken(context: string): string;
package/README.md CHANGED
@@ -175,7 +175,7 @@ The following interface is using for the configuration:
175
175
  interface Params {
176
176
  /**
177
177
  * Optional parameters for `pino-http` module
178
- * @see https://github.com/pinojs/pino-http#pinohttpopts-stream
178
+ * @see https://github.com/pinojs/pino-http#api
179
179
  */
180
180
  pinoHttp?:
181
181
  | pinoHttp.Options
@@ -242,8 +242,13 @@ import { LoggerModule } from 'nestjs-pino';
242
242
  transport: process.env.NODE_ENV !== 'production'
243
243
  ? { target: 'pino-pretty' }
244
244
  : undefined,
245
- useLevelLabels: true,
246
- // and all the others...
245
+
246
+
247
+ // and all the other fields of:
248
+ // - https://github.com/pinojs/pino-http#api
249
+ // - https://github.com/pinojs/pino/blob/HEAD/docs/api.md#options-object
250
+
251
+
247
252
  },
248
253
  someWritableStream
249
254
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestjs-pino",
3
- "version": "3.1.2",
3
+ "version": "3.1.3-alpha.fbf090",
4
4
  "description": "Pino logger for NestJS",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -39,36 +39,36 @@
39
39
  },
40
40
  "homepage": "https://github.com/iamolegga/nestjs-pino#readme",
41
41
  "devDependencies": {
42
- "@nestjs/common": "^9.0.5",
43
- "@nestjs/core": "^9.0.5",
44
- "@nestjs/platform-express": "^9.0.5",
45
- "@nestjs/platform-fastify": "^9.0.5",
46
- "@nestjs/testing": "^9.0.5",
47
- "@types/express": "^4.17.13",
48
- "@types/jest": "^27.0.1",
49
- "@types/memorystream": "^0.3.0",
50
- "@types/node": "^18.0.0",
51
- "@types/supertest": "^2.0.11",
52
- "@typescript-eslint/eslint-plugin": "^5.3.1",
53
- "@typescript-eslint/parser": "^5.3.1",
54
- "eslint": "^8.2.0",
55
- "eslint-config-prettier": "^8.3.0",
56
- "eslint-plugin-import": "^2.24.2",
57
- "eslint-plugin-prettier": "^4.0.0",
58
- "jest": "27.5.1",
42
+ "@nestjs/common": "^9.4.0",
43
+ "@nestjs/core": "^9.4.0",
44
+ "@nestjs/platform-express": "^9.4.0",
45
+ "@nestjs/platform-fastify": "^9.4.0",
46
+ "@nestjs/testing": "^9.4.0",
47
+ "@types/express": "^4.17.17",
48
+ "@types/jest": "^29.5.0",
49
+ "@types/memorystream": "^0.3.1",
50
+ "@types/node": "^18.15.11",
51
+ "@types/supertest": "^2.0.12",
52
+ "@typescript-eslint/eslint-plugin": "^5.59.0",
53
+ "@typescript-eslint/parser": "^5.59.0",
54
+ "eslint": "^8.38.0",
55
+ "eslint-config-prettier": "^8.8.0",
56
+ "eslint-plugin-import": "^2.27.5",
57
+ "eslint-plugin-prettier": "^4.2.1",
58
+ "jest": "29.5.0",
59
59
  "memorystream": "^0.3.1",
60
- "pino": "^8.2.0",
61
- "pino-http": "^8.3.1",
62
- "prettier": "^2.3.2",
60
+ "pino": "^8.11.0",
61
+ "pino-http": "^8.3.3",
62
+ "prettier": "^2.8.7",
63
63
  "reflect-metadata": "^0.1.13",
64
- "rimraf": "^3.0.2",
65
- "rxjs": "^7.2.0",
66
- "supertest": "^6.1.3",
67
- "ts-jest": "^27.0.3",
68
- "ts-loader": "^9.2.3",
69
- "ts-node": "^10.0.0",
64
+ "rimraf": "^5.0.0",
65
+ "rxjs": "^7.8.0",
66
+ "supertest": "^6.3.3",
67
+ "ts-jest": "^29.1.0",
68
+ "ts-loader": "^9.4.2",
69
+ "ts-node": "^10.9.1",
70
70
  "tslint": "^6.0.0",
71
- "typescript": "^4.3.5"
71
+ "typescript": "^5.0.4"
72
72
  },
73
73
  "jest": {
74
74
  "moduleFileExtensions": [