@vercube/core 0.0.9 → 0.0.11
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.d.mts +13 -3
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Container } from "@vercube/di";
|
|
2
2
|
import { FastResponse } from "srvx";
|
|
3
3
|
import { LoggerTypes } from "@vercube/logger";
|
|
4
|
+
import { DotenvOptions } from "c12";
|
|
4
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
6
|
|
|
6
7
|
//#region src/Services/Plugins/BasePlugin.d.ts
|
|
@@ -158,6 +159,15 @@ declare namespace ConfigTypes {
|
|
|
158
159
|
* This property is only used when using vercube cli.
|
|
159
160
|
*/
|
|
160
161
|
build?: BuildOptions;
|
|
162
|
+
/**
|
|
163
|
+
* Additional configuration for c12.
|
|
164
|
+
*/
|
|
165
|
+
c12?: {
|
|
166
|
+
/**
|
|
167
|
+
* Configuration for dotenv.
|
|
168
|
+
*/
|
|
169
|
+
dotenv?: boolean | DotenvOptions;
|
|
170
|
+
};
|
|
161
171
|
}
|
|
162
172
|
}
|
|
163
173
|
//#endregion
|
|
@@ -1035,14 +1045,14 @@ declare class RuntimeConfig$1 {
|
|
|
1035
1045
|
private fRuntimeConfig;
|
|
1036
1046
|
/**
|
|
1037
1047
|
* Gets the current runtime configuration.
|
|
1038
|
-
* @returns {ConfigTypes.
|
|
1048
|
+
* @returns {ConfigTypes.Config['runtime']} The current runtime configuration object.
|
|
1039
1049
|
*/
|
|
1040
|
-
get runtimeConfig(): ConfigTypes.
|
|
1050
|
+
get runtimeConfig(): ConfigTypes.Config['runtime'];
|
|
1041
1051
|
/**
|
|
1042
1052
|
* Sets the runtime configuration.
|
|
1043
1053
|
* @param {ConfigTypes.RuntimeConfig} value - The new runtime configuration object to set.
|
|
1044
1054
|
*/
|
|
1045
|
-
set runtimeConfig(value: ConfigTypes.
|
|
1055
|
+
set runtimeConfig(value: ConfigTypes.Config['runtime']);
|
|
1046
1056
|
}
|
|
1047
1057
|
//#endregion
|
|
1048
1058
|
//#region src/Errors/HttpError.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -872,7 +872,7 @@ var RuntimeConfig = class {
|
|
|
872
872
|
fRuntimeConfig;
|
|
873
873
|
/**
|
|
874
874
|
* Gets the current runtime configuration.
|
|
875
|
-
* @returns {ConfigTypes.
|
|
875
|
+
* @returns {ConfigTypes.Config['runtime']} The current runtime configuration object.
|
|
876
876
|
*/
|
|
877
877
|
get runtimeConfig() {
|
|
878
878
|
return this.fRuntimeConfig;
|
|
@@ -1147,7 +1147,7 @@ const defaultConfig = {
|
|
|
1147
1147
|
async function loadVercubeConfig(overrides) {
|
|
1148
1148
|
const config = await loadConfig({
|
|
1149
1149
|
name: "vercube",
|
|
1150
|
-
dotenv: true,
|
|
1150
|
+
dotenv: overrides?.c12?.dotenv ?? true,
|
|
1151
1151
|
rcFile: false,
|
|
1152
1152
|
globalRc: false,
|
|
1153
1153
|
defaults: defaultConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Core module for Vercube framework",
|
|
5
5
|
"repository": "@vercube/core",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"defu": "6.1.4",
|
|
24
24
|
"pathe": "2.0.3",
|
|
25
25
|
"rou3": "0.6.3",
|
|
26
|
-
"srvx": "0.
|
|
27
|
-
"@vercube/di": "0.0.
|
|
28
|
-
"@vercube/logger": "0.0.
|
|
26
|
+
"srvx": "0.8.0",
|
|
27
|
+
"@vercube/di": "0.0.11",
|
|
28
|
+
"@vercube/logger": "0.0.11"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|