@archoleat/validate-font-file-name 1.2.1 → 1.2.3
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/README.md +2 -2
- package/index.d.ts +0 -11
- package/package.json +33 -36
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|

|
|
5
|
-

|
|
6
|
-

|
|
7
5
|

|
|
8
6
|

|
|
9
7
|

|
|
@@ -18,6 +16,8 @@
|
|
|
18
16
|
- [Contributing](#contributing)
|
|
19
17
|
- [License](#license)
|
|
20
18
|
|
|
19
|
+
Validate font file names.
|
|
20
|
+
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
23
23
|
```shell
|
package/index.d.ts
CHANGED
|
@@ -3,17 +3,6 @@ type Parameters = {
|
|
|
3
3
|
regex?: string | RegExp;
|
|
4
4
|
};
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Validates the font file name.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} file - The file path of the font file.
|
|
10
|
-
*
|
|
11
|
-
* @param {string|RegExp} [regex=''] - The regular expression pattern to
|
|
12
|
-
* match the font file name.
|
|
13
|
-
*
|
|
14
|
-
* @return {boolean} - Return true if the font file name matches the
|
|
15
|
-
* specified or default regex pattern, false otherwise.
|
|
16
|
-
*/
|
|
17
6
|
declare const validateFontFileName: (parameters: Parameters) => Promise<boolean>;
|
|
18
7
|
|
|
19
8
|
export { validateFontFileName };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archoleat/validate-font-file-name",
|
|
3
3
|
"description": "Validate font file names",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
|
-
"email": "
|
|
7
|
+
"email": "nikkeyl.me@gmail.com",
|
|
8
8
|
"name": "Archoleat",
|
|
9
9
|
"url": "https://github.com/archoleat"
|
|
10
10
|
},
|
|
@@ -27,16 +27,14 @@
|
|
|
27
27
|
"validate",
|
|
28
28
|
"validator"
|
|
29
29
|
],
|
|
30
|
-
"packageManager": "pnpm@9.7.0",
|
|
31
30
|
"engines": {
|
|
32
|
-
"
|
|
33
|
-
"pnpm": ">=9.0.0"
|
|
31
|
+
"bun": ">=1.0.0"
|
|
34
32
|
},
|
|
35
33
|
"type": "module",
|
|
36
34
|
"types": "index.d.ts",
|
|
37
35
|
"imports": {
|
|
38
|
-
"#
|
|
39
|
-
"#types": "./src/types
|
|
36
|
+
"#src/*": "./src/*",
|
|
37
|
+
"#types/*": "./src/types/*"
|
|
40
38
|
},
|
|
41
39
|
"exports": {
|
|
42
40
|
".": "./index.js"
|
|
@@ -46,54 +44,53 @@
|
|
|
46
44
|
"index.js"
|
|
47
45
|
],
|
|
48
46
|
"scripts": {
|
|
49
|
-
"init": "
|
|
47
|
+
"init": "bun i && husky"
|
|
50
48
|
},
|
|
51
49
|
"dependencies": {
|
|
52
|
-
"@archoleat/notifier": "^1.
|
|
53
|
-
"@archoleat/reglib": "^1.
|
|
50
|
+
"@archoleat/notifier": "^1.1.6",
|
|
51
|
+
"@archoleat/reglib": "^1.9.0"
|
|
54
52
|
},
|
|
55
53
|
"devDependencies": {
|
|
56
54
|
"@archoleat/commitlint-define-config": "^1.1.0",
|
|
57
55
|
"@archoleat/eslint-flat-compatibility": "^1.2.1",
|
|
58
56
|
"@archoleat/prettier-define-config": "^1.1.0",
|
|
59
57
|
"@archoleat/semantic-release-define-config": "^1.2.0",
|
|
60
|
-
"@commitlint/cli": "^19.
|
|
61
|
-
"@commitlint/config-conventional": "^19.
|
|
62
|
-
"@commitlint/types": "^19.
|
|
58
|
+
"@commitlint/cli": "^19.8.1",
|
|
59
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
60
|
+
"@commitlint/types": "^19.8.1",
|
|
63
61
|
"@rollup/plugin-alias": "^5.1.1",
|
|
64
|
-
"@rollup/plugin-typescript": "^12.1.
|
|
62
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
65
63
|
"@semantic-release/changelog": "^6.0.3",
|
|
66
64
|
"@semantic-release/git": "^10.0.1",
|
|
67
|
-
"@types/
|
|
65
|
+
"@types/bun": "^1.2.20",
|
|
66
|
+
"@types/node": "^24.3.0",
|
|
68
67
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
69
68
|
"@typescript-eslint/parser": "^7.18.0",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"editorconfig-checker": "^6.0.0",
|
|
69
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
70
|
+
"editorconfig-checker": "^6.1.0",
|
|
73
71
|
"eslint": "^8.57.1",
|
|
74
72
|
"eslint-config-airbnb": "^19.0.4",
|
|
75
73
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
76
|
-
"eslint-config-prettier": "^
|
|
74
|
+
"eslint-config-prettier": "^10.1.8",
|
|
77
75
|
"eslint-define-config": "^2.1.0",
|
|
78
|
-
"eslint-import-resolver-typescript": "^
|
|
79
|
-
"eslint-plugin-import": "^2.
|
|
76
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
77
|
+
"eslint-plugin-import": "^2.32.0",
|
|
80
78
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
81
|
-
"eslint-plugin-unicorn": "^
|
|
82
|
-
"git-pull-run": "^1.
|
|
83
|
-
"globals": "^
|
|
84
|
-
"husky": "^9.1.
|
|
85
|
-
"lint-staged": "^
|
|
86
|
-
"prettier": "^3.
|
|
79
|
+
"eslint-plugin-unicorn": "^60.0.0",
|
|
80
|
+
"git-pull-run": "^1.6.2",
|
|
81
|
+
"globals": "^16.3.0",
|
|
82
|
+
"husky": "^9.1.7",
|
|
83
|
+
"lint-staged": "^16.1.5",
|
|
84
|
+
"prettier": "^3.6.2",
|
|
87
85
|
"remark": "15.0.1",
|
|
88
86
|
"remark-cli": "^12.0.1",
|
|
89
|
-
"remark-preset-lint-consistent": "^6.0.
|
|
90
|
-
"remark-preset-lint-markdown-style-guide": "^6.0.
|
|
91
|
-
"remark-preset-lint-recommended": "^7.0.
|
|
92
|
-
"rollup": "^4.
|
|
93
|
-
"rollup-plugin-dts": "^6.
|
|
94
|
-
"rollup-plugin-esbuild": "^6.
|
|
95
|
-
"semantic-release": "^24.2.
|
|
96
|
-
"
|
|
97
|
-
"vitest": "^2.1.4"
|
|
87
|
+
"remark-preset-lint-consistent": "^6.0.1",
|
|
88
|
+
"remark-preset-lint-markdown-style-guide": "^6.0.1",
|
|
89
|
+
"remark-preset-lint-recommended": "^7.0.1",
|
|
90
|
+
"rollup": "^4.46.2",
|
|
91
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
92
|
+
"rollup-plugin-esbuild": "^6.2.1",
|
|
93
|
+
"semantic-release": "^24.2.7",
|
|
94
|
+
"tslib": "^2.8.1"
|
|
98
95
|
}
|
|
99
96
|
}
|