@h3ravel/config 0.1.1 → 0.2.0
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/CHANGELOG.md +13 -0
- package/package.json +3 -4
- package/src/ConfigRepository.ts +1 -1
- package/src/EnvLoader.ts +1 -1
- package/tsconfig.json +1 -1
- package/vite.config.ts +0 -9
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Environment/config loading and management system for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,9 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"dotenv": "^17.2.1",
|
|
19
|
-
"
|
|
20
|
-
"@h3ravel/
|
|
21
|
-
"@h3ravel/core": "0.1.1"
|
|
19
|
+
"@h3ravel/support": "0.2.0",
|
|
20
|
+
"@h3ravel/core": "0.2.0"
|
|
22
21
|
},
|
|
23
22
|
"devDependencies": {
|
|
24
23
|
"typescript": "^5.4.0"
|
package/src/ConfigRepository.ts
CHANGED
|
@@ -8,7 +8,7 @@ export class ConfigRepository {
|
|
|
8
8
|
private loaded: boolean = false
|
|
9
9
|
private configs: Record<string, Record<string, any>> = {}
|
|
10
10
|
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(protected app: Application) { }
|
|
12
12
|
|
|
13
13
|
// get<X extends Record<string, any>> (): X
|
|
14
14
|
// get<X extends Record<string, any>, T extends Extract<keyof X, string>> (key: T): X[T]
|
package/src/EnvLoader.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { DotNestedKeys, DotNestedValue, safeDot } from '@h3ravel/support'
|
|
|
3
3
|
import { Application } from "@h3ravel/core";
|
|
4
4
|
|
|
5
5
|
export class EnvLoader {
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(protected _app: Application) { }
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Get the defined environment vars
|
package/tsconfig.json
CHANGED