NPM.PackageUpdate (NPM v0.6.0)

Copy Markdown View Source

Computes available package updates by comparing locked vs latest versions.

Summary

Functions

Computes all available updates.

Formats updates for display.

Groups updates by type.

Counts updates by type.

Classifies an update type.

Functions

compute(packages)

@spec compute([{String.t(), String.t(), String.t()}]) :: [map()]

Computes all available updates.

format(updates)

@spec format([map()]) :: String.t()

Formats updates for display.

group_by_type(updates)

@spec group_by_type([map()]) :: map()

Groups updates by type.

summary(updates)

@spec summary([map()]) :: map()

Counts updates by type.

update_type(current, latest)

@spec update_type(String.t(), String.t()) :: atom()

Classifies an update type.