@abtnode/core 1.16.11-next-d32a90d4 → 1.16.11-next-7cff3891
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/util/blocklet.js +12 -2
- package/package.json +17 -17
package/lib/util/blocklet.js
CHANGED
|
@@ -892,13 +892,15 @@ const checkBlockletProcessHealthy = async (blocklet, { minConsecutiveTime, timeo
|
|
|
892
892
|
return;
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
-
|
|
895
|
+
const logToTerminal = [blocklet.mode, b.mode].includes(BLOCKLET_MODES.DEVELOPMENT);
|
|
896
|
+
|
|
897
|
+
await _checkProcessHealthy(b, { minConsecutiveTime, timeout, logToTerminal });
|
|
896
898
|
},
|
|
897
899
|
{ parallel: true }
|
|
898
900
|
);
|
|
899
901
|
};
|
|
900
902
|
|
|
901
|
-
const _checkProcessHealthy = async (blocklet, { minConsecutiveTime, timeout }) => {
|
|
903
|
+
const _checkProcessHealthy = async (blocklet, { minConsecutiveTime, timeout, logToTerminal }) => {
|
|
902
904
|
const { meta, ports, env } = blocklet;
|
|
903
905
|
const { name } = meta;
|
|
904
906
|
const { processId } = env;
|
|
@@ -934,6 +936,14 @@ const _checkProcessHealthy = async (blocklet, { minConsecutiveTime, timeout }) =
|
|
|
934
936
|
}
|
|
935
937
|
|
|
936
938
|
const port = findInterfacePortByName({ meta, ports }, webInterface.name);
|
|
939
|
+
if (logToTerminal) {
|
|
940
|
+
// eslint-disable-next-line no-console
|
|
941
|
+
console.log(
|
|
942
|
+
`Checking endpoint healthy for ${meta.title}, port: ${port}, minConsecutiveTime: ${
|
|
943
|
+
minConsecutiveTime / 1000
|
|
944
|
+
}s, timeout: ${timeout / 1000}s`
|
|
945
|
+
);
|
|
946
|
+
}
|
|
937
947
|
try {
|
|
938
948
|
await ensureEndpointHealthy({
|
|
939
949
|
port,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.11-next-
|
|
6
|
+
"version": "1.16.11-next-7cff3891",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/auth": "1.16.11-next-
|
|
23
|
-
"@abtnode/certificate-manager": "1.16.11-next-
|
|
24
|
-
"@abtnode/constant": "1.16.11-next-
|
|
25
|
-
"@abtnode/cron": "1.16.11-next-
|
|
26
|
-
"@abtnode/logger": "1.16.11-next-
|
|
27
|
-
"@abtnode/models": "1.16.11-next-
|
|
28
|
-
"@abtnode/queue": "1.16.11-next-
|
|
29
|
-
"@abtnode/rbac": "1.16.11-next-
|
|
30
|
-
"@abtnode/router-provider": "1.16.11-next-
|
|
31
|
-
"@abtnode/static-server": "1.16.11-next-
|
|
32
|
-
"@abtnode/timemachine": "1.16.11-next-
|
|
33
|
-
"@abtnode/util": "1.16.11-next-
|
|
22
|
+
"@abtnode/auth": "1.16.11-next-7cff3891",
|
|
23
|
+
"@abtnode/certificate-manager": "1.16.11-next-7cff3891",
|
|
24
|
+
"@abtnode/constant": "1.16.11-next-7cff3891",
|
|
25
|
+
"@abtnode/cron": "1.16.11-next-7cff3891",
|
|
26
|
+
"@abtnode/logger": "1.16.11-next-7cff3891",
|
|
27
|
+
"@abtnode/models": "1.16.11-next-7cff3891",
|
|
28
|
+
"@abtnode/queue": "1.16.11-next-7cff3891",
|
|
29
|
+
"@abtnode/rbac": "1.16.11-next-7cff3891",
|
|
30
|
+
"@abtnode/router-provider": "1.16.11-next-7cff3891",
|
|
31
|
+
"@abtnode/static-server": "1.16.11-next-7cff3891",
|
|
32
|
+
"@abtnode/timemachine": "1.16.11-next-7cff3891",
|
|
33
|
+
"@abtnode/util": "1.16.11-next-7cff3891",
|
|
34
34
|
"@arcblock/did": "1.18.80",
|
|
35
35
|
"@arcblock/did-auth": "1.18.80",
|
|
36
36
|
"@arcblock/did-ext": "^1.18.80",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@arcblock/pm2-events": "^0.0.5",
|
|
42
42
|
"@arcblock/validator": "^1.18.80",
|
|
43
43
|
"@arcblock/vc": "1.18.80",
|
|
44
|
-
"@blocklet/constant": "1.16.11-next-
|
|
45
|
-
"@blocklet/meta": "1.16.11-next-
|
|
46
|
-
"@blocklet/sdk": "1.16.11-next-
|
|
44
|
+
"@blocklet/constant": "1.16.11-next-7cff3891",
|
|
45
|
+
"@blocklet/meta": "1.16.11-next-7cff3891",
|
|
46
|
+
"@blocklet/sdk": "1.16.11-next-7cff3891",
|
|
47
47
|
"@did-space/client": "^0.2.113",
|
|
48
48
|
"@fidm/x509": "^1.2.1",
|
|
49
49
|
"@ocap/mcrypto": "1.18.80",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"express": "^4.18.2",
|
|
97
97
|
"jest": "^27.5.1"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "53ffbcdca9cda278337d80bfafa44e7ef5635af1"
|
|
100
100
|
}
|