add modules

This commit is contained in:
OpportunityLiu
2020-03-20 20:40:54 +08:00
Unverified
parent 81726402f6
commit 755d0b485b
79 changed files with 6101 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
const SemVer = require('../classes/semver')
const inc = (version, release, options, identifier) => {
if (typeof (options) === 'string') {
identifier = options
options = undefined
}
try {
return new SemVer(version, options).inc(release, identifier).version
} catch (er) {
return null
}
}
module.exports = inc