@nocobase/logger 1.9.0-beta.9 → 2.0.0-alpha.3

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.
@@ -68,6 +68,7 @@ const requestLogger = /* @__PURE__ */ __name((appName, requestLogger2, options)
68
68
  app: appName,
69
69
  reqId
70
70
  });
71
+ ctx.res.setHeader("X-Request-Id", reqId);
71
72
  let error;
72
73
  try {
73
74
  await next();
@@ -96,7 +97,6 @@ const requestLogger = /* @__PURE__ */ __name((appName, requestLogger2, options)
96
97
  requestLogger2.info(info);
97
98
  }
98
99
  }
99
- ctx.res.setHeader("X-Request-Id", reqId);
100
100
  if (error) {
101
101
  throw error;
102
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/logger",
3
- "version": "1.9.0-beta.9",
3
+ "version": "2.0.0-alpha.3",
4
4
  "description": "nocobase logging library",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
@@ -18,5 +18,5 @@
18
18
  "winston-daily-rotate-file": "^5.0.0",
19
19
  "winston-transport": "^4.7.0"
20
20
  },
21
- "gitHead": "b44464f1d1bbc96022d0f622e0a2f1d7e8d7142f"
21
+ "gitHead": "8efc23aa78058d871e98a91419f3c4a61762cc15"
22
22
  }