Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
336 bytes
|
Line | |
---|
1 | const SemVer = require('../classes/semver')
|
---|
2 |
|
---|
3 | const 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 | }
|
---|
15 | module.exports = inc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.