/
snap
/
node
/
11691
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
arborist
/
lib
/
/snap/node/11691/lib/node_modules/npm/node_modules/@npmcli/arborist/lib
mkdir
upload
Name
Size
Mode
Actions
arborist/
-
0755
rm
add-rm-pkg-deps.js
5008
0644
edit
dl
rm
audit-report.js
12232
0644
edit
dl
rm
calc-dep-flags.js
3506
0644
edit
dl
rm
can-place-dep.js
14273
0644
edit
dl
rm
case-insensitive-map.js
1239
0644
edit
dl
rm
consistent-resolve.js
1296
0644
edit
dl
rm
debug.js
1282
0644
edit
dl
rm
deepest-nesting-target.js
691
0644
edit
dl
rm
dep-valid.js
5125
0644
edit
dl
rm
diff.js
10005
0644
edit
dl
rm
edge.js
6784
0644
edit
dl
rm
from-path.js
1095
0644
edit
dl
rm
gather-dep-set.js
1286
0644
edit
dl
rm
index.js
273
0644
edit
dl
rm
inventory.js
3321
0644
edit
dl
rm
isolated-classes.js
2717
0644
edit
dl
rm
link.js
3114
0644
edit
dl
rm
node.js
44529
0644
edit
dl
rm
optional-set.js
1353
0644
edit
dl
rm
override-resolves.js
225
0644
edit
dl
rm
override-set.js
8567
0644
edit
dl
rm
packument-cache.js
2556
0644
edit
dl
rm
peer-entry-sets.js
2632
0644
edit
dl
rm
place-dep.js
20226
0644
edit
dl
rm
printable.js
5222
0644
edit
dl
rm
query-selector-all.js
29903
0644
edit
dl
rm
realpath.js
2655
0644
edit
dl
rm
relpath.js
136
0644
edit
dl
rm
reset-dep-flags.js
638
0644
edit
dl
rm
retire-path.js
501
0644
edit
dl
rm
shrinkwrap.js
37711
0644
edit
dl
rm
signal-handling.js
2245
0644
edit
dl
rm
signals.js
1381
0644
edit
dl
rm
spec-from-lock.js
874
0644
edit
dl
rm
tracker.js
2991
0644
edit
dl
rm
tree-check.js
4142
0644
edit
dl
rm
version-from-tgz.js
1488
0644
edit
dl
rm
vuln.js
5958
0644
edit
dl
rm
yarn-lock.js
10813
0644
edit
dl
rm
Edit:
/snap/node/11691/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 }
Save
cmd:
run