framework-do-dede 0.0.57 → 0.0.58
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Registry } from "../di/registry";
|
|
2
2
|
import { InternalServerError, ServerError } from "../http";
|
|
3
|
-
import chalk from "chalk";
|
|
4
3
|
export default class ControllerHandler {
|
|
5
4
|
constructor(httpServer, port) {
|
|
6
5
|
for (const { instance, instanceMethod, middlewares, method, route, statusCode, params, query, validation, offLogs, metricsHandlers } of this.registryControllers()) {
|
|
@@ -32,11 +31,11 @@ export default class ControllerHandler {
|
|
|
32
31
|
route: requestMetrics.route,
|
|
33
32
|
handler: requestMetrics.handler
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
if (!offLogs) {
|
|
35
|
+
console.log('\x1b[35m%s\x1b[0m', `🏳️ [LOG] Init: "${logger.handler.instance}.${logger.handler.method}:"`);
|
|
36
|
+
console.dir('\x1b[35m%s\x1b[0m', logger);
|
|
37
|
+
// - ${JSON.stringify(logger)}`)
|
|
38
|
+
}
|
|
40
39
|
requestMetrics.startTime = performance.now();
|
|
41
40
|
const filterParams = this.filter(input.params, params);
|
|
42
41
|
const queryParams = this.filter(input.query, query);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework-do-dede",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"typescript": "^5.8.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"chalk": "^5.4.1",
|
|
54
53
|
"reflect-metadata": "^0.2.2"
|
|
55
54
|
}
|
|
56
55
|
}
|