npm

package
v0.49.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparer

type Comparer struct{}

Comparer represents a comparer for npm

func (Comparer) IsVulnerable

func (n Comparer) IsVulnerable(ver string, advisory dbTypes.Advisory) bool

IsVulnerable checks if the package version is vulnerable to the advisory.

func (Comparer) MatchVersion added in v0.39.0

func (n Comparer) MatchVersion(currentVersion, constraint string) (bool, error)

MatchVersion checks if the package version satisfies the given constraint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL