@vercube/core 0.0.21 → 0.0.22
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.mjs +25 -23
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -36,8 +36,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
}) : target, mod));
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
40
|
-
var require_decorate = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
39
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/decorate.js
|
|
40
|
+
var require_decorate = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/decorate.js": ((exports, module) => {
|
|
41
41
|
function __decorate(decorators, target, key, desc) {
|
|
42
42
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
43
43
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -45,11 +45,11 @@ var require_decorate = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runti
|
|
|
45
45
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
46
46
|
}
|
|
47
47
|
module.exports = __decorate, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
48
|
-
} });
|
|
48
|
+
}) });
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/Services/Plugins/PluginsRegistry.ts
|
|
52
|
-
var import_decorate$18 = __toESM(require_decorate(), 1);
|
|
52
|
+
var import_decorate$18 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
53
53
|
var PluginsRegistry = class {
|
|
54
54
|
gContainer;
|
|
55
55
|
/** Holds the list of plugins */
|
|
@@ -206,7 +206,7 @@ var RouterAfterInitHook = class {};
|
|
|
206
206
|
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region src/Services/Router/Router.ts
|
|
209
|
-
var import_decorate$17 = __toESM(require_decorate());
|
|
209
|
+
var import_decorate$17 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
210
210
|
/**
|
|
211
211
|
* Router service responsible for managing application routes
|
|
212
212
|
*
|
|
@@ -533,7 +533,7 @@ var GlobalMiddlewareRegistry = class {
|
|
|
533
533
|
|
|
534
534
|
//#endregion
|
|
535
535
|
//#region src/Services/Router/RequestHandler.ts
|
|
536
|
-
var import_decorate$16 = __toESM(require_decorate(), 1);
|
|
536
|
+
var import_decorate$16 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
537
537
|
/**
|
|
538
538
|
* Handles HTTP requests by preparing and executing route handlers with their associated middlewares
|
|
539
539
|
*
|
|
@@ -766,7 +766,7 @@ var StaticRequestHandler = class {
|
|
|
766
766
|
|
|
767
767
|
//#endregion
|
|
768
768
|
//#region src/Services/HttpServer/HttpServer.ts
|
|
769
|
-
var import_decorate$15 = __toESM(require_decorate());
|
|
769
|
+
var import_decorate$15 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
770
770
|
/**
|
|
771
771
|
* HTTP server implementation for handling incoming web requests
|
|
772
772
|
*
|
|
@@ -829,7 +829,8 @@ var HttpServer = class {
|
|
|
829
829
|
reusePort: true,
|
|
830
830
|
port,
|
|
831
831
|
fetch: this.handleRequest.bind(this),
|
|
832
|
-
plugins: this.fPlugins
|
|
832
|
+
plugins: this.fPlugins,
|
|
833
|
+
manual: true
|
|
833
834
|
});
|
|
834
835
|
}
|
|
835
836
|
/**
|
|
@@ -838,6 +839,7 @@ var HttpServer = class {
|
|
|
838
839
|
* @returns {Promise<void>} A promise that resolves when the server is ready to listen
|
|
839
840
|
*/
|
|
840
841
|
async listen() {
|
|
842
|
+
await this.fServer.serve();
|
|
841
843
|
await this.fServer.ready();
|
|
842
844
|
}
|
|
843
845
|
/**
|
|
@@ -904,7 +906,7 @@ var RuntimeConfig = class {
|
|
|
904
906
|
|
|
905
907
|
//#endregion
|
|
906
908
|
//#region src/Common/App.ts
|
|
907
|
-
var import_decorate$14 = __toESM(require_decorate());
|
|
909
|
+
var import_decorate$14 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
908
910
|
/**
|
|
909
911
|
* Represents the main application class.
|
|
910
912
|
*/
|
|
@@ -1062,7 +1064,7 @@ var InternalServerError = class InternalServerError extends HttpError {
|
|
|
1062
1064
|
|
|
1063
1065
|
//#endregion
|
|
1064
1066
|
//#region src/Services/ErrorHandler/DefaultErrorHandlerProvider.ts
|
|
1065
|
-
var import_decorate$13 = __toESM(require_decorate(), 1);
|
|
1067
|
+
var import_decorate$13 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1066
1068
|
/**
|
|
1067
1069
|
* Default error handler provider
|
|
1068
1070
|
*
|
|
@@ -1215,7 +1217,7 @@ function defineConfig(config) {
|
|
|
1215
1217
|
|
|
1216
1218
|
//#endregion
|
|
1217
1219
|
//#region src/Middleware/ValidationMiddleware.ts
|
|
1218
|
-
var import_decorate$12 = __toESM(require_decorate(), 1);
|
|
1220
|
+
var import_decorate$12 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1219
1221
|
/**
|
|
1220
1222
|
* Middleware for validating request data against a schema
|
|
1221
1223
|
* @class ValidationMiddleware
|
|
@@ -1343,7 +1345,7 @@ function Body(options) {
|
|
|
1343
1345
|
|
|
1344
1346
|
//#endregion
|
|
1345
1347
|
//#region src/Decorators/Http/Connect.ts
|
|
1346
|
-
var import_decorate$11 = __toESM(require_decorate());
|
|
1348
|
+
var import_decorate$11 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1347
1349
|
/**
|
|
1348
1350
|
* A decorator class for handling HTTP CONNECT requests.
|
|
1349
1351
|
*
|
|
@@ -1421,7 +1423,7 @@ function Controller(path) {
|
|
|
1421
1423
|
|
|
1422
1424
|
//#endregion
|
|
1423
1425
|
//#region src/Decorators/Http/Delete.ts
|
|
1424
|
-
var import_decorate$10 = __toESM(require_decorate());
|
|
1426
|
+
var import_decorate$10 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1425
1427
|
/**
|
|
1426
1428
|
* A decorator class for handling HTTP DELETE requests.
|
|
1427
1429
|
*
|
|
@@ -1478,7 +1480,7 @@ function Delete(path) {
|
|
|
1478
1480
|
|
|
1479
1481
|
//#endregion
|
|
1480
1482
|
//#region src/Decorators/Http/Get.ts
|
|
1481
|
-
var import_decorate$9 = __toESM(require_decorate());
|
|
1483
|
+
var import_decorate$9 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1482
1484
|
/**
|
|
1483
1485
|
* A decorator class for handling HTTP GET requests.
|
|
1484
1486
|
*
|
|
@@ -1535,7 +1537,7 @@ function Get(path) {
|
|
|
1535
1537
|
|
|
1536
1538
|
//#endregion
|
|
1537
1539
|
//#region src/Decorators/Http/Head.ts
|
|
1538
|
-
var import_decorate$8 = __toESM(require_decorate());
|
|
1540
|
+
var import_decorate$8 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1539
1541
|
/**
|
|
1540
1542
|
* A decorator class for handling HTTP HEAD requests.
|
|
1541
1543
|
*
|
|
@@ -1673,7 +1675,7 @@ function Headers$1() {
|
|
|
1673
1675
|
|
|
1674
1676
|
//#endregion
|
|
1675
1677
|
//#region src/Decorators/Http/Options.ts
|
|
1676
|
-
var import_decorate$7 = __toESM(require_decorate());
|
|
1678
|
+
var import_decorate$7 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1677
1679
|
/**
|
|
1678
1680
|
* A decorator class for handling HTTP OPTIONS requests.
|
|
1679
1681
|
*
|
|
@@ -1730,7 +1732,7 @@ function Options(path) {
|
|
|
1730
1732
|
|
|
1731
1733
|
//#endregion
|
|
1732
1734
|
//#region src/Decorators/Http/Param.ts
|
|
1733
|
-
var import_decorate$6 = __toESM(require_decorate());
|
|
1735
|
+
var import_decorate$6 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1734
1736
|
/**
|
|
1735
1737
|
* This class is responsible for managing parameter decorators.
|
|
1736
1738
|
*
|
|
@@ -1776,7 +1778,7 @@ function Param(name) {
|
|
|
1776
1778
|
|
|
1777
1779
|
//#endregion
|
|
1778
1780
|
//#region src/Decorators/Http/Patch.ts
|
|
1779
|
-
var import_decorate$5 = __toESM(require_decorate());
|
|
1781
|
+
var import_decorate$5 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1780
1782
|
/**
|
|
1781
1783
|
* A decorator class for handling HTTP PATCH requests.
|
|
1782
1784
|
*
|
|
@@ -1833,7 +1835,7 @@ function Patch(path) {
|
|
|
1833
1835
|
|
|
1834
1836
|
//#endregion
|
|
1835
1837
|
//#region src/Decorators/Http/Post.ts
|
|
1836
|
-
var import_decorate$4 = __toESM(require_decorate());
|
|
1838
|
+
var import_decorate$4 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1837
1839
|
/**
|
|
1838
1840
|
* A decorator class for handling HTTP POST requests.
|
|
1839
1841
|
*
|
|
@@ -1890,7 +1892,7 @@ function Post(path) {
|
|
|
1890
1892
|
|
|
1891
1893
|
//#endregion
|
|
1892
1894
|
//#region src/Decorators/Http/Put.ts
|
|
1893
|
-
var import_decorate$3 = __toESM(require_decorate());
|
|
1895
|
+
var import_decorate$3 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
1894
1896
|
/**
|
|
1895
1897
|
* A decorator class for handling HTTP PUT requests.
|
|
1896
1898
|
*
|
|
@@ -2123,7 +2125,7 @@ function Response$1() {
|
|
|
2123
2125
|
|
|
2124
2126
|
//#endregion
|
|
2125
2127
|
//#region src/Decorators/Http/Trace.ts
|
|
2126
|
-
var import_decorate$2 = __toESM(require_decorate());
|
|
2128
|
+
var import_decorate$2 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
2127
2129
|
/**
|
|
2128
2130
|
* A decorator class for handling HTTP TRACE requests.
|
|
2129
2131
|
*
|
|
@@ -2373,7 +2375,7 @@ function MultipartFormData() {
|
|
|
2373
2375
|
|
|
2374
2376
|
//#endregion
|
|
2375
2377
|
//#region src/Decorators/Http/Session.ts
|
|
2376
|
-
var import_decorate$1 = __toESM(require_decorate());
|
|
2378
|
+
var import_decorate$1 = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
2377
2379
|
/**
|
|
2378
2380
|
* This class is responsible for managing session decorators.
|
|
2379
2381
|
*
|
|
@@ -2420,7 +2422,7 @@ function Session() {
|
|
|
2420
2422
|
|
|
2421
2423
|
//#endregion
|
|
2422
2424
|
//#region src/Decorators/Hooks/Listen.ts
|
|
2423
|
-
var import_decorate = __toESM(require_decorate());
|
|
2425
|
+
var import_decorate = /* @__PURE__ */ __toESM(require_decorate(), 1);
|
|
2424
2426
|
/**
|
|
2425
2427
|
* This class is responsible for managing cache decorator.
|
|
2426
2428
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Core module for Vercube framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@standard-schema/spec": "1.0.0",
|
|
26
|
-
"c12": "3.
|
|
26
|
+
"c12": "3.2.0",
|
|
27
27
|
"defu": "6.1.4",
|
|
28
28
|
"pathe": "2.0.3",
|
|
29
29
|
"rou3": "0.7.3",
|
|
30
|
-
"srvx": "0.8.
|
|
31
|
-
"@vercube/di": "0.0.
|
|
32
|
-
"@vercube/logger": "0.0.
|
|
30
|
+
"srvx": "0.8.6",
|
|
31
|
+
"@vercube/di": "0.0.22",
|
|
32
|
+
"@vercube/logger": "0.0.22"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|