nestjs-pino 2.5.0 → 2.5.1-alpha.80de5b

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/README.md CHANGED
@@ -1,5 +1,13 @@
1
1
  <p align="center">
2
- <img alt="NestJS-Pino logo" src="https://raw.githubusercontent.com/iamolegga/nestjs-pino/master/logo.png"/>
2
+ <img alt="War in Ukraine" src="https://raw.githubusercontent.com/iamolegga/nestjs-pino/master/war.jpg"/>
3
+ <br/>
4
+ Children wait in a bomb shelter in Mariupol, Ukraine. AP
5
+ <br/>
6
+ Help save their lives by donating:
7
+ <br/>
8
+ ・<a href="https://war.ukraine.ua/donate/">Armed Forces of Ukraine</a>・<a href="https://www.comebackalive.in.ua/">Ukrainian volunteers</a>・
9
+ <br/>
10
+ Thanks for your support!
3
11
  </p>
4
12
 
5
13
  <h1 align="center">NestJS-Pino</h1>
@@ -433,7 +441,7 @@ By default, `pino-http` exposes `err` property with a stack trace and error deta
433
441
  import { LoggerErrorInterceptor } from 'nestjs-pino';
434
442
 
435
443
  const app = await NestFactory.create(AppModule);
436
- app.useGlobalInterceptors(LoggerErrorInterceptor);
444
+ app.useGlobalInterceptors(new LoggerErrorInterceptor());
437
445
  ```
438
446
 
439
447
  ## Migration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestjs-pino",
3
- "version": "2.5.0",
3
+ "version": "2.5.1-alpha.80de5b",
4
4
  "description": "Pino logger for NestJS",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -11,7 +11,8 @@
11
11
  "build": "tsc -p tsconfig.build.json",
12
12
  "example": "rimraf dist && tsc && LOG_LEVEL=debug node dist/example/main",
13
13
  "prepublishOnly": "npm run build && cp -r ./dist/* .",
14
- "postpublish": "git clean -fd"
14
+ "postpublish": "git clean -fd",
15
+ "postinstall": "node postinstall.js"
15
16
  },
16
17
  "files": [
17
18
  "*.{js,d.ts}"
@@ -54,7 +55,7 @@
54
55
  "eslint-config-prettier": "^8.3.0",
55
56
  "eslint-plugin-import": "^2.24.2",
56
57
  "eslint-plugin-prettier": "^4.0.0",
57
- "jest": "27.4.7",
58
+ "jest": "27.5.1",
58
59
  "memorystream": "^0.3.1",
59
60
  "pino": "^7.5.1",
60
61
  "pino-http": "^6.4.0",
package/postinstall.js ADDED
@@ -0,0 +1,18 @@
1
+ console.log(`
2
+
3
+
4
+
5
+
6
+ \t\tThanks for using nestjs-pino!
7
+
8
+ \t\tAs you may know there is a war against Ukrain:
9
+ \t\tbombed cities (including schools, hospitals, etc), hundreds of killed children, millions of refugees.
10
+ \t\tSo if you enjoy this library you can thank the author by donating to one of this funds:
11
+ \t\t• https://war.ukraine.ua/donate/ – Armed Forces of Ukraine
12
+ \t\t• https://www.comebackalive.in.ua/ – Ukrainian volunteers
13
+
14
+ \t\tThanks for your support!
15
+
16
+ `);
17
+
18
+ new Promise(r => setTimeout(r, 5000));