/
opt
/
alt
/
alt-nodejs18
/
root
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
metavuln-calculator
/
lib
/
Upload Filee
HOME
module.exports = (mani, name) => { // skip dev because that only matters at the root, // where we aren't fetching a manifest from the registry // with multiple versions anyway. const { dependencies: deps = {}, optionalDependencies: optDeps = {}, peerDependencies: peerDeps = {}, } = mani return deps && typeof deps[name] === 'string' ? deps[name] : optDeps && typeof optDeps[name] === 'string' ? optDeps[name] : peerDeps && typeof peerDeps[name] === 'string' ? peerDeps[name] : null }