@putkoff/abstract-utilities 0.1.216 → 0.1.218

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.
@@ -0,0 +1,2 @@
1
+ import * as path from 'path-browserify';
2
+ export { path };
@@ -0,0 +1,2 @@
1
+ import * as path from 'path';
2
+ export { path };
@@ -0,0 +1,3 @@
1
+ export declare function readJsonFile<T = any>(url: string): Promise<T | null>;
2
+ export declare function getConfigContent<T = Record<string, any>>(): Promise<T | null>;
3
+ export declare function getConfigVar<T = any>(key?: any): Promise<T | undefined>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@putkoff/abstract-utilities",
3
- "version": "0.1.216",
4
- "description": "A reusable React Login component with JWT authentication",
3
+ "version": "0.1.218",
4
+ "description": "Reusable abstract utility functions and components for both Node and React.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -44,9 +44,7 @@
44
44
  "./package.json": "./package.json"
45
45
  },
46
46
  "files": [
47
- "dist/",
48
- "src/components/Login/login_style.css",
49
- "src/components/ChangePassword/change_password.css"
47
+ "dist/"
50
48
  ],
51
49
  "scripts": {
52
50
  "build": "tsc --emitDeclarationOnly && rollup -c",
@@ -54,9 +52,20 @@
54
52
  "release": "npm version patch -m \"chore(release): v%s\" && npm run build && npm publish --access public"
55
53
  },
56
54
  "browser": {
55
+ "./src/functions/path_utils/src/path_utils.ts": "./src/functions/path_utils/src/path_utils.browser.ts",
57
56
  "./src/functions/read_utils/src/utils.ts": "./src/functions/read_utils/src/utils.browser.ts"
58
57
  },
59
58
  "type": "module",
60
59
  "author": "putkoff",
61
- "license": "MIT"
60
+ "license": "MIT",
61
+ "typesVersions": {
62
+ "*": {
63
+ "cjs": [
64
+ "dist/index.d.ts"
65
+ ],
66
+ "esm": [
67
+ "dist/index.d.ts"
68
+ ]
69
+ }
70
+ }
62
71
  }