@archoleat/reglib 1.2.1 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +6 -2
- package/index.js +1 -1
- package/package.json +9 -13
package/index.d.ts
CHANGED
@@ -7,14 +7,18 @@ declare const selectors: {
|
|
7
7
|
MODIFIER_REGEX: string;
|
8
8
|
};
|
9
9
|
child: {
|
10
|
-
|
11
|
-
|
10
|
+
CLASS_CHILD_REGEX: string;
|
11
|
+
CLASS_SIBLING_REGEX: string;
|
12
|
+
ATTRIBUTE_CHILD_REGEX: string;
|
13
|
+
ATTRIBUTE_SIBLING_REGEX: string;
|
12
14
|
};
|
13
15
|
nested: {
|
14
16
|
ATTRIBUTE_REGEX: string;
|
15
17
|
CLASS_REGEX: string;
|
16
18
|
ELEMENT_REGEX: string;
|
17
19
|
MODIFIER_REGEX: string;
|
20
|
+
NESTED_CHILD_REGEX: string;
|
21
|
+
NESTED_SIBLING_REGEX: string;
|
18
22
|
};
|
19
23
|
};
|
20
24
|
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const o="(Italic)",R="(Variable)",t="[A-Z][a-z]",c=`^${t}+(${t}+)?`,S=["Thin","Hairline","ExtraLight","UltraLight","Light","Regular","Medium","SemiBold","DemiBold","Bold","ExtraBold","UltraBold","Black","Heavy","ExtraBlack","UltraBlack"].join("|"),G=["otf","ttf","woff","woff2"].join("|"),s=`(${c})`,r=`(${S})`,I=`(${G})$`,L=[`${s}-${r}`,`(${o}?)(${R}?)`,`\\.${I}`].join(""),T=new RegExp(L),E="[a-z0-9]",X=String.raw`\[(.*?)\]`,a=String.raw`\.(.*?)`,i="__",$="--",l=`[a-z]${E}*(-${E}+)*`,_=`(${i}${E}+(-${E}+)*)`,n=`(${$}${E}+(-${E}+)*)`,B=String.raw`&>[^ ,{}]+`,A=String.raw`&\+[^ ,{}]+`,N=String.raw`\.${E}+>[^ ,{}]+`,e=String.raw`\.${E}+\+[^ ,{}]+`,g=String.raw`\[.*?\]+>[^ ,{}]+`,O=String.raw`\[.*?\]+[^ ,{}]+`,w={bem:{BLOCK_REGEX:l,ELEMENT_REGEX:_,MODIFIER_REGEX:n},child:{CLASS_CHILD_REGEX:N,CLASS_SIBLING_REGEX:e,ATTRIBUTE_CHILD_REGEX:g,ATTRIBUTE_SIBLING_REGEX:O},nested:{ATTRIBUTE_REGEX:X,CLASS_REGEX:a,ELEMENT_REGEX:_,MODIFIER_REGEX:n,NESTED_CHILD_REGEX:B,NESTED_SIBLING_REGEX:A}};export{T as FONT_FILE_NAME_REGEX,w as selectors};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@archoleat/reglib",
|
3
3
|
"description": "Library with ready-to-use regex",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.3.1",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": {
|
7
7
|
"email": "archoleat@gmail.com",
|
@@ -27,10 +27,8 @@
|
|
27
27
|
"regular-expression",
|
28
28
|
"regular-expressions"
|
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
|
"imports": {
|
@@ -46,24 +44,24 @@
|
|
46
44
|
"index.js"
|
47
45
|
],
|
48
46
|
"scripts": {
|
49
|
-
"init": "
|
47
|
+
"init": "bun i && husky"
|
50
48
|
},
|
51
49
|
"devDependencies": {
|
52
50
|
"@archoleat/commitlint-define-config": "^1.1.0",
|
53
51
|
"@archoleat/eslint-flat-compatibility": "^1.2.1",
|
54
52
|
"@archoleat/prettier-define-config": "^1.1.0",
|
55
53
|
"@archoleat/semantic-release-define-config": "^1.2.0",
|
56
|
-
"@commitlint/cli": "^19.6.
|
54
|
+
"@commitlint/cli": "^19.6.1",
|
57
55
|
"@commitlint/config-conventional": "^19.6.0",
|
58
56
|
"@commitlint/types": "^19.5.0",
|
59
57
|
"@rollup/plugin-alias": "^5.1.1",
|
60
|
-
"@rollup/plugin-typescript": "^12.1.
|
58
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
61
59
|
"@semantic-release/changelog": "^6.0.3",
|
62
60
|
"@semantic-release/git": "^10.0.1",
|
63
|
-
"@types/
|
61
|
+
"@types/bun": "^1.1.14",
|
62
|
+
"@types/node": "^22.10.5",
|
64
63
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
65
64
|
"@typescript-eslint/parser": "^7.18.0",
|
66
|
-
"@vitest/coverage-v8": "^2.1.6",
|
67
65
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
68
66
|
"editorconfig-checker": "^5.1.9",
|
69
67
|
"eslint": "^8.57.1",
|
@@ -79,7 +77,7 @@
|
|
79
77
|
"globals": "^15.13.0",
|
80
78
|
"husky": "^9.1.7",
|
81
79
|
"lint-staged": "^15.2.10",
|
82
|
-
"prettier": "^3.4.
|
80
|
+
"prettier": "^3.4.2",
|
83
81
|
"remark": "15.0.1",
|
84
82
|
"remark-cli": "^12.0.1",
|
85
83
|
"remark-preset-lint-consistent": "^6.0.0",
|
@@ -88,8 +86,6 @@
|
|
88
86
|
"rollup": "^4.28.0",
|
89
87
|
"rollup-plugin-dts": "^6.1.1",
|
90
88
|
"rollup-plugin-esbuild": "^6.1.1",
|
91
|
-
"semantic-release": "^24.2.0"
|
92
|
-
"typescript": "^5.7.2",
|
93
|
-
"vitest": "^2.1.6"
|
89
|
+
"semantic-release": "^24.2.0"
|
94
90
|
}
|
95
91
|
}
|