@abtnode/core 1.5.19 → 1.5.20
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/api/team.js +3 -1
- package/lib/migrations/1.5.20-registry.js +15 -0
- package/lib/util/blocklet.js +1 -1
- package/package.json +18 -18
package/lib/api/team.js
CHANGED
|
@@ -86,6 +86,7 @@ class TeamAPI extends EventEmitter {
|
|
|
86
86
|
'passports',
|
|
87
87
|
'firstLoginAt',
|
|
88
88
|
'lastLoginAt',
|
|
89
|
+
'remark',
|
|
89
90
|
])
|
|
90
91
|
// eslint-disable-next-line function-paren-newline
|
|
91
92
|
);
|
|
@@ -296,7 +297,7 @@ class TeamAPI extends EventEmitter {
|
|
|
296
297
|
throw new Error(`The invitation does not exist: ${inviteId}`);
|
|
297
298
|
}
|
|
298
299
|
|
|
299
|
-
const { role, expireDate } = await state.read(inviteId);
|
|
300
|
+
const { role, expireDate, remark } = await state.read(inviteId);
|
|
300
301
|
|
|
301
302
|
if (Date.now() > expireDate) {
|
|
302
303
|
logger.error('Invite id has expired', { inviteId, expireAt: new Date(expireDate) });
|
|
@@ -315,6 +316,7 @@ class TeamAPI extends EventEmitter {
|
|
|
315
316
|
|
|
316
317
|
return {
|
|
317
318
|
role,
|
|
319
|
+
remark,
|
|
318
320
|
};
|
|
319
321
|
}
|
|
320
322
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module.exports = async ({ states, printInfo }) => {
|
|
2
|
+
printInfo('Try to rename Blocklet Registry to Blocklet Store in db...');
|
|
3
|
+
|
|
4
|
+
const info = await states.node.read();
|
|
5
|
+
(info.blockletRegistryList || []).forEach((item) => {
|
|
6
|
+
if (!item) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
item.name = (item.name || '').replace('Registry', 'Store');
|
|
10
|
+
item.description = (item.description || '').replace('registry', 'store');
|
|
11
|
+
item.url = (item.url || '').replace('registry.arcblock.io', 'store.blocklet.dev');
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
await states.node.updateNodeInfo(info);
|
|
15
|
+
};
|
package/lib/util/blocklet.js
CHANGED
|
@@ -852,7 +852,7 @@ const fixAndVerifyBlockletMeta = (meta, did) => {
|
|
|
852
852
|
try {
|
|
853
853
|
const result = verifyMultiSig(sanitized);
|
|
854
854
|
if (!result) {
|
|
855
|
-
throw new Error('invalid signature from developer or
|
|
855
|
+
throw new Error('invalid signature from developer or store');
|
|
856
856
|
}
|
|
857
857
|
} catch (err) {
|
|
858
858
|
throw new Error(`Invalid blocklet meta: ${err.message}`);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.5.
|
|
6
|
+
"version": "1.5.20",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,26 +19,26 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/constant": "1.5.
|
|
23
|
-
"@abtnode/cron": "1.5.
|
|
24
|
-
"@abtnode/logger": "1.5.
|
|
25
|
-
"@abtnode/queue": "1.5.
|
|
26
|
-
"@abtnode/rbac": "1.5.
|
|
27
|
-
"@abtnode/router-provider": "1.5.
|
|
28
|
-
"@abtnode/static-server": "1.5.
|
|
29
|
-
"@abtnode/timemachine": "1.5.
|
|
30
|
-
"@abtnode/util": "1.5.
|
|
31
|
-
"@arcblock/did": "^1.13.
|
|
32
|
-
"@arcblock/event-hub": "1.13.
|
|
22
|
+
"@abtnode/constant": "1.5.20",
|
|
23
|
+
"@abtnode/cron": "1.5.20",
|
|
24
|
+
"@abtnode/logger": "1.5.20",
|
|
25
|
+
"@abtnode/queue": "1.5.20",
|
|
26
|
+
"@abtnode/rbac": "1.5.20",
|
|
27
|
+
"@abtnode/router-provider": "1.5.20",
|
|
28
|
+
"@abtnode/static-server": "1.5.20",
|
|
29
|
+
"@abtnode/timemachine": "1.5.20",
|
|
30
|
+
"@abtnode/util": "1.5.20",
|
|
31
|
+
"@arcblock/did": "^1.13.64",
|
|
32
|
+
"@arcblock/event-hub": "1.13.64",
|
|
33
33
|
"@arcblock/pm2-events": "^0.0.5",
|
|
34
|
-
"@arcblock/vc": "^1.13.
|
|
35
|
-
"@blocklet/meta": "1.5.
|
|
34
|
+
"@arcblock/vc": "^1.13.64",
|
|
35
|
+
"@blocklet/meta": "1.5.20",
|
|
36
36
|
"@fidm/x509": "^1.2.1",
|
|
37
37
|
"@nedb/core": "^1.2.2",
|
|
38
38
|
"@nedb/multi": "^1.2.2",
|
|
39
|
-
"@ocap/mcrypto": "^1.13.
|
|
40
|
-
"@ocap/util": "^1.13.
|
|
41
|
-
"@ocap/wallet": "^1.13.
|
|
39
|
+
"@ocap/mcrypto": "^1.13.64",
|
|
40
|
+
"@ocap/util": "^1.13.64",
|
|
41
|
+
"@ocap/wallet": "^1.13.64",
|
|
42
42
|
"@slack/webhook": "^5.0.3",
|
|
43
43
|
"axios": "^0.21.4",
|
|
44
44
|
"axon": "^2.0.3",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"express": "^4.17.1",
|
|
74
74
|
"jest": "^27.3.1"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "08771b885d987343780f29b95b71e6e0926b91bf"
|
|
77
77
|
}
|