0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-04-01 02:42:23 -05:00

fix: config builder addLogger (#5053)

This commit is contained in:
Marc Bernard 2025-01-16 21:33:38 +01:00 committed by GitHub
parent 3ab6b670cb
commit ca91b9af48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -0,0 +1,6 @@
---
'@verdaccio/types': patch
'@verdaccio/config': patch
---
fix: config builder `addLogger`

View file

@ -3,7 +3,7 @@ import { merge } from 'lodash';
import {
AuthConf,
ConfigYaml,
LoggerConfItem,
LoggerConfigItem,
PackageAccessYaml,
Security,
UpLinkConf,
@ -47,7 +47,7 @@ export default class ConfigBuilder {
return this;
}
public addLogger(log: LoggerConfItem) {
public addLogger(log: LoggerConfigItem) {
this.config.log = log;
return this;
}

View file

@ -40,12 +40,6 @@ export interface PackageAccessYaml {
unpublish?: string;
}
export interface LoggerConfItem {
type: LoggerType;
format: LoggerFormat;
level: LoggerLevel;
}
export interface Headers {
[key: string]: string;
}
@ -262,9 +256,9 @@ export interface ConfigYaml {
storage?: string | void;
packages: PackageList;
uplinks: UpLinksConfList;
log?: LoggerConfItem;
log?: LoggerConfigItem;
// @deprecated deprecation path from 5.x
logs?: LoggerConfItem;
logs?: LoggerConfigItem;
web?: WebConf;
auth?: AuthConf;
security: Security;