check-package-lock 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +2 -1
- package/.github/workflows/ci.yml +3 -2
- package/eslint.config.js +15 -17
- package/index.js +1 -4
- package/package.json +3 -5
package/.github/workflows/ci.yml
CHANGED
|
@@ -82,15 +82,16 @@ jobs:
|
|
|
82
82
|
run: ./node_modules/.bin/eslint '*.js' 'test/*.js'
|
|
83
83
|
|
|
84
84
|
- name: Run tests with coverage
|
|
85
|
-
run: ./node_modules/.bin/
|
|
85
|
+
run: ./node_modules/.bin/c8 ./node_modules/.bin/mocha
|
|
86
86
|
|
|
87
87
|
- name: Generate coverage report
|
|
88
|
-
run: ./node_modules/.bin/
|
|
88
|
+
run: ./node_modules/.bin/c8 report --reporter=lcov
|
|
89
89
|
|
|
90
90
|
- name: Upload coverage to Codecov
|
|
91
91
|
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
|
|
92
92
|
# https://github.com/codecov/codecov-action/releases
|
|
93
93
|
with:
|
|
94
|
+
files: coverage/lcov.info
|
|
94
95
|
fail_ci_if_error: true
|
|
95
96
|
env:
|
|
96
97
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
package/eslint.config.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import globals from "globals";
|
|
2
|
-
import js from "@eslint/js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
js.configs.recommended,
|
|
17
|
-
];
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import js from "@eslint/js";
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
{
|
|
6
|
+
languageOptions: {
|
|
7
|
+
globals: {
|
|
8
|
+
...globals.node,
|
|
9
|
+
describe: "readonly",
|
|
10
|
+
it: "readonly",
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
js.configs.recommended,
|
|
15
|
+
];
|
package/index.js
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { program } from 'commander';
|
|
6
|
-
import { fileURLToPath } from 'node:url';
|
|
7
|
-
|
|
8
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
6
|
|
|
10
7
|
function checkFolder(folder) {
|
|
11
8
|
const packPath = folder ? path.join(folder, 'package-lock.json') : 'package-lock.json';
|
|
@@ -28,7 +25,7 @@ function checkFolder(folder) {
|
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
program
|
|
31
|
-
.version(JSON.parse(fs.readFileSync(path.join(
|
|
28
|
+
.version(JSON.parse(fs.readFileSync(path.join(import.meta.dirname, 'package.json'))).version)
|
|
32
29
|
.description('Checks the package-lock.json file for http:// links')
|
|
33
30
|
.option('-f, --folder <folder>', 'Folder with package-lock.json file')
|
|
34
31
|
.parse(process.argv);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "check-package-lock",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Checks the package-lock.json file for insecure http:// links",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -36,12 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@eslint/js": "^10.0.1",
|
|
39
|
+
"c8": "^11.0.0",
|
|
39
40
|
"chai": "^6.2.2",
|
|
40
|
-
"child_process": "^1.0.2",
|
|
41
41
|
"eslint": "^10.5.0",
|
|
42
|
-
"expect": "^30.4.1",
|
|
43
42
|
"globals": "^17.6.0",
|
|
44
|
-
"mocha": "^11.7.6"
|
|
45
|
-
"nyc": "^18.0.0"
|
|
43
|
+
"mocha": "^11.7.6"
|
|
46
44
|
}
|
|
47
45
|
}
|