@domain.js/main 0.7.12 → 0.7.14

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.
@@ -76,6 +76,7 @@ function Utils(cnf) {
76
76
  * 构造profile参数
77
77
  */
78
78
  makeProfile(req, method, customFn) {
79
+ var _a;
79
80
  const obj = {
80
81
  verb: req.method,
81
82
  clientIp: utils.clientIp(req),
@@ -86,7 +87,8 @@ function Utils(cnf) {
86
87
  requestId: req.id(),
87
88
  method,
88
89
  type: "user",
89
- needStream: req.headers["response-event-stream"] === "yes",
90
+ needStream: req.headers["response-event-stream"] === "yes" ||
91
+ ((_a = req.headers["accept"]) === null || _a === void 0 ? void 0 : _a.includes("text/event-stream")),
90
92
  extra: {},
91
93
  };
92
94
  if (req.headers["x-auth-user-type"]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.7.12",
3
+ "version": "0.7.14",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -77,7 +77,7 @@
77
77
  "mysql2": "^2.3.3",
78
78
  "restify": "^11.1.0",
79
79
  "restify-errors": "^8.0.2",
80
- "sequelize": "^6.37.3",
80
+ "sequelize": "^6.37.5",
81
81
  "socket.io": "^4.4.1",
82
82
  "type-fest": "^2.8.0",
83
83
  "uuid": "^8.3.2",