Implements npm shrinkwrap lockfile freezing.
Creates a npm-shrinkwrap.json that locks the entire dependency tree,
including transitive dependencies. Unlike package-lock.json, shrinkwrap
files are published with the package.
Summary
Functions
Creates a shrinkwrap file from the current lockfile.
Checks if a shrinkwrap file exists.
Checks if the shrinkwrap is outdated compared to the lockfile.
Reads and parses the shrinkwrap file.
Removes the shrinkwrap file.
Verifies that installed packages match the shrinkwrap exactly. Returns a list of mismatches.
Functions
Creates a shrinkwrap file from the current lockfile.
Checks if a shrinkwrap file exists.
Checks if the shrinkwrap is outdated compared to the lockfile.
Reads and parses the shrinkwrap file.
Removes the shrinkwrap file.
Verifies that installed packages match the shrinkwrap exactly. Returns a list of mismatches.