source: trip-planner-front/node_modules/semver/functions/inc.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 336 bytes
RevLine 
[6a3a178]1const SemVer = require('../classes/semver')
2
3const 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}
15module.exports = inc
Note: See TracBrowser for help on using the repository browser.