ddan-js 3.1.8 → 3.2.1
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/bin/ddan-js.browser.js +1 -1
- package/bin/ddan-js.js +1 -1
- package/bin/ddan-js.mjs +1 -1
- package/bin/modules/crypto/index.d.ts +3 -1
- package/bin/modules/crypto/uuid.d.ts +16 -1
- package/bin/modules/hook/hooker.d.ts +1 -0
- package/bin/modules/hook/index.d.ts +1 -0
- package/bin/modules/time/const.d.ts +4 -0
- package/bin/modules/time/index.d.ts +4 -0
- package/bin/tiny/hook.d.ts +4 -1
- package/bin/tiny/utils.d.ts +7 -1
- package/package.json +1 -1
|
@@ -15,7 +15,9 @@ declare const _default: {
|
|
|
15
15
|
decodeBytes: (cipherbytes: Uint8Array, key: string) => Uint8Array;
|
|
16
16
|
};
|
|
17
17
|
uuid: (len?: number, radix?: number) => string;
|
|
18
|
-
guid: (len
|
|
18
|
+
guid: (len?: number, prefix?: boolean, sep?: string) => string;
|
|
19
|
+
UUID: (mode?: "mixin" | "lower" | "upper", radix?: number) => string;
|
|
20
|
+
randomID: (len?: number, mode?: "mixin" | "lower" | "upper", radix?: number) => string;
|
|
19
21
|
getHexString: (len: number) => string;
|
|
20
22
|
keyNumber: string;
|
|
21
23
|
keyLower: string;
|
|
@@ -5,4 +5,19 @@
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
declare const uuid: (len?: number, radix?: number) => string;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* uuid xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx 格式
|
|
10
|
+
* @param mode 'mixin' | 'lower' | 'upper'
|
|
11
|
+
* @param radix radix KeyChars 涉及的长度
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
declare const UUID: (mode?: 'mixin' | 'lower' | 'upper', radix?: number) => string;
|
|
15
|
+
/**
|
|
16
|
+
* 随机ID
|
|
17
|
+
* @param len 默认32
|
|
18
|
+
* @param mode
|
|
19
|
+
* @param radix
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
declare const randomID: (len?: number, mode?: 'mixin' | 'lower' | 'upper', radix?: number) => string;
|
|
23
|
+
export { uuid, UUID, randomID };
|
|
@@ -13,5 +13,6 @@ export default class DHooker extends DHooker_base {
|
|
|
13
13
|
lock(id: string, func: Ddan.PFunction): Promise<[any, undefined] | [null, any]> | undefined;
|
|
14
14
|
unlock(id: string): void;
|
|
15
15
|
exec(func: Ddan.PFunction, taskId: string): Ddan.PSafeResult;
|
|
16
|
+
pipeRunAsync(func: Ddan.Function): Promise<unknown>;
|
|
16
17
|
}
|
|
17
18
|
export {};
|
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
pipe: (func: Ddan.Function, callback?: ((result: Ddan.SafeResult<any>) => void) | undefined) => DPipeline;
|
|
26
26
|
pipeline: (max?: number) => DPipeline;
|
|
27
27
|
safeTask: (func: Ddan.Function, callback?: ((result: Ddan.SafeResult<any>) => void) | undefined) => DSafeTask;
|
|
28
|
+
pipeRunAsync: (func: Ddan.Function) => Promise<unknown>;
|
|
28
29
|
bezier1: (p0: Ddan.IPoint, p1: Ddan.IPoint, t: number) => Ddan.IPoint;
|
|
29
30
|
bezier2: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, t: number) => Ddan.IPoint;
|
|
30
31
|
bezier3: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, p3: Ddan.IPoint, t: number) => Ddan.IPoint;
|
package/bin/tiny/hook.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ declare const dHook: {
|
|
|
112
112
|
pipe: (func: import("..").Ddan.Function, callback?: ((result: import("..").Ddan.SafeResult<any>) => void) | undefined) => import("../modules/hook/modules/pipeline").default;
|
|
113
113
|
pipeline: (max?: number) => import("../modules/hook/modules/pipeline").default;
|
|
114
114
|
safeTask: (func: import("..").Ddan.Function, callback?: ((result: import("..").Ddan.SafeResult<any>) => void) | undefined) => import("../modules/hook/modules/safeTask").default;
|
|
115
|
+
pipeRunAsync: (func: import("..").Ddan.Function) => Promise<unknown>;
|
|
115
116
|
bezier1: (p0: import("..").Ddan.IPoint, p1: import("..").Ddan.IPoint, t: number) => import("..").Ddan.IPoint;
|
|
116
117
|
bezier2: (p0: import("..").Ddan.IPoint, p1: import("..").Ddan.IPoint, p2: import("..").Ddan.IPoint, t: number) => import("..").Ddan.IPoint;
|
|
117
118
|
bezier3: (p0: import("..").Ddan.IPoint, p1: import("..").Ddan.IPoint, p2: import("..").Ddan.IPoint, p3: import("..").Ddan.IPoint, t: number) => import("..").Ddan.IPoint;
|
|
@@ -148,7 +149,9 @@ declare const dHook: {
|
|
|
148
149
|
decodeBytes: (cipherbytes: Uint8Array, key: string) => Uint8Array;
|
|
149
150
|
};
|
|
150
151
|
uuid: (len?: number, radix?: number) => string;
|
|
151
|
-
guid: (len
|
|
152
|
+
guid: (len?: number, prefix?: boolean, sep?: string) => string;
|
|
153
|
+
UUID: (mode?: "mixin" | "lower" | "upper", radix?: number) => string;
|
|
154
|
+
randomID: (len?: number, mode?: "mixin" | "lower" | "upper", radix?: number) => string;
|
|
152
155
|
getHexString: (len: number) => string;
|
|
153
156
|
keyNumber: string;
|
|
154
157
|
keyLower: string;
|
package/bin/tiny/utils.d.ts
CHANGED
|
@@ -69,7 +69,9 @@ declare const dUtil: {
|
|
|
69
69
|
decodeBytes: (cipherbytes: Uint8Array, key: string) => Uint8Array;
|
|
70
70
|
};
|
|
71
71
|
uuid: (len?: number, radix?: number) => string;
|
|
72
|
-
guid: (len
|
|
72
|
+
guid: (len?: number, prefix?: boolean, sep?: string) => string;
|
|
73
|
+
UUID: (mode?: "mixin" | "lower" | "upper", radix?: number) => string;
|
|
74
|
+
randomID: (len?: number, mode?: "mixin" | "lower" | "upper", radix?: number) => string;
|
|
73
75
|
getHexString: (len: number) => string;
|
|
74
76
|
keyNumber: string;
|
|
75
77
|
keyLower: string;
|
|
@@ -186,6 +188,10 @@ declare const dUtil: {
|
|
|
186
188
|
oneHour: number;
|
|
187
189
|
oneMinute: number;
|
|
188
190
|
oneSecond: number;
|
|
191
|
+
DAY_MS: number;
|
|
192
|
+
HOUR_MS: number;
|
|
193
|
+
MINUTE_MS: number;
|
|
194
|
+
SECOND_MS: number;
|
|
189
195
|
};
|
|
190
196
|
obj: {
|
|
191
197
|
copy: (source: any, options?: {
|