global-tld-list 1.17.81 → 1.17.83
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/.github/workflows/{nodejs.yml → ci.yml} +4 -4
- package/.github/workflows/generate.yml +3 -3
- package/CHANGELOG.md +4 -0
- package/eslint.config.mjs +50 -0
- package/lint-staged.config.js +1 -1
- package/package.json +18 -18
- package/.eslintignore +0 -4
- package/.eslintrc.js +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
2
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
3
|
|
|
4
|
-
name:
|
|
4
|
+
name: CI
|
|
5
5
|
|
|
6
6
|
on: [push]
|
|
7
7
|
|
|
@@ -12,12 +12,12 @@ jobs:
|
|
|
12
12
|
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
|
-
node-version: [
|
|
15
|
+
node-version: ['22.x']
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
19
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
20
|
-
uses: actions/setup-node@
|
|
20
|
+
uses: actions/setup-node@v4
|
|
21
21
|
with:
|
|
22
22
|
node-version: ${{ matrix.node-version }}
|
|
23
23
|
- run: npm ci
|
|
@@ -12,11 +12,11 @@ jobs:
|
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
16
|
- name: Generate List & Publish
|
|
17
|
-
uses: actions/setup-node@
|
|
17
|
+
uses: actions/setup-node@v4
|
|
18
18
|
with:
|
|
19
|
-
node-version:
|
|
19
|
+
node-version: '22.x'
|
|
20
20
|
registry-url: 'https://registry.npmjs.org'
|
|
21
21
|
- run: |
|
|
22
22
|
git config user.email "${{ secrets.GIT_USER_EMAIL }}"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### 1.17.83 (2024-12-19)
|
|
6
|
+
|
|
7
|
+
### 1.17.82 (2024-12-18)
|
|
8
|
+
|
|
5
9
|
### 1.17.81 (2024-12-17)
|
|
6
10
|
|
|
7
11
|
### 1.17.80 (2024-12-16)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
2
|
+
import jest from 'eslint-plugin-jest';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import tsParser from '@typescript-eslint/parser';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
import js from '@eslint/js';
|
|
8
|
+
import { FlatCompat } from '@eslint/eslintrc';
|
|
9
|
+
|
|
10
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
11
|
+
const __dirname = path.dirname(__filename);
|
|
12
|
+
const compat = new FlatCompat({
|
|
13
|
+
baseDirectory: __dirname,
|
|
14
|
+
recommendedConfig: js.configs.recommended,
|
|
15
|
+
allConfig: js.configs.all,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export default [
|
|
19
|
+
...compat.extends(
|
|
20
|
+
'eslint:recommended',
|
|
21
|
+
'plugin:@typescript-eslint/eslint-recommended',
|
|
22
|
+
'plugin:@typescript-eslint/recommended',
|
|
23
|
+
'plugin:jest/recommended',
|
|
24
|
+
'plugin:jest/style',
|
|
25
|
+
'prettier',
|
|
26
|
+
'plugin:prettier/recommended',
|
|
27
|
+
),
|
|
28
|
+
{
|
|
29
|
+
plugins: {
|
|
30
|
+
'@typescript-eslint': typescriptEslint,
|
|
31
|
+
jest,
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
languageOptions: {
|
|
35
|
+
globals: {
|
|
36
|
+
...globals.node,
|
|
37
|
+
...globals.commonjs,
|
|
38
|
+
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, 'off'])),
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
parser: tsParser,
|
|
42
|
+
ecmaVersion: 2018,
|
|
43
|
+
sourceType: 'module',
|
|
44
|
+
},
|
|
45
|
+
files: ['**/*.ts'],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
ignores: ['node_modules', 'dist', 'coverage', '**/*.d.ts', '**/*.js', '**/*.cjs'],
|
|
49
|
+
},
|
|
50
|
+
];
|
package/lint-staged.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "global-tld-list",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.83",
|
|
4
4
|
"description": "List of Global TLDs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tld",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"clean": "rimraf dist coverage",
|
|
27
27
|
"commit": "git-cz",
|
|
28
28
|
"generate": "node dist/generate.js",
|
|
29
|
-
"lint": "eslint
|
|
29
|
+
"lint": "eslint .",
|
|
30
30
|
"lint:fix": "npm run lint -- --fix",
|
|
31
31
|
"prepare": "husky",
|
|
32
32
|
"release": "standard-version",
|
|
@@ -40,28 +40,28 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@commitlint/cli": "^19.
|
|
44
|
-
"@commitlint/config-conventional": "^19.
|
|
45
|
-
"@types/axios": "^0.14.
|
|
46
|
-
"@types/jest": "^29.5.
|
|
47
|
-
"@types/node": "^22.
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
49
|
-
"@typescript-eslint/parser": "^
|
|
50
|
-
"axios": "^1.7.
|
|
43
|
+
"@commitlint/cli": "^19.6.1",
|
|
44
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
45
|
+
"@types/axios": "^0.14.4",
|
|
46
|
+
"@types/jest": "^29.5.14",
|
|
47
|
+
"@types/node": "^22.10.2",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
49
|
+
"@typescript-eslint/parser": "^8.18.1",
|
|
50
|
+
"axios": "^1.7.9",
|
|
51
51
|
"cz-conventional-changelog": "^3.3.0",
|
|
52
|
-
"eslint": "^
|
|
52
|
+
"eslint": "^9.17.0",
|
|
53
53
|
"eslint-config-prettier": "^9.1.0",
|
|
54
|
-
"eslint-plugin-jest": "^28.
|
|
54
|
+
"eslint-plugin-jest": "^28.9.0",
|
|
55
55
|
"eslint-plugin-prettier": "^5.2.1",
|
|
56
|
-
"husky": "^9.1.
|
|
56
|
+
"husky": "^9.1.7",
|
|
57
57
|
"jest": "^29.7.0",
|
|
58
|
-
"lint-staged": "^15.2.
|
|
59
|
-
"prettier": "^3.
|
|
58
|
+
"lint-staged": "^15.2.11",
|
|
59
|
+
"prettier": "^3.4.2",
|
|
60
60
|
"punycode": "^2.3.1",
|
|
61
61
|
"rimraf": "^6.0.1",
|
|
62
|
-
"sort-package-json": "^
|
|
62
|
+
"sort-package-json": "^2.12.0",
|
|
63
63
|
"standard-version": "^9.5.0",
|
|
64
|
-
"ts-jest": "^29.2.
|
|
65
|
-
"typescript": "^5.
|
|
64
|
+
"ts-jest": "^29.2.5",
|
|
65
|
+
"typescript": "^5.7.2"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
parser: '@typescript-eslint/parser',
|
|
4
|
-
parserOptions: {
|
|
5
|
-
ecmaVersion: 2018,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
// prettier-ignore
|
|
9
|
-
plugins: [
|
|
10
|
-
'@typescript-eslint',
|
|
11
|
-
'jest',
|
|
12
|
-
],
|
|
13
|
-
extends: [
|
|
14
|
-
'eslint:recommended',
|
|
15
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
16
|
-
'plugin:@typescript-eslint/recommended',
|
|
17
|
-
'plugin:jest/recommended',
|
|
18
|
-
'plugin:jest/style',
|
|
19
|
-
'prettier',
|
|
20
|
-
'plugin:prettier/recommended',
|
|
21
|
-
],
|
|
22
|
-
env: {
|
|
23
|
-
es6: true,
|
|
24
|
-
node: true,
|
|
25
|
-
commonjs: true,
|
|
26
|
-
browser: false,
|
|
27
|
-
},
|
|
28
|
-
};
|