@bhsd/common 3.0.0 → 4.0.0
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/dist/index.d.ts +1 -1
- package/dist/index.js +0 -1
- package/package.json +18 -11
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare interface JsonError {
|
|
|
11
11
|
position: number;
|
|
12
12
|
}
|
|
13
13
|
export type RegexGetter<T = string> = (s: T) => RegExp;
|
|
14
|
-
export * from './color.js';
|
|
15
14
|
export declare const wmf = "wiktionary|wiki(?:pedia|books|news|quote|source|versity|voyage)";
|
|
16
15
|
/**
|
|
17
16
|
* PHP的`rawurldecode`函数的JavaScript实现
|
|
@@ -79,3 +78,4 @@ export declare const lintJSONC: (str: string) => JsonError[];
|
|
|
79
78
|
* @param re 其他正则表达式,默认为匹配非空白字符的正则表达式
|
|
80
79
|
*/
|
|
81
80
|
export declare const numLeadingSpaces: (str: string, re?: RegExp) => number;
|
|
81
|
+
export {};
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"homepage": "https://github.com/bhsd-harry/common#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/bhsd-harry/common/issues"
|
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"author": "Bhsd",
|
|
10
10
|
"files": [
|
|
11
|
-
"/dist
|
|
11
|
+
"/dist/"
|
|
12
12
|
],
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./dist/index.js",
|
|
17
|
+
"./color": "./dist/color.js"
|
|
18
|
+
},
|
|
15
19
|
"type": "module",
|
|
16
20
|
"sideEffects": false,
|
|
17
21
|
"scripts": {
|
|
@@ -20,20 +24,23 @@
|
|
|
20
24
|
"build": "tsc",
|
|
21
25
|
"lint:ts": "tsc --noEmit && eslint --cache .",
|
|
22
26
|
"lint": "npm run lint:ts",
|
|
23
|
-
"test": "
|
|
27
|
+
"test": "testUtil test/*.test.js"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"culori": "^4.0.0"
|
|
24
31
|
},
|
|
25
|
-
"
|
|
26
|
-
"culori":
|
|
32
|
+
"peerDependenciesMeta": {
|
|
33
|
+
"culori": {
|
|
34
|
+
"optional": true
|
|
35
|
+
}
|
|
27
36
|
},
|
|
28
37
|
"devDependencies": {
|
|
29
|
-
"@bhsd/code-standard": "^
|
|
38
|
+
"@bhsd/code-standard": "^3.1.0",
|
|
30
39
|
"@bhsd/lezer-json": "^2.1.0",
|
|
40
|
+
"@bhsd/test-util": "^3.1.0",
|
|
31
41
|
"@types/culori": "^4.0.1",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"eslint": "^10.4.1",
|
|
35
|
-
"globals": "^17.6.0",
|
|
36
|
-
"mocha": "^11.7.6",
|
|
42
|
+
"culori": "^4.0.2",
|
|
43
|
+
"eslint": "^10.7.0",
|
|
37
44
|
"typescript": "^6.0.3"
|
|
38
45
|
},
|
|
39
46
|
"engines": {
|