poku 2.6.2 → 2.6.3-canary.14a1517
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/lib/configs/poku.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function todo(message: string): void;
|
|
2
|
-
export declare function todo(message: string,
|
|
3
|
-
export declare function todo(message: string,
|
|
4
|
-
export declare function skip(message: string,
|
|
5
|
-
export declare function skip(message: string,
|
|
6
|
-
export declare function skip(
|
|
7
|
-
export declare function skip(
|
|
2
|
+
export declare function todo(message: string, cb?: () => Promise<unknown>): Promise<void>;
|
|
3
|
+
export declare function todo(message: string, cb?: () => unknown): void;
|
|
4
|
+
export declare function skip(message: string, cb: () => Promise<unknown>): Promise<void>;
|
|
5
|
+
export declare function skip(message: string, cb: () => unknown): void;
|
|
6
|
+
export declare function skip(cb: () => Promise<unknown>): Promise<void>;
|
|
7
|
+
export declare function skip(cb: () => unknown): void;
|
|
@@ -7,30 +7,8 @@ const indentation_js_1 = require("../../configs/indentation.js");
|
|
|
7
7
|
const format_js_1 = require("../../services/format.js");
|
|
8
8
|
async function todo(message, _cb) {
|
|
9
9
|
write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`● ${message}`).cyan().bold()}`);
|
|
10
|
-
|
|
11
|
-
if (typeof _cb === 'function') {
|
|
12
|
-
const isAsync = _cb.constructor.name === 'AsyncFunction';
|
|
13
|
-
if (isAsync)
|
|
14
|
-
return await Promise.resolve();
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
10
|
}
|
|
19
11
|
async function skip(messageOrCb, _cb) {
|
|
20
|
-
const message =
|
|
12
|
+
const message = typeof messageOrCb === 'string' ? messageOrCb : 'Skipping';
|
|
21
13
|
write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`◯ ${message}`).info().bold()}`);
|
|
22
|
-
|
|
23
|
-
if (typeof messageOrCb === 'function') {
|
|
24
|
-
const isAsync = messageOrCb.constructor.name === 'AsyncFunction';
|
|
25
|
-
if (isAsync)
|
|
26
|
-
return await Promise.resolve();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
if (typeof _cb === 'function') {
|
|
30
|
-
const isAsync = _cb.constructor.name === 'AsyncFunction';
|
|
31
|
-
if (isAsync)
|
|
32
|
-
return await Promise.resolve();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
14
|
}
|