utils-lib-js 1.6.3 → 1.7.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/bundle/array.d.ts +1 -1
- package/dist/bundle/base.d.ts +1 -1
- package/dist/bundle/element.d.ts +1 -1
- package/dist/bundle/event.d.ts +1 -1
- package/dist/bundle/function.d.ts +1 -1
- package/dist/bundle/index.d.ts +46 -42
- package/dist/bundle/index.js +1 -1023
- package/dist/bundle/object.d.ts +1 -1
- package/dist/bundle/request.d.ts +1 -1
- package/dist/cjs/array.d.ts +1 -1
- package/dist/cjs/base.d.ts +1 -1
- package/dist/cjs/element.d.ts +1 -1
- package/dist/cjs/event.d.ts +1 -1
- package/dist/cjs/function.d.ts +1 -1
- package/dist/cjs/index.d.ts +46 -42
- package/dist/cjs/index.js +1008 -44
- package/dist/cjs/object.d.ts +1 -1
- package/dist/cjs/request.d.ts +1 -1
- package/dist/esm/array.d.ts +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/element.d.ts +1 -1
- package/dist/esm/event.d.ts +1 -1
- package/dist/esm/function.d.ts +1 -1
- package/dist/esm/index.d.ts +46 -42
- package/dist/esm/index.js +964 -25
- package/dist/esm/object.d.ts +1 -1
- package/dist/esm/request.d.ts +1 -1
- package/dist/umd/array.d.ts +1 -1
- package/dist/umd/base.d.ts +1 -1
- package/dist/umd/element.d.ts +1 -1
- package/dist/umd/event.d.ts +1 -1
- package/dist/umd/function.d.ts +1 -1
- package/dist/umd/index.d.ts +46 -42
- package/dist/umd/index.js +1 -1
- package/dist/umd/object.d.ts +1 -1
- package/dist/umd/request.d.ts +1 -1
- package/package.json +4 -2
- package/pnpm-lock.yaml +217 -3
- package/rollup.config.js +15 -2
- package/tsconfig.json +1 -1
- package/dist/cjs/array.js +0 -19
- package/dist/cjs/base.js +0 -56
- package/dist/cjs/element.js +0 -16
- package/dist/cjs/event.js +0 -53
- package/dist/cjs/function.js +0 -66
- package/dist/cjs/object.js +0 -190
- package/dist/cjs/request.js +0 -239
- package/dist/cjs/static.js +0 -18
- package/dist/cjs/storage.js +0 -41
- package/dist/cjs/types.js +0 -2
- package/dist/esm/array.js +0 -13
- package/dist/esm/base.js +0 -48
- package/dist/esm/element.js +0 -12
- package/dist/esm/event.js +0 -45
- package/dist/esm/function.js +0 -59
- package/dist/esm/object.js +0 -174
- package/dist/esm/request.js +0 -236
- package/dist/esm/static.js +0 -15
- package/dist/esm/storage.js +0 -35
- package/dist/esm/types.js +0 -1
- package/tsconfig.es.json +0 -8
- package/tsconfig.umd.json +0 -6
package/dist/bundle/object.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGetValue, ISetValue, IMixIn, ICloneDeep, ICreateObjectVariable, IEnumInversion, IInherit, ICreateObject, IGetInstance, IClassDecorator, IStringToJson, IJsonToString } from "./index
|
|
1
|
+
import { IGetValue, ISetValue, IMixIn, ICloneDeep, ICreateObjectVariable, IEnumInversion, IInherit, ICreateObject, IGetInstance, IClassDecorator, IStringToJson, IJsonToString } from "./index";
|
|
2
2
|
export declare const getValue: IGetValue;
|
|
3
3
|
export declare const setValue: ISetValue;
|
|
4
4
|
export declare const mixIn: IMixIn;
|
package/dist/bundle/request.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRequest, IRequestBase, IRequestInit, IInterceptors, IUrl, IObject, IRequestBody, IRequestOptions, IRequestBaseFn, IEnv } from "./index
|
|
1
|
+
import { IRequest, IRequestBase, IRequestInit, IInterceptors, IUrl, IObject, IRequestBody, IRequestOptions, IRequestBaseFn, IEnv } from "./index";
|
|
2
2
|
declare class Interceptors implements IInterceptors {
|
|
3
3
|
private requestSuccess;
|
|
4
4
|
private responseSuccess;
|
package/dist/cjs/array.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IArrayRandom, IArrayUniq, IArrayDemote, IDemoteArray } from "./index
|
|
1
|
+
import { IArrayRandom, IArrayUniq, IArrayDemote, IDemoteArray } from "./index";
|
|
2
2
|
export declare const arrayRandom: IArrayRandom<any[]>;
|
|
3
3
|
export declare const arrayUniq: IArrayUniq<any[]>;
|
|
4
4
|
export declare const arrayDemote: IArrayDemote<IDemoteArray<any>>;
|
package/dist/cjs/base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRandomNum, IUrlSplit, IUrlJoin, IGetType, IGetTypeByList, types } from "./index
|
|
1
|
+
import { IRandomNum, IUrlSplit, IUrlJoin, IGetType, IGetTypeByList, types } from "./index";
|
|
2
2
|
export declare const randomNum: IRandomNum;
|
|
3
3
|
export declare const urlSplit: IUrlSplit;
|
|
4
4
|
export declare const urlJoin: IUrlJoin;
|
package/dist/cjs/element.d.ts
CHANGED
package/dist/cjs/event.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAddHandler, IStopBubble, IStopDefault, IRemoveHandler, IDispatchEvent } from "./index
|
|
1
|
+
import { IAddHandler, IStopBubble, IStopDefault, IRemoveHandler, IDispatchEvent } from "./index";
|
|
2
2
|
export declare const addHandler: IAddHandler;
|
|
3
3
|
export declare const stopBubble: IStopBubble;
|
|
4
4
|
export declare const stopDefault: IStopDefault;
|
package/dist/cjs/function.d.ts
CHANGED
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,51 +1,55 @@
|
|
|
1
|
-
export * from "./object
|
|
2
|
-
export * from "./base
|
|
3
|
-
export * from "./array
|
|
4
|
-
export * from "./function
|
|
5
|
-
export * from "./element
|
|
6
|
-
export * from "./static
|
|
7
|
-
export * from "./types
|
|
8
|
-
export * from "./request
|
|
9
|
-
export * from "./event
|
|
10
|
-
export * from "./storage
|
|
1
|
+
export * from "./object";
|
|
2
|
+
export * from "./base";
|
|
3
|
+
export * from "./array";
|
|
4
|
+
export * from "./function";
|
|
5
|
+
export * from "./element";
|
|
6
|
+
export * from "./static";
|
|
7
|
+
export * from "./types";
|
|
8
|
+
export * from "./request";
|
|
9
|
+
export * from "./event";
|
|
10
|
+
export * from "./storage";
|
|
11
11
|
export * from "event-message-center";
|
|
12
12
|
export * from "task-queue-lib";
|
|
13
|
+
import eventMessageCenter from "event-message-center";
|
|
14
|
+
import taskQueueLib from "task-queue-lib";
|
|
13
15
|
declare const _default: {
|
|
16
|
+
eventMessageCenter: typeof eventMessageCenter;
|
|
17
|
+
taskQueueLib: typeof taskQueueLib;
|
|
14
18
|
setStorage: (key: string, val: any) => void;
|
|
15
19
|
getStorage: (key: string) => any;
|
|
16
20
|
clearStorage: (key: string) => void;
|
|
17
|
-
addHandler: import("./types
|
|
18
|
-
stopBubble: import("./types
|
|
19
|
-
stopDefault: import("./types
|
|
20
|
-
removeHandler: import("./types
|
|
21
|
-
dispatchEvent: import("./types
|
|
22
|
-
Request: typeof import("./request
|
|
23
|
-
types: typeof import("./static
|
|
24
|
-
createElement: import("./types
|
|
25
|
-
throttle: import("./types
|
|
26
|
-
debounce: import("./types
|
|
27
|
-
defer: import("./types
|
|
28
|
-
catchAwait: import("./types
|
|
29
|
-
arrayRandom: import("./types
|
|
30
|
-
arrayUniq: import("./types
|
|
31
|
-
arrayDemote: import("./types
|
|
32
|
-
randomNum: import("./types
|
|
33
|
-
urlSplit: import("./types
|
|
34
|
-
urlJoin: import("./types
|
|
35
|
-
getType: import("./types
|
|
36
|
-
getTypeByList: import("./types
|
|
37
|
-
getValue: import("./types
|
|
38
|
-
setValue: import("./types
|
|
39
|
-
mixIn: import("./types
|
|
40
|
-
enumInversion: import("./types
|
|
21
|
+
addHandler: import("./types").IAddHandler;
|
|
22
|
+
stopBubble: import("./types").IStopBubble;
|
|
23
|
+
stopDefault: import("./types").IStopDefault;
|
|
24
|
+
removeHandler: import("./types").IRemoveHandler;
|
|
25
|
+
dispatchEvent: import("./types").IDispatchEvent;
|
|
26
|
+
Request: typeof import("./request").Request;
|
|
27
|
+
types: typeof import("./static").types;
|
|
28
|
+
createElement: import("./types").ICreateElement;
|
|
29
|
+
throttle: import("./types").IThrottle;
|
|
30
|
+
debounce: import("./types").IDebounce;
|
|
31
|
+
defer: import("./types").IDefer;
|
|
32
|
+
catchAwait: import("./types").ICatchAwait<Promise<any>>;
|
|
33
|
+
arrayRandom: import("./types").IArrayRandom<any[]>;
|
|
34
|
+
arrayUniq: import("./types").IArrayUniq<any[]>;
|
|
35
|
+
arrayDemote: import("./types").IArrayDemote<import("./types").IDemoteArray<any>>;
|
|
36
|
+
randomNum: import("./types").IRandomNum;
|
|
37
|
+
urlSplit: import("./types").IUrlSplit;
|
|
38
|
+
urlJoin: import("./types").IUrlJoin;
|
|
39
|
+
getType: import("./types").IGetType<import("./static").types>;
|
|
40
|
+
getTypeByList: import("./types").IGetTypeByList;
|
|
41
|
+
getValue: import("./types").IGetValue;
|
|
42
|
+
setValue: import("./types").ISetValue;
|
|
43
|
+
mixIn: import("./types").IMixIn;
|
|
44
|
+
enumInversion: import("./types").IEnumInversion;
|
|
41
45
|
isNotObject: (source: any, type: any) => boolean;
|
|
42
|
-
cloneDeep: import("./types
|
|
43
|
-
createObjectVariable: import("./types
|
|
44
|
-
createObject: import("./types
|
|
45
|
-
inherit: import("./types
|
|
46
|
-
getInstance: import("./types
|
|
47
|
-
classDecorator: import("./types
|
|
48
|
-
stringToJson: import("./types
|
|
49
|
-
jsonToString: import("./types
|
|
46
|
+
cloneDeep: import("./types").ICloneDeep;
|
|
47
|
+
createObjectVariable: import("./types").ICreateObjectVariable;
|
|
48
|
+
createObject: import("./types").ICreateObject;
|
|
49
|
+
inherit: import("./types").IInherit;
|
|
50
|
+
getInstance: import("./types").IGetInstance;
|
|
51
|
+
classDecorator: import("./types").IClassDecorator;
|
|
52
|
+
stringToJson: import("./types").IStringToJson;
|
|
53
|
+
jsonToString: import("./types").IJsonToString;
|
|
50
54
|
};
|
|
51
55
|
export default _default;
|