NPM.HoistingConflict (NPM v0.6.0)

Copy Markdown View Source

Detects hoisting conflicts in the dependency tree.

When multiple packages depend on different versions of the same package, only one can be hoisted to the top level.

Summary

Functions

Checks if there are any hoisting conflicts.

Counts the number of hoisting conflicts.

Finds packages with conflicting version requirements.

Formats conflict report.

Functions

conflicts?(lockfile)

@spec conflicts?(map()) :: boolean()

Checks if there are any hoisting conflicts.

count(lockfile)

@spec count(map()) :: non_neg_integer()

Counts the number of hoisting conflicts.

find(lockfile)

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

Finds packages with conflicting version requirements.

format_report(conflicts)

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

Formats conflict report.