projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update .bashrc
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
semver
/
functions
/
inc.js
1
const SemVer = require('../classes/semver')
2
3
const inc = (version, release, options, identifier) => {
4
if (typeof (options) === 'string') {
5
identifier = options
6
options = undefined
7
}
8
9
try {
10
return new SemVer(version, options).inc(release, identifier).version
11
} catch (er) {
12
return null
13
}
14
}
15
module.exports = inc