$20 GRAYBYTE WORDPRESS FILE MANAGER $33

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.179
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/lib/utils/

HOME
Current File : /opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/lib/utils//validate-lockfile.js
// compares the inventory of package items in the tree
// that is about to be installed (idealTree) with the inventory
// of items stored in the package-lock file (virtualTree)
//
// Returns empty array if no errors found or an array populated
// with an entry for each validation error found.
function validateLockfile (virtualTree, idealTree) {
  const errors = []

  // loops through the inventory of packages resulted by ideal tree,
  // for each package compares the versions with the version stored in the
  // package-lock and adds an error to the list in case of mismatches
  for (const [key, entry] of idealTree.entries()) {
    const lock = virtualTree.get(key)

    if (!lock) {
      errors.push(`Missing: ${entry.name}@${entry.version} from lock file`)
      continue
    }

    if (entry.version !== lock.version) {
      errors.push(`Invalid: lock file's ${lock.name}@${lock.version} does ` +
      `not satisfy ${entry.name}@${entry.version}`)
    }
  }
  return errors
}

module.exports = validateLockfile


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 May 2026 8.36 AM
root / root
0755
audit-error.js
1.053 KB
24 Apr 2026 3.56 PM
root / root
0644
auth.js
3.211 KB
24 Apr 2026 3.56 PM
root / root
0644
cmd-list.js
2.884 KB
24 Apr 2026 3.56 PM
root / root
0644
completion.fish
1.559 KB
24 Apr 2026 3.56 PM
root / root
0644
completion.sh
1.854 KB
24 Apr 2026 3.56 PM
root / root
0755
did-you-mean.js
1.116 KB
24 Apr 2026 3.56 PM
root / root
0644
display.js
16.367 KB
24 Apr 2026 3.56 PM
root / root
0644
error-message.js
15.405 KB
24 Apr 2026 3.56 PM
root / root
0644
explain-dep.js
3.563 KB
24 Apr 2026 3.56 PM
root / root
0644
explain-eresolve.js
2.521 KB
24 Apr 2026 3.56 PM
root / root
0644
format-bytes.js
0.609 KB
24 Apr 2026 3.56 PM
root / root
0644
format-search-stream.js
4.798 KB
24 Apr 2026 3.56 PM
root / root
0644
format.js
2.09 KB
24 Apr 2026 3.56 PM
root / root
0644
get-identity.js
0.778 KB
24 Apr 2026 3.56 PM
root / root
0644
get-workspaces.js
1.707 KB
24 Apr 2026 3.56 PM
root / root
0644
installed-deep.js
1.103 KB
24 Apr 2026 3.56 PM
root / root
0644
installed-shallow.js
0.569 KB
24 Apr 2026 3.56 PM
root / root
0644
is-windows.js
0.173 KB
24 Apr 2026 3.56 PM
root / root
0644
log-file.js
7.676 KB
24 Apr 2026 3.56 PM
root / root
0644
npm-usage.js
2.023 KB
24 Apr 2026 3.56 PM
root / root
0644
oidc.js
7.195 KB
24 Apr 2026 3.56 PM
root / root
0644
open-url.js
2.493 KB
24 Apr 2026 3.56 PM
root / root
0644
output-error.js
0.77 KB
24 Apr 2026 3.56 PM
root / root
0644
ping.js
0.259 KB
24 Apr 2026 3.56 PM
root / root
0644
queryable.js
9.386 KB
24 Apr 2026 3.56 PM
root / root
0644
read-user-info.js
2.046 KB
24 Apr 2026 3.56 PM
root / root
0644
reify-finish.js
0.735 KB
24 Apr 2026 3.56 PM
root / root
0644
reify-output.js
6.323 KB
24 Apr 2026 3.56 PM
root / root
0644
sbom-cyclonedx.js
5.523 KB
24 Apr 2026 3.56 PM
root / root
0644
sbom-spdx.js
5.164 KB
24 Apr 2026 3.56 PM
root / root
0644
tar.js
3.429 KB
24 Apr 2026 3.56 PM
root / root
0644
timers.js
2.07 KB
24 Apr 2026 3.56 PM
root / root
0644
update-workspaces.js
0.974 KB
24 Apr 2026 3.56 PM
root / root
0644
validate-lockfile.js
0.999 KB
24 Apr 2026 3.56 PM
root / root
0644
verify-signatures.js
12.206 KB
24 Apr 2026 3.56 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF