From 2b67a30c7422480c592e170c0075c3244da8c43d Mon Sep 17 00:00:00 2001 From: Federico Carboni <48333714+FedericoCarboni@users.noreply.github.com> Date: Sat, 23 Dec 2023 19:06:50 +0100 Subject: [PATCH] lint and format --- dist/index.js | 12 +++--------- src/action.js | 2 -- src/dists/evermeet.cx.js | 5 ++--- src/dists/gyan.js | 1 - src/dists/johnvansickle.js | 2 +- 5 files changed, 6 insertions(+), 16 deletions(-) diff --git a/dist/index.js b/dist/index.js index aec5dcb..abf534b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -58211,8 +58211,6 @@ var __webpack_exports__ = {}; // ESM COMPAT FLAG __nccwpck_require__.r(__webpack_exports__); -// EXTERNAL MODULE: external "assert" -var external_assert_ = __nccwpck_require__(9491); // EXTERNAL MODULE: external "path" var external_path_ = __nccwpck_require__(1017); // EXTERNAL MODULE: external "os" @@ -58221,8 +58219,8 @@ var external_os_ = __nccwpck_require__(2037); const promises_namespaceObject = require("fs/promises"); // EXTERNAL MODULE: ./node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/core.js var core = __nccwpck_require__(9093); -// EXTERNAL MODULE: ./node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js -var exec = __nccwpck_require__(7775); +// EXTERNAL MODULE: external "assert" +var external_assert_ = __nccwpck_require__(9491); // EXTERNAL MODULE: ./node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib/tool-cache.js var tool_cache = __nccwpck_require__(5561); // EXTERNAL MODULE: ./node_modules/.pnpm/semver@7.5.4/node_modules/semver/index.js @@ -58296,7 +58294,6 @@ function cleanVersion(version) { - class GyanInstaller { /** * @param options {import('./installer').InstallerOptions} @@ -58412,7 +58409,7 @@ class JohnVanSickleInstaller { }); const readme = res.ok && (await res.text()); external_assert_.ok(readme, 'Failed to get latest johnvansickle ffmpeg release'); - const versionMatch = readme.match(/version\: (.+)\n/); + const versionMatch = readme.match(/version: (.+)\n/); external_assert_.ok(versionMatch, 'Failed to read version from readme'); core.debug(`Found latest johnvansickle release: ${versionMatch}`); const version = normalizeVersion(versionMatch[1].trim(), isGitBuild); @@ -58541,7 +58538,6 @@ const parse = dist/* parse */.Qc; - class EvermeetCxInstaller { /** * @param options {import('./installer').InstallerOptions} @@ -58747,8 +58743,6 @@ async function install(options) { - - /** * @typedef {object} Dist * @property {() => Promise} downloadTool diff --git a/src/action.js b/src/action.js index bf6de1e..f1e0ae8 100644 --- a/src/action.js +++ b/src/action.js @@ -1,10 +1,8 @@ -import * as assert from 'assert'; import * as path from 'path'; import * as os from 'os'; import {chmod} from 'fs/promises'; import * as core from '@actions/core'; -import * as exec from '@actions/exec'; import {install} from './dists/installer'; diff --git a/src/dists/evermeet.cx.js b/src/dists/evermeet.cx.js index 25acd57..4c1ffa1 100644 --- a/src/dists/evermeet.cx.js +++ b/src/dists/evermeet.cx.js @@ -1,13 +1,12 @@ import * as assert from 'assert'; import * as path from 'path'; -import {mkdir, readdir, rename} from 'fs/promises'; +import {mkdir, rename} from 'fs/promises'; import * as tc from '@actions/tool-cache'; -import * as semver from 'semver'; import {fetch} from 'undici'; import {v4 as uuidV4} from 'uuid'; -import {USER_AGENT, cleanVersion, getTempDir, normalizeVersion} from '../util'; +import {USER_AGENT, cleanVersion, getTempDir} from '../util'; export class EvermeetCxInstaller { /** diff --git a/src/dists/gyan.js b/src/dists/gyan.js index bf87bbf..0c59760 100644 --- a/src/dists/gyan.js +++ b/src/dists/gyan.js @@ -2,7 +2,6 @@ import * as assert from 'assert'; import * as path from 'path'; import {readdir} from 'fs/promises'; -import * as core from '@actions/core'; import * as tc from '@actions/tool-cache'; import {Octokit} from '@octokit/core'; import {fetch} from 'undici'; diff --git a/src/dists/johnvansickle.js b/src/dists/johnvansickle.js index 5e6d268..1a61d73 100644 --- a/src/dists/johnvansickle.js +++ b/src/dists/johnvansickle.js @@ -34,7 +34,7 @@ export class JohnVanSickleInstaller { }); const readme = res.ok && (await res.text()); assert.ok(readme, 'Failed to get latest johnvansickle ffmpeg release'); - const versionMatch = readme.match(/version\: (.+)\n/); + const versionMatch = readme.match(/version: (.+)\n/); assert.ok(versionMatch, 'Failed to read version from readme'); core.debug(`Found latest johnvansickle release: ${versionMatch}`); const version = normalizeVersion(versionMatch[1].trim(), isGitBuild);