Struct npm_parser::outdated::PackageStatus
source · [−]pub struct PackageStatus {
pub wanted: String,
pub latest: String,
pub location: Option<String>,
pub dependent: String,
pub package_type: String,
pub homepage: 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: String
shows which package depends on the displayed dependency
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: String
the homepage value contained in the package’s packument
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for PackageStatus
impl Send for PackageStatus
impl Sync for PackageStatus
impl Unpin for PackageStatus
impl UnwindSafe for PackageStatus
Blanket Implementations
Mutably borrows from an owned value. Read more
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