![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/thread-self/root/opt/cpanel/ea-nodejs10/lib/node_modules/npm/lib/install/ |
'use strict' module.exports = hasModernMeta const npa = require('npm-package-arg') const moduleName = require('../utils/module-name.js') function isLink (child) { return child.isLink || (child.parent && isLink(child.parent)) } function hasModernMeta (child) { if (!child) return false const resolved = child.package._resolved && npa.resolve(moduleName(child), child.package._resolved) const version = npa.resolve(moduleName(child), child.package.version) return child.isTop || isLink(child) || child.fromBundle || child.package._inBundle || child.package._integrity || child.package._shasum || (resolved && resolved.type === 'git') || (version && version.type === 'git') }