diff options
Diffstat (limited to 'together/node_modules/semver/functions/inc.js')
-rw-r--r-- | together/node_modules/semver/functions/inc.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/together/node_modules/semver/functions/inc.js b/together/node_modules/semver/functions/inc.js new file mode 100644 index 0000000..62d1da2 --- /dev/null +++ b/together/node_modules/semver/functions/inc.js @@ -0,0 +1,18 @@ +const SemVer = require('../classes/semver') + +const inc = (version, release, options, identifier) => { + if (typeof (options) === 'string') { + identifier = options + options = undefined + } + + try { + return new SemVer( + version instanceof SemVer ? version.version : version, + options + ).inc(release, identifier).version + } catch (er) { + return null + } +} +module.exports = inc |