mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	modules
This commit is contained in:
		
							
								
								
									
										18
									
								
								node_modules/semver/functions/inc.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								node_modules/semver/functions/inc.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -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 | ||||
		Reference in New Issue
	
	Block a user