@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 +1 -4
- package/.github/dependabot.yml +2 -2
- package/.husky/pre-commit +1 -1
- package/.oxfmtrc.json +18 -0
- package/.oxlintrc.json +7 -0
- package/.vscode/settings.json +1 -4
- package/app/cli.js +1 -4
- package/app/tools/chrome.js +2 -1
- package/package.json +15 -15
- package/tests/cli.js +1 -4
- package/eslint.config.js +0 -1
package/.editorconfig
CHANGED
package/.github/dependabot.yml
CHANGED
package/.husky/pre-commit
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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
package/.vscode/settings.json
CHANGED
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
|
}
|
package/app/tools/chrome.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const CHROME_VERSIONS_URL =
|
|
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.
|
|
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
|
-
"
|
|
13
|
+
"bin": {
|
|
14
|
+
"acver": "app/cli.js"
|
|
15
|
+
},
|
|
17
16
|
"type": "module",
|
|
18
|
-
"
|
|
19
|
-
|
|
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/
|
|
27
|
-
"eslint": "9.39.2",
|
|
28
|
+
"@k03mad/oxlint-config": "0.0.19",
|
|
28
29
|
"husky": "9.1.7",
|
|
29
|
-
"
|
|
30
|
+
"oxfmt": "0.34.0",
|
|
31
|
+
"oxlint": "1.49.0",
|
|
30
32
|
"strip-ansi": "7.1.2"
|
|
31
33
|
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
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';
|