@k03mad/actual-versions 9.0.0 → 9.0.2

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/.editorconfig CHANGED
@@ -8,8 +8,5 @@ indent_style = space
8
8
  insert_final_newline = true
9
9
  trim_trailing_whitespace = true
10
10
 
11
- [*.json]
12
- indent_size = 2
13
-
14
- [*.{yml,yaml}]
11
+ [*.{json,yml,yaml}]
15
12
  indent_size = 2
@@ -5,10 +5,10 @@ updates:
5
5
  schedule:
6
6
  interval: monthly
7
7
  assignees:
8
- - "k03mad"
8
+ - 'k03mad'
9
9
  - package-ecosystem: github-actions
10
10
  directory: /
11
11
  schedule:
12
12
  interval: monthly
13
13
  assignees:
14
- - "k03mad"
14
+ - 'k03mad'
package/.husky/pre-commit CHANGED
@@ -1 +1 @@
1
- ./node_modules/.bin/run-p -c lint test
1
+ npm run lint && npm run test
package/.oxfmtrc.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "./node_modules/oxfmt/configuration_schema.json",
3
+ "ignorePatterns": ["node_modules/**"],
4
+ "singleQuote": true,
5
+ "arrowParens": "avoid",
6
+ "bracketSpacing": false,
7
+ "quoteProps": "consistent",
8
+ "experimentalSortImports": {
9
+ "groups": [
10
+ ["builtin"],
11
+ ["external", "type-external"],
12
+ ["internal", "type-internal"],
13
+ ["parent", "type-parent"],
14
+ ["sibling", "type-sibling"],
15
+ ["index", "type-index"]
16
+ ]
17
+ }
18
+ }
package/.oxlintrc.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "extends": ["./node_modules/@k03mad/oxlint-config/.oxlintrc.json"],
4
+ "env": {
5
+ "node": true
6
+ }
7
+ }
@@ -1,6 +1,3 @@
1
1
  {
2
- "cSpell.words": [
3
- "acver",
4
- "nvmrc"
5
- ]
2
+ "cSpell.words": ["acver", "nvmrc", "oxfmt", "oxlint", "oxlintrc"]
6
3
  }
package/app/cli.js CHANGED
@@ -17,10 +17,7 @@ const output = await Promise.all(
17
17
  const version = await value();
18
18
  const tool = key.match(TOOL_NAME_RE)[1].toLowerCase();
19
19
 
20
- return [
21
- blue(bold(tool)),
22
- version ? green(version) : red('———'),
23
- ];
20
+ return [blue(bold(tool)), version ? green(version) : red('———')];
24
21
  } catch (err) {
25
22
  console.log(`[${key}] ${err}`);
26
23
  }
@@ -1,4 +1,5 @@
1
- const CHROME_VERSIONS_URL = 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json';
1
+ const CHROME_VERSIONS_URL =
2
+ 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json';
2
3
 
3
4
  /**
4
5
  * @returns {Promise<string>}
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
2
  "name": "@k03mad/actual-versions",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "Get actual versions of some tools",
5
+ "license": "MIT",
5
6
  "maintainers": [
6
7
  "Kirill Molchanov <k03.mad@gmail.com"
7
8
  ],
8
- "bin": {
9
- "acver": "app/cli.js"
10
- },
11
- "main": "app/api.js",
12
9
  "repository": {
13
10
  "type": "git",
14
11
  "url": "git+https://github.com/k03mad/actual-versions.git"
15
12
  },
16
- "license": "MIT",
13
+ "bin": {
14
+ "acver": "app/cli.js"
15
+ },
17
16
  "type": "module",
18
- "engines": {
19
- "node": ">=24"
17
+ "main": "app/api.js",
18
+ "scripts": {
19
+ "lint": "oxlint --report-unused-disable-directives && oxfmt --check",
20
+ "test": "node --test tests/*.js",
21
+ "prepare": "husky || true"
20
22
  },
21
23
  "dependencies": {
22
24
  "chalk": "5.6.2",
23
25
  "table": "6.9.0"
24
26
  },
25
27
  "devDependencies": {
26
- "@k03mad/eslint-config": "34.1.0",
27
- "eslint": "9.39.2",
28
+ "@k03mad/oxlint-config": "0.0.19",
28
29
  "husky": "9.1.7",
29
- "npm-run-all": "4.1.5",
30
+ "oxfmt": "0.34.0",
31
+ "oxlint": "1.49.0",
30
32
  "strip-ansi": "7.1.2"
31
33
  },
32
- "scripts": {
33
- "lint": "eslint ./ --cache",
34
- "test": "node --test tests/*.js",
35
- "prepare": "husky || true"
34
+ "engines": {
35
+ "node": ">=24"
36
36
  }
37
37
  }
package/tests/cli.js CHANGED
@@ -29,10 +29,7 @@ describe('cli', () => {
29
29
 
30
30
  versions = stdout
31
31
  .split('\n')
32
- .map(elem => stripAnsi(elem)
33
- .replaceAll(tableBorderCharsRe, '')
34
- .trim(),
35
- )
32
+ .map(elem => stripAnsi(elem).replaceAll(tableBorderCharsRe, '').trim())
36
33
  .filter(Boolean);
37
34
  });
38
35
 
package/eslint.config.js DELETED
@@ -1 +0,0 @@
1
- export {default} from '@k03mad/eslint-config';