@vercube/core 0.0.22 → 0.0.23
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/README.md +10 -7
- package/dist/index.d.mts +2 -13
- package/dist/index.mjs +609 -674
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<br>
|
|
4
4
|
<br>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
# Vercube
|
|
7
|
+
|
|
8
|
+
Next generation HTTP framework
|
|
9
|
+
|
|
10
10
|
<a href="https://www.npmjs.com/package/@vercube/core">
|
|
11
11
|
<img src="https://img.shields.io/npm/v/%40vercube%2Fcore?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
|
|
12
12
|
</a>
|
|
@@ -16,14 +16,17 @@
|
|
|
16
16
|
<a href="https://github.com/vercube/vercube/blob/main/LICENSE" target="_blank">
|
|
17
17
|
<img src="https://img.shields.io/npm/l/%40vercube%2Fcore?style=for-the-badge&color=%23767eff" alt="License"/>
|
|
18
18
|
</a>
|
|
19
|
+
<a href="https://codecov.io/gh/vercube/vercube" target="_blank">
|
|
20
|
+
<img src="https://img.shields.io/codecov/c/github/vercube/vercube?style=for-the-badge&color=%23767eff" alt="Coverage"/>
|
|
21
|
+
</a>
|
|
19
22
|
<br/>
|
|
20
23
|
<br/>
|
|
21
24
|
</div>
|
|
22
25
|
|
|
23
26
|
An ultra-efficient JavaScript server framework that runs anywhere - Node.js, Bun, or Deno - with unmatched flexibility and complete configurability for developers who refuse to sacrifice speed or control.
|
|
24
27
|
|
|
25
|
-
|
|
26
28
|
## <a name="getting-started">🚀 Quick Start</a>
|
|
29
|
+
|
|
27
30
|
Vercube makes it incredibly easy to get started. With just one command, you'll have a fully configured project ready for development:
|
|
28
31
|
|
|
29
32
|
```sh
|
|
@@ -39,12 +42,12 @@ You can also try Vercube instantly using our online templates:
|
|
|
39
42
|
<img src="https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=for-the-badge&logo=codesandbox" alt="Open in CodeSandbox">
|
|
40
43
|
</a>
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
|
|
44
45
|
## <a name="documentation">📖 Documentation</a>
|
|
46
|
+
|
|
45
47
|
Comprehensive documentation is available at [vercube.dev](https://vercube.dev). There you'll find detailed module descriptions, project information, guides, and everything else you need to know about Vercube.
|
|
46
48
|
|
|
47
49
|
## <a name="contribute">❤️ Contribute</a>
|
|
50
|
+
|
|
48
51
|
We welcome and appreciate all contributions to Vercube! There are several ways you can help make this project better:
|
|
49
52
|
|
|
50
53
|
- **Report bugs**: If you find a bug, please [open an issue](https://github.com/vercube/vercube/issues) with detailed steps to reproduce it
|
package/dist/index.d.mts
CHANGED
|
@@ -733,7 +733,7 @@ declare function Status(code: HTTPStatus): Function;
|
|
|
733
733
|
declare function Redirect(location: string, code?: HTTPStatus): Function;
|
|
734
734
|
//#endregion
|
|
735
735
|
//#region src/Decorators/Http/Middleware.d.ts
|
|
736
|
-
interface MiddlewareDecoratorParams extends Omit<MetadataTypes.Middleware, 'middleware'> {}
|
|
736
|
+
interface MiddlewareDecoratorParams extends Omit<MetadataTypes.Middleware, 'middleware' | 'target'> {}
|
|
737
737
|
/**
|
|
738
738
|
* Decorator that applies middleware to a class or method
|
|
739
739
|
* @param middleware - The middleware class to apply
|
|
@@ -775,17 +775,6 @@ declare function Middleware$1(middleware: typeof BaseMiddleware, opts?: Middlewa
|
|
|
775
775
|
*/
|
|
776
776
|
declare function MultipartFormData(): Function;
|
|
777
777
|
//#endregion
|
|
778
|
-
//#region src/Decorators/Http/Session.d.ts
|
|
779
|
-
/**
|
|
780
|
-
* A factory function for creating a SessionDecorator.
|
|
781
|
-
*
|
|
782
|
-
* This function returns a decorator function that can be used to annotate
|
|
783
|
-
* a method parameter with session information.
|
|
784
|
-
*
|
|
785
|
-
* @return {Function} The decorator function.
|
|
786
|
-
*/
|
|
787
|
-
declare function Session(): Function;
|
|
788
|
-
//#endregion
|
|
789
778
|
//#region src/Types/HooksTypes.d.ts
|
|
790
779
|
declare namespace HooksTypes {
|
|
791
780
|
interface HookType<T> {
|
|
@@ -1621,4 +1610,4 @@ declare function initializeMetadataMethod(target: any, propertyName: string): Me
|
|
|
1621
1610
|
*/
|
|
1622
1611
|
declare function initializeMetadata(target: any): MetadataTypes.Ctx;
|
|
1623
1612
|
//#endregion
|
|
1624
|
-
export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, ConfigTypes, Connect, Controller, CreateAppOptions, DeepPartial, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers, HooksService, HooksTypes, HttpError, HttpServer, HttpStatusCode, 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,
|
|
1613
|
+
export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, ConfigTypes, Connect, Controller, CreateAppOptions, DeepPartial, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers, HooksService, HooksTypes, HttpError, HttpServer, HttpStatusCode, 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, SetHeader, StandardSchemaValidationProvider, Status, Trace, UnauthorizedError, ValidationProvider, ValidationTypes, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, loadVercubeConfig };
|