mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:48:39 +08:00 
			
		
		
		
	type
This commit is contained in:
		
							parent
							
								
									c30eb5542e
								
							
						
					
					
						commit
						f248408e15
					
				
							
								
								
									
										17
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -5748,13 +5748,18 @@ class CacheServiceClient {
 | 
				
			||||||
    maskSecretUrls(body) {
 | 
					    maskSecretUrls(body) {
 | 
				
			||||||
        (0, core_1.debug)('body is passed to masksecreturls');
 | 
					        (0, core_1.debug)('body is passed to masksecreturls');
 | 
				
			||||||
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
					        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
				
			||||||
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
 | 
					        if (typeof body === 'object' && body !== null) {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signedupload url');
 | 
					            if ('signed_upload_url' in body && typeof body.signed_upload_url === 'string') {
 | 
				
			||||||
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
 | 
					                (0, core_1.debug)('entered that there is signed_upload_url');
 | 
				
			||||||
 | 
					                this.maskSigUrl(body.signed_upload_url, 'signed_upload_url');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
 | 
					            if ('signed_download_url' in body && typeof body.signed_download_url === 'string') {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signed download url');
 | 
					                (0, core_1.debug)('entered that there is signed_download_url');
 | 
				
			||||||
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
 | 
					                this.maskSigUrl(body.signed_download_url, 'signed_download_url');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            (0, core_1.debug)('body is not an object or is null');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    isSuccessStatusCode(statusCode) {
 | 
					    isSuccessStatusCode(statusCode) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										17
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -5748,13 +5748,18 @@ class CacheServiceClient {
 | 
				
			||||||
    maskSecretUrls(body) {
 | 
					    maskSecretUrls(body) {
 | 
				
			||||||
        (0, core_1.debug)('body is passed to masksecreturls');
 | 
					        (0, core_1.debug)('body is passed to masksecreturls');
 | 
				
			||||||
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
					        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
				
			||||||
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
 | 
					        if (typeof body === 'object' && body !== null) {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signedupload url');
 | 
					            if ('signed_upload_url' in body && typeof body.signed_upload_url === 'string') {
 | 
				
			||||||
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
 | 
					                (0, core_1.debug)('entered that there is signed_upload_url');
 | 
				
			||||||
 | 
					                this.maskSigUrl(body.signed_upload_url, 'signed_upload_url');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
 | 
					            if ('signed_download_url' in body && typeof body.signed_download_url === 'string') {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signed download url');
 | 
					                (0, core_1.debug)('entered that there is signed_download_url');
 | 
				
			||||||
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
 | 
					                this.maskSigUrl(body.signed_download_url, 'signed_download_url');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            (0, core_1.debug)('body is not an object or is null');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    isSuccessStatusCode(statusCode) {
 | 
					    isSuccessStatusCode(statusCode) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										17
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -5748,13 +5748,18 @@ class CacheServiceClient {
 | 
				
			||||||
    maskSecretUrls(body) {
 | 
					    maskSecretUrls(body) {
 | 
				
			||||||
        (0, core_1.debug)('body is passed to masksecreturls');
 | 
					        (0, core_1.debug)('body is passed to masksecreturls');
 | 
				
			||||||
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
					        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
				
			||||||
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
 | 
					        if (typeof body === 'object' && body !== null) {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signedupload url');
 | 
					            if ('signed_upload_url' in body && typeof body.signed_upload_url === 'string') {
 | 
				
			||||||
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
 | 
					                (0, core_1.debug)('entered that there is signed_upload_url');
 | 
				
			||||||
 | 
					                this.maskSigUrl(body.signed_upload_url, 'signed_upload_url');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
 | 
					            if ('signed_download_url' in body && typeof body.signed_download_url === 'string') {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signed download url');
 | 
					                (0, core_1.debug)('entered that there is signed_download_url');
 | 
				
			||||||
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
 | 
					                this.maskSigUrl(body.signed_download_url, 'signed_download_url');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            (0, core_1.debug)('body is not an object or is null');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    isSuccessStatusCode(statusCode) {
 | 
					    isSuccessStatusCode(statusCode) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										17
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -5748,13 +5748,18 @@ class CacheServiceClient {
 | 
				
			||||||
    maskSecretUrls(body) {
 | 
					    maskSecretUrls(body) {
 | 
				
			||||||
        (0, core_1.debug)('body is passed to masksecreturls');
 | 
					        (0, core_1.debug)('body is passed to masksecreturls');
 | 
				
			||||||
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
					        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
 | 
				
			||||||
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
 | 
					        if (typeof body === 'object' && body !== null) {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signedupload url');
 | 
					            if ('signed_upload_url' in body && typeof body.signed_upload_url === 'string') {
 | 
				
			||||||
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
 | 
					                (0, core_1.debug)('entered that there is signed_upload_url');
 | 
				
			||||||
 | 
					                this.maskSigUrl(body.signed_upload_url, 'signed_upload_url');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
 | 
					            if ('signed_download_url' in body && typeof body.signed_download_url === 'string') {
 | 
				
			||||||
            (0, core_1.debug)('entered that there is signed download url');
 | 
					                (0, core_1.debug)('entered that there is signed_download_url');
 | 
				
			||||||
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
 | 
					                this.maskSigUrl(body.signed_download_url, 'signed_download_url');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            (0, core_1.debug)('body is not an object or is null');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    isSuccessStatusCode(statusCode) {
 | 
					    isSuccessStatusCode(statusCode) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user