@putkoff/abstract-utilities 0.1.184 → 0.1.185
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/cjs/index.js +74 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +69 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/functions/config_utils/src/config_utils.d.ts +2 -0
- package/dist/functions/fetch_utils/imports.d.ts +1 -0
- package/dist/functions/fetch_utils/src/fetchIt_utils.d.ts +9 -0
- package/package.json +1 -1
|
@@ -6,3 +6,5 @@ export declare function loadConfig(filePath?: string | null): Promise<AppConfig>
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function getConfig(): Promise<AppConfig>;
|
|
8
8
|
export declare function getConfig<K extends keyof AppConfig>(key: K): Promise<AppConfig[K]>;
|
|
9
|
+
export declare function getConfigContent<T = Record<string, any>>(): Promise<T | null>;
|
|
10
|
+
export declare function getConfigVar<T = any>(key?: any): Promise<T | undefined>;
|
|
@@ -5,3 +5,12 @@ export declare function fetchSharePatch(file: unknown, appKey?: any): Promise<vo
|
|
|
5
5
|
export declare function getHtmlDirectory(directory: string, filename: string): string;
|
|
6
6
|
export declare function fetchIndexHtml(filename: string, directory?: string, base?: string): Promise<string>;
|
|
7
7
|
export declare function fetchIndexHtmlContainer(filename: string, doc?: Document, directory?: string): Promise<void>;
|
|
8
|
+
export declare function getBaseUrl<T = any>(key?: any): Promise<T | undefined>;
|
|
9
|
+
export declare function getEndpoints(base_url?: any): Promise<[string, string][]>;
|
|
10
|
+
export declare function getUrl(base_url?: any): Promise<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Find the most specific endpoint matching the given keyword.
|
|
13
|
+
* @param keyword A fragment to search for, e.g. 'list'
|
|
14
|
+
* @returns The full path string, or null if nothing matches
|
|
15
|
+
*/
|
|
16
|
+
export declare function getEndpoint(keyword: string, base_url?: any): Promise<string | null>;
|