@athenna/http 3.4.2 → 3.4.4
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/package.json +37 -39
- package/{build → src}/Handlers/FastifyHandler.d.ts +1 -0
- /package/{build → src}/Commands/MakeControllerCommand.d.ts +0 -0
- /package/{build → src}/Commands/MakeControllerCommand.js +0 -0
- /package/{build → src}/Commands/MakeInterceptorCommand.d.ts +0 -0
- /package/{build → src}/Commands/MakeInterceptorCommand.js +0 -0
- /package/{build → src}/Commands/MakeMiddlewareCommand.d.ts +0 -0
- /package/{build → src}/Commands/MakeMiddlewareCommand.js +0 -0
- /package/{build → src}/Commands/MakeTerminatorCommand.d.ts +0 -0
- /package/{build → src}/Commands/MakeTerminatorCommand.js +0 -0
- /package/{build → src}/Commands/RouteListCommand.d.ts +0 -0
- /package/{build → src}/Commands/RouteListCommand.js +0 -0
- /package/{build → src}/Context/Request.d.ts +0 -0
- /package/{build → src}/Context/Request.js +0 -0
- /package/{build → src}/Context/Response.d.ts +0 -0
- /package/{build → src}/Context/Response.js +0 -0
- /package/{build → src}/Contracts/InterceptorContract.d.ts +0 -0
- /package/{build → src}/Contracts/InterceptorContract.js +0 -0
- /package/{build → src}/Contracts/MiddlewareContract.d.ts +0 -0
- /package/{build → src}/Contracts/MiddlewareContract.js +0 -0
- /package/{build → src}/Contracts/TerminatorContract.d.ts +0 -0
- /package/{build → src}/Contracts/TerminatorContract.js +0 -0
- /package/{build → src}/Decorators/Controller.d.ts +0 -0
- /package/{build → src}/Decorators/Controller.js +0 -0
- /package/{build → src}/Decorators/Interceptor.d.ts +0 -0
- /package/{build → src}/Decorators/Interceptor.js +0 -0
- /package/{build → src}/Decorators/Middleware.d.ts +0 -0
- /package/{build → src}/Decorators/Middleware.js +0 -0
- /package/{build → src}/Decorators/Terminator.d.ts +0 -0
- /package/{build → src}/Decorators/Terminator.js +0 -0
- /package/{build → src}/Exceptions/BadGatewayException.d.ts +0 -0
- /package/{build → src}/Exceptions/BadGatewayException.js +0 -0
- /package/{build → src}/Exceptions/BadRequestException.d.ts +0 -0
- /package/{build → src}/Exceptions/BadRequestException.js +0 -0
- /package/{build → src}/Exceptions/ForbiddenException.d.ts +0 -0
- /package/{build → src}/Exceptions/ForbiddenException.js +0 -0
- /package/{build → src}/Exceptions/HttpException.d.ts +0 -0
- /package/{build → src}/Exceptions/HttpException.js +0 -0
- /package/{build → src}/Exceptions/InternalServerException.d.ts +0 -0
- /package/{build → src}/Exceptions/InternalServerException.js +0 -0
- /package/{build → src}/Exceptions/MethodNotAllowedException.d.ts +0 -0
- /package/{build → src}/Exceptions/MethodNotAllowedException.js +0 -0
- /package/{build → src}/Exceptions/NotAcceptableException.d.ts +0 -0
- /package/{build → src}/Exceptions/NotAcceptableException.js +0 -0
- /package/{build → src}/Exceptions/NotFoundException.d.ts +0 -0
- /package/{build → src}/Exceptions/NotFoundException.js +0 -0
- /package/{build → src}/Exceptions/NotImplementedException.d.ts +0 -0
- /package/{build → src}/Exceptions/NotImplementedException.js +0 -0
- /package/{build → src}/Exceptions/PayloadTooLargeException.d.ts +0 -0
- /package/{build → src}/Exceptions/PayloadTooLargeException.js +0 -0
- /package/{build → src}/Exceptions/RequestTimeoutException.d.ts +0 -0
- /package/{build → src}/Exceptions/RequestTimeoutException.js +0 -0
- /package/{build → src}/Exceptions/ServiceUnavailableException.d.ts +0 -0
- /package/{build → src}/Exceptions/ServiceUnavailableException.js +0 -0
- /package/{build → src}/Exceptions/UnauthorizedException.d.ts +0 -0
- /package/{build → src}/Exceptions/UnauthorizedException.js +0 -0
- /package/{build → src}/Exceptions/UndefinedMethodException.d.ts +0 -0
- /package/{build → src}/Exceptions/UndefinedMethodException.js +0 -0
- /package/{build → src}/Exceptions/UnprocessableEntityException.d.ts +0 -0
- /package/{build → src}/Exceptions/UnprocessableEntityException.js +0 -0
- /package/{build → src}/Facades/Route.d.ts +0 -0
- /package/{build → src}/Facades/Route.js +0 -0
- /package/{build → src}/Facades/Server.d.ts +0 -0
- /package/{build → src}/Facades/Server.js +0 -0
- /package/{build → src}/Handlers/FastifyHandler.js +0 -0
- /package/{build → src}/Handlers/HttpExceptionHandler.d.ts +0 -0
- /package/{build → src}/Handlers/HttpExceptionHandler.js +0 -0
- /package/{build → src}/Kernels/HttpKernel.d.ts +0 -0
- /package/{build → src}/Kernels/HttpKernel.js +0 -0
- /package/{build → src}/Providers/HttpRouteProvider.d.ts +0 -0
- /package/{build → src}/Providers/HttpRouteProvider.js +0 -0
- /package/{build → src}/Providers/HttpServerProvider.d.ts +0 -0
- /package/{build → src}/Providers/HttpServerProvider.js +0 -0
- /package/{build → src}/Router/Route.d.ts +0 -0
- /package/{build → src}/Router/Route.js +0 -0
- /package/{build → src}/Router/RouteGroup.d.ts +0 -0
- /package/{build → src}/Router/RouteGroup.js +0 -0
- /package/{build → src}/Router/RouteResource.d.ts +0 -0
- /package/{build → src}/Router/RouteResource.js +0 -0
- /package/{build → src}/Router/Router.d.ts +0 -0
- /package/{build → src}/Router/Router.js +0 -0
- /package/{build → src}/Server/ServerImpl.d.ts +0 -0
- /package/{build → src}/Server/ServerImpl.js +0 -0
- /package/{build → src}/Testing/Plugins/Request/TestRequest.d.ts +0 -0
- /package/{build → src}/Testing/Plugins/Request/TestRequest.js +0 -0
- /package/{build → src}/Testing/Plugins/Request/TestResponse.d.ts +0 -0
- /package/{build → src}/Testing/Plugins/Request/TestResponse.js +0 -0
- /package/{build → src}/Testing/Plugins/index.d.ts +0 -0
- /package/{build → src}/Testing/Plugins/index.js +0 -0
- /package/{build → src}/Types/Contexts/Context.d.ts +0 -0
- /package/{build → src}/Types/Contexts/Context.js +0 -0
- /package/{build → src}/Types/Contexts/ErrorContext.d.ts +0 -0
- /package/{build → src}/Types/Contexts/ErrorContext.js +0 -0
- /package/{build → src}/Types/Contexts/InterceptContext.d.ts +0 -0
- /package/{build → src}/Types/Contexts/InterceptContext.js +0 -0
- /package/{build → src}/Types/Contexts/TerminateContext.d.ts +0 -0
- /package/{build → src}/Types/Contexts/TerminateContext.js +0 -0
- /package/{build → src}/Types/Controllers/ControllerOptions.d.ts +0 -0
- /package/{build → src}/Types/Controllers/ControllerOptions.js +0 -0
- /package/{build → src}/Types/Middlewares/InterceptorRouteType.d.ts +0 -0
- /package/{build → src}/Types/Middlewares/InterceptorRouteType.js +0 -0
- /package/{build → src}/Types/Middlewares/MiddlewareHandler.d.ts +0 -0
- /package/{build → src}/Types/Middlewares/MiddlewareHandler.js +0 -0
- /package/{build → src}/Types/Middlewares/MiddlewareOptions.d.ts +0 -0
- /package/{build → src}/Types/Middlewares/MiddlewareOptions.js +0 -0
- /package/{build → src}/Types/Middlewares/MiddlewareRouteType.d.ts +0 -0
- /package/{build → src}/Types/Middlewares/MiddlewareRouteType.js +0 -0
- /package/{build → src}/Types/Middlewares/TerminatorRouteType.d.ts +0 -0
- /package/{build → src}/Types/Middlewares/TerminatorRouteType.js +0 -0
- /package/{build → src}/Types/Router/RouteHandler.d.ts +0 -0
- /package/{build → src}/Types/Router/RouteHandler.js +0 -0
- /package/{build → src}/Types/Router/RouteJSON.d.ts +0 -0
- /package/{build → src}/Types/Router/RouteJSON.js +0 -0
- /package/{build → src}/Types/Router/RouteResourceTypes.d.ts +0 -0
- /package/{build → src}/Types/Router/RouteResourceTypes.js +0 -0
- /package/{build → src}/index.d.ts +0 -0
- /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.
|
|
3
|
+
"version": "3.4.4",
|
|
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,39 @@
|
|
|
24
24
|
"esm"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"
|
|
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
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
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": "./
|
|
44
|
-
"types": "./
|
|
40
|
+
"main": "./src/index.js",
|
|
41
|
+
"types": "./src/index.d.ts",
|
|
45
42
|
"exports": {
|
|
46
|
-
".": "./
|
|
47
|
-
"./testing/plugins": "./
|
|
48
|
-
"./
|
|
49
|
-
"./
|
|
50
|
-
"./
|
|
51
|
-
"./
|
|
52
|
-
"./commands/
|
|
53
|
-
"./commands/
|
|
54
|
-
"./commands/
|
|
43
|
+
".": "./src/index.js",
|
|
44
|
+
"./testing/plugins": "./src/Testing/Plugins/index.js",
|
|
45
|
+
"./kernels/HttpKernel": "./src/Kernels/HttpKernel.js",
|
|
46
|
+
"./handlers/HttpExceptionHandler": "./src/Handlers/HttpExceptionHandler.js",
|
|
47
|
+
"./providers/HttpRouteProvider": "./src/Providers/HttpRouteProvider.js",
|
|
48
|
+
"./providers/HttpServerProvider": "./src/Providers/HttpServerProvider.js",
|
|
49
|
+
"./commands/RouteListCommand": "./src/Commands/RouteListCommand.js",
|
|
50
|
+
"./commands/MakeControllerCommand": "./src/Commands/MakeControllerCommand.js",
|
|
51
|
+
"./commands/MakeMiddlewareCommand": "./src/Commands/MakeMiddlewareCommand.js",
|
|
52
|
+
"./commands/MakeTerminatorCommand": "./src/Commands/MakeTerminatorCommand.js",
|
|
53
|
+
"./commands/MakeInterceptorCommand": "./src/Commands/MakeInterceptorCommand.js"
|
|
55
54
|
},
|
|
56
55
|
"imports": {
|
|
57
|
-
"#
|
|
58
|
-
"#
|
|
56
|
+
"#bin/*": "./bin/*.js",
|
|
57
|
+
"#bin": "./bin/index.js",
|
|
58
|
+
"#src/*": "./src/*.js",
|
|
59
|
+
"#src": "./src/index.js",
|
|
59
60
|
"#tests/*": "./tests/*.js",
|
|
60
61
|
"#tests": "./tests/index.js"
|
|
61
62
|
},
|
|
@@ -63,13 +64,13 @@
|
|
|
63
64
|
"fastify": "^4.13.0"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
|
-
"@athenna/artisan": "^3.3.
|
|
67
|
-
"@athenna/common": "^3.4.
|
|
68
|
-
"@athenna/config": "^3.2.
|
|
69
|
-
"@athenna/ioc": "^3.1.
|
|
70
|
-
"@athenna/logger": "^3.1.
|
|
71
|
-
"@athenna/test": "^3.2.
|
|
72
|
-
"@athenna/view": "^3.0.
|
|
67
|
+
"@athenna/artisan": "^3.3.8",
|
|
68
|
+
"@athenna/common": "^3.4.6",
|
|
69
|
+
"@athenna/config": "^3.2.5",
|
|
70
|
+
"@athenna/ioc": "^3.1.8",
|
|
71
|
+
"@athenna/logger": "^3.1.7",
|
|
72
|
+
"@athenna/test": "^3.2.3",
|
|
73
|
+
"@athenna/view": "^3.0.7",
|
|
73
74
|
"@fastify/cors": "^8.1.1",
|
|
74
75
|
"@fastify/helmet": "^10.0.2",
|
|
75
76
|
"@fastify/rate-limit": "^7.5.0",
|
|
@@ -215,15 +216,12 @@
|
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
"athenna": {
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"terminator": "./templates/terminator.edge",
|
|
225
|
-
"command": "@athenna/artisan/templates/command.edge"
|
|
226
|
-
}
|
|
219
|
+
"templates": {
|
|
220
|
+
"controller": "./templates/controller.edge",
|
|
221
|
+
"interceptor": "./templates/interceptor.edge",
|
|
222
|
+
"middleware": "./templates/middleware.edge",
|
|
223
|
+
"terminator": "./templates/terminator.edge",
|
|
224
|
+
"command": "@athenna/artisan/templates/command.edge"
|
|
227
225
|
},
|
|
228
226
|
"preloads": [],
|
|
229
227
|
"services": [],
|
|
@@ -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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{build → src}/index.js
RENAMED
|
File without changes
|