@rdyl/node-koa-controller 0.3.1 → 0.3.2

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # 0.3.0 (2025-08-29)
1
+ ## 0.3.1 (2025-08-29)
2
2
 
3
3
 
4
4
 
package/dist/utils.js CHANGED
@@ -92,6 +92,9 @@ function RunningLogsHandler(ctx, next) {
92
92
  _a.label = 1;
93
93
  case 1:
94
94
  _a.trys.push([1, 3, , 4]);
95
+ return [4 /*yield*/, next()];
96
+ case 2:
97
+ _a.sent();
95
98
  duration = Date.now() - start;
96
99
  status_1 = ctx.response.status;
97
100
  method = ctx.method;
@@ -115,9 +118,6 @@ function RunningLogsHandler(ctx, next) {
115
118
  dText = chalk_1.default.yellow("".concat(duration, "ms"));
116
119
  }
117
120
  console.log("- [".concat(dateTime, " | ").concat(dText, "] ").concat(chalk_1.default.magenta(method), " ").concat(ctx.url, " ").concat(statusColor(status_1)));
118
- return [4 /*yield*/, next()];
119
- case 2:
120
- _a.sent();
121
121
  return [3 /*break*/, 4];
122
122
  case 3:
123
123
  err_1 = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/node-koa-controller",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",