lib/semver-utils.js
function (increment) {
        increment = increment || Semver.PATCH; // default is patch
        switch (increment) {
            /* jshint indent: false */
            case Semver.MAJOR:
                this.major++;
                this.minor = this.patch = 0;
                break;
            case Semver.MINOR:
                this.minor++;
                this.patch = 0;
                break;
            case Semver.PATCH:
                this.patch++;
                break;
        }
        return this;
    }
function (increment) {
        increment = increment || Semver.PATCH; // default is patch
        switch (increment) {
            /* jshint indent: false */
            case Semver.MAJOR:
                this.major++;
                this.minor = this.patch = 0;
                break;
            case Semver.MINOR:
                this.minor++;
                this.patch = 0;
                break;
            case Semver.PATCH:
                this.patch++;
                break;
        }
        return this;
    }
function ( increment ) { increment = increment || Semver . PATCH ; // default is patch switch ( increment ) { /* jshint indent: false */ case Semver . MAJOR : this . major ++ ; this . minor = this . patch = 0 ; break ; case Semver . MINOR : this . minor ++ ; this . patch = 0 ; break ; case Semver . PATCH : this . patch ++ ; break ; } return this ; }
Increases version number using increment factor.

@param increment indicates which part of version should be pumped (major, minor, patch).
@returns {*} current Semver instance for method chaining.
Increases version number using increment factor .