@mi-avalon/libs 0.0.8 → 0.0.9
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/libs.cjs.development.js +40 -3
- package/dist/libs.cjs.development.js.map +1 -1
- package/dist/libs.cjs.production.min.js +1 -1
- package/dist/libs.cjs.production.min.js.map +1 -1
- package/dist/libs.esm.js +37 -2
- package/dist/libs.esm.js.map +1 -1
- package/dist/utils/util.d.ts +2 -0
- package/package.json +3 -5
package/dist/utils/util.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export declare const noop: () => void;
|
|
|
2
2
|
export declare const getClassName: (key1: string, key2: string) => string;
|
|
3
3
|
export declare const getFieldsByPath: (data: any, path: string) => any;
|
|
4
4
|
export declare const removeNull: (obj: any) => any;
|
|
5
|
+
export declare const debounce: (func: any, wait: number) => (...args: any[]) => void;
|
|
6
|
+
export declare const throttle: (func: any, wait: number) => (...args: any[]) => void;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@mi-avalon/libs",
|
|
3
3
|
"author": "顾冬杰",
|
|
4
4
|
"module": "dist/lib.esm.js",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.9",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"typings": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"import": "./dist/
|
|
14
|
+
"import": "./dist/lib.esm.js",
|
|
15
15
|
"require": "./dist/index.js",
|
|
16
16
|
"types": "./dist/index.d.ts"
|
|
17
17
|
},
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"antd": ">=5",
|
|
34
|
-
"lodash": ">=4",
|
|
35
34
|
"react": ">=18.0.0 || ^19.0.0",
|
|
36
35
|
"react-dom": ">=18.0.0 || ^19.0.0"
|
|
37
36
|
},
|
|
@@ -58,12 +57,11 @@
|
|
|
58
57
|
],
|
|
59
58
|
"devDependencies": {
|
|
60
59
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
61
|
-
"@types/lodash": "^4.17.20",
|
|
62
60
|
"@types/react": "^19.1.8",
|
|
63
61
|
"@types/react-dom": "^19.1.6",
|
|
64
62
|
"antd": "^5.26.6",
|
|
65
63
|
"husky": "^9.1.7",
|
|
66
|
-
"
|
|
64
|
+
"postcss": "^8.5.6",
|
|
67
65
|
"react": "^19.1.0",
|
|
68
66
|
"react-dom": "^19.1.0",
|
|
69
67
|
"rollup-plugin-postcss": "^4.0.2",
|