@putkoff/abstract-utilities 0.1.199 → 0.1.201
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/index.d.ts
CHANGED
|
@@ -343,13 +343,10 @@ declare function Input({ label, trailing, ...rest }: React$1.InputHTMLAttributes
|
|
|
343
343
|
|
|
344
344
|
declare function Spinner(): react_jsx_runtime.JSX.Element;
|
|
345
345
|
|
|
346
|
-
declare function loadConfig(filePath?: string | null): Promise<AppConfig>;
|
|
347
346
|
/**
|
|
348
|
-
*
|
|
349
|
-
* getConfig(key): Promise<AppConfig[K]>
|
|
347
|
+
* Attempt to load config.json if present, otherwise return empty object.
|
|
350
348
|
*/
|
|
351
|
-
declare function
|
|
352
|
-
declare function getConfig<K extends keyof AppConfig>(key: K): Promise<AppConfig[K]>;
|
|
349
|
+
declare function getConfigJson(): Promise<Record<string, any>>;
|
|
353
350
|
|
|
354
351
|
/**
|
|
355
352
|
* Processes keywords by checking if keywords is a string and splitting it.
|
|
@@ -367,5 +364,5 @@ declare function processKeywords(keywords: string | string[]): string[];
|
|
|
367
364
|
*/
|
|
368
365
|
declare function get_keyword_string(keywords: any): string;
|
|
369
366
|
|
|
370
|
-
export { API_PREFIX, BASE_URL, Button, Checkbox, DEV_PREFIX, DOMAIN_NAME, Input, PROD_PREFIX, PROTOCOL, SUB_DIR, Spinner, alertit, assureArray, assureString, callStorage, callWindowMethod, checkResponse, cleanArray, cleanText, create_list_string, currentUsername, currentUsernames, decodeJwt, eatAll, eatEnd, eatInner, eatOuter, ensure_list, fetchIndexHtml, fetchIndexHtmlContainer, fetchIt, geAuthsUtilsDirectory, geBackupsUtilsDirectory, geConstantsUtilsDirectory, geEnvUtilsDirectory, geFetchUtilsDirectory, geFileUtilsDirectory, gePathUtilsDirectory, geStaticDirectory, geStringUtilsDirectory, geTypeUtilsDirectory, get, getAbsDir, getAbsPath, getAuthorizationHeader, getBaseDir, getBody, getCleanArray, getComponentsUtilsDirectory,
|
|
367
|
+
export { API_PREFIX, BASE_URL, Button, Checkbox, DEV_PREFIX, DOMAIN_NAME, Input, PROD_PREFIX, PROTOCOL, SUB_DIR, Spinner, alertit, assureArray, assureString, callStorage, callWindowMethod, checkResponse, cleanArray, cleanText, create_list_string, currentUsername, currentUsernames, decodeJwt, eatAll, eatEnd, eatInner, eatOuter, ensure_list, fetchIndexHtml, fetchIndexHtmlContainer, fetchIt, geAuthsUtilsDirectory, geBackupsUtilsDirectory, geConstantsUtilsDirectory, geEnvUtilsDirectory, geFetchUtilsDirectory, geFileUtilsDirectory, gePathUtilsDirectory, geStaticDirectory, geStringUtilsDirectory, geTypeUtilsDirectory, get, getAbsDir, getAbsPath, getAuthorizationHeader, getBaseDir, getBody, getCleanArray, getComponentsUtilsDirectory, getConfigContent, getConfigJson, getConfigVar, getDbConfigsPath, getDistDir, getDocumentProp, getEnvDir, getEnvPath, getFetchVars, getFunctionsDir, getFunctionsUtilsDirectory, getHeaders, getHooksUtilsDirectory, getHtmlDirectory, getLibUtilsDirectory, getMethod, getPublicDir, getResult, getSafeDocument, getSafeLocalStorage, getSafeWindow, getSchemasDirPath, getSchemasPath, getSrcDir, getSubstring, getToken, getWindowHost, getWindowProp, get_basename, get_dirname, get_extname, get_filename, get_key_value, get_keyword_string, get_splitext, get_window, get_window_location, get_window_parts, get_window_pathname, isLoggedIn, isTokenExpired, make_path, make_sanitized_path, normalizeUrl, parseResult, processKeywords, readJsonFile, requireToken, safeGlobalProp, safeStorage, sanitizeFilename, stripPrefixes, truncateString, tryParse };
|
|
371
368
|
export type { ApiRow, AppConfig, ChangePasswordFormProps, ChangePasswordProps, FetchVariables, FileItem, FileListResponse, InputProps, JwtPayload, LoginFormProps, LoginProps, LogoutButtonProps, Promise$1 as Promise, UrlKey };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type { AppConfig } from "./../imports";
|
|
2
|
-
export declare function loadConfig(filePath?: string | null): Promise<AppConfig>;
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
5
|
-
* getConfig(key): Promise<AppConfig[K]>
|
|
2
|
+
* Attempt to load config.json if present, otherwise return empty object.
|
|
6
3
|
*/
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function getConfig<K extends keyof AppConfig>(key: K): Promise<AppConfig[K]>;
|
|
4
|
+
export declare function getConfigJson(): Promise<Record<string, any>>;
|