mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-12 19:36:43 +00:00
chore: update dependencies (#38)
This commit is contained in:
17
node_modules/@actions/tool-cache/lib/tool-cache.d.ts
generated
vendored
17
node_modules/@actions/tool-cache/lib/tool-cache.d.ts
generated
vendored
@@ -1,4 +1,5 @@
|
||||
import * as mm from './manifest';
|
||||
import { IHeaders } from '@actions/http-client/interfaces';
|
||||
export declare class HTTPError extends Error {
|
||||
readonly httpStatusCode: number | undefined;
|
||||
constructor(httpStatusCode: number | undefined);
|
||||
@@ -9,9 +10,10 @@ export declare class HTTPError extends Error {
|
||||
* @param url url of tool to download
|
||||
* @param dest path to download tool
|
||||
* @param auth authorization header
|
||||
* @param headers other headers
|
||||
* @returns path to downloaded tool
|
||||
*/
|
||||
export declare function downloadTool(url: string, dest?: string, auth?: string): Promise<string>;
|
||||
export declare function downloadTool(url: string, dest?: string, auth?: string, headers?: IHeaders): Promise<string>;
|
||||
/**
|
||||
* Extract a .7z file
|
||||
*
|
||||
@@ -93,3 +95,16 @@ export declare type IToolRelease = mm.IToolRelease;
|
||||
export declare type IToolReleaseFile = mm.IToolReleaseFile;
|
||||
export declare function getManifestFromRepo(owner: string, repo: string, auth?: string, branch?: string): Promise<IToolRelease[]>;
|
||||
export declare function findFromManifest(versionSpec: string, stable: boolean, manifest: IToolRelease[], archFilter?: string): Promise<IToolRelease | undefined>;
|
||||
/**
|
||||
* Check if version string is explicit
|
||||
*
|
||||
* @param versionSpec version string to check
|
||||
*/
|
||||
export declare function isExplicitVersion(versionSpec: string): boolean;
|
||||
/**
|
||||
* Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`
|
||||
*
|
||||
* @param versions array of versions to evaluate
|
||||
* @param versionSpec semantic version spec to satisfy
|
||||
*/
|
||||
export declare function evaluateVersions(versions: string[], versionSpec: string): string;
|
||||
|
||||
Reference in New Issue
Block a user