wynkjs 1.0.0 → 1.0.2
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 +776 -129
- package/dist/decorators/exception.advanced.d.ts +43 -14
- package/dist/decorators/exception.advanced.d.ts.map +1 -1
- package/dist/decorators/exception.advanced.js +132 -15
- package/dist/decorators/http.decorators.d.ts +14 -12
- package/dist/decorators/http.decorators.d.ts.map +1 -1
- package/dist/decorators/http.decorators.js +34 -16
- package/dist/dto.d.ts +15 -5
- package/dist/dto.d.ts.map +1 -1
- package/dist/dto.js +37 -9
- package/dist/factory.d.ts +3 -0
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +87 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
* @author WynkJS Team
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
+
// Import reflect-metadata at the top of the framework
|
|
9
|
+
// This ensures users don't need to import it manually
|
|
10
|
+
import "reflect-metadata";
|
|
11
|
+
// Re-export tsyringe decorators for dependency injection
|
|
12
|
+
// Users can import these from 'wynkjs' instead of 'tsyringe'
|
|
13
|
+
export { injectable, inject, singleton, autoInjectable, registry, container, } from "tsyringe";
|
|
14
|
+
// Capital-cased aliases for consistency with WynkJS naming convention
|
|
15
|
+
export { injectable as Injectable, inject as Inject, singleton as Singleton, autoInjectable as AutoInjectable, registry as Registry, container as Container, } from "tsyringe";
|
|
8
16
|
// HTTP Method Decorators
|
|
9
17
|
export * from "./decorators/http.decorators";
|
|
10
18
|
// Parameter Decorators
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wynkjs",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A high-performance TypeScript framework built on Elysia with NestJS-style decorators - 20x faster than Express",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "A high-performance TypeScript framework built on Elysia for Bun with NestJS-style decorators - 20x faster than Express",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"wynk",
|
|
11
11
|
"wynkjs",
|
|
12
12
|
"elysia",
|
|
13
|
+
"bun",
|
|
13
14
|
"framework",
|
|
14
15
|
"typescript",
|
|
15
16
|
"decorators",
|
|
@@ -45,11 +46,11 @@
|
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"elysia": "^1.0.0",
|
|
47
48
|
"reflect-metadata": "^0.2.2",
|
|
48
|
-
"@types/
|
|
49
|
+
"@types/bun": "latest",
|
|
49
50
|
"typescript": "^5.0.0"
|
|
50
51
|
},
|
|
51
52
|
"engines": {
|
|
52
|
-
"
|
|
53
|
+
"bun": ">=1.0.0"
|
|
53
54
|
},
|
|
54
55
|
"exports": {
|
|
55
56
|
".": {
|