PATH: //proc/self/root/opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/lib/install
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 access-error.js
↓
X
📁 action/
X
📄 actions.js
↓
X
📄 and-add-parent-to-errors.js
↓
X
📄 and-finish-tracker.js
↓
X
📄 and-ignore-errors.js
↓
X
📄 audit.js
↓
X
📄 check-permissions.js
↓
X
📄 copy-tree.js
↓
X
📄 decompose-actions.js
↓
X
📄 deps.js
↓
X
📄 diff-trees.js
↓
X
📄 exists.js
↓
X
📄 flatten-tree.js
↓
X
📄 fund.js
↓
X
📄 get-requested.js
↓
X
📄 has-modern-meta.js
↓
X
📄 inflate-bundled.js
↓
X
📄 inflate-shrinkwrap.js
↓
X
📄 is-dev-dep.js
↓
X
📄 is-extraneous.js
↓
X
📄 is-fs-access-available.js
↓
X
📄 is-only-dev.js
↓
X
📄 is-only-optional.js
↓
X
📄 is-opt-dep.js
↓
X
📄 is-prod-dep.js
↓
X
📄 module-staging-path.js
↓
X
📄 mutate-into-logical-tree.js
↓
X
📄 node.js
↓
X
📄 read-shrinkwrap.js
↓
X
📄 realize-shrinkwrap-specifier.js
↓
X
📄 report-optional-failure.js
↓
X
📄 save.js
↓
X
📄 update-package-json.js
↓
X
📄 validate-args.js
↓
X
📄 validate-tree.js
↓
X
📄 writable.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: flatten-tree.js
'use strict' var validate = require('aproba') var moduleName = require('../utils/module-name.js') module.exports = flattenTree module.exports.flatName = flatName module.exports.flatNameFromTree = flatNameFromTree function flattenTree (tree) { validate('O', arguments) var seen = new Set() var flat = {} var todo = [[tree, '/']] while (todo.length) { var next = todo.shift() var pkg = next[0] seen.add(pkg) var path = next[1] flat[path] = pkg if (path !== '/') path += '/' for (var ii = 0; ii < pkg.children.length; ++ii) { var child = pkg.children[ii] if (!seen.has(child)) { todo.push([child, flatName(path, child)]) } } } return flat } function flatName (path, child) { validate('SO', arguments) return path + (moduleName(child) || 'TOP') } function flatNameFromTree (tree) { validate('O', arguments) if (tree.isTop) return '/' var path = flatNameFromTree(tree.parent) if (path !== '/') path += '/' return flatName(path, tree) }
SIMPAN PERUBAHAN