@domain.js/main 0.4.10 → 0.4.12

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.
@@ -9,6 +9,7 @@ export interface Cnf {
9
9
  [propName: string]: any;
10
10
  }
11
11
  export interface Profile {
12
+ verb?: string;
12
13
  clientIp: string;
13
14
  remoteIp: string;
14
15
  realIp: string;
@@ -158,12 +158,7 @@ function BridgeSocket(io, domain) {
158
158
  if (!client.inited)
159
159
  return;
160
160
  // 这里要取消对领域消息的监听
161
- try {
162
- return await unsubscribe(client.profile, client);
163
- }
164
- catch (e) {
165
- console.error(e);
166
- }
161
+ await unsubscribe(client.profile, client).catch(console.error);
167
162
  if (client.quit)
168
163
  client.quit();
169
164
  });
@@ -65,6 +65,7 @@ function Utils(cnf) {
65
65
  */
66
66
  makeProfile(req, method, customFn) {
67
67
  const obj = {
68
+ verb: req.method,
68
69
  clientIp: utils.clientIp(req),
69
70
  remoteIp: utils.remoteIp(req),
70
71
  realIp: utils.realIp(req),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {