You've already forked setup-dotnet
							
							
				mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 23:36:20 +07:00 
			
		
		
		
	GPR authentication support
This commit is contained in:
		 Alex Mullans
					Alex Mullans
				
			
				
					committed by
					
						 Alex Mullans
						Alex Mullans
					
				
			
			
				
	
			
			
			 Alex Mullans
						Alex Mullans
					
				
			
						parent
						
							6c0e2a2a6b
						
					
				
				
					commit
					6bd4969ec6
				
			
							
								
								
									
										15
									
								
								node_modules/p-finally/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								node_modules/p-finally/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| 'use strict'; | ||||
| module.exports = (promise, onFinally) => { | ||||
| 	onFinally = onFinally || (() => {}); | ||||
|  | ||||
| 	return promise.then( | ||||
| 		val => new Promise(resolve => { | ||||
| 			resolve(onFinally()); | ||||
| 		}).then(() => val), | ||||
| 		err => new Promise(resolve => { | ||||
| 			resolve(onFinally()); | ||||
| 		}).then(() => { | ||||
| 			throw err; | ||||
| 		}) | ||||
| 	); | ||||
| }; | ||||
							
								
								
									
										21
									
								
								node_modules/p-finally/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/p-finally/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| The MIT License (MIT) | ||||
|  | ||||
| Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||||
|  | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| of this software and associated documentation files (the "Software"), to deal | ||||
| in the Software without restriction, including without limitation the rights | ||||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
| copies of the Software, and to permit persons to whom the Software is | ||||
| furnished to do so, subject to the following conditions: | ||||
|  | ||||
| The above copyright notice and this permission notice shall be included in | ||||
| all copies or substantial portions of the Software. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
| THE SOFTWARE. | ||||
							
								
								
									
										77
									
								
								node_modules/p-finally/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								node_modules/p-finally/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,77 @@ | ||||
| { | ||||
|   "_args": [ | ||||
|     [ | ||||
|       "p-finally@1.0.0", | ||||
|       "C:\\dev\\repos\\actions\\setup-dotnet" | ||||
|     ] | ||||
|   ], | ||||
|   "_from": "p-finally@1.0.0", | ||||
|   "_id": "p-finally@1.0.0", | ||||
|   "_inBundle": false, | ||||
|   "_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", | ||||
|   "_location": "/p-finally", | ||||
|   "_phantomChildren": {}, | ||||
|   "_requested": { | ||||
|     "type": "version", | ||||
|     "registry": true, | ||||
|     "raw": "p-finally@1.0.0", | ||||
|     "name": "p-finally", | ||||
|     "escapedName": "p-finally", | ||||
|     "rawSpec": "1.0.0", | ||||
|     "saveSpec": null, | ||||
|     "fetchSpec": "1.0.0" | ||||
|   }, | ||||
|   "_requiredBy": [ | ||||
|     "/execa" | ||||
|   ], | ||||
|   "_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", | ||||
|   "_spec": "1.0.0", | ||||
|   "_where": "C:\\dev\\repos\\actions\\setup-dotnet", | ||||
|   "author": { | ||||
|     "name": "Sindre Sorhus", | ||||
|     "email": "sindresorhus@gmail.com", | ||||
|     "url": "sindresorhus.com" | ||||
|   }, | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/sindresorhus/p-finally/issues" | ||||
|   }, | ||||
|   "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome", | ||||
|   "devDependencies": { | ||||
|     "ava": "*", | ||||
|     "xo": "*" | ||||
|   }, | ||||
|   "engines": { | ||||
|     "node": ">=4" | ||||
|   }, | ||||
|   "files": [ | ||||
|     "index.js" | ||||
|   ], | ||||
|   "homepage": "https://github.com/sindresorhus/p-finally#readme", | ||||
|   "keywords": [ | ||||
|     "promise", | ||||
|     "finally", | ||||
|     "handler", | ||||
|     "function", | ||||
|     "async", | ||||
|     "await", | ||||
|     "promises", | ||||
|     "settled", | ||||
|     "ponyfill", | ||||
|     "polyfill", | ||||
|     "shim", | ||||
|     "bluebird" | ||||
|   ], | ||||
|   "license": "MIT", | ||||
|   "name": "p-finally", | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "git+https://github.com/sindresorhus/p-finally.git" | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "test": "xo && ava" | ||||
|   }, | ||||
|   "version": "1.0.0", | ||||
|   "xo": { | ||||
|     "esnext": true | ||||
|   } | ||||
| } | ||||
							
								
								
									
										47
									
								
								node_modules/p-finally/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								node_modules/p-finally/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,47 @@ | ||||
| # p-finally [](https://travis-ci.org/sindresorhus/p-finally) | ||||
|  | ||||
| > [`Promise#finally()`](https://github.com/tc39/proposal-promise-finally) [ponyfill](https://ponyfill.com) - Invoked when the promise is settled regardless of outcome | ||||
|  | ||||
| Useful for cleanup. | ||||
|  | ||||
|  | ||||
| ## Install | ||||
|  | ||||
| ``` | ||||
| $ npm install --save p-finally | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| ```js | ||||
| const pFinally = require('p-finally'); | ||||
|  | ||||
| const dir = createTempDir(); | ||||
|  | ||||
| pFinally(write(dir), () => cleanup(dir)); | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## API | ||||
|  | ||||
| ### pFinally(promise, [onFinally]) | ||||
|  | ||||
| Returns a `Promise`. | ||||
|  | ||||
| #### onFinally | ||||
|  | ||||
| Type: `Function` | ||||
|  | ||||
| Note: Throwing or returning a rejected promise will reject `promise` with the rejection reason. | ||||
|  | ||||
|  | ||||
| ## Related | ||||
|  | ||||
| - [p-try](https://github.com/sindresorhus/p-try) - `Promise#try()` ponyfill - Starts a promise chain | ||||
| - [More…](https://github.com/sindresorhus/promise-fun) | ||||
|  | ||||
|  | ||||
| ## License | ||||
|  | ||||
| MIT © [Sindre Sorhus](https://sindresorhus.com) | ||||
		Reference in New Issue
	
	Block a user