@archoleat/validate-font-file-name 1.2.5 → 1.2.7
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/index.js +1 -1
- package/package.json +29 -35
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parse as
|
|
1
|
+
import{parse as n}from"node:path";import{error as i}from"@archoleat/notifier";import{FONT_FILE_NAME_REGEX as m}from"@archoleat/reglib";const f=async a=>{const{file:t,regex:e=""}=a;if(!t||typeof t!="string")return await i({message:"Invalid file provided. File must be a non-empty string."}),!1;const s=n(t).base,o=typeof e=="string"&&e!=="",r=new RegExp(o?e:e||m);return r.test(s)?!0:(await i({message:`(${s}) doesn't match with (${r})`}),!1)};export{f as validateFontFileName};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "nikkeyl.me@gmail.com",
|
|
@@ -17,15 +17,9 @@
|
|
|
17
17
|
"url": "https://github.com/archoleat/validate-font-file-name/issues"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
|
-
"archoleat-font-file-name",
|
|
21
20
|
"archoleat",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"plugin",
|
|
25
|
-
"validate-font-file-name",
|
|
26
|
-
"validate-name",
|
|
27
|
-
"validate",
|
|
28
|
-
"validator"
|
|
21
|
+
"typescript",
|
|
22
|
+
"validate-font-file-name"
|
|
29
23
|
],
|
|
30
24
|
"engines": {
|
|
31
25
|
"bun": ">=1.0.0"
|
|
@@ -47,47 +41,47 @@
|
|
|
47
41
|
"init": "bun i && husky"
|
|
48
42
|
},
|
|
49
43
|
"dependencies": {
|
|
50
|
-
"@archoleat/notifier": "^1.1.
|
|
51
|
-
"@archoleat/reglib": "^1.
|
|
44
|
+
"@archoleat/notifier": "^1.1.9",
|
|
45
|
+
"@archoleat/reglib": "^1.10.1"
|
|
52
46
|
},
|
|
53
47
|
"devDependencies": {
|
|
54
|
-
"@archoleat/commitlint-define-config": "^1.1.
|
|
55
|
-
"@archoleat/prettier-define-config": "^1.2.
|
|
56
|
-
"@archoleat/semantic-release-define-config": "^1.3.
|
|
57
|
-
"@commitlint/cli": "^
|
|
58
|
-
"@commitlint/config-conventional": "^
|
|
59
|
-
"@commitlint/types": "^
|
|
48
|
+
"@archoleat/commitlint-define-config": "^1.1.2",
|
|
49
|
+
"@archoleat/prettier-define-config": "^1.2.2",
|
|
50
|
+
"@archoleat/semantic-release-define-config": "^1.3.2",
|
|
51
|
+
"@commitlint/cli": "^21.2.0",
|
|
52
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
53
|
+
"@commitlint/types": "^21.2.0",
|
|
60
54
|
"@rollup/plugin-alias": "^6.0.0",
|
|
61
55
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
62
56
|
"@semantic-release/changelog": "^6.0.3",
|
|
63
57
|
"@semantic-release/git": "^10.0.1",
|
|
64
|
-
"@types/bun": "^1.
|
|
65
|
-
"@types/node": "^
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
67
|
-
"@typescript-eslint/parser": "^8.
|
|
68
|
-
"conventional-changelog-conventionalcommits": "^9.1
|
|
69
|
-
"editorconfig-checker": "^
|
|
70
|
-
"eslint": "^
|
|
58
|
+
"@types/bun": "^1.3.14",
|
|
59
|
+
"@types/node": "^26.1.0",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.62.1",
|
|
61
|
+
"@typescript-eslint/parser": "^8.62.1",
|
|
62
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
63
|
+
"editorconfig-checker": "^7.0.0",
|
|
64
|
+
"eslint": "^10.6.0",
|
|
71
65
|
"eslint-config-prettier": "^10.1.8",
|
|
72
66
|
"eslint-define-config": "^2.1.0",
|
|
73
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
67
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
74
68
|
"eslint-plugin-import": "^2.32.0",
|
|
75
|
-
"eslint-plugin-simple-import-sort": "^
|
|
76
|
-
"eslint-plugin-unicorn": "^
|
|
77
|
-
"
|
|
78
|
-
"globals": "^16.3.0",
|
|
69
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
70
|
+
"eslint-plugin-unicorn": "^70.0.0",
|
|
71
|
+
"globals": "^17.7.0",
|
|
79
72
|
"husky": "^9.1.7",
|
|
80
|
-
"lint-staged": "^
|
|
81
|
-
"prettier": "^3.
|
|
73
|
+
"lint-staged": "^17.0.8",
|
|
74
|
+
"prettier": "^3.9.4",
|
|
82
75
|
"remark": "15.0.1",
|
|
83
76
|
"remark-cli": "^12.0.1",
|
|
84
77
|
"remark-preset-lint-consistent": "^6.0.1",
|
|
85
78
|
"remark-preset-lint-markdown-style-guide": "^6.0.1",
|
|
86
79
|
"remark-preset-lint-recommended": "^7.0.1",
|
|
87
|
-
"rollup": "^4.
|
|
88
|
-
"rollup-plugin-dts": "^6.
|
|
80
|
+
"rollup": "^4.62.2",
|
|
81
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
89
82
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
90
|
-
"semantic-release": "^25.0.
|
|
91
|
-
"tslib": "^2.8.1"
|
|
83
|
+
"semantic-release": "^25.0.5",
|
|
84
|
+
"tslib": "^2.8.1",
|
|
85
|
+
"typescript": "^6.0.2"
|
|
92
86
|
}
|
|
93
87
|
}
|