pub struct PackageStatus {
    pub wanted: String,
    pub latest: String,
    pub location: Option<String>,
    pub dependent: Option<String>,
    pub package_type: String,
    pub homepage: Option<String>,
}
Expand description

Inner, per-package structure when parsing npm-outdated output

Meaning of the fields is from npm-outdated

Fields

wanted: String

wanted is the maximum version of the package that satisfies the semver range specified in package.json. If there’s no available semver range (i.e. you’re running npm outdated –global, or the package isn’t included in package.json), then wanted shows the currently-installed version.

latest: String

latest is the version of the package tagged as latest in the registry. Running npm publish with no special configuration will publish the package with a dist-tag of latest. This may or may not be the maximum version of the package, or the most-recently published version of the package, depending on how the package’s developer manages the latest dist-tag.

location: Option<String>

where in the physical tree the package is located.

dependent: Option<String>

shows which package depends on the displayed dependency

optional since it is new between npm version 6 and 8

package_type: String

tells you whether this package is a dependency or a dev/peer/optional dependency. Packages not included in package.json are always marked dependencies.

homepage: Option<String>

the homepage value contained in the package’s packument

optional since it is not included in all npm versions

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more