Update @actions/cache and remove overrides

Now that `@actions/cache` has been updated, we can remove our manual
overrides for vulnerable dependencies.
This commit is contained in:
Henry Mercer 2023-08-14 18:59:06 +01:00
parent 3ecf990cd2
commit 4db827f313
22 changed files with 236 additions and 66 deletions

View file

@ -1,4 +1,6 @@
/// <reference types="node" />
import { TransferProgressEvent } from '@azure/ms-rest-js';
import * as fs from 'fs';
import { DownloadOptions } from '../options';
/**
* Class for tracking the download state and displaying stats.
@ -63,6 +65,13 @@ export declare class DownloadProgress {
* @param archivePath the local path where the cache is saved
*/
export declare function downloadCacheHttpClient(archiveLocation: string, archivePath: string): Promise<void>;
/**
* Download the cache using the Actions toolkit http-client concurrently
*
* @param archiveLocation the URL for the cache
* @param archivePath the local path where the cache is saved
*/
export declare function downloadCacheHttpClientConcurrent(archiveLocation: string, archivePath: fs.PathLike, options: DownloadOptions): Promise<void>;
/**
* Download the cache using the Azure Storage SDK. Only call this method if the
* URL points to an Azure Storage endpoint.