@h3ravel/config 1.4.6 → 1.4.8
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -130,8 +130,8 @@ var ConfigRepository = class {
|
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region src/EnvLoader.ts
|
|
132
132
|
var EnvLoader = class {
|
|
133
|
-
constructor(
|
|
134
|
-
this.
|
|
133
|
+
constructor(app) {
|
|
134
|
+
this.app = app;
|
|
135
135
|
}
|
|
136
136
|
get(key, def) {
|
|
137
137
|
return (0, __h3ravel_support.safeDot)(__h3ravel_shared.EnvParser.parse(process.env), key) ?? def;
|
package/dist/index.d.cts
CHANGED
|
@@ -58,8 +58,8 @@ declare class ConfigRepository {
|
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/EnvLoader.d.ts
|
|
60
60
|
declare class EnvLoader {
|
|
61
|
-
protected
|
|
62
|
-
constructor(
|
|
61
|
+
protected app?: Application | undefined;
|
|
62
|
+
constructor(app?: Application | undefined);
|
|
63
63
|
/**
|
|
64
64
|
* Get the defined environment vars
|
|
65
65
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -58,8 +58,8 @@ declare class ConfigRepository {
|
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/EnvLoader.d.ts
|
|
60
60
|
declare class EnvLoader {
|
|
61
|
-
protected
|
|
62
|
-
constructor(
|
|
61
|
+
protected app?: Application | undefined;
|
|
62
|
+
constructor(app?: Application | undefined);
|
|
63
63
|
/**
|
|
64
64
|
* Get the defined environment vars
|
|
65
65
|
*/
|
package/dist/index.js
CHANGED
|
@@ -101,8 +101,8 @@ var ConfigRepository = class {
|
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/EnvLoader.ts
|
|
103
103
|
var EnvLoader = class {
|
|
104
|
-
constructor(
|
|
105
|
-
this.
|
|
104
|
+
constructor(app) {
|
|
105
|
+
this.app = app;
|
|
106
106
|
}
|
|
107
107
|
get(key, def) {
|
|
108
108
|
return safeDot(EnvParser.parse(process.env), key) ?? def;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/config",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"description": "Environment/config loading and management system for H3ravel.",
|
|
5
5
|
"h3ravel": {
|
|
6
6
|
"providers": [
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"laravel"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@h3ravel/musket": "^0.
|
|
45
|
-
"@h3ravel/
|
|
46
|
-
"@h3ravel/
|
|
44
|
+
"@h3ravel/musket": "^0.2.4",
|
|
45
|
+
"@h3ravel/support": "^0.14.2",
|
|
46
|
+
"@h3ravel/shared": "^0.22.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"tsx": "^4.20.5",
|
|
50
50
|
"typescript": "^5.9.2",
|
|
51
|
-
"@h3ravel/core": "^1.
|
|
51
|
+
"@h3ravel/core": "^1.18.1"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"barrel": "barrelsby --directory src --delete --singleQuotes",
|