Expand description
This parses the output of npm-audit
Structs§
- Advisory
- advisory in report version 1
- Dependency
Counts - The vulnerability and dependency counts returned by npm-audit
- Finding
- findings in advisory in report version 1
- Metadata
V1 - The vulnerability and dependency counts returned by npm-audit in report version 1
- Metadata
V2 - The vulnerability and dependency counts returned by npm-audit in report version 2
- NpmAudit
Data V1 - audit report version 1
- NpmAudit
Data V2 - audit report version 2
- Resolves
- Which advisories are resolved by an action
- Vulnerability
Counts V1 - The vulnerability and dependency counts returned by npm-audit in report version 1
- Vulnerability
Counts V2 - The vulnerability and dependency counts returned by npm-audit in report version 2
- Vulnerable
Package - The details for a single vulnerable package
Enums§
- Action
- Actions to perform to fix security issues
- Fix
- a single fix
- Indicated
Update Requirement - What the exit code indicated about required updates
- NpmAudit
Data - This is used to return the data from audit() but not used for parsing since we can not easily tell serde how to decide which to use and the untagged union error messages are not great
- Severity
- Severity of vulnerabilities
- Vulnerability
- a single vulnerability
Functions§
- audit
- main entry point for the npm-audit call
- deserialize_
module_ path - helper to parse module paths
- deserialize_
module_ path_ vec - helper to parse Vec of module paths
- deserialize_
optional_ rfc3339 - helper to parse updated and deleted in the correct format (default time serde implementation seems to use a different format)
- deserialize_
rfc3339 - helper to parse created in the correct format (default time serde implementation seems to use a different format)
- serialize_
module_ path - helper to serialize module paths
- serialize_
module_ path_ vec - helper to serialize Vec of module paths
- serialize_
optional_ rfc3339 - helper to serialize updated and deleted in the correct format (default time serde implementation seems to use a different format)
- serialize_
rfc3339 - helper to serialize created in the correct format (default time serde implementation seems to use a different format)