Resolve violations of import/no-extraneous-dependencies lint

Fixes #201
This commit is contained in:
Chris Raynor 2020-09-29 15:03:21 +01:00
parent 228546a1e5
commit 8200c137dc
No known key found for this signature in database
GPG key ID: 579A1FBC36FDA261
6 changed files with 14 additions and 13 deletions

7
lib/codeql.js generated
View file

@ -6,9 +6,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const api = __importStar(require("./api-client"));
const defaults = __importStar(require("./defaults.json")); // Referenced from codeql-action-sync-tool!
@ -21,10 +18,10 @@ const stream = __importStar(require("stream"));
const toolcache = __importStar(require("@actions/tool-cache"));
const toolrunnner = __importStar(require("@actions/exec/lib/toolrunner"));
const util = __importStar(require("./util"));
const v4_1 = __importDefault(require("uuid/v4"));
const error_matcher_1 = require("./error-matcher");
const actions_util_1 = require("./actions-util");
const toolrunner_error_catcher_1 = require("./toolrunner-error-catcher");
const uuid_1 = require("uuid");
/**
* Stores the CodeQL object, and is populated by `setupCodeQL` or `getCodeQL`.
* Can be overridden in tests using `setCodeQL`.
@ -98,7 +95,7 @@ async function getCodeQLBundleDownloadURL(githubAuth, githubUrl, mode, logger) {
// This can be removed once https://github.com/actions/toolkit/pull/530 is merged and released.
async function toolcacheDownloadTool(url, headers, tempDir, logger) {
const client = new http.HttpClient("CodeQL Action");
const dest = path.join(tempDir, v4_1.default());
const dest = path.join(tempDir, uuid_1.v4());
const response = await client.get(url, headers);
if (response.message.statusCode !== 200) {
logger.info(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);