$37 GRAYBYTE WORDPRESS FILE MANAGER $33

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/@npmcli/arborist/bin/

HOME
Current File : /opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/@npmcli/arborist/bin//prune.js
const Arborist = require('../')

const printTree = require('./lib/print-tree.js')
const log = require('./lib/logging.js')

const printDiff = diff => {
  const { depth } = require('treeverse')
  depth({
    tree: diff,
    visit: d => {
      if (d.location === '') {
        return
      }
      switch (d.action) {
        case 'REMOVE':
          log.info('REMOVE', d.actual.location)
          break
        case 'ADD':
          log.info('ADD', d.ideal.location, d.ideal.resolved)
          break
        case 'CHANGE':
          log.info('CHANGE', d.actual.location, {
            from: d.actual.resolved,
            to: d.ideal.resolved,
          })
          break
      }
    },
    getChildren: d => d.children,
  })
}

module.exports = (options, time) => {
  const arb = new Arborist(options)
  return arb
    .prune(options)
    .then(time)
    .then(async ({ timing, result: tree }) => {
      printTree(tree)
      if (options.dryRun) {
        printDiff(arb.diff)
      }
      if (tree.meta && options.save) {
        await tree.meta.save()
      }
      return `resolved ${tree.inventory.size} deps in ${timing.seconds}`
    })
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Mar 2026 5.04 PM
root / root
0755
lib
--
16 Mar 2026 5.04 PM
root / root
0755
actual.js
0.537 KB
17 Jan 2026 1.16 AM
root / root
0644
audit.js
1.366 KB
17 Jan 2026 1.16 AM
root / root
0644
funding.js
1.115 KB
17 Jan 2026 1.16 AM
root / root
0644
ideal.js
0.387 KB
17 Jan 2026 1.16 AM
root / root
0644
index.js
3.282 KB
17 Jan 2026 1.16 AM
root / root
0755
license.js
1.45 KB
17 Jan 2026 1.16 AM
root / root
0644
prune.js
1.121 KB
17 Jan 2026 1.16 AM
root / root
0644
reify.js
1.121 KB
17 Jan 2026 1.16 AM
root / root
0644
shrinkwrap.js
0.204 KB
17 Jan 2026 1.16 AM
root / root
0644
virtual.js
0.355 KB
17 Jan 2026 1.16 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF