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:
parent
3ab6b670cb
commit
ca91b9af48
3 changed files with 10 additions and 10 deletions
6
.changeset/rotton-readers-shave.md
Normal file
6
.changeset/rotton-readers-shave.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@verdaccio/types': patch
|
||||
'@verdaccio/config': patch
|
||||
---
|
||||
|
||||
fix: config builder `addLogger`
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue