@athenna/http 3.4.4 → 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 +14 -15
- 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>",
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"fastify": "^4.13.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@athenna/artisan": "^3.
|
|
68
|
-
"@athenna/common": "^3.
|
|
69
|
-
"@athenna/config": "^3.
|
|
70
|
-
"@athenna/ioc": "^3.
|
|
71
|
-
"@athenna/logger": "^3.
|
|
72
|
-
"@athenna/test": "^3.
|
|
73
|
-
"@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",
|
|
74
74
|
"@fastify/cors": "^8.1.1",
|
|
75
75
|
"@fastify/helmet": "^10.0.2",
|
|
76
76
|
"@fastify/rate-limit": "^7.5.0",
|
|
@@ -93,15 +93,15 @@
|
|
|
93
93
|
"@types/pluralize": "^0.0.29",
|
|
94
94
|
"@types/sinon": "^10.0.13",
|
|
95
95
|
"@types/uuid": "^9.0.0",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
97
|
-
"@typescript-eslint/parser": "^5.
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
97
|
+
"@typescript-eslint/parser": "^5.56.0",
|
|
98
98
|
"c8": "^7.12.0",
|
|
99
99
|
"cls-rtracer": "^2.6.2",
|
|
100
100
|
"commitizen": "^4.2.6",
|
|
101
101
|
"cross-env": "^7.0.3",
|
|
102
102
|
"cz-conventional-changelog": "^3.3.0",
|
|
103
|
-
"eslint": "^8.
|
|
104
|
-
"eslint-config-prettier": "^8.
|
|
103
|
+
"eslint": "^8.36.0",
|
|
104
|
+
"eslint-config-prettier": "^8.8.0",
|
|
105
105
|
"eslint-config-standard": "^17.0.0",
|
|
106
106
|
"eslint-plugin-import": "^2.27.5",
|
|
107
107
|
"eslint-plugin-n": "^15.6.1",
|
|
@@ -111,12 +111,11 @@
|
|
|
111
111
|
"js-yaml": "^4.1.0",
|
|
112
112
|
"lint-staged": "^12.5.0",
|
|
113
113
|
"minimist": "^1.2.7",
|
|
114
|
-
"prettier": "^2.8.
|
|
114
|
+
"prettier": "^2.8.7",
|
|
115
115
|
"reflect-metadata": "^0.1.13",
|
|
116
|
-
"rimraf": "^3.0.2",
|
|
117
116
|
"sinon": "^15.0.2",
|
|
118
117
|
"ts-node": "^10.9.1",
|
|
119
|
-
"typescript": "^
|
|
118
|
+
"typescript": "^5.0.2"
|
|
120
119
|
},
|
|
121
120
|
"c8": {
|
|
122
121
|
"all": true,
|
|
@@ -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
|
*/
|