check-node-engine 1.2.0 → 1.2.1

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/bin/cmd.js CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
  // natives
6
6
  const { join } = require("node:path");
7
- const { EOL } = require("node:os");
8
7
 
9
8
  // externals
10
9
 
@@ -12,7 +11,7 @@
12
11
  try { // test require optional deps
13
12
  colors = require("colors/safe");
14
13
  }
15
- catch (e) {
14
+ catch {
16
15
  // nothing to do here
17
16
  }
18
17
 
@@ -50,7 +49,7 @@ else {
50
49
 
51
50
  checker(PACKAGE).then(() => {
52
51
 
53
- console.log(colors && colors.green ? colors.green("Package node engine is up to date") : "Package node engine is up to date");
52
+ (0, console).log(colors && colors.green ? colors.green("Package node engine is up to date") : "Package node engine is up to date");
54
53
 
55
54
  (0, process).exitCode = 0;
56
55
  (0, process).exit(0);
@@ -1,4 +1,4 @@
1
- export type Release = {
1
+ export interface Release {
2
2
  "version": string;
3
3
  "date": string;
4
4
  "lts": boolean;
@@ -10,4 +10,4 @@ export type Release = {
10
10
  "openssl": string;
11
11
  "modules": string;
12
12
  "security": boolean;
13
- };
13
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "check-node-engine",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "description": "Compare the required node engine to the last older LTS node version.",
6
6
 
7
7
  "type": "commonjs",
@@ -33,10 +33,10 @@
33
33
  "check-node-engine": "node ./bin/cmd.js",
34
34
  "check-requires": "npx used-deps-analyzer \"./package.json\" \"./lib/src\" --no-dev --misscalled \"{ \\\"module\\\": \\\"colors\\\", \\\"call\\\": \\\"colors/safe\\\" }\"",
35
35
  "check-updates": "npx check-version-modules --no-fail-at-major --fail-at-minor --fail-at-patch",
36
- "unit-tests": "npx mocha",
37
- "unit-tests-local": "npm run build && npx nyc --reporter=html --reporter=text mocha",
36
+ "unit-tests": "npx c8 --reporter=text-summary --all --include \"lib/src/**/*.ts\" --include \"lib/src/**/*.cts\" --extension .ts --extension .cts --check-coverage --statements 95 --branches 95 --functions 95 --lines 95 mocha --require ./test/register.js",
37
+ "unit-tests-local": "npx c8 --reporter=html --reporter=text --all --include \"lib/src/**/*.ts\" --include \"lib/src/**/*.cts\" --extension .ts --extension .cts mocha --require ./test/register.js",
38
38
 
39
- "tests": "npm run lint && npm run check-node-engine && npm run check-requires && npm run check-updates && npm run build && npm run unit-tests-local"
39
+ "tests": "npm run lint && npm run check-node-engine && npm run check-requires && npm run check-updates && npm run build && npm run unit-tests"
40
40
 
41
41
  },
42
42
 
@@ -48,22 +48,22 @@
48
48
  "lib/cjs"
49
49
  ],
50
50
  "engines": {
51
- "node": ">=22.23.2"
51
+ "node": ">=22.23.4"
52
52
  },
53
53
 
54
54
  "dependencies": {
55
55
  "semver": "7.8.5"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/node": "26.2.0",
58
+ "@types/node": "26.6.5",
59
59
  "@types/semver": "7.8.0",
60
+ "c8": "12.0.0",
60
61
  "check-version-modules": "2.5.0",
61
62
  "eslint-plugin-personnallinter": "git+ssh://git@github.com/Psychopoulet/eslint-plugin-personnallinter",
62
63
  "husky": "9.1.7",
63
- "mocha": "11.8.0",
64
- "nyc": "18.0.0",
64
+ "mocha": "12.0.3",
65
65
  "rimraf": "6.1.3",
66
- "typescript": "5.9.3",
66
+ "typescript": "6.0.3",
67
67
  "used-deps-analyzer": "0.4.0"
68
68
  },
69
69
  "optionalDependencies": {