@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.
- package/package.json +29 -30
- 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.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
|
-
"
|
|
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
|
-
"./providers/HttpRouteProvider": "./
|
|
49
|
-
"./providers/HttpServerProvider": "./
|
|
50
|
-
"./commands/RouteListCommand": "./
|
|
51
|
-
"./commands/MakeControllerCommand": "./
|
|
52
|
-
"./commands/MakeMiddlewareCommand": "./
|
|
53
|
-
"./commands/MakeTerminatorCommand": "./
|
|
54
|
-
"./commands/MakeInterceptorCommand": "./
|
|
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
|
-
"#
|
|
58
|
-
"#
|
|
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.
|
|
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.
|
|
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
|
|
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
|