✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server303.web-hosting.com ​🇻​♯➤ 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 199.188.205.31 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.41
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /lib/node_modules/npm/lib/install//validate-tree.js
'use strict'
var path = require('path')
var validate = require('aproba')
var asyncMap = require('slide').asyncMap
var chain = require('slide').chain
var npmInstallChecks = require('npm-install-checks')
var checkGit = npmInstallChecks.checkGit
var clone = require('lodash.clonedeep')
var normalizePackageData = require('normalize-package-data')
var npm = require('../npm.js')
var andFinishTracker = require('./and-finish-tracker.js')
var flattenTree = require('./flatten-tree.js')
var validateAllPeerDeps = require('./deps.js').validateAllPeerDeps
var packageId = require('../utils/package-id.js')

module.exports = function (idealTree, log, next) {
  validate('OOF', arguments)
  var moduleMap = flattenTree(idealTree)
  var modules = Object.keys(moduleMap).map(function (name) { return moduleMap[name] })

  chain([
    [asyncMap, modules, function (mod, done) {
      chain([
        mod.parent && !mod.isLink && [checkGit, mod.realpath],
        [checkErrors, mod, idealTree]
      ], done)
    }],
    [thenValidateAllPeerDeps, idealTree],
    [thenCheckTop, idealTree],
    [thenCheckDuplicateDeps, idealTree]
  ], andFinishTracker(log, next))
}

function checkErrors (mod, idealTree, next) {
  if (mod.error && (mod.parent || path.resolve(npm.globalDir, '..') !== mod.path)) idealTree.warnings.push(mod.error)
  next()
}

function thenValidateAllPeerDeps (idealTree, next) {
  validate('OF', arguments)
  validateAllPeerDeps(idealTree, function (tree, pkgname, version) {
    var warn = new Error(packageId(tree) + ' requires a peer of ' + pkgname + '@' +
      version + ' but none is installed. You must install peer dependencies yourself.')
    warn.code = 'EPEERINVALID'
    idealTree.warnings.push(warn)
  })
  next()
}

function thenCheckTop (idealTree, next) {
  validate('OF', arguments)
  if (idealTree.package.error) return next()

  // FIXME: when we replace read-package-json with something less magic,
  // this should done elsewhere.
  // As it is, the package has already been normalized and thus some
  // errors are suppressed.
  var pkg = clone(idealTree.package)
  try {
    normalizePackageData(pkg, function (warn) {
      var warnObj = new Error(packageId(idealTree) + ' ' + warn)
      warnObj.code = 'EPACKAGEJSON'
      idealTree.warnings.push(warnObj)
    }, false)
  } catch (er) {
    er.code = 'EPACKAGEJSON'
    idealTree.warnings.push(er)
  }

  var nodeVersion = npm.config.get('node-version')
  if (/-/.test(nodeVersion)) {
    // if this is a prerelease node…
    var warnObj = new Error('You are using a pre-release version of node and things may not work as expected')
    warnObj.code = 'ENODEPRE'
    idealTree.warnings.push(warnObj)
  }

  next()
}

// check for deps duplciated between devdeps and regular deps
function thenCheckDuplicateDeps (idealTree, next) {
  var deps = idealTree.package.dependencies || {}
  var devDeps = idealTree.package.devDependencies || {}

  for (var pkg in devDeps) {
    if (pkg in deps) {
      var warnObj = new Error('The package ' + pkg + ' is included as both a dev and production dependency.')
      warnObj.code = 'EDUPLICATEDEP'
      idealTree.warnings.push(warnObj)
    }
  }

  next()
}


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Mar 2024 10.36 PM
root / root
0755
action
--
3 Mar 2024 10.36 PM
root / root
0755
access-error.js
0.197 KB
10 Mar 2021 2.36 PM
root / root
0644
actions.js
5.516 KB
10 Mar 2021 2.36 PM
root / root
0644
and-add-parent-to-errors.js
0.366 KB
10 Mar 2021 2.36 PM
root / root
0644
and-finish-tracker.js
0.352 KB
10 Mar 2021 2.36 PM
root / root
0644
and-ignore-errors.js
0.199 KB
10 Mar 2021 2.36 PM
root / root
0644
audit.js
8.243 KB
10 Mar 2021 2.36 PM
root / root
0644
check-permissions.js
1.853 KB
10 Mar 2021 2.36 PM
root / root
0644
copy-tree.js
0.752 KB
10 Mar 2021 2.36 PM
root / root
0644
decompose-actions.js
2.18 KB
10 Mar 2021 2.36 PM
root / root
0644
deps.js
30.32 KB
10 Mar 2021 2.36 PM
root / root
0644
diff-trees.js
9.119 KB
10 Mar 2021 2.36 PM
root / root
0644
exists.js
0.757 KB
10 Mar 2021 2.36 PM
root / root
0644
flatten-tree.js
0.997 KB
10 Mar 2021 2.36 PM
root / root
0644
fund.js
1.282 KB
10 Mar 2021 2.36 PM
root / root
0644
get-requested.js
0.62 KB
10 Mar 2021 2.36 PM
root / root
0644
has-modern-meta.js
0.686 KB
10 Mar 2021 2.36 PM
root / root
0644
inflate-bundled.js
0.613 KB
10 Mar 2021 2.36 PM
root / root
0644
inflate-shrinkwrap.js
8.873 KB
10 Mar 2021 2.36 PM
root / root
0644
is-dev-dep.js
0.171 KB
10 Mar 2021 2.36 PM
root / root
0644
is-extraneous.js
0.604 KB
10 Mar 2021 2.36 PM
root / root
0644
is-fs-access-available.js
0.745 KB
10 Mar 2021 2.36 PM
root / root
0644
is-only-dev.js
1.238 KB
10 Mar 2021 2.36 PM
root / root
0644
is-only-optional.js
0.658 KB
10 Mar 2021 2.36 PM
root / root
0644
is-opt-dep.js
0.181 KB
10 Mar 2021 2.36 PM
root / root
0644
is-prod-dep.js
0.168 KB
10 Mar 2021 2.36 PM
root / root
0644
module-staging-path.js
0.253 KB
10 Mar 2021 2.36 PM
root / root
0644
mutate-into-logical-tree.js
4.516 KB
10 Mar 2021 2.36 PM
root / root
0644
node.js
1.851 KB
10 Mar 2021 2.36 PM
root / root
0644
read-shrinkwrap.js
3.672 KB
10 Mar 2021 2.36 PM
root / root
0644
realize-shrinkwrap-specifier.js
0.606 KB
10 Mar 2021 2.36 PM
root / root
0644
report-optional-failure.js
1.017 KB
10 Mar 2021 2.36 PM
root / root
0644
save.js
5.908 KB
10 Mar 2021 2.36 PM
root / root
0644
update-package-json.js
1.87 KB
10 Mar 2021 2.36 PM
root / root
0644
validate-args.js
2.731 KB
10 Mar 2021 2.36 PM
root / root
0644
validate-tree.js
3.104 KB
10 Mar 2021 2.36 PM
root / root
0644
writable.js
1.003 KB
10 Mar 2021 2.36 PM
root / root
0644

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