npm

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutDateRatingNewMajorVersionAvailable = 500
	OutDateRatingNewMinorVersionAvailable = 400
	OutDateRatingNewPatchVersionAvailable = 300
	OutDateRatingNoNewVersionAvailable    = 200
)
View Source
const (
	OutDateRatingMessageNewMajorVersionAvailable = "New major version available"
	OutDateRatingMessageNewMinorVersionAvailable = "New minor version available"
	OutDateRatingMessageNewPatchVersionAvailable = "New patch version available"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency added in v0.24.5

type Dependency struct {
	Version    string `json:"version"`
	Resolved   string `json:"resolved"`
	Overridden bool   `json:"overridden"`
}

type Mod added in v0.24.5

type Mod struct {
	Name         string                `json:"name"`
	Version      string                `json:"version"`
	Dependencies map[string]Dependency `json:"dependencies"`
}

type OutDate

type OutDate struct {
	Name           string          `json:"name"`
	Current        string          `json:"current"`
	CurrentVersion *helper.Version `json:"currentVersion"`
	Wanted         string          `json:"wanted"`
	WantedVersion  *helper.Version `json:"wantedVersion"`
	Latest         string          `json:"latest"`
	LatestVersion  *helper.Version `json:"latestVersion"`
	Dependent      string          `json:"dependent"`
	Rating         *OutDateRating  `json:"rating"`
}

func NewOutDate

func NewOutDate(name, current, wanted, latest, dependent string) (*OutDate, error)

func (*OutDate) NewMajorVersionAvailable

func (o *OutDate) NewMajorVersionAvailable() bool

func (*OutDate) NewMinorVersionAvailable

func (o *OutDate) NewMinorVersionAvailable() bool

func (*OutDate) NewPatchVersionAvailable

func (o *OutDate) NewPatchVersionAvailable() bool

func (*OutDate) Rate

func (o *OutDate) Rate()

type OutDateRating

type OutDateRating struct {
	StatusCode int
	Message    string
}

Jump to

Keyboard shortcuts

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