ddan-js 3.3.1 → 3.3.2
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/hook/index.d.ts +1 -0
- package/bin/modules/hook/modules/promise.d.ts +4 -0
- package/bin/modules/node/file.d.ts +3 -0
- package/bin/modules/node/index.d.ts +3 -0
- package/bin/tiny/hook.d.ts +1 -0
- package/bin/tiny/node.d.ts +3 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ declare const _default: {
|
|
|
26
26
|
pipeline: (max?: number) => DPipeline;
|
|
27
27
|
safeTask: (func: Ddan.Function, callback?: ((result: Ddan.SafeResult<any>) => void) | undefined) => DSafeTask;
|
|
28
28
|
pipeAsync: (func: Ddan.Function) => Ddan.PSafeResult<any>;
|
|
29
|
+
anySuccess: (promises: Promise<any>[]) => Promise<boolean>;
|
|
29
30
|
bezier1: (p0: Ddan.IPoint, p1: Ddan.IPoint, t: number) => Ddan.IPoint;
|
|
30
31
|
bezier2: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, t: number) => Ddan.IPoint;
|
|
31
32
|
bezier3: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, p3: Ddan.IPoint, t: number) => Ddan.IPoint;
|
|
@@ -2,5 +2,8 @@ import { Ddan } from '../../typings';
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
readDirectory: (dir: string, callback?: Ddan.Func1<string, any> | undefined) => Promise<unknown>;
|
|
4
4
|
readFiles: (dir: string, files: string[], callback?: Ddan.Func1<string, any> | undefined) => Promise<void>;
|
|
5
|
+
access: (filePath: string, mode?: number) => Promise<boolean>;
|
|
6
|
+
chmodFile: (path: string, mode?: string | number) => void;
|
|
7
|
+
chmod755: (path: string) => Promise<[any, undefined] | [null, boolean]>;
|
|
5
8
|
};
|
|
6
9
|
export default _default;
|
|
@@ -45,5 +45,8 @@ declare const _default: {
|
|
|
45
45
|
brotliDecompress: typeof import("./brotli").brotliDecompress;
|
|
46
46
|
readDirectory: (dir: string, callback?: import("../..").Ddan.Func1<string, any> | undefined) => Promise<unknown>;
|
|
47
47
|
readFiles: (dir: string, files: string[], callback?: import("../..").Ddan.Func1<string, any> | undefined) => Promise<void>;
|
|
48
|
+
access: (filePath: string, mode?: number) => Promise<boolean>;
|
|
49
|
+
chmodFile: (path: string, mode?: string | number) => void;
|
|
50
|
+
chmod755: (path: string) => Promise<[any, undefined] | [null, boolean]>;
|
|
48
51
|
};
|
|
49
52
|
export default _default;
|
package/bin/tiny/hook.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ declare const dHook: {
|
|
|
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
115
|
pipeAsync: (func: import("..").Ddan.Function) => import("..").Ddan.PSafeResult<any>;
|
|
116
|
+
anySuccess: (promises: Promise<any>[]) => Promise<boolean>;
|
|
116
117
|
bezier1: (p0: import("..").Ddan.IPoint, p1: import("..").Ddan.IPoint, t: number) => import("..").Ddan.IPoint;
|
|
117
118
|
bezier2: (p0: import("..").Ddan.IPoint, p1: import("..").Ddan.IPoint, p2: import("..").Ddan.IPoint, t: number) => import("..").Ddan.IPoint;
|
|
118
119
|
bezier3: (p0: import("..").Ddan.IPoint, p1: import("..").Ddan.IPoint, p2: import("..").Ddan.IPoint, p3: import("..").Ddan.IPoint, t: number) => import("..").Ddan.IPoint;
|
package/bin/tiny/node.d.ts
CHANGED
|
@@ -42,5 +42,8 @@ declare const dNode: {
|
|
|
42
42
|
brotliDecompress: typeof import("../modules/node/brotli").brotliDecompress;
|
|
43
43
|
readDirectory: (dir: string, callback?: import("..").Ddan.Func1<string, any> | undefined) => Promise<unknown>;
|
|
44
44
|
readFiles: (dir: string, files: string[], callback?: import("..").Ddan.Func1<string, any> | undefined) => Promise<void>;
|
|
45
|
+
access: (filePath: string, mode?: number) => Promise<boolean>;
|
|
46
|
+
chmodFile: (path: string, mode?: string | number) => void;
|
|
47
|
+
chmod755: (path: string) => Promise<[any, undefined] | [null, boolean]>;
|
|
45
48
|
};
|
|
46
49
|
export default dNode;
|