mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Delete unused exports
This commit is contained in:
27
lib/upload-lib.js
generated
27
lib/upload-lib.js
generated
@@ -19419,7 +19419,7 @@ var require_exec = __commonJS({
|
||||
exports2.getExecOutput = exports2.exec = void 0;
|
||||
var string_decoder_1 = require("string_decoder");
|
||||
var tr = __importStar4(require_toolrunner());
|
||||
function exec2(commandLine, args, options) {
|
||||
function exec(commandLine, args, options) {
|
||||
return __awaiter4(this, void 0, void 0, function* () {
|
||||
const commandArgs = tr.argStringToArray(commandLine);
|
||||
if (commandArgs.length === 0) {
|
||||
@@ -19431,8 +19431,8 @@ var require_exec = __commonJS({
|
||||
return runner.exec();
|
||||
});
|
||||
}
|
||||
exports2.exec = exec2;
|
||||
function getExecOutput2(commandLine, args, options) {
|
||||
exports2.exec = exec;
|
||||
function getExecOutput(commandLine, args, options) {
|
||||
var _a, _b;
|
||||
return __awaiter4(this, void 0, void 0, function* () {
|
||||
let stdout = "";
|
||||
@@ -19454,7 +19454,7 @@ var require_exec = __commonJS({
|
||||
}
|
||||
};
|
||||
const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener });
|
||||
const exitCode = yield exec2(commandLine, args, Object.assign(Object.assign({}, options), { listeners }));
|
||||
const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners }));
|
||||
stdout += stdoutDecoder.end();
|
||||
stderr += stderrDecoder.end();
|
||||
return {
|
||||
@@ -19464,7 +19464,7 @@ var require_exec = __commonJS({
|
||||
};
|
||||
});
|
||||
}
|
||||
exports2.getExecOutput = getExecOutput2;
|
||||
exports2.getExecOutput = getExecOutput;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -19532,12 +19532,12 @@ var require_platform = __commonJS({
|
||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||
exports2.getDetails = exports2.isLinux = exports2.isMacOS = exports2.isWindows = exports2.arch = exports2.platform = void 0;
|
||||
var os_1 = __importDefault4(require("os"));
|
||||
var exec2 = __importStar4(require_exec());
|
||||
var exec = __importStar4(require_exec());
|
||||
var getWindowsInfo = () => __awaiter4(void 0, void 0, void 0, function* () {
|
||||
const { stdout: version } = yield exec2.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
|
||||
const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
|
||||
silent: true
|
||||
});
|
||||
const { stdout: name } = yield exec2.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', void 0, {
|
||||
const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', void 0, {
|
||||
silent: true
|
||||
});
|
||||
return {
|
||||
@@ -19547,7 +19547,7 @@ var require_platform = __commonJS({
|
||||
});
|
||||
var getMacOsInfo = () => __awaiter4(void 0, void 0, void 0, function* () {
|
||||
var _a, _b, _c, _d;
|
||||
const { stdout } = yield exec2.getExecOutput("sw_vers", void 0, {
|
||||
const { stdout } = yield exec.getExecOutput("sw_vers", void 0, {
|
||||
silent: true
|
||||
});
|
||||
const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : "";
|
||||
@@ -19558,7 +19558,7 @@ var require_platform = __commonJS({
|
||||
};
|
||||
});
|
||||
var getLinuxInfo = () => __awaiter4(void 0, void 0, void 0, function* () {
|
||||
const { stdout } = yield exec2.getExecOutput("lsb_release", ["-i", "-r", "-s"], {
|
||||
const { stdout } = yield exec.getExecOutput("lsb_release", ["-i", "-r", "-s"], {
|
||||
silent: true
|
||||
});
|
||||
const [name, version] = stdout.trim().split("\n");
|
||||
@@ -33934,7 +33934,7 @@ var require_cacheUtils = __commonJS({
|
||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||
exports2.getRuntimeToken = exports2.getCacheVersion = exports2.assertDefined = exports2.getGnuTarPathOnWindows = exports2.getCacheFileName = exports2.getCompressionMethod = exports2.unlinkFile = exports2.resolvePaths = exports2.getArchiveFileSizeInBytes = exports2.createTempDirectory = void 0;
|
||||
var core12 = __importStar4(require_core());
|
||||
var exec2 = __importStar4(require_exec());
|
||||
var exec = __importStar4(require_exec());
|
||||
var glob = __importStar4(require_glob());
|
||||
var io6 = __importStar4(require_io3());
|
||||
var crypto = __importStar4(require("crypto"));
|
||||
@@ -34018,7 +34018,7 @@ var require_cacheUtils = __commonJS({
|
||||
additionalArgs.push("--version");
|
||||
core12.debug(`Checking ${app} ${additionalArgs.join(" ")}`);
|
||||
try {
|
||||
yield exec2.exec(`${app}`, additionalArgs, {
|
||||
yield exec.exec(`${app}`, additionalArgs, {
|
||||
ignoreReturnCode: true,
|
||||
silent: true,
|
||||
listeners: {
|
||||
@@ -83221,7 +83221,6 @@ __export(upload_lib_exports, {
|
||||
buildPayload: () => buildPayload,
|
||||
findSarifFilesInDir: () => findSarifFilesInDir,
|
||||
getGroupedSarifFilePaths: () => getGroupedSarifFilePaths,
|
||||
getSarifFilePaths: () => getSarifFilePaths,
|
||||
populateRunAutomationDetails: () => populateRunAutomationDetails,
|
||||
postProcessSarifFiles: () => postProcessSarifFiles,
|
||||
readSarifFile: () => readSarifFile,
|
||||
@@ -83257,7 +83256,6 @@ var io2 = __toESM(require_io2());
|
||||
var fs = __toESM(require("fs"));
|
||||
var path = __toESM(require("path"));
|
||||
var core3 = __toESM(require_core());
|
||||
var exec = __toESM(require_exec());
|
||||
var io = __toESM(require_io2());
|
||||
|
||||
// node_modules/get-folder-size/index.js
|
||||
@@ -90652,7 +90650,6 @@ function filterAlertsByDiffRange(logger, sarif) {
|
||||
buildPayload,
|
||||
findSarifFilesInDir,
|
||||
getGroupedSarifFilePaths,
|
||||
getSarifFilePaths,
|
||||
populateRunAutomationDetails,
|
||||
postProcessSarifFiles,
|
||||
readSarifFile,
|
||||
|
||||
Reference in New Issue
Block a user