@putkoff/abstract-utilities 0.1.191 → 0.1.193

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/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@putkoff/abstract-utilities",
3
- "version": "0.1.191",
3
+ "version": "0.1.193",
4
4
  "type": "module",
5
5
  "description": "A reusable React Login component with JWT authentication",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "scripts": {
10
- "dev:fetch-utils": "ts-node-esm --experimental-specifier-resolution=node src/functions/fetch_utils/index.ts",
11
10
  "build": "tsc --emitDeclarationOnly && rollup -c",
12
11
  "test": "jest",
13
12
  "prepublishOnly": "npm run build"
@@ -1,2 +0,0 @@
1
- export declare function getConfigContent<T = Record<string, any>>(): Promise<T | null>;
2
- export declare function getConfigVar<T = any>(key?: any): Promise<T | undefined>;
@@ -1,8 +0,0 @@
1
- /**
2
- * Reads a JSON file, either via Node’s fs (if available)
3
- * or via window.fetch in the browser. Never throws — returns
4
- * the parsed object or null on any error.
5
- */
6
- export declare function readJsonFile<T = any>(relativeOrAbsolutePath: string): Promise<T | null>;
7
- export declare function getConfigContent<T = Record<string, any>>(): Promise<T | null>;
8
- export declare function getConfigVar<T = any>(key?: any): Promise<T | undefined>;
@@ -1,12 +0,0 @@
1
- /**
2
- * Returns `window` if running in a browser, otherwise `undefined`.
3
- */
4
- export declare function getSafeLocalStorage(): Storage | undefined;
5
- /**
6
- * Call a Storage method by name, silencing any errors or missing storage.
7
- *
8
- * @param method One of the keys of the Storage interface: "getItem", "setItem", etc.
9
- * @param args The arguments you’d normally pass to that method.
10
- * @returns The method’s return value, or undefined if storage/method isn’t available.
11
- */
12
- export declare function callStorage<K extends keyof Storage>(method: K, ...args: Parameters<Storage[K]>): ReturnType<Storage[K]> | undefined;