@tobi-or-not/docpress 0.5.1 → 0.6.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/cli.js +365 -315
- package/dist/cli.js.map +1 -1
- package/package.json +19 -14
- package/types/src/lib/fetch.d.ts +7 -5
- package/types/src/lib/git.d.ts +16 -3
- package/types/src/lib/prepare.d.ts +18 -8
- package/types/src/schemas/build.d.ts +4 -1
- package/types/src/schemas/fetch.d.ts +14 -6
- package/types/src/schemas/global.d.ts +88 -12
- package/types/src/schemas/prepare.d.ts +11 -6
- package/types/src/utils/commands.d.ts +41 -18
- package/types/src/utils/functions.d.ts +3 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GlobalOpts } from '../schemas/global.js';
|
|
1
2
|
import type { EnhancedRepository } from '../lib/fetch.js';
|
|
2
3
|
import type { getInfos } from '../lib/git.js';
|
|
3
4
|
export declare function checkHttpStatus(url: string): Promise<number>;
|
|
@@ -16,8 +17,8 @@ export declare function isFile(path: string): boolean;
|
|
|
16
17
|
export declare function extractFiles(paths: string[] | string): string[];
|
|
17
18
|
export declare function getMdFiles(path: string[]): string[];
|
|
18
19
|
export declare function prettifyEnum(arr: readonly string[]): string;
|
|
19
|
-
export declare function getUserInfos(): Awaited<ReturnType<typeof getInfos>>["user"];
|
|
20
|
-
export declare function getUserRepos(): EnhancedRepository[];
|
|
20
|
+
export declare function getUserInfos(username: GlobalOpts['usernames'][number]): Awaited<ReturnType<typeof getInfos>>["user"];
|
|
21
|
+
export declare function getUserRepos(username: GlobalOpts['usernames'][number]): EnhancedRepository[];
|
|
21
22
|
export declare function deepMerge<T extends Record<string, any> | null>(...objects: T[]): T;
|
|
22
23
|
export declare function isObject(val: any): val is object;
|
|
23
24
|
export declare function loadConfigFile(configPath?: string): any;
|