Skip to content

Commit 63209ed

Browse files
chore: update dependencies (#392)
* chore: update dependencies - Replace 404 wiki image - Omit report logo * chore: update @nodesecure/eslint-config
1 parent f13f1b1 commit 63209ed

File tree

16 files changed

+79
-61
lines changed

16 files changed

+79
-61
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

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

.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
44+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
4545
with:
4646
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
4747

4848
- name: Checkout repository
49-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
49+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
53+
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
5454
with:
5555
languages: ${{ matrix.language }}
5656
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -63,7 +63,7 @@ jobs:
6363
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6464
# If this step fails, then you should remove it and run the build manually (see below)
6565
- name: Autobuild
66-
uses: github/codeql-action/autobuild@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
66+
uses: github/codeql-action/autobuild@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
6767

6868
# ℹ️ Command-line programs to run using the OS shell.
6969
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -76,6 +76,6 @@ jobs:
7676
# ./location_of_script_within_repo/buildscript.sh
7777

7878
- name: Perform CodeQL Analysis
79-
uses: github/codeql-action/analyze@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
79+
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
8080
with:
8181
category: "/language:${{matrix.language}}"

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
fail-fast: false
1919
steps:
2020
- name: Harden Runner
21-
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
21+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
2222
with:
2323
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
2424

25-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
25+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2626
- name: Use Node.js ${{ matrix.node-version }}
2727
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2828
with:
@@ -34,4 +34,4 @@ jobs:
3434
- name: Run tests
3535
run: npm run coverage
3636
- name: Send coverage report to Codecov
37-
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
37+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0

.github/workflows/npm-provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: read
1515
id-token: write
1616
steps:
17-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
17+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1818
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
1919
with:
2020
node-version: '20.x'

.github/workflows/scorecards.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ jobs:
3232

3333
steps:
3434
- name: Harden Runner
35-
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
35+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
3636
with:
3737
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
3838

3939
- name: "Checkout code"
40-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
40+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4141
with:
4242
persist-credentials: false
4343

4444
- name: "Run analysis"
45-
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
45+
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
4646
with:
4747
results_file: results.sarif
4848
results_format: sarif
@@ -72,6 +72,6 @@ jobs:
7272

7373
# Upload the results to GitHub's code scanning dashboard.
7474
- name: "Upload to code-scanning"
75-
uses: github/codeql-action/upload-sarif@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
75+
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
7676
with:
7777
sarif_file: results.sarif

.github/workflows/size-satisfies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
fail-fast: false
2222
steps:
2323
- name: Harden Runner
24-
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
24+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
2525
with:
2626
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
2727

28-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
28+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2929
- name: Use Node.js ${{ matrix.node-version }}
3030
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
3131
with:

.github/workflows/vis-network.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
fail-fast: false
2323
steps:
2424
- name: Harden Runner
25-
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
25+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
2626
with:
2727
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
2828

29-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
29+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3030
- name: Use Node.js ${{ matrix.node-version }}
3131
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
3232
with:

eslint.config.mjs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Import Node.js Dependencies
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
5+
// Import Third-party Dependencies
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname
13+
});
14+
15+
export default [{
16+
ignores: ["**/node_modules/", "**/tmp/", "**/dist/", "**/coverage/", "**/fixtures/"]
17+
}, ...compat.extends("@nodesecure/eslint-config"), {
18+
languageOptions: {
19+
ecmaVersion: 2015,
20+
sourceType: "module",
21+
22+
parserOptions: {
23+
requireConfigFile: false
24+
}
25+
},
26+
27+
rules: {
28+
"func-style": "off",
29+
"no-invalid-this": "off",
30+
"no-inner-declarations": "off",
31+
"no-case-declarations": "off"
32+
}
33+
}];

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"node": ">=18"
1313
},
1414
"scripts": {
15-
"eslint": "eslint bin src test",
15+
"eslint": "eslint bin src test workspaces",
1616
"eslint-fix": "npm run eslint -- --fix",
1717
"prepublishOnly": "rimraf ./dist && npm run build && pkg-ok",
1818
"build": "node ./esbuild.config.js",
@@ -61,51 +61,51 @@
6161
},
6262
"homepage": "https://github.com/NodeSecure/cli#readme",
6363
"devDependencies": {
64-
"@myunisoft/httpie": "^4.0.1",
65-
"@nodesecure/eslint-config": "^1.9.0",
64+
"@myunisoft/httpie": "^5.0.0",
65+
"@nodesecure/eslint-config": "2.0.0-beta.0",
6666
"@nodesecure/size-satisfies": "^1.1.0",
6767
"@nodesecure/vis-network": "^1.4.0",
68-
"@types/node": "^20.11.19",
69-
"c8": "^9.1.0",
68+
"@types/node": "^20.14.9",
69+
"c8": "^10.1.2",
7070
"cross-env": "^7.0.3",
71-
"esbuild": "^0.20.0",
72-
"eslint": "^8.56.0",
73-
"esmock": "^2.6.3",
74-
"glob": "^10.3.10",
71+
"esbuild": "^0.22.0",
72+
"eslint": "^9.6.0",
73+
"esmock": "^2.6.6",
74+
"glob": "^10.4.2",
7575
"http-server": "^14.1.1",
7676
"pkg-ok": "^3.0.0",
7777
"pretty-bytes": "^6.1.1",
78-
"rimraf": "^5.0.5",
78+
"rimraf": "^5.0.7",
7979
"strip-ansi": "^7.1.0"
8080
},
8181
"dependencies": {
8282
"@nodesecure/documentation-ui": "^1.3.0",
8383
"@nodesecure/flags": "^2.4.0",
84-
"@nodesecure/i18n": "^4.0.0",
84+
"@nodesecure/i18n": "^4.0.1",
8585
"@nodesecure/licenses-conformance": "^2.1.0",
86-
"@nodesecure/npm-registry-sdk": "^2.1.0",
87-
"@nodesecure/ossf-scorecard-sdk": "^3.1.0",
88-
"@nodesecure/rc": "^1.5.0",
89-
"@nodesecure/report": "^1.1.1",
86+
"@nodesecure/npm-registry-sdk": "^2.1.1",
87+
"@nodesecure/ossf-scorecard-sdk": "^3.2.1",
88+
"@nodesecure/rc": "^2.1.0",
89+
"@nodesecure/report": "^1.2.1",
9090
"@nodesecure/scanner": "^5.3.0",
91-
"@nodesecure/utils": "^2.1.0",
91+
"@nodesecure/utils": "^2.2.0",
9292
"@nodesecure/vuln": "^1.7.0",
93-
"@openally/result": "^1.2.0",
93+
"@openally/result": "^1.2.1",
9494
"@polka/send-type": "^0.5.2",
9595
"@topcli/cliui": "^1.1.0",
96-
"@topcli/prompts": "^1.9.0",
96+
"@topcli/prompts": "^1.10.1",
9797
"@topcli/spinner": "^2.1.2",
98-
"cacache": "^18.0.2",
99-
"dotenv": "^16.4.4",
98+
"cacache": "^18.0.3",
99+
"dotenv": "^16.4.5",
100100
"filenamify": "^6.0.0",
101101
"highlightjs-line-numbers.js": "^2.8.0",
102-
"ini": "^4.1.1",
102+
"ini": "^4.1.3",
103103
"kleur": "^4.1.5",
104104
"ms": "^2.1.3",
105-
"open": "^10.0.3",
105+
"open": "^10.1.0",
106106
"polka": "^0.5.2",
107107
"sade": "^1.8.1",
108-
"semver": "^7.6.0",
108+
"semver": "^7.6.2",
109109
"server-destroy": "^1.0.1",
110110
"sirv": "^2.0.4",
111111
"zup": "0.0.2"

0 commit comments

Comments
 (0)