@athenna/http 3.4.2 → 3.4.3

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 (117) hide show
  1. package/package.json +29 -30
  2. package/{build → src}/Handlers/FastifyHandler.d.ts +1 -0
  3. /package/{build → src}/Commands/MakeControllerCommand.d.ts +0 -0
  4. /package/{build → src}/Commands/MakeControllerCommand.js +0 -0
  5. /package/{build → src}/Commands/MakeInterceptorCommand.d.ts +0 -0
  6. /package/{build → src}/Commands/MakeInterceptorCommand.js +0 -0
  7. /package/{build → src}/Commands/MakeMiddlewareCommand.d.ts +0 -0
  8. /package/{build → src}/Commands/MakeMiddlewareCommand.js +0 -0
  9. /package/{build → src}/Commands/MakeTerminatorCommand.d.ts +0 -0
  10. /package/{build → src}/Commands/MakeTerminatorCommand.js +0 -0
  11. /package/{build → src}/Commands/RouteListCommand.d.ts +0 -0
  12. /package/{build → src}/Commands/RouteListCommand.js +0 -0
  13. /package/{build → src}/Context/Request.d.ts +0 -0
  14. /package/{build → src}/Context/Request.js +0 -0
  15. /package/{build → src}/Context/Response.d.ts +0 -0
  16. /package/{build → src}/Context/Response.js +0 -0
  17. /package/{build → src}/Contracts/InterceptorContract.d.ts +0 -0
  18. /package/{build → src}/Contracts/InterceptorContract.js +0 -0
  19. /package/{build → src}/Contracts/MiddlewareContract.d.ts +0 -0
  20. /package/{build → src}/Contracts/MiddlewareContract.js +0 -0
  21. /package/{build → src}/Contracts/TerminatorContract.d.ts +0 -0
  22. /package/{build → src}/Contracts/TerminatorContract.js +0 -0
  23. /package/{build → src}/Decorators/Controller.d.ts +0 -0
  24. /package/{build → src}/Decorators/Controller.js +0 -0
  25. /package/{build → src}/Decorators/Interceptor.d.ts +0 -0
  26. /package/{build → src}/Decorators/Interceptor.js +0 -0
  27. /package/{build → src}/Decorators/Middleware.d.ts +0 -0
  28. /package/{build → src}/Decorators/Middleware.js +0 -0
  29. /package/{build → src}/Decorators/Terminator.d.ts +0 -0
  30. /package/{build → src}/Decorators/Terminator.js +0 -0
  31. /package/{build → src}/Exceptions/BadGatewayException.d.ts +0 -0
  32. /package/{build → src}/Exceptions/BadGatewayException.js +0 -0
  33. /package/{build → src}/Exceptions/BadRequestException.d.ts +0 -0
  34. /package/{build → src}/Exceptions/BadRequestException.js +0 -0
  35. /package/{build → src}/Exceptions/ForbiddenException.d.ts +0 -0
  36. /package/{build → src}/Exceptions/ForbiddenException.js +0 -0
  37. /package/{build → src}/Exceptions/HttpException.d.ts +0 -0
  38. /package/{build → src}/Exceptions/HttpException.js +0 -0
  39. /package/{build → src}/Exceptions/InternalServerException.d.ts +0 -0
  40. /package/{build → src}/Exceptions/InternalServerException.js +0 -0
  41. /package/{build → src}/Exceptions/MethodNotAllowedException.d.ts +0 -0
  42. /package/{build → src}/Exceptions/MethodNotAllowedException.js +0 -0
  43. /package/{build → src}/Exceptions/NotAcceptableException.d.ts +0 -0
  44. /package/{build → src}/Exceptions/NotAcceptableException.js +0 -0
  45. /package/{build → src}/Exceptions/NotFoundException.d.ts +0 -0
  46. /package/{build → src}/Exceptions/NotFoundException.js +0 -0
  47. /package/{build → src}/Exceptions/NotImplementedException.d.ts +0 -0
  48. /package/{build → src}/Exceptions/NotImplementedException.js +0 -0
  49. /package/{build → src}/Exceptions/PayloadTooLargeException.d.ts +0 -0
  50. /package/{build → src}/Exceptions/PayloadTooLargeException.js +0 -0
  51. /package/{build → src}/Exceptions/RequestTimeoutException.d.ts +0 -0
  52. /package/{build → src}/Exceptions/RequestTimeoutException.js +0 -0
  53. /package/{build → src}/Exceptions/ServiceUnavailableException.d.ts +0 -0
  54. /package/{build → src}/Exceptions/ServiceUnavailableException.js +0 -0
  55. /package/{build → src}/Exceptions/UnauthorizedException.d.ts +0 -0
  56. /package/{build → src}/Exceptions/UnauthorizedException.js +0 -0
  57. /package/{build → src}/Exceptions/UndefinedMethodException.d.ts +0 -0
  58. /package/{build → src}/Exceptions/UndefinedMethodException.js +0 -0
  59. /package/{build → src}/Exceptions/UnprocessableEntityException.d.ts +0 -0
  60. /package/{build → src}/Exceptions/UnprocessableEntityException.js +0 -0
  61. /package/{build → src}/Facades/Route.d.ts +0 -0
  62. /package/{build → src}/Facades/Route.js +0 -0
  63. /package/{build → src}/Facades/Server.d.ts +0 -0
  64. /package/{build → src}/Facades/Server.js +0 -0
  65. /package/{build → src}/Handlers/FastifyHandler.js +0 -0
  66. /package/{build → src}/Handlers/HttpExceptionHandler.d.ts +0 -0
  67. /package/{build → src}/Handlers/HttpExceptionHandler.js +0 -0
  68. /package/{build → src}/Kernels/HttpKernel.d.ts +0 -0
  69. /package/{build → src}/Kernels/HttpKernel.js +0 -0
  70. /package/{build → src}/Providers/HttpRouteProvider.d.ts +0 -0
  71. /package/{build → src}/Providers/HttpRouteProvider.js +0 -0
  72. /package/{build → src}/Providers/HttpServerProvider.d.ts +0 -0
  73. /package/{build → src}/Providers/HttpServerProvider.js +0 -0
  74. /package/{build → src}/Router/Route.d.ts +0 -0
  75. /package/{build → src}/Router/Route.js +0 -0
  76. /package/{build → src}/Router/RouteGroup.d.ts +0 -0
  77. /package/{build → src}/Router/RouteGroup.js +0 -0
  78. /package/{build → src}/Router/RouteResource.d.ts +0 -0
  79. /package/{build → src}/Router/RouteResource.js +0 -0
  80. /package/{build → src}/Router/Router.d.ts +0 -0
  81. /package/{build → src}/Router/Router.js +0 -0
  82. /package/{build → src}/Server/ServerImpl.d.ts +0 -0
  83. /package/{build → src}/Server/ServerImpl.js +0 -0
  84. /package/{build → src}/Testing/Plugins/Request/TestRequest.d.ts +0 -0
  85. /package/{build → src}/Testing/Plugins/Request/TestRequest.js +0 -0
  86. /package/{build → src}/Testing/Plugins/Request/TestResponse.d.ts +0 -0
  87. /package/{build → src}/Testing/Plugins/Request/TestResponse.js +0 -0
  88. /package/{build → src}/Testing/Plugins/index.d.ts +0 -0
  89. /package/{build → src}/Testing/Plugins/index.js +0 -0
  90. /package/{build → src}/Types/Contexts/Context.d.ts +0 -0
  91. /package/{build → src}/Types/Contexts/Context.js +0 -0
  92. /package/{build → src}/Types/Contexts/ErrorContext.d.ts +0 -0
  93. /package/{build → src}/Types/Contexts/ErrorContext.js +0 -0
  94. /package/{build → src}/Types/Contexts/InterceptContext.d.ts +0 -0
  95. /package/{build → src}/Types/Contexts/InterceptContext.js +0 -0
  96. /package/{build → src}/Types/Contexts/TerminateContext.d.ts +0 -0
  97. /package/{build → src}/Types/Contexts/TerminateContext.js +0 -0
  98. /package/{build → src}/Types/Controllers/ControllerOptions.d.ts +0 -0
  99. /package/{build → src}/Types/Controllers/ControllerOptions.js +0 -0
  100. /package/{build → src}/Types/Middlewares/InterceptorRouteType.d.ts +0 -0
  101. /package/{build → src}/Types/Middlewares/InterceptorRouteType.js +0 -0
  102. /package/{build → src}/Types/Middlewares/MiddlewareHandler.d.ts +0 -0
  103. /package/{build → src}/Types/Middlewares/MiddlewareHandler.js +0 -0
  104. /package/{build → src}/Types/Middlewares/MiddlewareOptions.d.ts +0 -0
  105. /package/{build → src}/Types/Middlewares/MiddlewareOptions.js +0 -0
  106. /package/{build → src}/Types/Middlewares/MiddlewareRouteType.d.ts +0 -0
  107. /package/{build → src}/Types/Middlewares/MiddlewareRouteType.js +0 -0
  108. /package/{build → src}/Types/Middlewares/TerminatorRouteType.d.ts +0 -0
  109. /package/{build → src}/Types/Middlewares/TerminatorRouteType.js +0 -0
  110. /package/{build → src}/Types/Router/RouteHandler.d.ts +0 -0
  111. /package/{build → src}/Types/Router/RouteHandler.js +0 -0
  112. /package/{build → src}/Types/Router/RouteJSON.d.ts +0 -0
  113. /package/{build → src}/Types/Router/RouteJSON.js +0 -0
  114. /package/{build → src}/Types/Router/RouteResourceTypes.d.ts +0 -0
  115. /package/{build → src}/Types/Router/RouteResourceTypes.js +0 -0
  116. /package/{build → src}/index.d.ts +0 -0
  117. /package/{build → src}/index.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "The Athenna Http server. Built on top of fastify.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -24,38 +24,37 @@
