Skip to content

Commit 14da8bf

Browse files
committed
Update all packages, guided through 'npm outdated'
1 parent 6574e20 commit 14da8bf

File tree

10 files changed

+12669
-8586
lines changed

10 files changed

+12669
-8586
lines changed

.eslintrc.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
9+
);

package-lock.json

Lines changed: 1358 additions & 2176 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build": "tsc",
1919
"format": "prettier --write **/*.ts",
2020
"format-check": "prettier --check **/*.ts",
21-
"lint": "eslint src/**/*.ts",
21+
"lint": "eslint src/*.ts",
2222
"pack": "ncc build build/main.js -o packed",
2323
"dev": "npm run build && npm run pack && node packed/index.js",
2424
"all": "npm run format && npm run lint && npm run build && npm run pack",
@@ -39,27 +39,27 @@
3939
"SDL"
4040
],
4141
"dependencies": {
42-
"@actions/cache": "^3.2.4",
42+
"@actions/cache": "^4.0",
4343
"@actions/core": "^1.10.1",
4444
"@actions/tool-cache": "^2.0.1",
4545
"@octokit/rest": "^21.0.1",
4646
"adm-zip": "^0.5.15",
47-
"octokit": "^3.2.1",
47+
"octokit": "^4.1.3",
4848
"shlex": "^2.1.2",
49-
"uuid": "^9.0.1"
49+
"uuid": "^11.1.0"
5050
},
5151
"devDependencies": {
5252
"@types/adm-zip": "^0.5.5",
5353
"@types/jest": "^29.5.12",
54-
"@types/node": "^20.14.15",
55-
"@typescript-eslint/eslint-plugin": "^6.21.0",
56-
"@typescript-eslint/parser": "^6.21.0",
54+
"@types/node": "^22.14.1",
55+
"@typescript-eslint/eslint-plugin": "^8.30.1",
56+
"@typescript-eslint/parser": "^8.30.1",
5757
"@vercel/ncc": "^0.38.1",
58-
"eslint": "^8.57.0",
59-
"eslint-plugin-github": "^4.10.2",
58+
"eslint": "^9.25.0",
59+
"eslint-plugin-github": "^6.0.0",
6060
"jest": "^29.7.0",
6161
"js-yaml": "^4.1.0",
62-
"prettier": "3.1.1",
62+
"prettier": "3.5.3",
6363
"ts-jest": "^29.2.4",
6464
"typescript": "^5.5.4"
6565
}

packed/index.js

Lines changed: 11285 additions & 6371 deletions
Large diffs are not rendered by default.

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { pipeline } from "node:stream/promises";
99
import * as cache from "@actions/cache";
1010
import * as core from "@actions/core";
1111
import { Octokit } from "@octokit/rest";
12-
import AdmZip = require("adm-zip");
12+
import AdmZip from "adm-zip";
1313

1414
import { convert_git_branch_tag_to_hash } from "./repo";
1515
import { SetupSdlError, command_arglist_to_string, shlex_split } from "./util";
@@ -420,7 +420,7 @@ async function install_dependencies(args: {
420420
pm_packages.optional.forEach((optional_package) => {
421421
try {
422422
package_manager.install([optional_package]);
423-
} catch (e) {
423+
} catch {
424424
/* intentionally left blank */
425425
}
426426
});

src/pm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function command_exists(name: string): boolean {
197197
try {
198198
child_process.execSync(`command -v ${name}`);
199199
return true;
200-
} catch (e) {
200+
} catch {
201201
return false;
202202
}
203203
}

src/repo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function convert_git_branch_tag_to_hash(args: {
2323
const sha = response.data.commit.sha;
2424
core.info(`git hash = ${sha}`);
2525
return sha;
26-
} catch (e) {
26+
} catch {
2727
core.debug("It was not a branch.");
2828
}
2929
try {
@@ -35,7 +35,7 @@ export async function convert_git_branch_tag_to_hash(args: {
3535
});
3636
core.debug("It was a commit.");
3737
return response.data.sha;
38-
} catch (e) {
38+
} catch {
3939
core.debug("It was not a commit.");
4040
}
4141
throw new SetupSdlError(

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import shlex = require("shlex");
1+
import * as shlex from "shlex";
22

33
export class SetupSdlError extends Error {
44
constructor(message: string) {

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ export function parse_version_string(
582582
version = new Version(version_str);
583583
}
584584
return { version: version, type: version_type };
585-
} catch (e) {
585+
} catch {
586586
return { version: version_request, type: ReleaseType.Commit };
587587
}
588588
}

0 commit comments

Comments
 (0)