Server dep maintenance upgrade

This commit is contained in:
Chocobozzz 2024-11-25 10:01:40 +01:00
parent c3544d80b5
commit 804171860e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 1780 additions and 1702 deletions

View File

@ -87,6 +87,10 @@
"update-host": "node ./dist/scripts/update-host.js",
"update-object-storage-url": "LOGGER_LEVEL=warn node ./dist/scripts/update-object-storage-url.js"
},
"resolutions": {
"@types/express": "4.17.9",
"@types/express-serve-static-core": "4.19.5"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.190.0",
"@aws-sdk/lib-storage": "^3.190.0",
@ -95,7 +99,7 @@
"@node-oauth/oauth2-server": "^5.1.0",
"@opentelemetry/api": "^1.1.0",
"@opentelemetry/exporter-jaeger": "^1.15.1",
"@opentelemetry/exporter-prometheus": "~0.52.1",
"@opentelemetry/exporter-prometheus": "~0.55.0",
"@opentelemetry/instrumentation": "^0.52.1",
"@opentelemetry/instrumentation-dns": "^0.38.0",
"@opentelemetry/instrumentation-express": "^0.41.1",

View File

@ -18,7 +18,7 @@ const consoleLoggerFormat = format.printf(info => {
if (info.sql) {
if (CONFIG.LOG.PRETTIFY_SQL) {
additionalInfos += '\n' + sqlFormat(info.sql, {
additionalInfos += '\n' + sqlFormat(info.sql as string, {
language: 'postgresql',
tabWidth: 2
})

View File

@ -39,7 +39,7 @@ const loggerFormat = winston.format.printf((info) => {
if (info.sql) {
if (CONFIG.LOG.PRETTIFY_SQL) {
additionalInfos += '\n' + sqlFormat(info.sql, {
additionalInfos += '\n' + sqlFormat(info.sql as string, {
language: 'sql',
tabWidth: 2
})
@ -48,7 +48,7 @@ const loggerFormat = winston.format.printf((info) => {
}
}
return `[${info.label}] ${toTimeFormat(info.timestamp)} ${info.level}: ${info.message}${additionalInfos}`
return `[${info.label}] ${toTimeFormat(info.timestamp as string)} ${info.level}: ${info.message}${additionalInfos}`
})
const logger = winston.createLogger({

3470
yarn.lock

File diff suppressed because it is too large Load Diff