@abtnode/core 1.16.8-next-199ae4cb → 1.16.8-next-e7fab584
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.
|
@@ -71,7 +71,7 @@ module.exports = async ({ states, printInfo }) => {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
if (shouldUpdate) {
|
|
74
|
-
await states.blockletExtras.update({
|
|
74
|
+
await states.blockletExtras.update({ did: extra.did }, { $set: { configs: appConfigs } });
|
|
75
75
|
printInfo(`Blocklet in blocklet_extra.db updated: ${extra.did}`);
|
|
76
76
|
}
|
|
77
77
|
}
|
package/lib/states/access-key.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const get = require('lodash/get');
|
|
2
2
|
const { fromRandom } = require('@ocap/wallet');
|
|
3
3
|
const { toBase58 } = require('@ocap/util');
|
|
4
|
-
const logger = require('@abtnode/logger')('@abtnode/core:access-key');
|
|
4
|
+
const logger = require('@abtnode/logger')('@abtnode/core:states:access-key');
|
|
5
5
|
const BaseState = require('./base');
|
|
6
6
|
|
|
7
7
|
const validateRemark = (remark) => {
|
package/lib/states/base.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable function-paren-newline */
|
|
2
2
|
/* eslint-disable no-underscore-dangle */
|
|
3
3
|
/* eslint-disable consistent-return */
|
|
4
|
-
const logger = require('@abtnode/logger')('
|
|
4
|
+
const logger = require('@abtnode/logger')('@abtnode/core:states:blocklet-extras');
|
|
5
5
|
const { EXPIRED_BLOCKLET_DATA_RETENTION_DAYS } = require('@abtnode/constant');
|
|
6
6
|
const camelCase = require('lodash/camelCase');
|
|
7
7
|
const get = require('lodash/get');
|
package/lib/states/blocklet.js
CHANGED
|
@@ -19,7 +19,7 @@ const {
|
|
|
19
19
|
const { BlockletStatus, BlockletSource, BLOCKLET_MODES, BLOCKLET_DEFAULT_PORT_NAME } = require('@blocklet/constant');
|
|
20
20
|
const { APP_STRUCT_VERSION } = require('@abtnode/constant');
|
|
21
21
|
|
|
22
|
-
const logger = require('@abtnode/logger')('
|
|
22
|
+
const logger = require('@abtnode/logger')('@abtnode/core:states:blocklet');
|
|
23
23
|
|
|
24
24
|
const BaseState = require('./base');
|
|
25
25
|
const { checkDuplicateComponents, ensureMeta } = require('../util/blocklet');
|
package/lib/states/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const { createSequelize, createStateFactory, getServerModels, setupModels } = require('@abtnode/models');
|
|
3
|
+
const logger = require('@abtnode/logger')('@abtnode/core:states');
|
|
3
4
|
|
|
4
5
|
const NodeState = require('./node');
|
|
5
6
|
const BlockletState = require('./blocklet');
|
|
@@ -22,7 +23,7 @@ const init = (dataDirs, config = {}) => {
|
|
|
22
23
|
const dbPath = getDbFilePath(path.join(dataDirs.core, 'server.db'));
|
|
23
24
|
const sequelize = createSequelize(dbPath);
|
|
24
25
|
setupModels(models, sequelize);
|
|
25
|
-
|
|
26
|
+
logger.info(`Init server states in ${dbPath}`);
|
|
26
27
|
|
|
27
28
|
const notificationState = new NotificationState(models.Notification, config);
|
|
28
29
|
const nodeState = new NodeState(models.Server, config, dataDirs, notificationState);
|
package/lib/states/node.js
CHANGED
|
@@ -5,7 +5,7 @@ const isEmpty = require('lodash/isEmpty');
|
|
|
5
5
|
const security = require('@abtnode/util/lib/security');
|
|
6
6
|
const { isFromPublicKey } = require('@arcblock/did');
|
|
7
7
|
const { NODE_MODES, DISK_ALERT_THRESHOLD_PERCENT, EVENTS, SERVER_STATUS } = require('@abtnode/constant');
|
|
8
|
-
// const logger = require('@abtnode/logger')('@abtnode/core:node');
|
|
8
|
+
// const logger = require('@abtnode/logger')('@abtnode/core:states:node');
|
|
9
9
|
|
|
10
10
|
const BaseState = require('./base');
|
|
11
11
|
const { validateOwner } = require('../util');
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.8-next-
|
|
6
|
+
"version": "1.16.8-next-e7fab584",
|
|
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.16.8-next-
|
|
23
|
-
"@abtnode/certificate-manager": "1.16.8-next-
|
|
24
|
-
"@abtnode/constant": "1.16.8-next-
|
|
25
|
-
"@abtnode/cron": "1.16.8-next-
|
|
26
|
-
"@abtnode/logger": "1.16.8-next-
|
|
27
|
-
"@abtnode/models": "1.16.8-next-
|
|
28
|
-
"@abtnode/queue": "1.16.8-next-
|
|
29
|
-
"@abtnode/rbac": "1.16.8-next-
|
|
30
|
-
"@abtnode/router-provider": "1.16.8-next-
|
|
31
|
-
"@abtnode/static-server": "1.16.8-next-
|
|
32
|
-
"@abtnode/timemachine": "1.16.8-next-
|
|
33
|
-
"@abtnode/util": "1.16.8-next-
|
|
22
|
+
"@abtnode/auth": "1.16.8-next-e7fab584",
|
|
23
|
+
"@abtnode/certificate-manager": "1.16.8-next-e7fab584",
|
|
24
|
+
"@abtnode/constant": "1.16.8-next-e7fab584",
|
|
25
|
+
"@abtnode/cron": "1.16.8-next-e7fab584",
|
|
26
|
+
"@abtnode/logger": "1.16.8-next-e7fab584",
|
|
27
|
+
"@abtnode/models": "1.16.8-next-e7fab584",
|
|
28
|
+
"@abtnode/queue": "1.16.8-next-e7fab584",
|
|
29
|
+
"@abtnode/rbac": "1.16.8-next-e7fab584",
|
|
30
|
+
"@abtnode/router-provider": "1.16.8-next-e7fab584",
|
|
31
|
+
"@abtnode/static-server": "1.16.8-next-e7fab584",
|
|
32
|
+
"@abtnode/timemachine": "1.16.8-next-e7fab584",
|
|
33
|
+
"@abtnode/util": "1.16.8-next-e7fab584",
|
|
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.8-next-
|
|
45
|
-
"@blocklet/meta": "1.16.8-next-
|
|
46
|
-
"@blocklet/sdk": "1.16.8-next-
|
|
44
|
+
"@blocklet/constant": "1.16.8-next-e7fab584",
|
|
45
|
+
"@blocklet/meta": "1.16.8-next-e7fab584",
|
|
46
|
+
"@blocklet/sdk": "1.16.8-next-e7fab584",
|
|
47
47
|
"@did-space/client": "^0.2.91",
|
|
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": "65d5a71c762d73765befe957e3361a2570dc9882"
|
|
100
100
|
}
|