All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.functions.inc.js Maven / Gradle / Ivy

There is a newer version: 7.6.3
Show newest version
const SemVer = require('../classes/semver')

const inc = (version, release, options, identifier, identifierBase) => {
  if (typeof (options) === 'string') {
    identifierBase = identifier
    identifier = options
    options = undefined
  }

  try {
    return new SemVer(
      version instanceof SemVer ? version.version : version,
      options
    ).inc(release, identifier, identifierBase).version
  } catch (er) {
    return null
  }
}
module.exports = inc




© 2015 - 2024 Weber Informatics LLC | Privacy Policy