framework-do-dede 0.0.55 → 0.0.57

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