@putkoff/abstract-utilities 0.1.187 → 0.1.188

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,16 +1,4 @@
1
1
  import type { FetchVariables } from './../imports';
2
- export declare function api(endpoint: string): string;
3
- /**
4
- * Strip a leading host (http://host) from any URL-like string.
5
- */
6
- export declare function stripHost(str: string): string;
7
- export declare function ensureAbstractUrl(endpoint: string, slices?: string[]): string;
8
- /**
9
- * Given an “endpoint” slug like "api/list", build the full URL
10
- * from the BASE_API_URL entry in your JSON config.
11
- * If anything goes wrong, just returns the raw endpoint.
12
- */
13
- export declare function get_app_config_url(endpoint: string): Promise<string>;
14
2
  /**
15
3
  * Unwraps nested { result } fields until you hit a non-object or no more "result" keys.
16
4
  */
@@ -27,3 +15,6 @@ export declare function parseResult(res: Response): Promise<unknown>;
27
15
  export declare function checkResponse(res: Response): Response;
28
16
  export declare function fetchIt<T>(url: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, configUrl?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<T>;
29
17
  export declare function fetchIt(url: any, body?: any, method?: any, headers?: Record<string, string> | null, blob?: boolean, configUrl?: boolean, withCredentials?: boolean, returnJson?: boolean, returnReult?: boolean): Promise<Blob>;
18
+ export declare function getHtmlDirectory(directory: string, filename: string): string;
19
+ export declare function fetchIndexHtml(filename: string, directory?: string, base?: string): Promise<string>;
20
+ export declare function fetchIndexHtmlContainer(filename: string, doc?: Document, directory?: string): Promise<void>;
@@ -1,2 +1 @@
1
- export * from './fetchIt_utils';
2
1
  export * from './fetch_utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putkoff/abstract-utilities",
3
- "version": "0.1.187",
3
+ "version": "0.1.188",
4
4
  "type": "module",
5
5
  "description": "A reusable React Login component with JWT authentication",
6
6
  "main": "dist/cjs/index.js",