@velajs/vela 0.1.0

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +84 -0
  4. package/dist/application.d.ts +44 -0
  5. package/dist/application.js +112 -0
  6. package/dist/constants.d.ts +35 -0
  7. package/dist/constants.js +43 -0
  8. package/dist/container/container.d.ts +25 -0
  9. package/dist/container/container.js +195 -0
  10. package/dist/container/decorators.d.ts +8 -0
  11. package/dist/container/decorators.js +36 -0
  12. package/dist/container/index.d.ts +4 -0
  13. package/dist/container/index.js +3 -0
  14. package/dist/container/types.d.ts +37 -0
  15. package/dist/container/types.js +11 -0
  16. package/dist/errors/http-exception.d.ts +61 -0
  17. package/dist/errors/http-exception.js +128 -0
  18. package/dist/errors/index.d.ts +1 -0
  19. package/dist/errors/index.js +1 -0
  20. package/dist/factory.d.ts +5 -0
  21. package/dist/factory.js +39 -0
  22. package/dist/http/decorators.d.ts +122 -0
  23. package/dist/http/decorators.js +276 -0
  24. package/dist/http/index.d.ts +3 -0
  25. package/dist/http/index.js +2 -0
  26. package/dist/http/route.manager.d.ts +34 -0
  27. package/dist/http/route.manager.js +373 -0
  28. package/dist/http/types.d.ts +29 -0
  29. package/dist/http/types.js +1 -0
  30. package/dist/index.d.ts +20 -0
  31. package/dist/index.js +26 -0
  32. package/dist/lifecycle/index.d.ts +20 -0
  33. package/dist/lifecycle/index.js +15 -0
  34. package/dist/metadata.d.ts +10 -0
  35. package/dist/metadata.js +29 -0
  36. package/dist/module/decorators.d.ts +5 -0
  37. package/dist/module/decorators.js +32 -0
  38. package/dist/module/index.d.ts +3 -0
  39. package/dist/module/index.js +2 -0
  40. package/dist/module/module-loader.d.ts +20 -0
  41. package/dist/module/module-loader.js +159 -0
  42. package/dist/module/types.d.ts +19 -0
  43. package/dist/module/types.js +1 -0
  44. package/dist/pipeline/component.manager.d.ts +18 -0
  45. package/dist/pipeline/component.manager.js +105 -0
  46. package/dist/pipeline/decorators.d.ts +10 -0
  47. package/dist/pipeline/decorators.js +50 -0
  48. package/dist/pipeline/index.d.ts +7 -0
  49. package/dist/pipeline/index.js +5 -0
  50. package/dist/pipeline/pipes.d.ts +25 -0
  51. package/dist/pipeline/pipes.js +52 -0
  52. package/dist/pipeline/reflector.d.ts +102 -0
  53. package/dist/pipeline/reflector.js +166 -0
  54. package/dist/pipeline/tokens.d.ts +33 -0
  55. package/dist/pipeline/tokens.js +27 -0
  56. package/dist/pipeline/types.d.ts +31 -0
  57. package/dist/pipeline/types.js +1 -0
  58. package/dist/registry/index.d.ts +2 -0
  59. package/dist/registry/index.js +1 -0
  60. package/dist/registry/metadata.registry.d.ts +61 -0
  61. package/dist/registry/metadata.registry.js +276 -0
  62. package/dist/registry/types.d.ts +55 -0
  63. package/dist/registry/types.js +2 -0
  64. package/package.json +72 -0
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@velajs/vela",
3
+ "version": "0.1.0",
4
+ "description": "NestJS-compatible framework for edge runtimes, powered by Hono",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "LICENSE",
18
+ "CHANGELOG.md"
19
+ ],
20
+ "sideEffects": [
21
+ "./dist/index.js"
22
+ ],
23
+ "keywords": [
24
+ "edge",
25
+ "hono",
26
+ "nestjs",
27
+ "framework",
28
+ "decorators",
29
+ "dependency-injection",
30
+ "cloudflare-workers",
31
+ "deno",
32
+ "bun",
33
+ "typescript"
34
+ ],
35
+ "author": "ksh",
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/velajs/vela.git"
40
+ },
41
+ "homepage": "https://github.com/velajs/vela#readme",
42
+ "bugs": {
43
+ "url": "https://github.com/velajs/vela/issues"
44
+ },
45
+ "engines": {
46
+ "node": ">=20"
47
+ },
48
+ "dependencies": {
49
+ "hono": "^4"
50
+ },
51
+ "peerDependencies": {
52
+ "@velajs/crud": ">=0.1.0"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "@velajs/crud": {
56
+ "optional": true
57
+ }
58
+ },
59
+ "devDependencies": {
60
+ "@swc/cli": "^0.8.0",
61
+ "@swc/core": "^1.15.11",
62
+ "@types/bun": "latest",
63
+ "typescript": "^5",
64
+ "unplugin-swc": "^1.5.9",
65
+ "vitest": "^4.0.18"
66
+ },
67
+ "scripts": {
68
+ "build": "rm -rf dist && swc src -d dist --strip-leading-paths && tsc --emitDeclarationOnly",
69
+ "test": "vitest run",
70
+ "typecheck": "tsc --noEmit"
71
+ }
72
+ }