@aeriajs/http 0.0.185 → 0.0.187

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/dist/log.js CHANGED
@@ -15,7 +15,7 @@ const logResponse = (response) => {
15
15
  ? types_1.METHOD_COLORS[method]
16
16
  : 'white';
17
17
  const now = new Date();
18
- let line = `[${(0, node_util_1.styleText)([statusColor], statusCode.toString())}] `;
18
+ let line = `[${(0, node_util_1.styleText)(statusColor, statusCode.toString())}] `;
19
19
  line += `[${now.toLocaleString()}] `;
20
20
  line += (0, node_util_1.styleText)([
21
21
  'bold',
package/dist/log.mjs CHANGED
@@ -9,7 +9,7 @@ export const logResponse = (response) => {
9
9
  const statusColor = statusCode >= 400 && statusCode <= 599 ? "red" : "white";
10
10
  const methodColor = method in METHOD_COLORS ? METHOD_COLORS[method] : "white";
11
11
  const now = /* @__PURE__ */ new Date();
12
- let line = `[${styleText([statusColor], statusCode.toString())}] `;
12
+ let line = `[${styleText(statusColor, statusCode.toString())}] `;
13
13
  line += `[${now.toLocaleString()}] `;
14
14
  line += styleText([
15
15
  "bold",
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@aeriajs/http",
3
- "version": "0.0.185",
3
+ "version": "0.0.187",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
+ "aeriaMain": "tests/fixtures/aeriaMain.js",
6
7
  "module": "dist/index.mjs",
7
8
  "types": "dist/index.d.ts",
8
9
  "publishConfig": {
@@ -29,10 +30,10 @@
29
30
  "mongodb": "^6.17.0"
30
31
  },
31
32
  "peerDependencies": {
32
- "@aeriajs/common": "^0.0.151",
33
- "@aeriajs/entrypoint": "^0.0.157",
34
- "@aeriajs/types": "^0.0.129",
35
- "@aeriajs/validation": "^0.0.170",
33
+ "@aeriajs/common": "^0.0.153",
34
+ "@aeriajs/entrypoint": "^0.0.159",
35
+ "@aeriajs/types": "^0.0.131",
36
+ "@aeriajs/validation": "^0.0.172",
36
37
  "mongodb": "^6.17.0"
37
38
  },
38
39
  "scripts": {