Server IP : 162.0.209.157 / Your IP : 3.138.134.149 [ Web Server : LiteSpeed System : Linux premium178.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : balaoqob ( 2395) PHP Version : 8.0.30 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib/node_modules/npm/lib/install/ |
Upload File : |
'use strict' var npa = require('npm-package-arg') const isRegistry = require('../utils/is-registry.js') module.exports = function (name, sw, where) { try { if (sw.version && sw.integrity) { return npa.resolve(name, sw.version, where) } else if (sw.from) { const spec = npa(sw.from, where) if (isRegistry(spec) && sw.version) { return npa.resolve(name, sw.version, where) } else if (!sw.resolved) { return spec } } if (sw.resolved) { return npa.resolve(name, sw.resolved, where) } } catch (_) { } return npa.resolve(name, sw.version, where) }