@abtnode/core 1.8.32 → 1.8.33

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.
@@ -0,0 +1,20 @@
1
+ /* eslint-disable no-await-in-loop */
2
+ /* eslint-disable no-continue */
3
+
4
+ const { BLOCKLET_MAX_MEM_LIMIT_IN_MB } = require('@abtnode/constant');
5
+
6
+ module.exports = async ({ states, printInfo }) => {
7
+ printInfo('Try to update blockletMaxMemoryLimit...');
8
+
9
+ const info = await states.node.read();
10
+ if (
11
+ info?.runtimeConfig?.blockletMaxMemoryLimit &&
12
+ info.runtimeConfig.blockletMaxMemoryLimit < BLOCKLET_MAX_MEM_LIMIT_IN_MB
13
+ ) {
14
+ info.runtimeConfig.blockletMaxMemoryLimit = BLOCKLET_MAX_MEM_LIMIT_IN_MB;
15
+ await states.node.updateNodeInfo(info);
16
+ printInfo(`Update blockletMaxMemoryLimit to ${BLOCKLET_MAX_MEM_LIMIT_IN_MB}MB`);
17
+ } else {
18
+ printInfo(`No need to update blockletMaxMemoryLimit (${info?.runtimeConfig?.blockletMaxMemoryLimit}MB)`);
19
+ }
20
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.32",
6
+ "version": "1.8.33",
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": "MIT",
21
21
  "dependencies": {
22
- "@abtnode/auth": "1.8.32",
23
- "@abtnode/certificate-manager": "1.8.32",
24
- "@abtnode/constant": "1.8.32",
25
- "@abtnode/cron": "1.8.32",
26
- "@abtnode/db": "1.8.32",
27
- "@abtnode/logger": "1.8.32",
28
- "@abtnode/queue": "1.8.32",
29
- "@abtnode/rbac": "1.8.32",
30
- "@abtnode/router-provider": "1.8.32",
31
- "@abtnode/static-server": "1.8.32",
32
- "@abtnode/timemachine": "1.8.32",
33
- "@abtnode/util": "1.8.32",
22
+ "@abtnode/auth": "1.8.33",
23
+ "@abtnode/certificate-manager": "1.8.33",
24
+ "@abtnode/constant": "1.8.33",
25
+ "@abtnode/cron": "1.8.33",
26
+ "@abtnode/db": "1.8.33",
27
+ "@abtnode/logger": "1.8.33",
28
+ "@abtnode/queue": "1.8.33",
29
+ "@abtnode/rbac": "1.8.33",
30
+ "@abtnode/router-provider": "1.8.33",
31
+ "@abtnode/static-server": "1.8.33",
32
+ "@abtnode/timemachine": "1.8.33",
33
+ "@abtnode/util": "1.8.33",
34
34
  "@arcblock/did": "1.18.1",
35
35
  "@arcblock/did-motif": "^1.1.10",
36
36
  "@arcblock/did-util": "1.18.1",
@@ -38,9 +38,9 @@
38
38
  "@arcblock/jwt": "^1.18.1",
39
39
  "@arcblock/pm2-events": "^0.0.5",
40
40
  "@arcblock/vc": "1.18.1",
41
- "@blocklet/constant": "1.8.32",
42
- "@blocklet/meta": "1.8.32",
43
- "@blocklet/sdk": "1.8.32",
41
+ "@blocklet/constant": "1.8.33",
42
+ "@blocklet/meta": "1.8.33",
43
+ "@blocklet/sdk": "1.8.33",
44
44
  "@fidm/x509": "^1.2.1",
45
45
  "@ocap/mcrypto": "1.18.1",
46
46
  "@ocap/util": "1.18.1",
@@ -81,5 +81,5 @@
81
81
  "express": "^4.18.2",
82
82
  "jest": "^27.5.1"
83
83
  },
84
- "gitHead": "8502244aeda5926b3433c1dd9142e63233e3c23c"
84
+ "gitHead": "bb8223a5dd84536f2843391c59c0a8ac4398c6f2"
85
85
  }