@athenna/http 3.4.3 → 3.5.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.
- package/package.json +22 -24
- package/src/Handlers/FastifyHandler.d.ts +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athenna/http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
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>",
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
"exports": {
|
|
43
43
|
".": "./src/index.js",
|
|
44
44
|
"./testing/plugins": "./src/Testing/Plugins/index.js",
|
|
45
|
+
"./kernels/HttpKernel": "./src/Kernels/HttpKernel.js",
|
|
46
|
+
"./handlers/HttpExceptionHandler": "./src/Handlers/HttpExceptionHandler.js",
|
|
45
47
|
"./providers/HttpRouteProvider": "./src/Providers/HttpRouteProvider.js",
|
|
46
48
|
"./providers/HttpServerProvider": "./src/Providers/HttpServerProvider.js",
|
|
47
49
|
"./commands/RouteListCommand": "./src/Commands/RouteListCommand.js",
|
|
@@ -62,13 +64,13 @@
|
|
|
62
64
|
"fastify": "^4.13.0"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
|
-
"@athenna/artisan": "^3.
|
|
66
|
-
"@athenna/common": "^3.
|
|
67
|
-
"@athenna/config": "^3.
|
|
68
|
-
"@athenna/ioc": "^3.
|
|
69
|
-
"@athenna/logger": "^3.
|
|
70
|
-
"@athenna/test": "^3.
|
|
71
|
-
"@athenna/view": "^3.0
|
|
67
|
+
"@athenna/artisan": "^3.4.0",
|
|
68
|
+
"@athenna/common": "^3.5.0",
|
|
69
|
+
"@athenna/config": "^3.3.0",
|
|
70
|
+
"@athenna/ioc": "^3.2.0",
|
|
71
|
+
"@athenna/logger": "^3.2.0",
|
|
72
|
+
"@athenna/test": "^3.3.0",
|
|
73
|
+
"@athenna/view": "^3.1.0",
|
|
72
74
|
"@fastify/cors": "^8.1.1",
|
|
73
75
|
"@fastify/helmet": "^10.0.2",
|
|
74
76
|
"@fastify/rate-limit": "^7.5.0",
|
|
@@ -91,15 +93,15 @@
|
|
|
91
93
|
"@types/pluralize": "^0.0.29",
|
|
92
94
|
"@types/sinon": "^10.0.13",
|
|
93
95
|
"@types/uuid": "^9.0.0",
|
|
94
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
95
|
-
"@typescript-eslint/parser": "^5.
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
97
|
+
"@typescript-eslint/parser": "^5.56.0",
|
|
96
98
|
"c8": "^7.12.0",
|
|
97
99
|
"cls-rtracer": "^2.6.2",
|
|
98
100
|
"commitizen": "^4.2.6",
|
|
99
101
|
"cross-env": "^7.0.3",
|
|
100
102
|
"cz-conventional-changelog": "^3.3.0",
|
|
101
|
-
"eslint": "^8.
|
|
102
|
-
"eslint-config-prettier": "^8.
|
|
103
|
+
"eslint": "^8.36.0",
|
|
104
|
+
"eslint-config-prettier": "^8.8.0",
|
|
103
105
|
"eslint-config-standard": "^17.0.0",
|
|
104
106
|
"eslint-plugin-import": "^2.27.5",
|
|
105
107
|
"eslint-plugin-n": "^15.6.1",
|
|
@@ -109,12 +111,11 @@
|
|
|
109
111
|
"js-yaml": "^4.1.0",
|
|
110
112
|
"lint-staged": "^12.5.0",
|
|
111
113
|
"minimist": "^1.2.7",
|
|
112
|
-
"prettier": "^2.8.
|
|
114
|
+
"prettier": "^2.8.7",
|
|
113
115
|
"reflect-metadata": "^0.1.13",
|
|
114
|
-
"rimraf": "^3.0.2",
|
|
115
116
|
"sinon": "^15.0.2",
|
|
116
117
|
"ts-node": "^10.9.1",
|
|
117
|
-
"typescript": "^
|
|
118
|
+
"typescript": "^5.0.2"
|
|
118
119
|
},
|
|
119
120
|
"c8": {
|
|
120
121
|
"all": true,
|
|
@@ -214,15 +215,12 @@
|
|
|
214
215
|
}
|
|
215
216
|
},
|
|
216
217
|
"athenna": {
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
"terminator": "./templates/terminator.edge",
|
|
224
|
-
"command": "@athenna/artisan/templates/command.edge"
|
|
225
|
-
}
|
|
218
|
+
"templates": {
|
|
219
|
+
"controller": "./templates/controller.edge",
|
|
220
|
+
"interceptor": "./templates/interceptor.edge",
|
|
221
|
+
"middleware": "./templates/middleware.edge",
|
|
222
|
+
"terminator": "./templates/terminator.edge",
|
|
223
|
+
"command": "@athenna/artisan/templates/command.edge"
|
|
226
224
|
},
|
|
227
225
|
"preloads": [],
|
|
228
226
|
"services": [],
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
* For the full copyright and license information, please view the LICENSE
|
|
7
7
|
* file that was distributed with this source code.
|
|
8
8
|
*/
|
|
9
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
10
|
-
/// <reference types="node/http.js" />
|
|
11
|
-
/// <reference types="node_modules/got/dist/source/core/timed-out.js" />
|
|
12
9
|
import { InterceptHandler, TerminateHandler } from '#src/Types/Middlewares/MiddlewareHandler';
|
|
13
10
|
import { RequestHandler } from '#src/Types/Contexts/Context';
|
|
14
11
|
import { ErrorHandler } from '#src/Types/Contexts/ErrorContext';
|
|
@@ -22,7 +19,7 @@ export declare class FastifyHandler {
|
|
|
22
19
|
/**
|
|
23
20
|
* Just and alises for the request handler.
|
|
24
21
|
*/
|
|
25
|
-
static handle(handler: RequestHandler): RouteHandlerMethod
|
|
22
|
+
static handle(handler: RequestHandler): RouteHandlerMethod;
|
|
26
23
|
/**
|
|
27
24
|
* Parse the fastify onSend hook to an Athenna intercept handler.
|
|
28
25
|
*/
|