@abtnode/core 1.16.14-beta-359fefce → 1.16.14-beta-08abf537

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.
@@ -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 || 'wallet',
74
+ sourceProvider: user.sourceProvider || LOGIN_PROVIDER.WALLET,
74
75
  approved: !!user.approved,
75
76
  });
76
77
 
@@ -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: 'wallet',
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-359fefce",
6
+ "version": "1.16.14-beta-08abf537",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,38 +19,38 @@
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-359fefce",
23
- "@abtnode/auth": "1.16.14-beta-359fefce",
24
- "@abtnode/certificate-manager": "1.16.14-beta-359fefce",
25
- "@abtnode/constant": "1.16.14-beta-359fefce",
26
- "@abtnode/cron": "1.16.14-beta-359fefce",
27
- "@abtnode/logger": "1.16.14-beta-359fefce",
28
- "@abtnode/models": "1.16.14-beta-359fefce",
29
- "@abtnode/queue": "1.16.14-beta-359fefce",
30
- "@abtnode/rbac": "1.16.14-beta-359fefce",
31
- "@abtnode/router-provider": "1.16.14-beta-359fefce",
32
- "@abtnode/static-server": "1.16.14-beta-359fefce",
33
- "@abtnode/timemachine": "1.16.14-beta-359fefce",
34
- "@abtnode/util": "1.16.14-beta-359fefce",
35
- "@arcblock/did": "1.18.87",
36
- "@arcblock/did-auth": "1.18.87",
37
- "@arcblock/did-ext": "^1.18.87",
22
+ "@abtnode/analytics": "1.16.14-beta-08abf537",
23
+ "@abtnode/auth": "1.16.14-beta-08abf537",
24
+ "@abtnode/certificate-manager": "1.16.14-beta-08abf537",
25
+ "@abtnode/constant": "1.16.14-beta-08abf537",
26
+ "@abtnode/cron": "1.16.14-beta-08abf537",
27
+ "@abtnode/logger": "1.16.14-beta-08abf537",
28
+ "@abtnode/models": "1.16.14-beta-08abf537",
29
+ "@abtnode/queue": "1.16.14-beta-08abf537",
30
+ "@abtnode/rbac": "1.16.14-beta-08abf537",
31
+ "@abtnode/router-provider": "1.16.14-beta-08abf537",
32
+ "@abtnode/static-server": "1.16.14-beta-08abf537",
33
+ "@abtnode/timemachine": "1.16.14-beta-08abf537",
34
+ "@abtnode/util": "1.16.14-beta-08abf537",
35
+ "@arcblock/did": "1.18.88",
36
+ "@arcblock/did-auth": "1.18.88",
37
+ "@arcblock/did-ext": "^1.18.88",
38
38
  "@arcblock/did-motif": "^1.1.13",
39
- "@arcblock/did-util": "1.18.87",
40
- "@arcblock/event-hub": "1.18.87",
41
- "@arcblock/jwt": "^1.18.87",
39
+ "@arcblock/did-util": "1.18.88",
40
+ "@arcblock/event-hub": "1.18.88",
41
+ "@arcblock/jwt": "^1.18.88",
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
- "@arcblock/validator": "^1.18.87",
44
- "@arcblock/vc": "1.18.87",
45
- "@blocklet/constant": "1.16.14-beta-359fefce",
46
- "@blocklet/meta": "1.16.14-beta-359fefce",
47
- "@blocklet/resolver": "1.16.14-beta-359fefce",
48
- "@blocklet/sdk": "1.16.14-beta-359fefce",
43
+ "@arcblock/validator": "^1.18.88",
44
+ "@arcblock/vc": "1.18.88",
45
+ "@blocklet/constant": "1.16.14-beta-08abf537",
46
+ "@blocklet/meta": "1.16.14-beta-08abf537",
47
+ "@blocklet/resolver": "1.16.14-beta-08abf537",
48
+ "@blocklet/sdk": "1.16.14-beta-08abf537",
49
49
  "@did-space/client": "^0.2.141",
50
50
  "@fidm/x509": "^1.2.1",
51
- "@ocap/mcrypto": "1.18.87",
52
- "@ocap/util": "1.18.87",
53
- "@ocap/wallet": "1.18.87",
51
+ "@ocap/mcrypto": "1.18.88",
52
+ "@ocap/util": "1.18.88",
53
+ "@ocap/wallet": "1.18.88",
54
54
  "@slack/webhook": "^5.0.4",
55
55
  "archiver": "^5.3.1",
56
56
  "axios": "^0.27.2",
@@ -98,5 +98,5 @@
98
98
  "jest": "^27.5.1",
99
99
  "unzipper": "^0.10.11"
100
100
  },
101
- "gitHead": "3bb46559686e86f1ec318503495f9e1f320c33d4"
101
+ "gitHead": "656c4bf8e2ca94cdc604a5d45ba7e8c3443f1dac"
102
102
  }