utils-lib-js 2.0.10 → 2.0.12
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.en.md +12 -0
- package/README.md +18 -2
- package/dist/bundle/index.d.ts +4 -0
- package/dist/bundle/index.js +8 -2
- package/dist/bundle/object.d.ts +3 -1
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +3188 -79
- package/dist/cjs/object.d.ts +3 -1
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +3133 -27
- package/dist/esm/object.d.ts +3 -1
- package/dist/umd/index.d.ts +4 -0
- package/dist/umd/index.js +3188 -79
- package/dist/umd/object.d.ts +3 -1
- package/package.json +3 -2
package/dist/umd/object.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGetValue, ISetValue, IMixIn, ICloneDeep, ICreateObjectVariable, IEnumInversion, IInherit, ICreateObject, IGetInstance, IClassDecorator, IStringToJson, IJsonToString } from "./types";
|
|
1
|
+
import { IGetValue, ISetValue, IMixIn, ICloneDeep, ICreateObjectVariable, IEnumInversion, IInherit, ICreateObject, IGetInstance, IClassDecorator, IStringToJson, IJsonToString, IObject } from "./types";
|
|
2
2
|
export declare const getValue: IGetValue;
|
|
3
3
|
export declare const setValue: ISetValue;
|
|
4
4
|
export declare const mixIn: IMixIn;
|
|
@@ -13,6 +13,7 @@ export declare const classDecorator: IClassDecorator;
|
|
|
13
13
|
export declare const stringToJson: IStringToJson;
|
|
14
14
|
export declare const jsonToString: IJsonToString;
|
|
15
15
|
export declare const isWindow: (win: any) => boolean;
|
|
16
|
+
export declare const emptyObject: (init: IObject<unknown>) => any;
|
|
16
17
|
declare const _default: {
|
|
17
18
|
getValue: IGetValue;
|
|
18
19
|
setValue: ISetValue;
|
|
@@ -28,5 +29,6 @@ declare const _default: {
|
|
|
28
29
|
stringToJson: IStringToJson;
|
|
29
30
|
jsonToString: IJsonToString;
|
|
30
31
|
isWindow: (win: any) => boolean;
|
|
32
|
+
emptyObject: (init: IObject<unknown>) => any;
|
|
31
33
|
};
|
|
32
34
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "utils-lib-js",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "JavaScript工具函数,封装的一些常用的js函数",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/cjs/index.d.ts",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"event-message-center": "^1.3.2",
|
|
36
36
|
"js-request-lib": "^1.0.7",
|
|
37
|
-
"task-queue-lib": "^1.2.0"
|
|
37
|
+
"task-queue-lib": "^1.2.0",
|
|
38
|
+
"timer-manager-lib": "^1.0.0"
|
|
38
39
|
},
|
|
39
40
|
"umdModuleName": "UtilsLib",
|
|
40
41
|
"scripts": {
|