index.js
function (version, semverIndex)
	{
		const splittedVersion = version.split('.');
		splittedVersion[ semverIndex ] = parseInt(splittedVersion[ semverIndex ], 10) + 1;
		while (semverIndex < 2)
		{
			splittedVersion[ ++semverIndex ] = '0';
		}
		return splittedVersion.join('.');
	}
function (version, semverIndex)
	{
		const splittedVersion = version.split('.');
		splittedVersion[ semverIndex ] = parseInt(splittedVersion[ semverIndex ], 10) + 1;
		while (semverIndex < 2)
		{
			splittedVersion[ ++semverIndex ] = '0';
		}
		return splittedVersion.join('.');
	}
function ( version , semverIndex ) { const splittedVersion = version . split ( '.' ) ; splittedVersion [ semverIndex ] = parseInt ( splittedVersion [ semverIndex ] , 10 ) + 1 ; while ( semverIndex < 2 ) { splittedVersion [ ++ semverIndex ] = '0' ; } return splittedVersion . join ( '.' ) ; }
Increment a version which is as a string.
Increment a version which is as a string .