You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					17 lines
				
				472 B
			
		
		
			
		
	
	
					17 lines
				
				472 B
			| 
								 
											3 years ago
										 
									 | 
							
								"use strict";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Object.defineProperty(exports, "__esModule", {
							 | 
						||
| 
								 | 
							
								  value: true
							 | 
						||
| 
								 | 
							
								});
							 | 
						||
| 
								 | 
							
								exports.hasMinVersion = hasMinVersion;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var _semver = require("semver");
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								function hasMinVersion(minVersion, runtimeVersion) {
							 | 
						||
| 
								 | 
							
								  if (!runtimeVersion) return true;
							 | 
						||
| 
								 | 
							
								  if (_semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;
							 | 
						||
| 
								 | 
							
								  return !_semver.intersects(`<${minVersion}`, runtimeVersion) && !_semver.intersects(`>=8.0.0`, runtimeVersion);
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								//# sourceMappingURL=helpers.js.map
							 |