@athenna/http 3.8.0 → 3.10.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "3.8.0",
3
+ "version": "3.10.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>",
@@ -61,42 +61,25 @@
61
61
  "#tests": "./tests/index.js"
62
62
  },
63
63
  "dependencies": {
64
- "fastify": "^4.14.0"
64
+ "fastify": "^4.15.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@athenna/artisan": "^3.7.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",
67
+ "@athenna/artisan": "^3.9.0",
68
+ "@athenna/common": "^3.6.0",
69
+ "@athenna/config": "^3.6.0",
70
+ "@athenna/ioc": "^3.4.0",
71
+ "@athenna/logger": "^3.4.0",
72
+ "@athenna/test": "^3.6.0",
73
+ "@athenna/view": "^3.3.0",
74
74
  "@fastify/cors": "^8.1.1",
75
75
  "@fastify/helmet": "^10.0.2",
76
76
  "@fastify/rate-limit": "^7.5.0",
77
77
  "@fastify/swagger": "^8.1.0",
78
78
  "@fastify/swagger-ui": "^1.1.0",
79
- "@japa/assert": "^1.3.6",
80
- "@japa/run-failed-tests": "^1.1.0",
81
- "@japa/runner": "^2.2.2",
82
- "@japa/spec-reporter": "^1.3.2",
83
79
  "@swc/core": "^1.3.27",
84
- "@types/bytes": "^3.1.1",
85
- "@types/callsite": "^1.0.31",
86
- "@types/columnify": "^1.5.1",
87
- "@types/debug": "^4.1.7",
88
- "@types/figlet": "^1.5.5",
89
- "@types/inquirer": "^9.0.3",
90
- "@types/kind-of": "^6.0.0",
91
- "@types/lodash": "^4.14.191",
92
- "@types/ms": "^0.7.31",
93
- "@types/pluralize": "^0.0.29",
94
- "@types/sinon": "^10.0.13",
95
- "@types/uuid": "^9.0.0",
96
80
  "@typescript-eslint/eslint-plugin": "^5.56.0",
97
81
  "@typescript-eslint/parser": "^5.56.0",
98
82
  "c8": "^7.12.0",
99
- "cls-rtracer": "^2.6.2",
100
83
  "commitizen": "^4.2.6",
101
84
  "cross-env": "^7.0.3",
102
85
  "cz-conventional-changelog": "^3.3.0",
@@ -108,12 +91,9 @@
108
91
  "eslint-plugin-prettier": "^4.2.1",
109
92
  "eslint-plugin-promise": "^6.1.1",
110
93
  "husky": "^3.1.0",
111
- "js-yaml": "^4.1.0",
112
94
  "lint-staged": "^12.5.0",
113
- "minimist": "^1.2.7",
114
95
  "prettier": "^2.8.7",
115
96
  "reflect-metadata": "^0.1.13",
116
- "sinon": "^15.0.2",
117
97
  "ts-node": "^10.9.1",
118
98
  "typescript": "^5.0.2"
119
99
  },
@@ -171,9 +151,7 @@
171
151
  }
172
152
  ]
173
153
  },
174
- "eslintIgnore": [
175
- "build/**/*"
176
- ],
154
+ "eslintIgnore": [],
177
155
  "eslintConfig": {
178
156
  "env": {
179
157
  "es2021": true,
@@ -45,7 +45,7 @@ export class MakeControllerCommand extends BaseCommand {
45
45
  * Get the destination path for the file that will be generated.
46
46
  */
47
47
  getDestinationPath() {
48
- let destination = Config.get('rc.commands.make:controller.destination', Path.http('Controllers'));
48
+ let destination = Config.get('rc.commands.make:controller.destination', Path.controllers());
49
49
  if (!isAbsolute(destination)) {
50
50
  destination = resolve(Path.pwd(), destination);
51
51
  }
@@ -45,7 +45,7 @@ export class MakeInterceptorCommand extends BaseCommand {
45
45
  * Get the destination path for the file that will be generated.
46
46
  */
47
47
  getDestinationPath() {
48
- let destination = Config.get('rc.commands.make:interceptor.destination', Path.http('Interceptors'));
48
+ let destination = Config.get('rc.commands.make:interceptor.destination', Path.interceptors());
49
49
  if (!isAbsolute(destination)) {
50
50
  destination = resolve(Path.pwd(), destination);
51
51
  }
@@ -45,7 +45,7 @@ export class MakeMiddlewareCommand extends BaseCommand {
45
45
  * Get the destination path for the file that will be generated.
46
46
  */
47
47
  getDestinationPath() {
48
- let destination = Config.get('rc.commands.make:middleware.destination', Path.http('Middlewares'));
48
+ let destination = Config.get('rc.commands.make:middleware.destination', Path.middlewares());
49
49
  if (!isAbsolute(destination)) {
50
50
  destination = resolve(Path.pwd(), destination);
51
51
  }
@@ -45,7 +45,7 @@ export class MakeTerminatorCommand extends BaseCommand {
45
45
  * Get the destination path for the file that will be generated.
46
46
  */
47
47
  getDestinationPath() {
48
- let destination = Config.get('rc.commands.make:terminator.destination', Path.http('Terminators'));
48
+ let destination = Config.get('rc.commands.make:terminator.destination', Path.terminators());
49
49
  if (!isAbsolute(destination)) {
50
50
  destination = resolve(Path.pwd(), destination);
51
51
  }
@@ -27,7 +27,7 @@ export declare class HttpKernel {
27
27
  /**
28
28
  * Register the cls-rtracer plugin in the Http server.
29
29
  */
30
- registerRTracer(): Promise<void>;
30
+ registerRTracer(trace?: boolean): Promise<void>;
31
31
  /**
32
32
  * Register the global log terminator in the Http server.
33
33
  */
@@ -61,7 +61,10 @@ export class HttpKernel {
61
61
  /**
62
62
  * Register the cls-rtracer plugin in the Http server.
63
63
  */
64
- async registerRTracer() {
64
+ async registerRTracer(trace) {
65
+ if (trace === false) {
66
+ return;
67
+ }
65
68
  if (!rTracerPlugin) {
66
69
  return;
67
70
  }