egg 3.4.0 → 3.5.0
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/lib/egg.js +3 -0
- package/package.json +2 -5
package/lib/egg.js
CHANGED
|
@@ -3,6 +3,7 @@ const path = require('path');
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const ms = require('ms');
|
|
5
5
|
const http = require('http');
|
|
6
|
+
const inspector = require('inspector');
|
|
6
7
|
const EggCore = require('egg-core').EggCore;
|
|
7
8
|
const cluster = require('cluster-client');
|
|
8
9
|
const extend = require('extend2');
|
|
@@ -113,6 +114,8 @@ class EggApplication extends EggCore {
|
|
|
113
114
|
// agent worker is leader, app workers are follower
|
|
114
115
|
isLeader: this.type === 'agent',
|
|
115
116
|
logger: this.coreLogger,
|
|
117
|
+
// debug mode does not check heartbeat
|
|
118
|
+
isCheckHeartbeat: inspector.url() === undefined,
|
|
116
119
|
});
|
|
117
120
|
const client = cluster(clientClass, options);
|
|
118
121
|
this._patchClusterClient(client);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "egg",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"tag": "next"
|
|
6
6
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"agentkeepalive": "^4.2.1",
|
|
24
24
|
"cache-content-type": "^1.0.1",
|
|
25
25
|
"circular-json-for-egg": "^1.0.0",
|
|
26
|
-
"cluster-client": "^3.
|
|
26
|
+
"cluster-client": "^3.3.0",
|
|
27
27
|
"debug": "^4.3.4",
|
|
28
28
|
"delegates": "^1.0.0",
|
|
29
29
|
"egg-cluster": "^2.0.0",
|
|
@@ -64,8 +64,6 @@
|
|
|
64
64
|
"antd": "^4.23.2",
|
|
65
65
|
"assert-extends": "^1.0.1",
|
|
66
66
|
"assert-file": "^1.0.0",
|
|
67
|
-
"autod": "^3.1.2",
|
|
68
|
-
"autod-egg": "^1.1.0",
|
|
69
67
|
"coffee": "^5.4.0",
|
|
70
68
|
"dumi": "^1.1.47",
|
|
71
69
|
"dumi-theme-egg": "^1.2.2",
|
|
@@ -109,7 +107,6 @@
|
|
|
109
107
|
"site:dev": "APP_ROOT=./site dumi dev",
|
|
110
108
|
"site:build": "APP_ROOT=./site dumi build",
|
|
111
109
|
"site:prettier": "prettier --config site/.prettierrc --ignore-path site/.prettierignore --write \"site/**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
112
|
-
"autod": "autod",
|
|
113
110
|
"puml": "puml . --dest ./site",
|
|
114
111
|
"commits": "./scripts/commits.sh"
|
|
115
112
|
},
|