source: frontend/node_modules/semver/functions/inc.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 478 bytes
Line 
1'use strict'
2
3const SemVer = require('../classes/semver')
4
5const inc = (version, release, options, identifier, identifierBase) => {
6 if (typeof (options) === 'string') {
7 identifierBase = identifier
8 identifier = options
9 options = undefined
10 }
11
12 try {
13 return new SemVer(
14 version instanceof SemVer ? version.version : version,
15 options
16 ).inc(release, identifier, identifierBase).version
17 } catch (er) {
18 return null
19 }
20}
21module.exports = inc
Note: See TracBrowser for help on using the repository browser.