npm

package
v3.9.1-2868 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

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