24
24
  "esm"
25
25
  ],
26
26
  "scripts": {
27
- "build": "sh node bin/build.ts",
28
- "artisan": "sh node bin/artisan.ts",
29
- "lint:fix": "eslint \"{src,tests}/**/*.ts\" --fix",
27
+ "lint:fix": "eslint \"{bin,src,tests}/**/*.ts\" --fix",
30
28
  "test": "npm run --silent lint:fix && sh node bin/test.ts",
31
29
  "test:debug": "cross-env DEBUG=api:* sh node --inspect bin/test.ts",
32
30
  "test:coverage": "c8 npm run --silent test"
33
31
  },
34
32
  "files": [
35
- "build/*.js",
36
- "build/*.d.ts",
37
- "build/**/*.js",
38
- "build/**/*.d.ts",
39
- "templates/*",
40
- "templates/**/*"
33
+ "src/*.js",
34
+ "src/*.d.ts",
35
+ "src/**/*.js",
36
+ "src/**/*.d.ts",
37
+ "templates"
41
38
  ],
42
39
  "type": "module",
43
- "main": "./build/index.js",
44
- "types": "./build/index.d.ts",
40
+ "main": "./src/index.js",
41
+ "types": "./src/index.d.ts",
45
42
  "exports": {
46
- ".": "./build/index.js",
47
- "./testing/plugins": "./build/Testing/Plugins/index.js",
48
- "./providers/HttpRouteProvider": "./build/Providers/HttpRouteProvider.js",
49
- "./providers/HttpServerProvider": "./build/Providers/HttpServerProvider.js",
50
- "./commands/RouteListCommand": "./build/Commands/RouteListCommand.js",
51
- "./commands/MakeControllerCommand": "./build/Commands/MakeControllerCommand.js",
52
- "./commands/MakeMiddlewareCommand": "./build/Commands/MakeMiddlewareCommand.js",
53
- "./commands/MakeTerminatorCommand": "./build/Commands/MakeTerminatorCommand.js",
54
- "./commands/MakeInterceptorCommand": "./build/Commands/MakeInterceptorCommand.js"
43
+ ".": "./src/index.js",
44
+ "./testing/plugins": "./src/Testing/Plugins/index.js",
45
+ "./providers/HttpRouteProvider": "./src/Providers/HttpRouteProvider.js",
46
+ "./providers/HttpServerProvider": "./src/Providers/HttpServerProvider.js",
47
+ "./commands/RouteListCommand": "./src/Commands/RouteListCommand.js",
48
+ "./commands/MakeControllerCommand": "./src/Commands/MakeControllerCommand.js",
49
+ "./commands/MakeMiddlewareCommand": "./src/Commands/MakeMiddlewareCommand.js",
50
+ "./commands/MakeTerminatorCommand": "./src/Commands/MakeTerminatorCommand.js",
51
+ "./commands/MakeInterceptorCommand": "./src/Commands/MakeInterceptorCommand.js"
55
52
  },
