Files
syft/syft/pkg/deno.go
T
Rez MossandChristopher Phillips fea4a50124 feat: deno cataloger #4417 (#4523)
Signed-off-by: Rez Moss <hi@rezmoss.com>
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Co-authored-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
2026-06-23 10:58:22 -04:00

20 lines
826 B
Go

package pkg
// DenoLockEntry is a struct that rep a single entry found in the "packages" section of a Deno deno.lock file
type DenoLockEntry struct {
// Integrity is the crpto hash of the package content for verification
Integrity string `mapstructure:"integrity" json:"integrity"`
// Dependencies is the list of package specifiers that this package depends on
Dependencies []string `mapstructure:"dependencies" json:"dependencies"`
}
// DenoRemoteLockEntry is a struct that rep a single entry found in the "remote" section of a Deno deno.lock file
type DenoRemoteLockEntry struct {
// URL is the remote URL from which the module fetcef
URL string `mapstructure:"url" json:"url"`
// Integrity is the crpto hash of the package content for verification
Integrity string `mapstructure:"integrity" json:"integrity"`
}