@putkoff/abstract-utilities 0.1.131 → 0.1.133

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.
@@ -1,8 +1,7 @@
1
1
  export { getAuthorizationHeader } from "./../auth_utils";
2
2
  export { make_path } from './../path_utils';
3
- export { stripPrefixes } from './../string_utils';
4
3
  export { alertit } from './../rndm_utils';
5
4
  export { ensure_list } from './../type_utils';
6
- export { eatInner } from './../string_utils';
5
+ export { eatInner, stripPrefixes } from './../string_utils';
7
6
  export type { LogoutButtonProps, FetchVariables, UrlKey } from './../../types';
8
7
  export { getConfig, loadConfig } from './../config_utils';
@@ -2,7 +2,7 @@
2
2
  * Given an “endpoint” slug like "api/list", build the full URL
3
3
  * from the BASE_API_URL entry in your JSON config.
4
4
  */
5
- export declare function get_app_config_url(endpoint: string): Promise<string>;
5
+ export declare function get_app_config_url(endpoint: string): Promise<any>;
6
6
  export declare function fetchIt(endpoint: string, body?: unknown, method?: string | null, headers?: Record<string, string> | null, blob?: boolean | null, no_api?: boolean, requireAuth?: 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>;
package/dist/index.d.ts CHANGED
@@ -150,7 +150,7 @@ declare function get_window_parts(): Location | "https://abstractendeavors.com"
150
150
  * Given an “endpoint” slug like "api/list", build the full URL
151
151
  * from the BASE_API_URL entry in your JSON config.
152
152
  */
153
- declare function get_app_config_url(endpoint: string): Promise<string>;
153
+ declare function get_app_config_url(endpoint: string): Promise<any>;
154
154
  declare function fetchIt(endpoint: string, body?: unknown, method?: string | null, headers?: Record<string, string> | null, blob?: boolean | null, no_api?: boolean, requireAuth?: 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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putkoff/abstract-utilities",
3
- "version": "0.1.131",
3
+ "version": "0.1.133",
4
4
  "type": "module",
5
5
  "description": "A reusable React Login component with JWT authentication",
6
6
  "main": "dist/cjs/index.js",