NPM.SnapshotDiff (NPM v0.6.0)

Copy Markdown View Source

Compares two lockfile snapshots to determine what changed.

Summary

Functions

Computes the diff between two lockfiles.

Formats a detailed diff for display.

Checks if two lockfiles are identical.

Returns a summary of changes.

Functions

diff(old, new)

@spec diff(map(), map()) :: map()

Computes the diff between two lockfiles.

format(diff_result)

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

Formats a detailed diff for display.

identical?(old, new)

@spec identical?(map(), map()) :: boolean()

Checks if two lockfiles are identical.

summary(diff_result)

@spec summary(map()) :: String.t()

Returns a summary of changes.