@putkoff/abstract-utilities 0.1.155 → 0.1.157
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/functions/auth_utils/imports.d.ts +0 -0
- package/dist/cjs/functions/auth_utils/index.d.ts +0 -0
- package/dist/cjs/functions/auth_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/auth_utils/src/token_utils.d.ts +0 -0
- package/dist/cjs/functions/config_utils/imports.d.ts +0 -0
- package/dist/cjs/functions/config_utils/index.d.ts +0 -0
- package/dist/cjs/functions/config_utils/src/config_utils.d.ts +0 -0
- package/dist/cjs/functions/config_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/constants_utils/index.d.ts +0 -0
- package/dist/cjs/functions/constants_utils/src/constants.d.ts +0 -0
- package/dist/cjs/functions/constants_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/env_utils/imports.d.ts +0 -0
- package/dist/cjs/functions/env_utils/index.d.ts +0 -0
- package/dist/cjs/functions/env_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/env_utils/src/window_utils.d.ts +0 -0
- package/dist/cjs/functions/fetch_utils/imports.d.ts +0 -0
- package/dist/cjs/functions/fetch_utils/index.d.ts +0 -0
- package/dist/cjs/functions/fetch_utils/src/fetchIt_utils.d.ts +1 -1
- package/dist/cjs/functions/fetch_utils/src/index.d.ts +1 -0
- package/dist/cjs/functions/fetch_utils/src/utils.d.ts +0 -0
- package/dist/cjs/functions/index.d.ts +0 -0
- package/dist/cjs/functions/path_utils/imports.d.ts +0 -0
- package/dist/cjs/functions/path_utils/index.d.ts +0 -0
- package/dist/cjs/functions/path_utils/src/base_dirs.d.ts +0 -0
- package/dist/cjs/functions/path_utils/src/function_dirs.d.ts +0 -0
- package/dist/cjs/functions/path_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/path_utils/src/misc_dirs.d.ts +0 -0
- package/dist/cjs/functions/path_utils/src/path_utils.d.ts +0 -0
- package/dist/cjs/functions/path_utils/src/paths.d.ts +0 -0
- package/dist/cjs/functions/path_utils/src/src_dirs.d.ts +0 -0
- package/dist/cjs/functions/read_utils/index.d.ts +0 -0
- package/dist/cjs/functions/read_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/read_utils/src/read_utils.d.ts +0 -0
- package/dist/cjs/functions/rndm_utils/index.d.ts +0 -0
- package/dist/cjs/functions/rndm_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/rndm_utils/src/utils.d.ts +0 -0
- package/dist/cjs/functions/string_utils/index.d.ts +0 -0
- package/dist/cjs/functions/string_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/string_utils/src/string_utils.d.ts +0 -0
- package/dist/cjs/functions/type_utils/index.d.ts +0 -0
- package/dist/cjs/functions/type_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/type_utils/src/type_utils.d.ts +0 -0
- package/dist/cjs/functions/ui_utils/imports.d.ts +0 -0
- package/dist/cjs/functions/ui_utils/index.d.ts +0 -0
- package/dist/cjs/functions/ui_utils/src/button.d.ts +0 -0
- package/dist/cjs/functions/ui_utils/src/checkbox.d.ts +0 -0
- package/dist/cjs/functions/ui_utils/src/index.d.ts +0 -0
- package/dist/cjs/functions/ui_utils/src/input.d.ts +0 -0
- package/dist/cjs/functions/ui_utils/src/spinner.d.ts +0 -0
- package/dist/cjs/index.d.ts +0 -0
- package/dist/cjs/index.js +61 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -0
- package/dist/cjs/types/src/ChangePassword.d.ts +0 -0
- package/dist/cjs/types/src/Files.d.ts +0 -0
- package/dist/cjs/types/src/index.d.ts +0 -0
- package/dist/cjs/types/src/login.d.ts +0 -0
- package/dist/cjs/types/src/logout.d.ts +0 -0
- package/dist/cjs/types/src/utils.d.ts +0 -0
- package/dist/cjs/utils/imports.d.ts +0 -0
- package/dist/cjs/utils/index.d.ts +0 -0
- package/dist/cjs/utils/src/Input.d.ts +0 -0
- package/dist/cjs/utils/src/config.d.ts +0 -0
- package/dist/cjs/utils/src/index.d.ts +0 -0
- package/dist/esm/functions/auth_utils/imports.d.ts +0 -0
- package/dist/esm/functions/auth_utils/index.d.ts +0 -0
- package/dist/esm/functions/auth_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/auth_utils/src/token_utils.d.ts +0 -0
- package/dist/esm/functions/config_utils/imports.d.ts +0 -0
- package/dist/esm/functions/config_utils/index.d.ts +0 -0
- package/dist/esm/functions/config_utils/src/config_utils.d.ts +0 -0
- package/dist/esm/functions/config_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/constants_utils/index.d.ts +0 -0
- package/dist/esm/functions/constants_utils/src/constants.d.ts +0 -0
- package/dist/esm/functions/constants_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/env_utils/imports.d.ts +0 -0
- package/dist/esm/functions/env_utils/index.d.ts +0 -0
- package/dist/esm/functions/env_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/env_utils/src/window_utils.d.ts +0 -0
- package/dist/esm/functions/fetch_utils/imports.d.ts +0 -0
- package/dist/esm/functions/fetch_utils/index.d.ts +0 -0
- package/dist/esm/functions/fetch_utils/src/fetchIt_utils.d.ts +1 -1
- package/dist/esm/functions/fetch_utils/src/index.d.ts +1 -0
- package/dist/esm/functions/fetch_utils/src/utils.d.ts +0 -0
- package/dist/esm/functions/index.d.ts +0 -0
- package/dist/esm/functions/path_utils/imports.d.ts +0 -0
- package/dist/esm/functions/path_utils/index.d.ts +0 -0
- package/dist/esm/functions/path_utils/src/base_dirs.d.ts +0 -0
- package/dist/esm/functions/path_utils/src/function_dirs.d.ts +0 -0
- package/dist/esm/functions/path_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/path_utils/src/misc_dirs.d.ts +0 -0
- package/dist/esm/functions/path_utils/src/path_utils.d.ts +0 -0
- package/dist/esm/functions/path_utils/src/paths.d.ts +0 -0
- package/dist/esm/functions/path_utils/src/src_dirs.d.ts +0 -0
- package/dist/esm/functions/read_utils/index.d.ts +0 -0
- package/dist/esm/functions/read_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/read_utils/src/read_utils.d.ts +0 -0
- package/dist/esm/functions/rndm_utils/index.d.ts +0 -0
- package/dist/esm/functions/rndm_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/rndm_utils/src/utils.d.ts +0 -0
- package/dist/esm/functions/string_utils/index.d.ts +0 -0
- package/dist/esm/functions/string_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/string_utils/src/string_utils.d.ts +0 -0
- package/dist/esm/functions/type_utils/index.d.ts +0 -0
- package/dist/esm/functions/type_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/type_utils/src/type_utils.d.ts +0 -0
- package/dist/esm/functions/ui_utils/imports.d.ts +0 -0
- package/dist/esm/functions/ui_utils/index.d.ts +0 -0
- package/dist/esm/functions/ui_utils/src/button.d.ts +0 -0
- package/dist/esm/functions/ui_utils/src/checkbox.d.ts +0 -0
- package/dist/esm/functions/ui_utils/src/index.d.ts +0 -0
- package/dist/esm/functions/ui_utils/src/input.d.ts +0 -0
- package/dist/esm/functions/ui_utils/src/spinner.d.ts +0 -0
- package/dist/esm/index.d.ts +0 -0
- package/dist/esm/index.js +50 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +0 -0
- package/dist/esm/types/src/ChangePassword.d.ts +0 -0
- package/dist/esm/types/src/Files.d.ts +0 -0
- package/dist/esm/types/src/index.d.ts +0 -0
- package/dist/esm/types/src/login.d.ts +0 -0
- package/dist/esm/types/src/logout.d.ts +0 -0
- package/dist/esm/types/src/utils.d.ts +0 -0
- package/dist/esm/utils/imports.d.ts +0 -0
- package/dist/esm/utils/index.d.ts +0 -0
- package/dist/esm/utils/src/Input.d.ts +0 -0
- package/dist/esm/utils/src/config.d.ts +0 -0
- package/dist/esm/utils/src/index.d.ts +0 -0
- package/dist/functions/auth_utils/imports.d.ts +0 -0
- package/dist/functions/auth_utils/index.d.ts +0 -0
- package/dist/functions/auth_utils/src/index.d.ts +0 -0
- package/dist/functions/auth_utils/src/token_utils.d.ts +0 -0
- package/dist/functions/config_utils/imports.d.ts +0 -0
- package/dist/functions/config_utils/index.d.ts +0 -0
- package/dist/functions/config_utils/src/config_utils.d.ts +0 -0
- package/dist/functions/config_utils/src/index.d.ts +0 -0
- package/dist/functions/constants_utils/index.d.ts +0 -0
- package/dist/functions/constants_utils/src/constants.d.ts +0 -0
- package/dist/functions/constants_utils/src/index.d.ts +0 -0
- package/dist/functions/env_utils/imports.d.ts +0 -0
- package/dist/functions/env_utils/index.d.ts +0 -0
- package/dist/functions/env_utils/src/index.d.ts +0 -0
- package/dist/functions/env_utils/src/window_utils.d.ts +0 -0
- package/dist/functions/fetch_utils/imports.d.ts +0 -0
- package/dist/functions/fetch_utils/index.d.ts +0 -0
- package/dist/functions/fetch_utils/src/fetchIt_utils.d.ts +1 -1
- package/dist/functions/fetch_utils/src/index.d.ts +1 -0
- package/dist/functions/fetch_utils/src/utils.d.ts +0 -0
- package/dist/functions/index.d.ts +0 -0
- package/dist/functions/path_utils/imports.d.ts +0 -0
- package/dist/functions/path_utils/index.d.ts +0 -0
- package/dist/functions/path_utils/src/base_dirs.d.ts +0 -0
- package/dist/functions/path_utils/src/function_dirs.d.ts +0 -0
- package/dist/functions/path_utils/src/index.d.ts +0 -0
- package/dist/functions/path_utils/src/misc_dirs.d.ts +0 -0
- package/dist/functions/path_utils/src/path_utils.d.ts +0 -0
- package/dist/functions/path_utils/src/paths.d.ts +0 -0
- package/dist/functions/path_utils/src/src_dirs.d.ts +0 -0
- package/dist/functions/read_utils/imports.d.ts +0 -0
- package/dist/functions/read_utils/index.d.ts +0 -0
- package/dist/functions/read_utils/src/index.d.ts +0 -0
- package/dist/functions/read_utils/src/read_utils.d.ts +0 -0
- package/dist/functions/rndm_utils/imports.d.ts +0 -0
- package/dist/functions/rndm_utils/index.d.ts +0 -0
- package/dist/functions/rndm_utils/src/index.d.ts +0 -0
- package/dist/functions/rndm_utils/src/utils.d.ts +0 -0
- package/dist/functions/string_utils/index.d.ts +0 -0
- package/dist/functions/string_utils/src/index.d.ts +0 -0
- package/dist/functions/string_utils/src/string_utils.d.ts +0 -0
- package/dist/functions/type_utils/imports.d.ts +0 -0
- package/dist/functions/type_utils/index.d.ts +0 -0
- package/dist/functions/type_utils/src/index.d.ts +0 -0
- package/dist/functions/type_utils/src/type_utils.d.ts +0 -0
- package/dist/functions/ui_utils/imports.d.ts +0 -0
- package/dist/functions/ui_utils/index.d.ts +0 -0
- package/dist/functions/ui_utils/src/button.d.ts +0 -0
- package/dist/functions/ui_utils/src/checkbox.d.ts +0 -0
- package/dist/functions/ui_utils/src/index.d.ts +0 -0
- package/dist/functions/ui_utils/src/input.d.ts +0 -0
- package/dist/functions/ui_utils/src/spinner.d.ts +0 -0
- package/dist/index.d.ts +35 -11
- package/dist/types/index.d.ts +0 -0
- package/dist/types/src/ChangePassword.d.ts +0 -0
- package/dist/types/src/Files.d.ts +0 -0
- package/dist/types/src/index.d.ts +0 -0
- package/dist/types/src/login.d.ts +0 -0
- package/dist/types/src/logout.d.ts +0 -0
- package/dist/types/src/utils.d.ts +0 -0
- package/dist/utils/imports.d.ts +0 -0
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/src/Input.d.ts +0 -0
- package/dist/utils/src/config.d.ts +0 -0
- package/dist/utils/src/index.d.ts +0 -0
- package/package.json +2 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* from the BASE_API_URL entry in your JSON config.
|
|
4
4
|
*/
|
|
5
5
|
export declare function get_app_config_url(endpoint: string): Promise<any>;
|
|
6
|
-
export declare function fetchIt(endpoint:
|
|
6
|
+
export declare function fetchIt(endpoint: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, noApi?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<any>;
|
|
7
7
|
export declare function secureFetchIt<T>(endpoint: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, noApi?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<T>;
|
|
8
8
|
export declare function secureFetchIt(endpoint: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, noApi?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<Blob>;
|
|
9
9
|
export declare function requestPatch(url: string, body?: unknown): Promise<Response>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ declare function get_window_parts(): Location | "https://abstractendeavors.com"
|
|
|
151
151
|
* from the BASE_API_URL entry in your JSON config.
|
|
152
152
|
*/
|
|
153
153
|
declare function get_app_config_url(endpoint: string): Promise<any>;
|
|
154
|
-
declare function fetchIt(endpoint:
|
|
154
|
+
declare function fetchIt(endpoint: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, noApi?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<any>;
|
|
155
155
|
declare function secureFetchIt<T>(endpoint: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, noApi?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<T>;
|
|
156
156
|
declare function secureFetchIt(endpoint: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, noApi?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<Blob>;
|
|
157
157
|
declare function requestPatch(url: string, body?: unknown): Promise<Response>;
|
|
@@ -211,6 +211,8 @@ declare function getSchemasDirPath(subPath: string): string;
|
|
|
211
211
|
|
|
212
212
|
declare function alertit(obj?: any): void;
|
|
213
213
|
|
|
214
|
+
declare function ensure_list<T>(obj: T | T[]): T[];
|
|
215
|
+
|
|
214
216
|
declare function getSubstring(obj: string, maxLength?: number | null, minLength?: number | null): string;
|
|
215
217
|
declare function truncateString(obj: string, maxLength?: number): string;
|
|
216
218
|
declare function stripPrefixes(str: string, bases?: string | string[]): string;
|
|
@@ -243,7 +245,37 @@ declare function eatOuter(str: string, listObjects: string | string[]): string;
|
|
|
243
245
|
declare function eatAll(str: string, listObjects: string | string[]): string;
|
|
244
246
|
declare function eatEnd(obj: string, endings?: string[]): string;
|
|
245
247
|
|
|
246
|
-
declare function
|
|
248
|
+
declare function loadConfig(filePath?: string | null): Promise<AppConfig>;
|
|
249
|
+
/**
|
|
250
|
+
* getConfig(): load the full AppConfig
|
|
251
|
+
* getConfig(key): load just that key
|
|
252
|
+
*/
|
|
253
|
+
declare function getConfig(): Promise<AppConfig>;
|
|
254
|
+
declare function getConfig<K extends keyof AppConfig>(key: K): Promise<AppConfig[K]>;
|
|
255
|
+
|
|
256
|
+
declare function ensureAbstractUrl(endpoint: string, slices?: string[]): string;
|
|
257
|
+
/**
|
|
258
|
+
* Unwraps nested { result } fields until you hit a non-object or no more "result" keys.
|
|
259
|
+
*/
|
|
260
|
+
declare function getResult<T>(obj: unknown): T;
|
|
261
|
+
declare function api(endpoint: string): string;
|
|
262
|
+
/**
|
|
263
|
+
* Intercept 401/403 and force a clean redirect to login
|
|
264
|
+
* without ever showing an alert.
|
|
265
|
+
*/
|
|
266
|
+
declare function checkResponse(res: Response): Response;
|
|
267
|
+
/**
|
|
268
|
+
* parseResult no longer needs to worry about JSON vs HTML redirect errors;
|
|
269
|
+
* all 401/403 have already been handled above.
|
|
270
|
+
*/
|
|
271
|
+
declare function parseResult(res: Response): Promise<unknown>;
|
|
272
|
+
declare function getMethod(method?: string | null, body?: unknown): string;
|
|
273
|
+
declare function getHeaders(headers?: Record<string, string>, method?: string | null, body?: unknown): Record<string, string>;
|
|
274
|
+
declare function getBody(body?: unknown, method?: string | null): string | undefined;
|
|
275
|
+
declare function getFetchVars(headers?: Record<string, string> | null, method?: string | null, body?: any): FetchVariables;
|
|
276
|
+
declare function getHtmlDirectory(directory: string, filename: string): string;
|
|
277
|
+
declare function fetchIndexHtml(filename: string, directory?: string, base?: string): Promise<string>;
|
|
278
|
+
declare function fetchIndexHtmlContainer(filename: string, doc?: Document, directory?: string): Promise<void>;
|
|
247
279
|
|
|
248
280
|
declare function Button({ children, color, variant, className, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
249
281
|
color?: 'gray' | 'green' | 'blue';
|
|
@@ -262,14 +294,6 @@ declare function Input({ label, trailing, ...rest }: React$1.InputHTMLAttributes
|
|
|
262
294
|
|
|
263
295
|
declare function Spinner(): react_jsx_runtime.JSX.Element;
|
|
264
296
|
|
|
265
|
-
declare function loadConfig(filePath?: string | null): Promise<AppConfig>;
|
|
266
|
-
/**
|
|
267
|
-
* getConfig(): load the full AppConfig
|
|
268
|
-
* getConfig(key): load just that key
|
|
269
|
-
*/
|
|
270
|
-
declare function getConfig(): Promise<AppConfig>;
|
|
271
|
-
declare function getConfig<K extends keyof AppConfig>(key: K): Promise<AppConfig[K]>;
|
|
272
|
-
|
|
273
297
|
/**
|
|
274
298
|
* Reads a file at `relativeOrAbsolutePath` and returns its contents as a string.
|
|
275
299
|
* In a browser this will reject immediately.
|
|
@@ -280,4 +304,4 @@ declare function readFileContents(relativeOrAbsolutePath: string): Promise<strin
|
|
|
280
304
|
*/
|
|
281
305
|
declare function readJsonFile<T = any>(relativeOrAbsolutePath: string): Promise<T>;
|
|
282
306
|
|
|
283
|
-
export { API_PREFIX, type ApiRow, type AppConfig, BASE_URL, Button, type ChangePasswordFormProps, type ChangePasswordProps, Checkbox, DEV_PREFIX, DOMAIN_NAME, type FetchVariables, type FileItem, type FileListResponse, Input, type InputProps, type JwtPayload, type LoginFormProps, type LoginProps, type LogoutButtonProps, PROD_PREFIX, PROTOCOL, type Promise$1 as Promise, SUB_DIR, Spinner, type UrlKey, alertit, currentUsername, currentUsernames, decodeJwt, eatAll, eatEnd, eatInner, eatOuter, ensure_list, fetchIt, fetchSharePatch, geAuthsUtilsDirectory, geBackupsUtilsDirectory, geConstantsUtilsDirectory, geEnvUtilsDirectory, geFetchUtilsDirectory, geFileUtilsDirectory, gePathUtilsDirectory, geStaticDirectory, geStringUtilsDirectory, geTypeUtilsDirectory, getAbsDir, getAbsPath, getAuthorizationHeader, getBaseDir, getComponentsUtilsDirectory, getConfig, getDbConfigsPath, getDistDir, getEnvDir, getEnvPath, getFunctionsDir, getFunctionsUtilsDirectory, getHooksUtilsDirectory, getLibUtilsDirectory, getPublicDir, getSchemasDirPath, getSchemasPath, getSrcDir, getSubstring, getToken, get_app_config_url, get_basename, get_dirname, get_extname, get_filename, get_splitext, get_window, get_window_location, get_window_parts, get_window_pathname, isLoggedIn, isTokenExpired, loadConfig, make_path, make_sanitized_path, normalizeUrl, readFileContents, readJsonFile, requestPatch, requireToken, sanitizeFilename, secureFetchIt, stripPrefixes, truncateString };
|
|
307
|
+
export { API_PREFIX, type ApiRow, type AppConfig, BASE_URL, Button, type ChangePasswordFormProps, type ChangePasswordProps, Checkbox, DEV_PREFIX, DOMAIN_NAME, type FetchVariables, type FileItem, type FileListResponse, Input, type InputProps, type JwtPayload, type LoginFormProps, type LoginProps, type LogoutButtonProps, PROD_PREFIX, PROTOCOL, type Promise$1 as Promise, SUB_DIR, Spinner, type UrlKey, alertit, api, checkResponse, currentUsername, currentUsernames, decodeJwt, eatAll, eatEnd, eatInner, eatOuter, ensureAbstractUrl, ensure_list, fetchIndexHtml, fetchIndexHtmlContainer, fetchIt, fetchSharePatch, geAuthsUtilsDirectory, geBackupsUtilsDirectory, geConstantsUtilsDirectory, geEnvUtilsDirectory, geFetchUtilsDirectory, geFileUtilsDirectory, gePathUtilsDirectory, geStaticDirectory, geStringUtilsDirectory, geTypeUtilsDirectory, getAbsDir, getAbsPath, getAuthorizationHeader, getBaseDir, getBody, getComponentsUtilsDirectory, getConfig, getDbConfigsPath, getDistDir, getEnvDir, getEnvPath, getFetchVars, getFunctionsDir, getFunctionsUtilsDirectory, getHeaders, getHooksUtilsDirectory, getHtmlDirectory, getLibUtilsDirectory, getMethod, getPublicDir, getResult, getSchemasDirPath, getSchemasPath, getSrcDir, getSubstring, getToken, get_app_config_url, get_basename, get_dirname, get_extname, get_filename, get_splitext, get_window, get_window_location, get_window_parts, get_window_pathname, isLoggedIn, isTokenExpired, loadConfig, make_path, make_sanitized_path, normalizeUrl, parseResult, readFileContents, readJsonFile, requestPatch, requireToken, sanitizeFilename, secureFetchIt, stripPrefixes, truncateString };
|
package/dist/types/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/utils/imports.d.ts
CHANGED
|
File without changes
|
package/dist/utils/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putkoff/abstract-utilities",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.157",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A reusable React Login component with JWT authentication",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"rollup-plugin-postcss": "^4.0.2",
|
|
44
44
|
"ts-jest": "^29.1.2",
|
|
45
45
|
"ts-node": "^10.9.2",
|
|
46
|
+
"tslib": "^2.8.1",
|
|
46
47
|
"tsx": "^4.20.3",
|
|
47
48
|
"typescript": "^5.3.3"
|
|
48
49
|
},
|