您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

20 行
464 B

  1. const SemVer = require('../classes/semver')
  2. const inc = (version, release, options, identifier, identifierBase) => {
  3. if (typeof (options) === 'string') {
  4. identifierBase = identifier
  5. identifier = options
  6. options = undefined
  7. }
  8. try {
  9. return new SemVer(
  10. version instanceof SemVer ? version.version : version,
  11. options
  12. ).inc(release, identifier, identifierBase).version
  13. } catch (er) {
  14. return null
  15. }
  16. }
  17. module.exports = inc