@abtnode/core 1.16.29-beta-0c32fe15 → 1.16.29-beta-ec04c755

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 CHANGED
@@ -210,13 +210,13 @@ class TeamAPI extends EventEmitter {
210
210
  return result;
211
211
  }
212
212
 
213
- async addUser({ teamDid, user }) {
213
+ async addUser({ teamDid, user, force = false }) {
214
214
  const state = await this.getUserState(teamDid);
215
215
 
216
216
  if (user.role === ROLES.OWNER) {
217
217
  const nodeInfo = await this.node.read();
218
218
 
219
- if (teamDid !== nodeInfo.did) {
219
+ if (teamDid !== nodeInfo.did && !force) {
220
220
  throw new Error('Cannot add user of owner role');
221
221
  }
222
222
 
@@ -678,6 +678,8 @@ class DiskBlockletManager extends BaseBlockletManager {
678
678
  inputComponentDids?.length ? inputComponentDids : blocklet.children.map((x) => x.meta.did)
679
679
  );
680
680
 
681
+ await this.checkControllerStatus(blocklet, 'start');
682
+
681
683
  // sync component config before at first to ensure resource component config is ready
682
684
  const serverSk = (await states.node.read()).sk;
683
685
  await Promise.all(
@@ -721,8 +723,6 @@ class DiskBlockletManager extends BaseBlockletManager {
721
723
 
722
724
  did = blocklet1.meta.did; // eslint-disable-line no-param-reassign
723
725
 
724
- await this.checkControllerStatus(blocklet1, 'start');
725
-
726
726
  // validate requirement and engine
727
727
  await validateBlocklet(blocklet1);
728
728
  await validateBlockletChainInfo(blocklet1);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.29-beta-0c32fe15",
6
+ "version": "1.16.29-beta-ec04c755",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,40 +19,40 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@abtnode/analytics": "1.16.29-beta-0c32fe15",
23
- "@abtnode/auth": "1.16.29-beta-0c32fe15",
24
- "@abtnode/certificate-manager": "1.16.29-beta-0c32fe15",
25
- "@abtnode/constant": "1.16.29-beta-0c32fe15",
26
- "@abtnode/cron": "1.16.29-beta-0c32fe15",
27
- "@abtnode/logger": "1.16.29-beta-0c32fe15",
28
- "@abtnode/models": "1.16.29-beta-0c32fe15",
29
- "@abtnode/queue": "1.16.29-beta-0c32fe15",
30
- "@abtnode/rbac": "1.16.29-beta-0c32fe15",
31
- "@abtnode/router-provider": "1.16.29-beta-0c32fe15",
32
- "@abtnode/static-server": "1.16.29-beta-0c32fe15",
33
- "@abtnode/timemachine": "1.16.29-beta-0c32fe15",
34
- "@abtnode/util": "1.16.29-beta-0c32fe15",
35
- "@arcblock/did": "1.18.124",
36
- "@arcblock/did-auth": "1.18.124",
37
- "@arcblock/did-ext": "^1.18.124",
22
+ "@abtnode/analytics": "1.16.29-beta-ec04c755",
23
+ "@abtnode/auth": "1.16.29-beta-ec04c755",
24
+ "@abtnode/certificate-manager": "1.16.29-beta-ec04c755",
25
+ "@abtnode/constant": "1.16.29-beta-ec04c755",
26
+ "@abtnode/cron": "1.16.29-beta-ec04c755",
27
+ "@abtnode/logger": "1.16.29-beta-ec04c755",
28
+ "@abtnode/models": "1.16.29-beta-ec04c755",
29
+ "@abtnode/queue": "1.16.29-beta-ec04c755",
30
+ "@abtnode/rbac": "1.16.29-beta-ec04c755",
31
+ "@abtnode/router-provider": "1.16.29-beta-ec04c755",
32
+ "@abtnode/static-server": "1.16.29-beta-ec04c755",
33
+ "@abtnode/timemachine": "1.16.29-beta-ec04c755",
34
+ "@abtnode/util": "1.16.29-beta-ec04c755",
35
+ "@arcblock/did": "1.18.126",
36
+ "@arcblock/did-auth": "1.18.126",
37
+ "@arcblock/did-ext": "^1.18.126",
38
38
  "@arcblock/did-motif": "^1.1.13",
39
- "@arcblock/did-util": "1.18.124",
40
- "@arcblock/event-hub": "1.18.124",
41
- "@arcblock/jwt": "^1.18.124",
39
+ "@arcblock/did-util": "1.18.126",
40
+ "@arcblock/event-hub": "1.18.126",
41
+ "@arcblock/jwt": "^1.18.126",
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
- "@arcblock/validator": "^1.18.124",
44
- "@arcblock/vc": "1.18.124",
45
- "@blocklet/constant": "1.16.29-beta-0c32fe15",
46
- "@blocklet/env": "1.16.29-beta-0c32fe15",
47
- "@blocklet/meta": "1.16.29-beta-0c32fe15",
48
- "@blocklet/resolver": "1.16.29-beta-0c32fe15",
49
- "@blocklet/sdk": "1.16.29-beta-0c32fe15",
50
- "@blocklet/store": "1.16.29-beta-0c32fe15",
43
+ "@arcblock/validator": "^1.18.126",
44
+ "@arcblock/vc": "1.18.126",
45
+ "@blocklet/constant": "1.16.29-beta-ec04c755",
46
+ "@blocklet/env": "1.16.29-beta-ec04c755",
47
+ "@blocklet/meta": "1.16.29-beta-ec04c755",
48
+ "@blocklet/resolver": "1.16.29-beta-ec04c755",
49
+ "@blocklet/sdk": "1.16.29-beta-ec04c755",
50
+ "@blocklet/store": "1.16.29-beta-ec04c755",
51
51
  "@did-space/client": "^0.5.4",
52
52
  "@fidm/x509": "^1.2.1",
53
- "@ocap/mcrypto": "1.18.124",
54
- "@ocap/util": "1.18.124",
55
- "@ocap/wallet": "1.18.124",
53
+ "@ocap/mcrypto": "1.18.126",
54
+ "@ocap/util": "1.18.126",
55
+ "@ocap/wallet": "1.18.126",
56
56
  "@slack/webhook": "^5.0.4",
57
57
  "archiver": "^7.0.1",
58
58
  "axios": "^1.7.2",
@@ -103,5 +103,5 @@
103
103
  "jest": "^29.7.0",
104
104
  "unzipper": "^0.10.11"
105
105
  },
106
- "gitHead": "38987125da4365838cc40c38a34daaf1bc364763"
106
+ "gitHead": "8f3fcaf73830289f02dd86e8d22a2c86a79a34d8"
107
107
  }