/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib
NameSizeModeActions
arborist/-0755rm
add-rm-pkg-deps.js50080644editdlrm
audit-report.js96190644editdlrm
calc-dep-flags.js33590644editdlrm
can-place-dep.js142730644editdlrm
case-insensitive-map.js12390644editdlrm
consistent-resolve.js12470644editdlrm
debug.js12820644editdlrm
deepest-nesting-target.js6910644editdlrm
dep-valid.js51280644editdlrm
diff.js103270644editdlrm
edge.js99880644editdlrm
from-path.js10950644editdlrm
gather-dep-set.js12860644editdlrm
index.js2730644editdlrm
inventory.js33210644editdlrm
isolated-classes.js27170644editdlrm
link.js31140644editdlrm
node.js498280644editdlrm
optional-set.js12010644editdlrm
override-resolves.js2250644editdlrm
override-set.js87730644editdlrm
packument-cache.js25570644editdlrm
peer-entry-sets.js26320644editdlrm
place-dep.js202500644editdlrm
printable.js52220644editdlrm
query-selector-all.js303610644editdlrm
realpath.js26550644editdlrm
relpath.js1360644editdlrm
reset-dep-flags.js5420644editdlrm
retire-path.js5010644editdlrm
shrinkwrap.js377210644editdlrm
signal-handling.js22450644editdlrm
signals.js13810644editdlrm
spec-from-lock.js8740644editdlrm
tracker.js29910644editdlrm
tree-check.js41420644editdlrm
version-from-tgz.js14880644editdlrm
vuln.js59580644editdlrm
yarn-lock.js108130644editdlrm
Edit: /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/isolated-classes.js (2717B)
// Alternate versions of different classes that we use for isolated mode const CaseInsensitiveMap = require('./case-insensitive-map.js') const { resolve } = require('node:path') // fake lib/inventory.js class IsolatedInventory extends Map { query () { return [] } } // fake lib/node.js class IsolatedNode { binPaths = [] children = new CaseInsensitiveMap() edgesIn = new Set() edgesOut = new CaseInsensitiveMap() fsChildren = new Set() hasShrinkwrap = false integrity = null inventory = new IsolatedInventory() isInStore = false linksIn = new Set() meta = { loadedFromDisk: false } optional = false parent = null root = null tops = new Set() workspaces = new Map() constructor (options) { this.location = options.location this.name = options.name this.package = options.package this.path = options.path this.realpath = !this.isLink ? this.path : resolve(options.realpath) if (options.parent) { this.parent = options.parent } if (options.resolved) { this.resolved = options.resolved } if (options.root) { this.root = options.root } if (options.isInStore) { this.isInStore = true } if (options.optional) { this.optional = true } } get isRoot () { return this === this.root } // The idealGraph is where this is set to true get isProjectRoot () { return false } get inDepBundle () { return false } get isLink () { return false } get isTop () { return !this.parent } /* istanbul ignore next -- emulate lib/node.js */ get global () { return false } get globalTop () { return false } /* istanbul ignore next -- emulate lib/node.js */ set target (t) { // nop // In the real lib/node.js this throws in debug mode } get target () { return this } /* istanbul ignore next -- emulate lib/node.js */ getBundler () { return null } /* istanbul ignore next -- emulate lib/node.js */ get hasInstallScript () { const { hasInstallScript, scripts } = this.package const { install, preinstall, postinstall } = scripts || {} return !!(hasInstallScript || install || preinstall || postinstall) } get version () { return this.package.version } } // fake lib/link.js class IsolatedLink extends IsolatedNode { #target isStoreLink = false constructor (options) { super(options) this.#target = options.target if (options.isStoreLink) { this.isStoreLink = true } } get isLink () { return true } set target (t) { this.#target = t } get target () { return this.#target } } module.exports = { IsolatedNode, IsolatedLink }