@abtnode/core 1.16.14-beta-359fefce → 1.16.14-beta-811ed435
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/states/user.js +2 -1
- package/lib/util/launcher.js +2 -2
- package/package.json +19 -19
package/lib/states/user.js
CHANGED
|
@@ -6,6 +6,7 @@ const { PASSPORT_STATUS } = require('@abtnode/constant');
|
|
|
6
6
|
const { BaseState } = require('@abtnode/models');
|
|
7
7
|
const { Sequelize, Op } = require('sequelize');
|
|
8
8
|
const { updateConnectedAccount } = require('@abtnode/util/lib/user');
|
|
9
|
+
const { LOGIN_PROVIDER } = require('@blocklet/constant');
|
|
9
10
|
|
|
10
11
|
const { validateOwner } = require('../util');
|
|
11
12
|
const { loginSchema } = require('../validators/user');
|
|
@@ -70,7 +71,7 @@ class User extends ExtendBase {
|
|
|
70
71
|
// create user
|
|
71
72
|
await this.insert({
|
|
72
73
|
...user,
|
|
73
|
-
sourceProvider: user.sourceProvider ||
|
|
74
|
+
sourceProvider: user.sourceProvider || LOGIN_PROVIDER.WALLET,
|
|
74
75
|
approved: !!user.approved,
|
|
75
76
|
});
|
|
76
77
|
|
package/lib/util/launcher.js
CHANGED
|
@@ -17,7 +17,7 @@ const { getLauncherUser, getLauncherSession: getLauncherSessionRaw, doRequest }
|
|
|
17
17
|
const { createAuthToken, getPassportStatusEndpoint } = require('@abtnode/auth/lib/auth');
|
|
18
18
|
const { createPassportVC, createPassport, createUserPassport } = require('@abtnode/auth/lib/passport');
|
|
19
19
|
|
|
20
|
-
const { BlockletStatus } = require('@blocklet/constant');
|
|
20
|
+
const { BlockletStatus, LOGIN_PROVIDER } = require('@blocklet/constant');
|
|
21
21
|
const {
|
|
22
22
|
WELLKNOWN_SERVICE_PATH_PREFIX,
|
|
23
23
|
NODE_DATA_DIR_NAME,
|
|
@@ -163,7 +163,7 @@ const setupAppOwner = async (node, sessionId) => {
|
|
|
163
163
|
locale,
|
|
164
164
|
lastLoginIp,
|
|
165
165
|
connectedAccount: {
|
|
166
|
-
provider:
|
|
166
|
+
provider: LOGIN_PROVIDER.WALLET,
|
|
167
167
|
did: ownerDid,
|
|
168
168
|
pk: ownerPk,
|
|
169
169
|
},
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.14-beta-
|
|
6
|
+
"version": "1.16.14-beta-811ed435",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,19 +19,19 @@
|
|
|
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.14-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.14-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.14-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.14-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.14-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.14-beta-
|
|
28
|
-
"@abtnode/models": "1.16.14-beta-
|
|
29
|
-
"@abtnode/queue": "1.16.14-beta-
|
|
30
|
-
"@abtnode/rbac": "1.16.14-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.16.14-beta-
|
|
32
|
-
"@abtnode/static-server": "1.16.14-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.16.14-beta-
|
|
34
|
-
"@abtnode/util": "1.16.14-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.14-beta-811ed435",
|
|
23
|
+
"@abtnode/auth": "1.16.14-beta-811ed435",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.14-beta-811ed435",
|
|
25
|
+
"@abtnode/constant": "1.16.14-beta-811ed435",
|
|
26
|
+
"@abtnode/cron": "1.16.14-beta-811ed435",
|
|
27
|
+
"@abtnode/logger": "1.16.14-beta-811ed435",
|
|
28
|
+
"@abtnode/models": "1.16.14-beta-811ed435",
|
|
29
|
+
"@abtnode/queue": "1.16.14-beta-811ed435",
|
|
30
|
+
"@abtnode/rbac": "1.16.14-beta-811ed435",
|
|
31
|
+
"@abtnode/router-provider": "1.16.14-beta-811ed435",
|
|
32
|
+
"@abtnode/static-server": "1.16.14-beta-811ed435",
|
|
33
|
+
"@abtnode/timemachine": "1.16.14-beta-811ed435",
|
|
34
|
+
"@abtnode/util": "1.16.14-beta-811ed435",
|
|
35
35
|
"@arcblock/did": "1.18.87",
|
|
36
36
|
"@arcblock/did-auth": "1.18.87",
|
|
37
37
|
"@arcblock/did-ext": "^1.18.87",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"@arcblock/pm2-events": "^0.0.5",
|
|
43
43
|
"@arcblock/validator": "^1.18.87",
|
|
44
44
|
"@arcblock/vc": "1.18.87",
|
|
45
|
-
"@blocklet/constant": "1.16.14-beta-
|
|
46
|
-
"@blocklet/meta": "1.16.14-beta-
|
|
47
|
-
"@blocklet/resolver": "1.16.14-beta-
|
|
48
|
-
"@blocklet/sdk": "1.16.14-beta-
|
|
45
|
+
"@blocklet/constant": "1.16.14-beta-811ed435",
|
|
46
|
+
"@blocklet/meta": "1.16.14-beta-811ed435",
|
|
47
|
+
"@blocklet/resolver": "1.16.14-beta-811ed435",
|
|
48
|
+
"@blocklet/sdk": "1.16.14-beta-811ed435",
|
|
49
49
|
"@did-space/client": "^0.2.141",
|
|
50
50
|
"@fidm/x509": "^1.2.1",
|
|
51
51
|
"@ocap/mcrypto": "1.18.87",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"jest": "^27.5.1",
|
|
99
99
|
"unzipper": "^0.10.11"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "4525537afdeeb910675c28e2bf60a6d4ecf3b1f1"
|
|
102
102
|
}
|