@vercube/core 0.0.7 → 0.0.9

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 CHANGED
@@ -46,10 +46,6 @@ declare namespace ConfigTypes {
46
46
  */
47
47
  duration?: number;
48
48
  };
49
- /**
50
- * Additional user configuration
51
- */
52
- [key: string]: unknown;
53
49
  }
54
50
  /**
55
51
  * Configuration options for experimental features.
@@ -132,7 +128,7 @@ declare namespace ConfigTypes {
132
128
  /**
133
129
  * Main configuration interface for the Vercube application.
134
130
  */
135
- interface Config {
131
+ interface Config<RuntimeUserConfig = Record<string, unknown>> {
136
132
  /**
137
133
  * Flag indicating if the application is running in production mode.
138
134
  */
@@ -152,7 +148,7 @@ declare namespace ConfigTypes {
152
148
  /**
153
149
  * Runtime configuration for the application.
154
150
  */
155
- runtime?: RuntimeConfig;
151
+ runtime?: RuntimeConfig & RuntimeUserConfig;
156
152
  /**
157
153
  * Experimental features configuration.
158
154
  */
@@ -1026,6 +1022,29 @@ declare class Router {
1026
1022
  resolve(route: RouterTypes.RouteFind): RouterTypes.RouteMatched<RouterTypes.RouterHandler> | undefined;
1027
1023
  }
1028
1024
  //#endregion
1025
+ //#region src/Services/Config/RuntimeConfig.d.ts
1026
+ /**
1027
+ * RuntimeConfig class manages the runtime configuration for the Vercube application.
1028
+ * This class provides a centralized way to access and modify runtime configuration settings.
1029
+ */
1030
+ declare class RuntimeConfig$1 {
1031
+ /**
1032
+ * Private field to store the runtime configuration object.
1033
+ * @private
1034
+ */
1035
+ private fRuntimeConfig;
1036
+ /**
1037
+ * Gets the current runtime configuration.
1038
+ * @returns {ConfigTypes.RuntimeConfig} The current runtime configuration object.
1039
+ */
1040
+ get runtimeConfig(): ConfigTypes.RuntimeConfig;
1041
+ /**
1042
+ * Sets the runtime configuration.
1043
+ * @param {ConfigTypes.RuntimeConfig} value - The new runtime configuration object to set.
1044
+ */
1045
+ set runtimeConfig(value: ConfigTypes.RuntimeConfig);
1046
+ }
1047
+ //#endregion
1029
1048
  //#region src/Errors/HttpError.d.ts
1030
1049
  /**
1031
1050
  * Represents an HTTP error.
@@ -1194,4 +1213,4 @@ declare function initializeMetadataMethod(target: any, propertyName: string): Me
1194
1213
  */
1195
1214
  declare function initializeMetadata(target: any): MetadataTypes.Ctx;
1196
1215
  //#endregion
1197
- export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, ConfigTypes, Connect, Controller, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers, HooksService, HooksTypes, HttpError, HttpServer, InternalServerError, Listen, MaybePromise, MetadataResolver, MetadataTypes, MethodNotAllowedError, Middleware$1 as Middleware, MiddlewareOptions, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request$1 as Request, Response$1 as Response, Router, RouterTypes, Session, SetHeader, Status, Trace, UnauthorizedError, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, loadVercubeConfig };
1216
+ export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, ConfigTypes, Connect, Controller, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers, HooksService, HooksTypes, HttpError, HttpServer, InternalServerError, Listen, MaybePromise, MetadataResolver, MetadataTypes, MethodNotAllowedError, Middleware$1 as Middleware, MiddlewareOptions, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request$1 as Request, Response$1 as Response, Router, RouterTypes, RuntimeConfig$1 as RuntimeConfig, Session, SetHeader, Status, Trace, UnauthorizedError, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, loadVercubeConfig };
package/dist/index.mjs CHANGED
@@ -2080,7 +2080,7 @@ function Response$1() {
2080
2080
 
2081
2081
  //#endregion
2082
2082
  //#region src/Decorators/Http/Trace.ts
2083
- var import_decorate$2 = __toESM(require_decorate(), 1);
2083
+ var import_decorate$2 = __toESM(require_decorate());
2084
2084
  /**
2085
2085
  * A decorator class for handling HTTP TRACE requests.
2086
2086
  *
@@ -2617,4 +2617,4 @@ let HTTPStatus = /* @__PURE__ */ function(HTTPStatus$1) {
2617
2617
  }({});
2618
2618
 
2619
2619
  //#endregion
2620
- export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, Connect, Controller, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers$1 as Headers, HooksService, HttpError, HttpServer, InternalServerError, Listen, MetadataResolver, MethodNotAllowedError, Middleware, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request, Response$1 as Response, Router, Session, SetHeader, Status, Trace, UnauthorizedError, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, loadVercubeConfig };
2620
+ export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, Connect, Controller, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers$1 as Headers, HooksService, HttpError, HttpServer, InternalServerError, Listen, MetadataResolver, MethodNotAllowedError, Middleware, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request, Response$1 as Response, Router, RuntimeConfig, Session, SetHeader, Status, Trace, UnauthorizedError, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, loadVercubeConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/core",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Core module for Vercube framework",
5
5
  "repository": "@vercube/core",
6
6
  "license": "MIT",
@@ -24,8 +24,8 @@
24
24
  "pathe": "2.0.3",
25
25
  "rou3": "0.6.3",
26
26
  "srvx": "0.7.5",
27
- "@vercube/di": "0.0.7",
28
- "@vercube/logger": "0.0.7"
27
+ "@vercube/di": "0.0.9",
28
+ "@vercube/logger": "0.0.9"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"