fix: pino pretty print deprication
This commit is contained in:
parent
f41bbdab25
commit
540f228827
3 changed files with 53 additions and 40 deletions
|
@ -45,8 +45,8 @@
|
|||
"discord.js": "^13.3.1",
|
||||
"lodash": "^4.17.21",
|
||||
"node-fetch": "^3.0.0",
|
||||
"pino": "^7.0.5",
|
||||
"pino-pretty": "^7.1.0"
|
||||
"pino": "^7.1.0",
|
||||
"pino-pretty": "^7.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^14.1.0",
|
||||
|
@ -56,7 +56,7 @@
|
|||
"@semantic-release/changelog": "^6.0.1",
|
||||
"@semantic-release/commit-analyzer": "^9.0.1",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@semantic-release/npm": "^8.0.2",
|
||||
"@semantic-release/npm": "^8.0.3",
|
||||
"@semantic-release/release-notes-generator": "^10.0.2",
|
||||
"@types/eslint": "^7.28.2",
|
||||
"@types/lodash": "^4.14.176",
|
||||
|
@ -70,7 +70,7 @@
|
|||
"commitizen": "^4.2.4",
|
||||
"eslint": "^8.1.0",
|
||||
"eslint-formatter-pretty": "^4.1.0",
|
||||
"eslint-plugin-unicorn": "^37.0.1",
|
||||
"eslint-plugin-unicorn": "^38.0.0",
|
||||
"husky": "^7.0.4",
|
||||
"inquirer": "^8.2.0",
|
||||
"lint-staged": "^11.2.6",
|
||||
|
|
|
@ -5,7 +5,6 @@ import { ApplicationCommand, ApplicationCommandOptionData, ChatInputApplicationC
|
|||
import _ from 'lodash';
|
||||
import path from 'path';
|
||||
import pino from 'pino';
|
||||
import PinoPretty from 'pino-pretty';
|
||||
import { walkDir } from './utils/utils';
|
||||
|
||||
import type { Command } from './structures/command';
|
||||
|
@ -18,7 +17,7 @@ export class NeonClient extends Client {
|
|||
public commands: Collection<string, Command> = new Collection();
|
||||
public ownerID: string;
|
||||
|
||||
public static logger: pino.Logger = pino({ level: 'trace', prettifier: PinoPretty });
|
||||
public static logger: pino.Logger = pino({ level: 'trace', transport: { target: 'pino-pretty', options: { colorize: true, translateTime: true } } });
|
||||
|
||||
public constructor(ownerID: string, options: ClientOptions) {
|
||||
super(options);
|
||||
|
|
82
yarn.lock
82
yarn.lock
|
@ -633,7 +633,7 @@ __metadata:
|
|||
"@semantic-release/changelog": ^6.0.1
|
||||
"@semantic-release/commit-analyzer": ^9.0.1
|
||||
"@semantic-release/git": ^10.0.1
|
||||
"@semantic-release/npm": ^8.0.2
|
||||
"@semantic-release/npm": ^8.0.3
|
||||
"@semantic-release/release-notes-generator": ^10.0.2
|
||||
"@types/eslint": ^7.28.2
|
||||
"@types/lodash": ^4.14.176
|
||||
|
@ -649,14 +649,14 @@ __metadata:
|
|||
discord.js: ^13.3.1
|
||||
eslint: ^8.1.0
|
||||
eslint-formatter-pretty: ^4.1.0
|
||||
eslint-plugin-unicorn: ^37.0.1
|
||||
eslint-plugin-unicorn: ^38.0.0
|
||||
husky: ^7.0.4
|
||||
inquirer: ^8.2.0
|
||||
lint-staged: ^11.2.6
|
||||
lodash: ^4.17.21
|
||||
node-fetch: ^3.0.0
|
||||
pino: ^7.0.5
|
||||
pino-pretty: ^7.1.0
|
||||
pino: ^7.1.0
|
||||
pino-pretty: ^7.2.0
|
||||
pinst: ^2.1.6
|
||||
rimraf: ^3.0.2
|
||||
semantic-release: ^18.0.0
|
||||
|
@ -1174,9 +1174,9 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@semantic-release/npm@npm:^8.0.2":
|
||||
version: 8.0.2
|
||||
resolution: "@semantic-release/npm@npm:8.0.2"
|
||||
"@semantic-release/npm@npm:^8.0.3":
|
||||
version: 8.0.3
|
||||
resolution: "@semantic-release/npm@npm:8.0.3"
|
||||
dependencies:
|
||||
"@semantic-release/error": ^3.0.0
|
||||
aggregate-error: ^3.0.0
|
||||
|
@ -1193,7 +1193,7 @@ __metadata:
|
|||
tempy: ^1.0.0
|
||||
peerDependencies:
|
||||
semantic-release: ">=18.0.0"
|
||||
checksum: ade2226a85830df101248805b9254ced284fe3d024de100b1669ecda3499f9f9170ac701f88f22742dee9440f57a768215031a0e19e5d8899b27061d43e415b3
|
||||
checksum: 6c1e178f0fdc1b6ab24d14f02fb012302c7220e64e192293be7d11346d309b00338bd5a42e076c7849af68a91745359e750c5a1d7c85c8f11e9941e4516bb413
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -3057,9 +3057,9 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-unicorn@npm:^37.0.1":
|
||||
version: 37.0.1
|
||||
resolution: "eslint-plugin-unicorn@npm:37.0.1"
|
||||
"eslint-plugin-unicorn@npm:^38.0.0":
|
||||
version: 38.0.0
|
||||
resolution: "eslint-plugin-unicorn@npm:38.0.0"
|
||||
dependencies:
|
||||
"@babel/helper-validator-identifier": ^7.14.9
|
||||
ci-info: ^3.2.0
|
||||
|
@ -3078,7 +3078,7 @@ __metadata:
|
|||
strip-indent: ^3.0.0
|
||||
peerDependencies:
|
||||
eslint: ">=7.32.0"
|
||||
checksum: 9c74b642150c765919fc925808791910a3e8ce642db4a5a38aa4c04e8b4899b8aed5fab4ae73947cf0ad0b4a783161e2389c9148ed30c73469a757ba8372c1cd
|
||||
checksum: 5ef60a29f64bf37171b79e9419dc8e14829b32d51e7895131ff39ff6835abcf0af04a41df945c63882a99da125d251528e7a35b8b84ca09742b667fe7488b50f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -6291,26 +6291,26 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"pino-abstract-transport@npm:^0.4.0, pino-abstract-transport@npm:v0.4.0":
|
||||
version: 0.4.0
|
||||
resolution: "pino-abstract-transport@npm:0.4.0"
|
||||
"pino-abstract-transport@npm:^0.5.0, pino-abstract-transport@npm:v0.5.0":
|
||||
version: 0.5.0
|
||||
resolution: "pino-abstract-transport@npm:0.5.0"
|
||||
dependencies:
|
||||
duplexify: ^4.1.2
|
||||
split2: ^3.2.2
|
||||
checksum: 9df1bc78e143008cbb6ef8d4d82f336d149e62cf5e395bb0cf3accb8dc46de1380609e8d661186217e2747a2358d22f50b232640f89c94759efa3efffe0c763d
|
||||
split2: ^4.0.0
|
||||
checksum: c503f867de3189f8217ab9cf794e8a631dddd0029a829f0f985f5511308152ebd53e363764fbc5570b3d1c715b341e3923456ce16ad84cd41be2b9a074ada234
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"pino-pretty@npm:^7.1.0":
|
||||
version: 7.1.0
|
||||
resolution: "pino-pretty@npm:7.1.0"
|
||||
"pino-pretty@npm:^7.2.0":
|
||||
version: 7.2.0
|
||||
resolution: "pino-pretty@npm:7.2.0"
|
||||
dependencies:
|
||||
args: ^5.0.1
|
||||
colorette: ^2.0.7
|
||||
dateformat: ^4.6.3
|
||||
fast-safe-stringify: ^2.0.7
|
||||
joycon: ^3.0.0
|
||||
pino-abstract-transport: ^0.4.0
|
||||
pino-abstract-transport: ^0.5.0
|
||||
pump: ^3.0.0
|
||||
readable-stream: ^3.6.0
|
||||
rfdc: ^1.3.0
|
||||
|
@ -6319,7 +6319,7 @@ __metadata:
|
|||
strip-json-comments: ^3.1.1
|
||||
bin:
|
||||
pino-pretty: bin.js
|
||||
checksum: aada752d4b03ad17486355216eff5d403bfbbc3cc089dc064618b2cfa5df9007c0331316624e49168358c3a7f3a567b0d3434662c628b5c19ecee54227eb4d0b
|
||||
checksum: dafe8a33681316c97eda6a1240ea8b8a0efad6e62183c793c6bbe594aae836bd5894f2fb5657b6a8e26576ccb364213186cf3dc060e89f68ddcee87c98e5a803
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -6330,23 +6330,23 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"pino@npm:^7.0.5":
|
||||
version: 7.0.5
|
||||
resolution: "pino@npm:7.0.5"
|
||||
"pino@npm:^7.1.0":
|
||||
version: 7.1.0
|
||||
resolution: "pino@npm:7.1.0"
|
||||
dependencies:
|
||||
fast-redact: ^3.0.0
|
||||
fastify-warning: ^0.2.0
|
||||
get-caller-file: ^2.0.5
|
||||
json-stringify-safe: ^5.0.1
|
||||
on-exit-leak-free: ^0.2.0
|
||||
pino-abstract-transport: v0.4.0
|
||||
pino-abstract-transport: v0.5.0
|
||||
pino-std-serializers: ^4.0.0
|
||||
quick-format-unescaped: ^4.0.3
|
||||
safe-stable-stringify: ^2.1.0
|
||||
sonic-boom: ^2.2.1
|
||||
thread-stream: ^0.11.1
|
||||
thread-stream: ^0.12.0
|
||||
bin:
|
||||
pino: bin.js
|
||||
checksum: 569011202351e1ea00e56a776333194fd681608e5a8a908e3bc4f010da8c21c668d1e1cb20acde2575ae5031d0b73064b780c4078a3bcd72d395f313750ee7e8
|
||||
checksum: 9e2b7cf2e5ea7eac0933ac7a76e8519b30c7634b624d3d954a3dcf307c92a9258492bd443686d3e427c3a80515b6512eed12f2c0d79956a794ac2fc84bbae9a7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -6909,6 +6909,13 @@ resolve@^1.10.0:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"safe-stable-stringify@npm:^2.1.0":
|
||||
version: 2.2.0
|
||||
resolution: "safe-stable-stringify@npm:2.2.0"
|
||||
checksum: 09facfbc43259f02422ff00ecbb3490d19a7b4f9545852c8a0045bd3d0120bc07f6e5f803f124312c237db688b7051fe85670c817ebba66f8530c5049201e0b2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0, safer-buffer@npm:^2.0.2, safer-buffer@npm:^2.1.0, safer-buffer@npm:~2.1.0":
|
||||
version: 2.1.2
|
||||
resolution: "safer-buffer@npm:2.1.2"
|
||||
|
@ -7196,7 +7203,7 @@ resolve@^1.10.0:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"split2@npm:^3.0.0, split2@npm:^3.2.2":
|
||||
"split2@npm:^3.0.0":
|
||||
version: 3.2.2
|
||||
resolution: "split2@npm:3.2.2"
|
||||
dependencies:
|
||||
|
@ -7205,6 +7212,13 @@ resolve@^1.10.0:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"split2@npm:^4.0.0":
|
||||
version: 4.1.0
|
||||
resolution: "split2@npm:4.1.0"
|
||||
checksum: ec581597cb74c13cdfb5e2047543dd40cb1e8e9803c7b1e0c29ede05f2b4f049b2d6e7f2788a225d544549375719658b8f38e9366364dec35dc7a12edfda5ee5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"split2@npm:~1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "split2@npm:1.0.0"
|
||||
|
@ -7524,10 +7538,10 @@ resolve@^1.10.0:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"thread-stream@npm:^0.11.1":
|
||||
version: 0.11.2
|
||||
resolution: "thread-stream@npm:0.11.2"
|
||||
checksum: ca5372b3029ffee24eb928c8d597c5ece114d07c1812a2e2c6a0fc00e4d5f3fad747b84c9a69e8805bfd3c930793378f0c4048a3f5d99ddbb9ee79576e623cdf
|
||||
"thread-stream@npm:^0.12.0":
|
||||
version: 0.12.1
|
||||
resolution: "thread-stream@npm:0.12.1"
|
||||
checksum: 4c28ce1aef2b8e34adb6345ced8538f95e2d1bcc3dd82394a49ce66dd150917e607dd19e35a7a9bf383fd4ac6fd90c6a180f861043dace7dda26be860d9ec9ce
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
|
Reference in a new issue