56
53
  "imports": {
57
- "#src/*": "./build/*.js",
58
- "#src": "./build/index.js",
54
+ "#bin/*": "./bin/*.js",
55
+ "#bin": "./bin/index.js",
56
+ "#src/*": "./src/*.js",
57
+ "#src": "./src/index.js",
59
58
  "#tests/*": "./tests/*.js",
60
59
  "#tests": "./tests/index.js"
61
60
  },
@@ -63,13 +62,13 @@
63
62
  "fastify": "^4.13.0"
64
63
  },
65
64
  "devDependencies": {
66
- "@athenna/artisan": "^3.3.3",
67
- "@athenna/common": "^3.4.2",
68
- "@athenna/config": "^3.2.1",
69
- "@athenna/ioc": "^3.1.6",
70
- "@athenna/logger": "^3.1.6",
71
- "@athenna/test": "^3.2.2",
72
- "@athenna/view": "^3.0.5",
65
+ "@athenna/artisan": "^3.3.6",
66
+ "@athenna/common": "^3.4.4",
67
+ "@athenna/config": "^3.2.3",
68
+ "@athenna/ioc": "^3.1.8",
69
+ "@athenna/logger": "^3.1.7",
70
+ "@athenna/test": "^3.2.3",
71
+ "@athenna/view": "^3.0.6",
73
72
  "@fastify/cors": "^8.1.1",
74
73
  "@fastify/helmet": "^10.0.2",
75
74
  "@fastify/rate-limit": "^7.5.0",
@@ -8,6 +8,7 @@
8
8
  */
9
9
  /// <reference types="node" resolution-mode="require"/>
10
10
  /// <reference types="node/http.js" />
11
+ /// <reference types="node_modules/got/dist/source/core/timed-out.js" />
11
12
  import { InterceptHandler, TerminateHandler } from '#src/Types/Middlewares/MiddlewareHandler';
12
13
  import { RequestHandler } from '#src/Types/Contexts/Context';
13
14
  import { ErrorHandler } from '#src/Types/Contexts/ErrorContext';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes