Bump @actions/tool-cache to 2.0.0

This allows us to drop our direct dependency on `@actions/http-client`.
This commit is contained in:
Henry Mercer 2022-05-13 11:54:40 +01:00
parent 1fae5bf71b
commit 54b4854fda
64 changed files with 2252 additions and 99 deletions

View file

@ -1,5 +1,6 @@
/// <reference types="node" />
import * as mm from './manifest';
import { IHeaders } from '@actions/http-client/interfaces';
import { OutgoingHttpHeaders } from 'http';
export declare class HTTPError extends Error {
readonly httpStatusCode: number | undefined;
constructor(httpStatusCode: number | undefined);
@ -13,7 +14,7 @@ export declare class HTTPError extends Error {
* @param headers other headers
* @returns path to downloaded tool
*/
export declare function downloadTool(url: string, dest?: string, auth?: string, headers?: IHeaders): Promise<string>;
export declare function downloadTool(url: string, dest?: string, auth?: string, headers?: OutgoingHttpHeaders): Promise<string>;
/**
* Extract a .7z file
*

View file

@ -42,9 +42,9 @@ const httpm = __importStar(require("@actions/http-client"));
const semver = __importStar(require("semver"));
const stream = __importStar(require("stream"));
const util = __importStar(require("util"));
const assert_1 = require("assert");
const v4_1 = __importDefault(require("uuid/v4"));
const exec_1 = require("@actions/exec/lib/exec");
const assert_1 = require("assert");
const retry_helper_1 = require("./retry-helper");
class HTTPError extends Error {
constructor(httpStatusCode) {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "@actions/tool-cache",
"version": "1.7.1",
"version": "2.0.0",
"description": "Actions tool-cache lib",
"keywords": [
"github",
@ -38,7 +38,7 @@
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.0",
"@actions/http-client": "^1.0.8",
"@actions/http-client": "^2.0.0",
"@actions/io": "^1.1.1",
"semver": "^6.1.0",
"uuid": "^3.3.2"