@abtnode/core 1.16.49-beta-20250814-102553-9278d1f7 → 1.16.49-beta-20250815-032308-7bcf0b85
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 +2 -2
- package/package.json +24 -24
package/lib/api/team.js
CHANGED
|
@@ -311,12 +311,12 @@ class TeamAPI extends EventEmitter {
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
// User && Invitation
|
|
314
|
-
async loginUser({ teamDid, user, notify = true }) {
|
|
314
|
+
async loginUser({ teamDid, user, notify = true, force = false }) {
|
|
315
315
|
const state = await this.getUserState(teamDid);
|
|
316
316
|
const nodeInfo = await this.node.read();
|
|
317
317
|
|
|
318
318
|
if (user.role === ROLES.OWNER) {
|
|
319
|
-
if (teamDid !== nodeInfo.did) {
|
|
319
|
+
if (teamDid !== nodeInfo.did && !force) {
|
|
320
320
|
throw new Error('Cannot add user of owner role');
|
|
321
321
|
}
|
|
322
322
|
if (await state.count({ role: ROLES.OWNER })) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.49-beta-
|
|
6
|
+
"version": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,22 +19,22 @@
|
|
|
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.49-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.49-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.49-beta-
|
|
25
|
-
"@abtnode/client": "1.16.49-beta-
|
|
26
|
-
"@abtnode/constant": "1.16.49-beta-
|
|
27
|
-
"@abtnode/cron": "1.16.49-beta-
|
|
28
|
-
"@abtnode/db-cache": "1.16.49-beta-
|
|
29
|
-
"@abtnode/docker-utils": "1.16.49-beta-
|
|
30
|
-
"@abtnode/logger": "1.16.49-beta-
|
|
31
|
-
"@abtnode/models": "1.16.49-beta-
|
|
32
|
-
"@abtnode/queue": "1.16.49-beta-
|
|
33
|
-
"@abtnode/rbac": "1.16.49-beta-
|
|
34
|
-
"@abtnode/router-provider": "1.16.49-beta-
|
|
35
|
-
"@abtnode/static-server": "1.16.49-beta-
|
|
36
|
-
"@abtnode/timemachine": "1.16.49-beta-
|
|
37
|
-
"@abtnode/util": "1.16.49-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
23
|
+
"@abtnode/auth": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
25
|
+
"@abtnode/client": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
26
|
+
"@abtnode/constant": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
27
|
+
"@abtnode/cron": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
28
|
+
"@abtnode/db-cache": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
29
|
+
"@abtnode/docker-utils": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
30
|
+
"@abtnode/logger": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
31
|
+
"@abtnode/models": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
32
|
+
"@abtnode/queue": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
33
|
+
"@abtnode/rbac": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
34
|
+
"@abtnode/router-provider": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
35
|
+
"@abtnode/static-server": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
36
|
+
"@abtnode/timemachine": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
37
|
+
"@abtnode/util": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
38
38
|
"@aigne/aigne-hub": "^0.4.9",
|
|
39
39
|
"@arcblock/did": "1.21.2",
|
|
40
40
|
"@arcblock/did-connect-js": "1.21.2",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@arcblock/pm2-events": "^0.0.5",
|
|
47
47
|
"@arcblock/validator": "1.21.2",
|
|
48
48
|
"@arcblock/vc": "1.21.2",
|
|
49
|
-
"@blocklet/constant": "1.16.49-beta-
|
|
49
|
+
"@blocklet/constant": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
50
50
|
"@blocklet/did-space-js": "^1.1.16",
|
|
51
|
-
"@blocklet/env": "1.16.49-beta-
|
|
51
|
+
"@blocklet/env": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
52
52
|
"@blocklet/error": "^0.2.5",
|
|
53
|
-
"@blocklet/meta": "1.16.49-beta-
|
|
54
|
-
"@blocklet/resolver": "1.16.49-beta-
|
|
55
|
-
"@blocklet/sdk": "1.16.49-beta-
|
|
56
|
-
"@blocklet/store": "1.16.49-beta-
|
|
53
|
+
"@blocklet/meta": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
54
|
+
"@blocklet/resolver": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
55
|
+
"@blocklet/sdk": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
56
|
+
"@blocklet/store": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
57
57
|
"@blocklet/theme": "^3.1.19",
|
|
58
58
|
"@fidm/x509": "^1.2.1",
|
|
59
59
|
"@ocap/mcrypto": "1.21.2",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"jest": "^29.7.0",
|
|
119
119
|
"unzipper": "^0.10.11"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "75dd236eb42d14a5093c1364e51625412aa91790"
|
|
122
122
|
}
|