????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././opt/alt/alt-nodejs22/root/lib/node_modules/npm/node_modules/libnpmversion/lib/ |
Upload File : |
const readJson = require('./read-json.js')
const version = require('./version.js')
module.exports = async (newversion, opts = {}) => {
const {
path = process.cwd(),
allowSameVersion = false,
tagVersionPrefix = 'v',
commitHooks = true,
gitTagVersion = true,
signGitCommit = false,
signGitTag = false,
force = false,
ignoreScripts = false,
scriptShell = undefined,
preid = null,
message = 'v%s',
} = opts
const pkg = opts.pkg || await readJson(path + '/package.json')
return version(newversion, {
path,
cwd: path,
allowSameVersion,
tagVersionPrefix,
commitHooks,
gitTagVersion,
signGitCommit,
signGitTag,
force,
ignoreScripts,
scriptShell,
preid,
pkg,
message,
})
}