0
Fork 0
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:
Juan Picado @jotadeveloper 2018-05-31 10:41:00 +02:00
parent a22b3a4415
commit 8df186c5d5
No known key found for this signature in database
GPG key ID: 18AC54485952D158
3 changed files with 18 additions and 8 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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
```