mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-15 01:24:07 -05:00
feat: support auditLevel (#10554)
* feat: support `auditLevel` * refactor: auditLevel --------- Co-authored-by: Zoltan Kochan <z@kochan.io>
This commit is contained in:
7
.changeset/lucky-bikes-nail.md
Normal file
7
.changeset/lucky-bikes-nail.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-audit": minor
|
||||
"@pnpm/config": minor
|
||||
"pnpm": minor
|
||||
---
|
||||
|
||||
Support configuring `auditLevel` in the `pnpm-workspace.yaml` file [#10540](https://github.com/pnpm/pnpm/issues/10540).
|
||||
@@ -238,6 +238,7 @@ export interface Config extends OptionsFromRootManifest {
|
||||
trustPolicy?: TrustPolicy
|
||||
trustPolicyExclude?: string[]
|
||||
trustPolicyIgnoreAfter?: number
|
||||
auditLevel?: 'low' | 'moderate' | 'high' | 'critical'
|
||||
}
|
||||
|
||||
export interface ConfigWithDeprecatedSettings extends Config {
|
||||
|
||||
@@ -142,4 +142,5 @@ export const types = Object.assign({
|
||||
cpu: [String, Array],
|
||||
libc: [String, Array],
|
||||
os: [String, Array],
|
||||
'audit-level': ['low', 'moderate', 'high', 'critical'],
|
||||
}, npmTypes.types)
|
||||
|
||||
@@ -125,7 +125,6 @@ export function help (): string {
|
||||
}
|
||||
|
||||
export type AuditOptions = Pick<UniversalOptions, 'dir'> & {
|
||||
auditLevel?: 'low' | 'moderate' | 'high' | 'critical'
|
||||
fix?: boolean
|
||||
ignoreRegistryErrors?: boolean
|
||||
json?: boolean
|
||||
@@ -134,6 +133,7 @@ export type AuditOptions = Pick<UniversalOptions, 'dir'> & {
|
||||
ignore?: string[]
|
||||
ignoreUnfixable?: boolean
|
||||
} & Pick<Config, 'auditConfig'
|
||||
| 'auditLevel'
|
||||
| 'ca'
|
||||
| 'cert'
|
||||
| 'httpProxy'
|
||||
|
||||
Reference in New Issue
Block a user