mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 23:53:35 +00:00 
			
		
		
		
	Code review
This commit is contained in:
		
							parent
							
								
									70da331cd2
								
							
						
					
					
						commit
						241a772d55
					
				
							
								
								
									
										2
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -83348,7 +83348,7 @@ function getNodeVersionFromFile(versionFilePath) { | ||||
|     try { | ||||
|         const manifest = JSON.parse(contents); | ||||
|         // Presume package.json file.
 | ||||
|         if (typeof manifest === 'object' && manifest !== null) { | ||||
|         if (typeof manifest === 'object' && !!manifest) { | ||||
|             // Support Volta.
 | ||||
|             // See https://docs.volta.sh/guide/understanding#managing-your-project
 | ||||
|             if ((_a = manifest.volta) === null || _a === void 0 ? void 0 : _a.node) { | ||||
|  | ||||
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -93795,7 +93795,7 @@ function getNodeVersionFromFile(versionFilePath) { | ||||
|     try { | ||||
|         const manifest = JSON.parse(contents); | ||||
|         // Presume package.json file.
 | ||||
|         if (typeof manifest === 'object' && manifest !== null) { | ||||
|         if (typeof manifest === 'object' && !!manifest) { | ||||
|             // Support Volta.
 | ||||
|             // See https://docs.volta.sh/guide/understanding#managing-your-project
 | ||||
|             if ((_a = manifest.volta) === null || _a === void 0 ? void 0 : _a.node) { | ||||
|  | ||||
| @ -18,7 +18,7 @@ export function getNodeVersionFromFile(versionFilePath: string): string | null { | ||||
|     const manifest = JSON.parse(contents); | ||||
| 
 | ||||
|     // Presume package.json file.
 | ||||
|     if (typeof manifest === 'object' && manifest !== null) { | ||||
|     if (typeof manifest === 'object' && !!manifest) { | ||||
|       // Support Volta.
 | ||||
|       // See https://docs.volta.sh/guide/understanding#managing-your-project
 | ||||
|       if (manifest.volta?.node) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user