diff --git a/.yarn/cache/@colors-colors-npm-1.6.0-47f686c4e2-aa209963e0.zip b/.yarn/cache/@colors-colors-npm-1.6.0-47f686c4e2-aa209963e0.zip new file mode 100644 index 000000000..f0512034f Binary files /dev/null and b/.yarn/cache/@colors-colors-npm-1.6.0-47f686c4e2-aa209963e0.zip differ diff --git a/.yarn/cache/object-hash-npm-2.2.0-d97a921cc1-55ba841e3a.zip b/.yarn/cache/object-hash-npm-2.2.0-d97a921cc1-55ba841e3a.zip deleted file mode 100644 index de3407659..000000000 Binary files a/.yarn/cache/object-hash-npm-2.2.0-d97a921cc1-55ba841e3a.zip and /dev/null differ diff --git a/.yarn/cache/triple-beam-npm-1.4.1-d21ba5346a-2e881a3e8e.zip b/.yarn/cache/triple-beam-npm-1.4.1-d21ba5346a-2e881a3e8e.zip new file mode 100644 index 000000000..4ce4aeeaa Binary files /dev/null and b/.yarn/cache/triple-beam-npm-1.4.1-d21ba5346a-2e881a3e8e.zip differ diff --git a/.yarn/cache/winston-daily-rotate-file-npm-4.7.1-8acf5cd720-227daea41f.zip b/.yarn/cache/winston-daily-rotate-file-npm-4.7.1-8acf5cd720-227daea41f.zip deleted file mode 100644 index 796df14a0..000000000 Binary files a/.yarn/cache/winston-daily-rotate-file-npm-4.7.1-8acf5cd720-227daea41f.zip and /dev/null differ diff --git a/.yarn/cache/winston-daily-rotate-file-npm-5.0.0-ac4acb48ee-45d0a1c1d1.zip b/.yarn/cache/winston-daily-rotate-file-npm-5.0.0-ac4acb48ee-45d0a1c1d1.zip new file mode 100644 index 000000000..e2d5adfd9 Binary files /dev/null and b/.yarn/cache/winston-daily-rotate-file-npm-5.0.0-ac4acb48ee-45d0a1c1d1.zip differ diff --git a/.yarn/cache/winston-npm-3.13.0-5a89c5f1c1-66f9fbbadb.zip b/.yarn/cache/winston-npm-3.13.0-5a89c5f1c1-66f9fbbadb.zip new file mode 100644 index 000000000..1f963a86a Binary files /dev/null and b/.yarn/cache/winston-npm-3.13.0-5a89c5f1c1-66f9fbbadb.zip differ diff --git a/.yarn/cache/winston-npm-3.8.2-2035e9cac4-f7b901798b.zip b/.yarn/cache/winston-npm-3.8.2-2035e9cac4-f7b901798b.zip deleted file mode 100644 index d5fc69005..000000000 Binary files a/.yarn/cache/winston-npm-3.8.2-2035e9cac4-f7b901798b.zip and /dev/null differ diff --git a/.yarn/cache/winston-transport-npm-4.5.0-e10bfb2169-a56e5678a8.zip b/.yarn/cache/winston-transport-npm-4.5.0-e10bfb2169-a56e5678a8.zip deleted file mode 100644 index 6f2b4f793..000000000 Binary files a/.yarn/cache/winston-transport-npm-4.5.0-e10bfb2169-a56e5678a8.zip and /dev/null differ diff --git a/.yarn/cache/winston-transport-npm-4.7.0-dd2c1f2107-ce074b5c76.zip b/.yarn/cache/winston-transport-npm-4.7.0-dd2c1f2107-ce074b5c76.zip new file mode 100644 index 000000000..c8f6c65ef Binary files /dev/null and b/.yarn/cache/winston-transport-npm-4.7.0-dd2c1f2107-ce074b5c76.zip differ diff --git a/pkg/api/package.json b/pkg/api/package.json index 7518a668f..e1de3a073 100644 --- a/pkg/api/package.json +++ b/pkg/api/package.json @@ -61,8 +61,8 @@ "tsc-alias": "^1.7.0", "tsyringe": "^4.7.0", "validator": "^13.7.0", - "winston": "^3.8.2", - "winston-daily-rotate-file": "^4.7.1", + "winston": "^3.13.0", + "winston-daily-rotate-file": "^5.0.0", "xhr-request": "^1.1.0", "xml-js": "^1.6.11", "yargs-parser": "^21.1.1", diff --git a/pkg/api/src/loaders/logger.ts b/pkg/api/src/loaders/logger.ts index 20ec062a8..7b82dbbc4 100644 --- a/pkg/api/src/loaders/logger.ts +++ b/pkg/api/src/loaders/logger.ts @@ -56,11 +56,11 @@ const Logger = winston.createLogger({ format: combine( timestamp(), printf((info) => `${JSON.stringify({ - [info.timestamp]: { - type: info.level, - log: info.message, - }, - })},`), + [info.timestamp]: { + type: info.level, + log: info.message, + }, + })},`), ), log: (info, next) => { if (info.level !== "http") { diff --git a/yarn.lock b/yarn.lock index 5833f6aae..6d7897b67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1810,6 +1810,13 @@ __metadata: languageName: node linkType: hard +"@colors/colors@npm:^1.6.0": + version: 1.6.0 + resolution: "@colors/colors@npm:1.6.0" + checksum: aa209963e0c3218e80a4a20553ba8c0fbb6fa13140540b4e5f97923790be06801fc90172c1114fc8b7e888b3d012b67298cde6b9e81521361becfaee400c662f + languageName: node + linkType: hard + "@commitlint/cli@npm:^16.2.3": version: 16.3.0 resolution: "@commitlint/cli@npm:16.3.0" @@ -5496,8 +5503,8 @@ __metadata: tsyringe: ^4.7.0 typescript: ^4.8.3 validator: ^13.7.0 - winston: ^3.8.2 - winston-daily-rotate-file: ^4.7.1 + winston: ^3.13.0 + winston-daily-rotate-file: ^5.0.0 xhr-request: ^1.1.0 xml-js: ^1.6.11 yargs-parser: ^21.1.1 @@ -13844,13 +13851,6 @@ __metadata: languageName: node linkType: hard -"object-hash@npm:^2.0.1": - version: 2.2.0 - resolution: "object-hash@npm:2.2.0" - checksum: 55ba841e3adce9c4f1b9b46b41983eda40f854e0d01af2802d3ae18a7085a17168d6b81731d43fdf1d6bcbb3c9f9c56d22c8fea992203ad90a38d7d919bc28f1 - languageName: node - linkType: hard - "object-hash@npm:^3.0.0": version: 3.0.0 resolution: "object-hash@npm:3.0.0" @@ -17853,6 +17853,13 @@ __metadata: languageName: node linkType: hard +"triple-beam@npm:^1.4.1": + version: 1.4.1 + resolution: "triple-beam@npm:1.4.1" + checksum: 2e881a3e8e076b6f2b85b9ec9dd4a900d3f5016e6d21183ed98e78f9abcc0149e7d54d79a3f432b23afde46b0885bdcdcbff789f39bc75de796316961ec07f61 + languageName: node + linkType: hard + "truncate-utf8-bytes@npm:^1.0.0": version: 1.0.2 resolution: "truncate-utf8-bytes@npm:1.0.2" @@ -18831,36 +18838,36 @@ __metadata: languageName: node linkType: hard -"winston-daily-rotate-file@npm:^4.7.1": - version: 4.7.1 - resolution: "winston-daily-rotate-file@npm:4.7.1" +"winston-daily-rotate-file@npm:^5.0.0": + version: 5.0.0 + resolution: "winston-daily-rotate-file@npm:5.0.0" dependencies: file-stream-rotator: ^0.6.1 - object-hash: ^2.0.1 - triple-beam: ^1.3.0 - winston-transport: ^4.4.0 + object-hash: ^3.0.0 + triple-beam: ^1.4.1 + winston-transport: ^4.7.0 peerDependencies: winston: ^3 - checksum: 227daea41f722caa017fc7d6f1f80d0e6c428491e57693e6bebc8312b85bcf3aace53cb3a925bda72fab59a6898fa127411d29348ec4b295e2263a7544cda611 + checksum: 45d0a1c1d1a178a22a6f92f4248139e0889720947d5afa657314826d6ea48e7dceae37521e2de2ed3a121993c4ae4ddcb0b510613c489a68d2eed689a304bef5 languageName: node linkType: hard -"winston-transport@npm:^4.4.0, winston-transport@npm:^4.5.0": - version: 4.5.0 - resolution: "winston-transport@npm:4.5.0" +"winston-transport@npm:^4.7.0": + version: 4.7.0 + resolution: "winston-transport@npm:4.7.0" dependencies: logform: ^2.3.2 readable-stream: ^3.6.0 triple-beam: ^1.3.0 - checksum: a56e5678a80b88a73e77ed998fc6e19d0db19c989a356b137ec236782f2bf58ae4511b11c29163f99391fa4dc12102c7bc5738dcb6543f28877fa2819adc3ee9 + checksum: ce074b5c76a99bee5236cf2b4d30fadfaf1e551d566f654f1eba303dc5b5f77169c21545ff5c5e4fdad9f8e815fc6d91b989f1db34161ecca6e860e62fd3a862 languageName: node linkType: hard -"winston@npm:^3.8.2": - version: 3.8.2 - resolution: "winston@npm:3.8.2" +"winston@npm:^3.13.0": + version: 3.13.0 + resolution: "winston@npm:3.13.0" dependencies: - "@colors/colors": 1.5.0 + "@colors/colors": ^1.6.0 "@dabh/diagnostics": ^2.0.2 async: ^3.2.3 is-stream: ^2.0.0 @@ -18870,8 +18877,8 @@ __metadata: safe-stable-stringify: ^2.3.1 stack-trace: 0.0.x triple-beam: ^1.3.0 - winston-transport: ^4.5.0 - checksum: f7b901798b92ab9e93c850110bf6e98500e9a0e762b62dab410cf928b2a4145533dfa6d3d2b24f7bf0dc94b53808d5bd28aaaeff9a4b43b89ea4c798cce308ea + winston-transport: ^4.7.0 + checksum: 66f9fbbadb58e1632701e9c89391f217310c9455462148e163e060dcd25aed21351b0413bdbbf90e5c5fe9bc945fc5de6f53875ac7c7ef3061133a354fc678c0 languageName: node linkType: hard