PATH:
opt
/
bitninja-node-dojo
/
lib
/
node_modules
/
npm
/
lib
/
install
'use strict' var createNode = require('./node.js').create module.exports = function (tree) { return copyTree(tree, {}) } function copyTree (tree, cache) { if (cache[tree.path]) { return cache[tree.path] } var newTree = cache[tree.path] = createNode(Object.assign({}, tree)) copyModuleList(newTree, 'children', cache) newTree.children.forEach(function (child) { child.parent = newTree }) copyModuleList(newTree, 'requires', cache) copyModuleList(newTree, 'requiredBy', cache) return newTree } function copyModuleList (tree, key, cache) { var newList = [] if (tree[key]) { tree[key].forEach(function (child) { const copy = copyTree(child, cache) if (copy) { newList.push(copy) } }) } tree[key] = newList }
[+]
action
[-] validate-args.js
[edit]
[-] save.js
[edit]
[-] is-prod-dep.js
[edit]
[-] get-requested.js
[edit]
[-] actions.js
[edit]
[-] is-fs-access-available.js
[edit]
[-] copy-tree.js
[edit]
[-] writable.js
[edit]
[+]
..
[-] update-package-json.js
[edit]
[-] is-only-dev.js
[edit]
[-] is-only-optional.js
[edit]
[-] check-permissions.js
[edit]
[-] inflate-shrinkwrap.js
[edit]
[-] flatten-tree.js
[edit]
[-] is-extraneous.js
[edit]
[-] access-error.js
[edit]
[-] audit.js
[edit]
[-] exists.js
[edit]
[-] mutate-into-logical-tree.js
[edit]
[-] fund.js
[edit]
[-] module-staging-path.js
[edit]
[-] deps.js
[edit]
[-] validate-tree.js
[edit]
[-] and-finish-tracker.js
[edit]
[-] is-dev-dep.js
[edit]
[-] diff-trees.js
[edit]
[-] decompose-actions.js
[edit]
[-] node.js
[edit]
[-] realize-shrinkwrap-specifier.js
[edit]
[-] and-ignore-errors.js
[edit]
[-] inflate-bundled.js
[edit]
[-] read-shrinkwrap.js
[edit]
[-] and-add-parent-to-errors.js
[edit]
[-] has-modern-meta.js
[edit]
[-] report-optional-failure.js
[edit]
[-] is-opt-dep.js
[edit]