mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
fix: enable audit by default
For docker and new installations
This commit is contained in:
parent
a22b3a4415
commit
8df186c5d5
3 changed files with 18 additions and 8 deletions
|
@ -44,9 +44,9 @@ packages:
|
|||
proxy: npmjs
|
||||
|
||||
# To use `npm audit` uncomment the following section
|
||||
#middlewares:
|
||||
# audit:
|
||||
# enabled: true
|
||||
middlewares:
|
||||
audit:
|
||||
enabled: true
|
||||
|
||||
# log settings
|
||||
logs:
|
||||
|
|
|
@ -48,9 +48,9 @@ packages:
|
|||
proxy: npmjs
|
||||
|
||||
# To use `npm audit` uncomment the following section
|
||||
#middlewares:
|
||||
# audit:
|
||||
# enabled: true
|
||||
middlewares:
|
||||
audit:
|
||||
enabled: true
|
||||
|
||||
# log settings
|
||||
logs:
|
||||
|
|
|
@ -182,8 +182,18 @@ notify:
|
|||
> For more detailed configuration settings, please [check the source code](https://github.com/verdaccio/verdaccio/tree/master/conf).
|
||||
|
||||
|
||||
|
||||
|
||||
### Audit
|
||||
|
||||
`npm audit` is a new command released with [npm 6.x](https://github.com/npm/npm/releases/tag/v6.1.0). Verdaccio includes
|
||||
a built-in middleware plugin to handle this command.
|
||||
|
||||
> If you have a new installation it comes by default, otherwise you need to add the following props to your config file
|
||||
|
||||
```yaml
|
||||
middlewares:
|
||||
audit:
|
||||
enabled: true
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue