@vercube/core 0.0.42 → 0.0.45

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 CHANGED
@@ -9,7 +9,6 @@ import { BaseLogger, Logger } from "@vercube/logger";
9
9
  import { ConsoleProvider } from "@vercube/logger/drivers/ConsoleProvider";
10
10
  import { loadConfig, setupDotenv } from "c12";
11
11
  import { defu } from "defu";
12
-
13
12
  //#region src/Services/Config/RuntimeConfig.ts
14
13
  /**
15
14
  * RuntimeConfig class manages the runtime configuration for the Vercube application.
@@ -36,7 +35,6 @@ var RuntimeConfig = class {
36
35
  this.fRuntimeConfig = value;
37
36
  }
38
37
  };
39
-
40
38
  //#endregion
41
39
  //#region src/Errors/HttpError.ts
42
40
  /**
@@ -62,7 +60,6 @@ var HttpError = class HttpError extends Error {
62
60
  this.stack = (/* @__PURE__ */ new Error()).stack;
63
61
  }
64
62
  };
65
-
66
63
  //#endregion
67
64
  //#region src/Errors/Http/NotFoundError.ts
68
65
  /**
@@ -85,7 +82,6 @@ var NotFoundError = class NotFoundError extends HttpError {
85
82
  if (message) this.message = message;
86
83
  }
87
84
  };
88
-
89
85
  //#endregion
90
86
  //#region src/Services/ErrorHandler/ErrorHandlerProvider.ts
91
87
  /**
@@ -96,7 +92,6 @@ var NotFoundError = class NotFoundError extends HttpError {
96
92
  * @class ErrorHandlerProvider
97
93
  */
98
94
  var ErrorHandlerProvider = class {};
99
-
100
95
  //#endregion
101
96
  //#region src/Errors/Http/BadRequestError.ts
102
97
  /**
@@ -120,7 +115,6 @@ var BadRequestError = class BadRequestError extends HttpError {
120
115
  if (errors) this.errors = errors;
121
116
  }
122
117
  };
123
-
124
118
  //#endregion
125
119
  //#region src/Utils/Security.ts
126
120
  /**
@@ -223,7 +217,6 @@ function sanitizeObject(obj) {
223
217
  function safeAssign(target, source) {
224
218
  for (const key of Object.keys(source)) if (isSafeProperty(key) && Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
225
219
  }
226
-
227
220
  //#endregion
228
221
  //#region src/Resolvers/Body.ts
229
222
  /**
@@ -255,7 +248,6 @@ async function resolveRequestBody(event) {
255
248
  throw new BadRequestError("Invalid JSON body");
256
249
  }
257
250
  }
258
-
259
251
  //#endregion
260
252
  //#region src/Resolvers/Headers.ts
261
253
  /**
@@ -275,7 +267,6 @@ function getRequestHeader(header, event) {
275
267
  function getRequestHeaders(event) {
276
268
  return event.request.headers;
277
269
  }
278
-
279
270
  //#endregion
280
271
  //#region src/Resolvers/Query.ts
281
272
  /**
@@ -298,7 +289,6 @@ function resolveQueryParams(event) {
298
289
  for (const [key, value] of url.searchParams) params[key] = value;
299
290
  return params;
300
291
  }
301
-
302
292
  //#endregion
303
293
  //#region src/Resolvers/RouterParam.ts
304
294
  /**
@@ -315,7 +305,6 @@ function resolveQueryParams(event) {
315
305
  function resolveRouterParam(param, event) {
316
306
  return event.params?.[param] ?? null;
317
307
  }
318
-
319
308
  //#endregion
320
309
  //#region src/Services/Metadata/MetadataResolver.ts
321
310
  /**
@@ -390,14 +379,12 @@ var MetadataResolver = class {
390
379
  return (ctx?.__metadata?.__middlewares?.filter((m) => m.target === "__global__" || m.target === propertyName) ?? []).sort((a) => a.target === "__global__" ? -1 : 1);
391
380
  }
392
381
  };
393
-
394
382
  //#endregion
395
383
  //#region src/Services/Middleware/BaseMiddleware.ts
396
384
  /**
397
385
  * BaseMiddleware class that serves as a base for all middleware implementations.
398
386
  */
399
387
  var BaseMiddleware = class {};
400
-
401
388
  //#endregion
402
389
  //#region src/Services/Middleware/GlobalMiddlewareRegistry.ts
403
390
  /**
@@ -435,7 +422,6 @@ var GlobalMiddlewareRegistry = class {
435
422
  });
436
423
  }
437
424
  };
438
-
439
425
  //#endregion
440
426
  //#region src/Services/Router/RequestContext.ts
441
427
  /**
@@ -536,16 +522,14 @@ var RequestContext = class {
536
522
  return new Map(context);
537
523
  }
538
524
  };
539
-
540
525
  //#endregion
541
- //#region \0@oxc-project+runtime@0.110.0/helpers/decorate.js
526
+ //#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
542
527
  function __decorate(decorators, target, key, desc) {
543
528
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
544
529
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
545
530
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
546
531
  return c > 3 && r && Object.defineProperty(target, key, r), r;
547
532
  }
548
-
549
533
  //#endregion
550
534
  //#region src/Services/Router/RequestHandler.ts
551
535
  /**
@@ -873,15 +857,12 @@ var RequestHandler = class {
873
857
  __decorate([Inject(MetadataResolver)], RequestHandler.prototype, "gMetadataResolver", void 0);
874
858
  __decorate([Inject(Container)], RequestHandler.prototype, "gContainer", void 0);
875
859
  __decorate([Inject(GlobalMiddlewareRegistry)], RequestHandler.prototype, "gGlobalMiddlewareRegistry", void 0);
876
-
877
860
  //#endregion
878
861
  //#region src/Hooks/Router/RouterAfterInitHook.ts
879
862
  var RouterAfterInitHook = class {};
880
-
881
863
  //#endregion
882
864
  //#region src/Hooks/Router/RouterBeforeInitHook.ts
883
865
  var RouterBeforeInitHook = class {};
884
-
885
866
  //#endregion
886
867
  //#region src/Services/Hooks/HooksService.ts
887
868
  /**
@@ -1010,7 +991,6 @@ var HooksService = class {
1010
991
  return instance;
1011
992
  }
1012
993
  };
1013
-
1014
994
  //#endregion
1015
995
  //#region src/Services/Router/Router.ts
1016
996
  /**
@@ -1066,7 +1046,6 @@ var Router = class {
1066
1046
  }
1067
1047
  };
1068
1048
  __decorate([Inject(HooksService)], Router.prototype, "gHooksService", void 0);
1069
-
1070
1049
  //#endregion
1071
1050
  //#region src/Utils/Mine.ts
1072
1051
  const mime = { getType(ext) {
@@ -1083,7 +1062,6 @@ const mime = { getType(ext) {
1083
1062
  ".ico": "image/x-icon"
1084
1063
  }[ext] || null;
1085
1064
  } };
1086
-
1087
1065
  //#endregion
1088
1066
  //#region src/Services/Router/StaticRequestHandler.ts
1089
1067
  /**
@@ -1155,7 +1133,6 @@ var StaticRequestHandler = class {
1155
1133
  return new Response(stream, { headers });
1156
1134
  }
1157
1135
  };
1158
-
1159
1136
  //#endregion
1160
1137
  //#region src/Services/HttpServer/HttpServer.ts
1161
1138
  /**
@@ -1259,7 +1236,7 @@ var HttpServer = class {
1259
1236
  }
1260
1237
  return this.gRequestHandler.handleRequest(request, route);
1261
1238
  } catch (error) {
1262
- return this.gContainer.get(ErrorHandlerProvider).handleError(error);
1239
+ return this.gContainer.get(ErrorHandlerProvider).handleError(error instanceof Error ? error : new Error(String(error)));
1263
1240
  }
1264
1241
  }
1265
1242
  };
@@ -1267,7 +1244,6 @@ __decorate([Inject(Container)], HttpServer.prototype, "gContainer", void 0);
1267
1244
  __decorate([Inject(Router)], HttpServer.prototype, "gRouter", void 0);
1268
1245
  __decorate([Inject(RequestHandler)], HttpServer.prototype, "gRequestHandler", void 0);
1269
1246
  __decorate([Inject(StaticRequestHandler)], HttpServer.prototype, "gStaticRequestHandler", void 0);
1270
-
1271
1247
  //#endregion
1272
1248
  //#region src/Services/Plugins/BasePlugin.ts
1273
1249
  /**
@@ -1285,7 +1261,6 @@ var BasePlugin = class {
1285
1261
  */
1286
1262
  use(app, options) {}
1287
1263
  };
1288
-
1289
1264
  //#endregion
1290
1265
  //#region src/Services/Plugins/PluginsRegistry.ts
1291
1266
  var PluginsRegistry = class {
@@ -1324,7 +1299,6 @@ var PluginsRegistry = class {
1324
1299
  }
1325
1300
  };
1326
1301
  __decorate([Inject(Container)], PluginsRegistry.prototype, "gContainer", void 0);
1327
-
1328
1302
  //#endregion
1329
1303
  //#region src/Common/App.ts
1330
1304
  /**
@@ -1427,7 +1401,6 @@ __decorate([Inject(PluginsRegistry)], App.prototype, "gPluginsRegistry", void 0)
1427
1401
  __decorate([Inject(HttpServer)], App.prototype, "gHttpServer", void 0);
1428
1402
  __decorate([Inject(StaticRequestHandler)], App.prototype, "gStaticRequestHandler", void 0);
1429
1403
  __decorate([Inject(RuntimeConfig)], App.prototype, "gRuntimeConfig", void 0);
1430
-
1431
1404
  //#endregion
1432
1405
  //#region src/Errors/Http/InternalServerError.ts
1433
1406
  /**
@@ -1450,7 +1423,6 @@ var InternalServerError = class InternalServerError extends HttpError {
1450
1423
  if (message) this.message = message;
1451
1424
  }
1452
1425
  };
1453
-
1454
1426
  //#endregion
1455
1427
  //#region src/Services/ErrorHandler/DefaultErrorHandlerProvider.ts
1456
1428
  /**
@@ -1475,7 +1447,6 @@ var DefaultErrorHandlerProvider = class extends ErrorHandlerProvider {
1475
1447
  }
1476
1448
  };
1477
1449
  __decorate([Inject(Logger)], DefaultErrorHandlerProvider.prototype, "gLogger", void 0);
1478
-
1479
1450
  //#endregion
1480
1451
  //#region src/Services/Validation/ValidationProvider.ts
1481
1452
  /**
@@ -1486,7 +1457,6 @@ __decorate([Inject(Logger)], DefaultErrorHandlerProvider.prototype, "gLogger", v
1486
1457
  * @class ValidationProvider
1487
1458
  */
1488
1459
  var ValidationProvider = class {};
1489
-
1490
1460
  //#endregion
1491
1461
  //#region src/Services/Validation/StandardSchemaValidationProvider.ts
1492
1462
  /**
@@ -1506,7 +1476,6 @@ var StandardSchemaValidationProvider = class {
1506
1476
  return schema["~standard"].validate(data);
1507
1477
  }
1508
1478
  };
1509
-
1510
1479
  //#endregion
1511
1480
  //#region src/Common/Container.ts
1512
1481
  /**
@@ -1539,34 +1508,9 @@ function createContainer(config) {
1539
1508
  container.bind(ValidationProvider, StandardSchemaValidationProvider);
1540
1509
  return container;
1541
1510
  }
1542
-
1543
- //#endregion
1544
- //#region src/Utils/InternalUtils.ts
1545
- /**
1546
- * Generate random hash
1547
- * @returns string
1548
- */
1549
- function generateRandomHash() {
1550
- const hashByPerformance = Math.floor(Date.now() * 1e3).toString(16);
1551
- const hashByMath = () => (Math.floor(Math.random() * 16777215) | 1048576).toString(16);
1552
- return `${hashByPerformance}-${hashByMath()}-${hashByMath()}-${hashByMath()}`;
1553
- }
1554
-
1555
1511
  //#endregion
1556
1512
  //#region src/Config/DefaultConfig.ts
1557
1513
  /**
1558
- * Gets the session secret from environment or generates one for development.
1559
- * In production, requires the SECRET environment variable to be set.
1560
- * @throws {Error} If in production and SECRET environment variable is not set
1561
- * @returns {string} The session secret
1562
- */
1563
- function getSessionSecret() {
1564
- const isProduction = process.env.NODE_ENV === "production";
1565
- const envSecret = process.env.SECRET;
1566
- if (isProduction && !envSecret) throw new Error("SESSION SECRET ERROR: In production mode, you must set a strong SECRET environment variable. Using a dynamically generated secret is insecure and will cause session data to be lost on server restart. Please set the SECRET environment variable to a strong, randomly generated string (at least 32 characters). Example: SECRET=your-strong-random-secret-here-at-least-32-chars");
1567
- return envSecret ?? generateRandomHash();
1568
- }
1569
- /**
1570
1514
  * Default configuration for the Vercube application.
1571
1515
  * This configuration serves as the base settings and can be overridden by user configuration.
1572
1516
  */
@@ -1591,13 +1535,8 @@ const defaultConfig = {
1591
1535
  static: { dirs: ["public"] }
1592
1536
  },
1593
1537
  experimental: {},
1594
- runtime: { session: {
1595
- secret: getSessionSecret(),
1596
- name: "vercube_session",
1597
- duration: 3600 * 24 * 7
1598
- } }
1538
+ runtime: {}
1599
1539
  };
1600
-
1601
1540
  //#endregion
1602
1541
  //#region src/Config/Loader.ts
1603
1542
  /**
@@ -1616,7 +1555,6 @@ async function loadVercubeConfig(overrides) {
1616
1555
  if (config?.config?.c12?.dotenv && typeof config?.config?.c12?.dotenv === "object") await setupDotenv(config.config.c12.dotenv);
1617
1556
  return defu(overrides ?? {}, config?.config ?? {});
1618
1557
  }
1619
-
1620
1558
  //#endregion
1621
1559
  //#region src/Common/CreateApp.ts
1622
1560
  /**
@@ -1635,7 +1573,6 @@ async function createApp({ cfg = {}, setup = void 0 } = {}) {
1635
1573
  initializeContainer(container);
1636
1574
  return app;
1637
1575
  }
1638
-
1639
1576
  //#endregion
1640
1577
  //#region src/Config/Config.ts
1641
1578
  /**
@@ -1646,7 +1583,6 @@ async function createApp({ cfg = {}, setup = void 0 } = {}) {
1646
1583
  function defineConfig(config) {
1647
1584
  return config;
1648
1585
  }
1649
-
1650
1586
  //#endregion
1651
1587
  //#region src/Middleware/ValidationMiddleware.ts
1652
1588
  /**
@@ -1683,7 +1619,6 @@ var ValidationMiddleware = class {
1683
1619
  };
1684
1620
  __decorate([InjectOptional(Logger)], ValidationMiddleware.prototype, "gLogger", void 0);
1685
1621
  __decorate([InjectOptional(ValidationProvider)], ValidationMiddleware.prototype, "gValidationProvider", void 0);
1686
-
1687
1622
  //#endregion
1688
1623
  //#region src/Utils/Utils.ts
1689
1624
  /**
@@ -1731,7 +1666,6 @@ function initializeMetadata(target) {
1731
1666
  if (!target.__metadata.__middlewares) target.__metadata.__middlewares = [];
1732
1667
  return target.__metadata;
1733
1668
  }
1734
-
1735
1669
  //#endregion
1736
1670
  //#region src/Decorators/Http/Body.ts
1737
1671
  /**
@@ -1774,7 +1708,6 @@ var BodyDecorator = class extends BaseDecorator {
1774
1708
  function Body(options) {
1775
1709
  return createDecorator(BodyDecorator, options);
1776
1710
  }
1777
-
1778
1711
  //#endregion
1779
1712
  //#region src/Decorators/Http/Connect.ts
1780
1713
  /**
@@ -1830,7 +1763,6 @@ __decorate([Inject(MetadataResolver)], ConnectDecorator.prototype, "gMetadataRes
1830
1763
  function Connect(path) {
1831
1764
  return createDecorator(ConnectDecorator, { path });
1832
1765
  }
1833
-
1834
1766
  //#endregion
1835
1767
  //#region src/Decorators/Http/Controller.ts
1836
1768
  /**
@@ -1851,7 +1783,6 @@ function Controller(path) {
1851
1783
  };
1852
1784
  };
1853
1785
  }
1854
-
1855
1786
  //#endregion
1856
1787
  //#region src/Decorators/Http/Delete.ts
1857
1788
  /**
@@ -1907,7 +1838,6 @@ __decorate([Inject(MetadataResolver)], DeleteDecorator.prototype, "gMetadataReso
1907
1838
  function Delete(path) {
1908
1839
  return createDecorator(DeleteDecorator, { path });
1909
1840
  }
1910
-
1911
1841
  //#endregion
1912
1842
  //#region src/Decorators/Http/Get.ts
1913
1843
  /**
@@ -1938,9 +1868,9 @@ var GetDecorator = class extends BaseDecorator {
1938
1868
  path: this.options.path,
1939
1869
  propertyName: this.propertyName
1940
1870
  });
1941
- this.gRouter.addRoute({
1871
+ for (const method of ["GET", "HEAD"]) this.gRouter.addRoute({
1942
1872
  path: this.options.path,
1943
- method: "GET",
1873
+ method,
1944
1874
  handler: this.gRequestHandler.prepareHandler({
1945
1875
  instance: this.instance,
1946
1876
  propertyName: this.propertyName
@@ -1963,7 +1893,6 @@ __decorate([Inject(MetadataResolver)], GetDecorator.prototype, "gMetadataResolve
1963
1893
  function Get(path) {
1964
1894
  return createDecorator(GetDecorator, { path });
1965
1895
  }
1966
-
1967
1896
  //#endregion
1968
1897
  //#region src/Decorators/Http/Head.ts
1969
1898
  /**
@@ -2019,7 +1948,6 @@ __decorate([Inject(MetadataResolver)], HeadDecorator.prototype, "gMetadataResolv
2019
1948
  function Head(path) {
2020
1949
  return createDecorator(HeadDecorator, { path });
2021
1950
  }
2022
-
2023
1951
  //#endregion
2024
1952
  //#region src/Decorators/Http/Header.ts
2025
1953
  /**
@@ -2060,7 +1988,6 @@ var HeaderDecorator = class extends BaseDecorator {
2060
1988
  function Header(name) {
2061
1989
  return createDecorator(HeaderDecorator, { name });
2062
1990
  }
2063
-
2064
1991
  //#endregion
2065
1992
  //#region src/Decorators/Http/Headers.ts
2066
1993
  /**
@@ -2098,7 +2025,6 @@ var HeadersDecorator = class extends BaseDecorator {
2098
2025
  function Headers$1() {
2099
2026
  return createDecorator(HeadersDecorator, {});
2100
2027
  }
2101
-
2102
2028
  //#endregion
2103
2029
  //#region src/Decorators/Http/Options.ts
2104
2030
  /**
@@ -2154,7 +2080,6 @@ __decorate([Inject(MetadataResolver)], OptionsDecorator.prototype, "gMetadataRes
2154
2080
  function Options(path) {
2155
2081
  return createDecorator(OptionsDecorator, { path });
2156
2082
  }
2157
-
2158
2083
  //#endregion
2159
2084
  //#region src/Decorators/Http/Param.ts
2160
2085
  /**
@@ -2198,7 +2123,6 @@ __decorate([Inject(MetadataResolver)], ParamDecorator.prototype, "gMetadataResol
2198
2123
  function Param(name) {
2199
2124
  return createDecorator(ParamDecorator, { name });
2200
2125
  }
2201
-
2202
2126
  //#endregion
2203
2127
  //#region src/Decorators/Http/Patch.ts
2204
2128
  /**
@@ -2254,7 +2178,6 @@ __decorate([Inject(MetadataResolver)], PatchDecorator.prototype, "gMetadataResol
2254
2178
  function Patch(path) {
2255
2179
  return createDecorator(PatchDecorator, { path });
2256
2180
  }
2257
-
2258
2181
  //#endregion
2259
2182
  //#region src/Decorators/Http/Post.ts
2260
2183
  /**
@@ -2310,7 +2233,6 @@ __decorate([Inject(RequestHandler)], PostDecorator.prototype, "gRequestHandler",
2310
2233
  function Post(path) {
2311
2234
  return createDecorator(PostDecorator, { path });
2312
2235
  }
2313
-
2314
2236
  //#endregion
2315
2237
  //#region src/Decorators/Http/Put.ts
2316
2238
  /**
@@ -2366,7 +2288,6 @@ __decorate([Inject(MetadataResolver)], PutDecorator.prototype, "gMetadataResolve
2366
2288
  function Put(path) {
2367
2289
  return createDecorator(PutDecorator, { path });
2368
2290
  }
2369
-
2370
2291
  //#endregion
2371
2292
  //#region src/Decorators/Http/QueryParam.ts
2372
2293
  /**
@@ -2414,7 +2335,6 @@ var QueryParamDecorator = class extends BaseDecorator {
2414
2335
  function QueryParam(options) {
2415
2336
  return createDecorator(QueryParamDecorator, options);
2416
2337
  }
2417
-
2418
2338
  //#endregion
2419
2339
  //#region src/Decorators/Http/QueryParams.ts
2420
2340
  /**
@@ -2462,7 +2382,6 @@ var QueryParamsDecorator = class extends BaseDecorator {
2462
2382
  function QueryParams(options) {
2463
2383
  return createDecorator(QueryParamsDecorator, options);
2464
2384
  }
2465
-
2466
2385
  //#endregion
2467
2386
  //#region src/Decorators/Http/Request.ts
2468
2387
  /**
@@ -2500,7 +2419,6 @@ var RequestDecorator = class extends BaseDecorator {
2500
2419
  function Request() {
2501
2420
  return createDecorator(RequestDecorator, {});
2502
2421
  }
2503
-
2504
2422
  //#endregion
2505
2423
  //#region src/Decorators/Http/Response.ts
2506
2424
  /**
@@ -2538,7 +2456,6 @@ var ResponseDecorator = class extends BaseDecorator {
2538
2456
  function Response$1() {
2539
2457
  return createDecorator(ResponseDecorator, {});
2540
2458
  }
2541
-
2542
2459
  //#endregion
2543
2460
  //#region src/Decorators/Http/Trace.ts
2544
2461
  /**
@@ -2594,7 +2511,6 @@ __decorate([Inject(MetadataResolver)], TraceDecorator.prototype, "gMetadataResol
2594
2511
  function Trace(path) {
2595
2512
  return createDecorator(TraceDecorator, { path });
2596
2513
  }
2597
-
2598
2514
  //#endregion
2599
2515
  //#region src/Decorators/Http/SetHeader.ts
2600
2516
  /**
@@ -2628,7 +2544,6 @@ function SetHeader(key, value) {
2628
2544
  value
2629
2545
  });
2630
2546
  }
2631
-
2632
2547
  //#endregion
2633
2548
  //#region src/Types/HttpTypes.ts
2634
2549
  let HTTPStatus = /* @__PURE__ */ function(HTTPStatus) {
@@ -2695,7 +2610,6 @@ let HTTPStatus = /* @__PURE__ */ function(HTTPStatus) {
2695
2610
  HTTPStatus[HTTPStatus["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
2696
2611
  return HTTPStatus;
2697
2612
  }({});
2698
-
2699
2613
  //#endregion
2700
2614
  //#region src/Decorators/Http/Status.ts
2701
2615
  /**
@@ -2721,7 +2635,6 @@ var StatusDecorator = class extends BaseDecorator {
2721
2635
  function Status(code) {
2722
2636
  return createDecorator(StatusDecorator, { code });
2723
2637
  }
2724
-
2725
2638
  //#endregion
2726
2639
  //#region src/Decorators/Http/Redirect.ts
2727
2640
  var RedirectDecorator = class extends BaseDecorator {
@@ -2753,7 +2666,6 @@ function Redirect(location, code = 301) {
2753
2666
  code
2754
2667
  });
2755
2668
  }
2756
-
2757
2669
  //#endregion
2758
2670
  //#region src/Decorators/Http/Middleware.ts
2759
2671
  /**
@@ -2787,7 +2699,6 @@ function Middleware(middleware, opts) {
2787
2699
  });
2788
2700
  };
2789
2701
  }
2790
-
2791
2702
  //#endregion
2792
2703
  //#region src/Decorators/Http/MultipartFormData.ts
2793
2704
  /**
@@ -2827,7 +2738,6 @@ var MultipartFormDataDecorator = class extends BaseDecorator {
2827
2738
  function MultipartFormData() {
2828
2739
  return createDecorator(MultipartFormDataDecorator, {});
2829
2740
  }
2830
-
2831
2741
  //#endregion
2832
2742
  //#region src/Decorators/Hooks/Listen.ts
2833
2743
  /**
@@ -2861,7 +2771,6 @@ __decorate([Inject(HooksService)], ListenDecorator.prototype, "gHooksService", v
2861
2771
  function Listen(hookType) {
2862
2772
  return createDecorator(ListenDecorator, { hookType });
2863
2773
  }
2864
-
2865
2774
  //#endregion
2866
2775
  //#region src/Errors/Http/ForbiddenError.ts
2867
2776
  /**
@@ -2884,7 +2793,6 @@ var ForbiddenError = class ForbiddenError extends HttpError {
2884
2793
  if (message) this.message = message;
2885
2794
  }
2886
2795
  };
2887
-
2888
2796
  //#endregion
2889
2797
  //#region src/Errors/Http/MethodNotAllowedError.ts
2890
2798
  /**
@@ -2907,7 +2815,6 @@ var MethodNotAllowedError = class MethodNotAllowedError extends HttpError {
2907
2815
  if (message) this.message = message;
2908
2816
  }
2909
2817
  };
2910
-
2911
2818
  //#endregion
2912
2819
  //#region src/Errors/Http/NotAcceptableError.ts
2913
2820
  /**
@@ -2930,7 +2837,6 @@ var NotAcceptableError = class NotAcceptableError extends HttpError {
2930
2837
  if (message) this.message = message;
2931
2838
  }
2932
2839
  };
2933
-
2934
2840
  //#endregion
2935
2841
  //#region src/Errors/Http/UnauthorizedError.ts
2936
2842
  /**
@@ -2953,7 +2859,6 @@ var UnauthorizedError = class UnauthorizedError extends HttpError {
2953
2859
  if (message) this.message = message;
2954
2860
  }
2955
2861
  };
2956
-
2957
2862
  //#endregion
2958
2863
  //#region src/Types/HttpCodes.ts
2959
2864
  /**
@@ -3283,6 +3188,5 @@ let HttpStatusCode = /* @__PURE__ */ function(HttpStatusCode) {
3283
3188
  HttpStatusCode[HttpStatusCode["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
3284
3189
  return HttpStatusCode;
3285
3190
  }({});
3286
-
3287
3191
  //#endregion
3288
- export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, Connect, Controller, DANGEROUS_PROPERTIES, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers$1 as Headers, HooksService, HttpError, HttpServer, HttpStatusCode, InternalServerError, Listen, MetadataResolver, MethodNotAllowedError, Middleware, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request, RequestContext, Response$1 as Response, Router, RuntimeConfig, SetHeader, StandardSchemaValidationProvider, Status, Trace, UnauthorizedError, ValidationProvider, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, isSafeProperty, loadVercubeConfig, safeAssign, safeJsonParse, sanitizeObject, secureReviver };
3192
+ export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, Connect, Controller, DANGEROUS_PROPERTIES, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers$1 as Headers, HooksService, HttpError, HttpServer, HttpStatusCode, InternalServerError, Listen, MetadataResolver, MethodNotAllowedError, Middleware, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request, RequestContext, Response$1 as Response, Router, RuntimeConfig, SetHeader, StandardSchemaValidationProvider, Status, Trace, UnauthorizedError, ValidationProvider, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, isSafeProperty, loadVercubeConfig, safeAssign, safeJsonParse, sanitizeObject, secureReviver };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/core",
3
- "version": "0.0.42",
3
+ "version": "0.0.45",
4
4
  "description": "Core module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,16 +23,16 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@standard-schema/spec": "1.1.0",
26
- "c12": "3.3.3",
26
+ "c12": "4.0.0-beta.4",
27
27
  "defu": "6.1.4",
28
28
  "pathe": "2.0.3",
29
- "rou3": "0.7.12",
30
- "srvx": "npm:srvx-nightly",
31
- "@vercube/di": "0.0.42",
32
- "@vercube/logger": "0.0.42"
29
+ "rou3": "0.8.1",
30
+ "srvx": "0.11.12",
31
+ "@vercube/di": "0.0.45",
32
+ "@vercube/logger": "0.0.45"
33
33
  },
34
34
  "devDependencies": {
35
- "rolldown": "1.0.0-rc.2",
35
+ "rolldown": "1.0.0-rc.9",
36
36
  "zod": "4.3.6"
37
37
  },
38
38
  "publishConfig": {