Documentation
¶
Overview ¶
Package versiondiff compares lockfile states to compute per-package risk deltas.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffReport ¶
type DiffReport struct {
Base string
NewPackages []PackageDiff
Escalations []PackageDiff
BlastRadiusDelta int // change in affected-package count
Score float64 // 0-20
}
DiffReport summarises risk changes between two lockfile states.
func Compute ¶
func Compute(dir, base, lang string) (DiffReport, error)
Compute compares the current lockfile in dir against base (a git ref or lockfile path). lang must be "auto", "go", or "node".
Click to show internal directories.
Click to hide internal directories.