@abtnode/auth 1.17.0-beta-20251101-021648-3f521a7e → 1.17.0-beta-20251104-112713-e947b159

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.
Files changed (2) hide show
  1. package/lib/util/federated.js +2 -37
  2. package/package.json +20 -20
@@ -3,6 +3,8 @@ const {
3
3
  USER_AVATAR_URL_PREFIX,
4
4
  USER_AVATAR_PATH_PREFIX,
5
5
  FEDERATED,
6
+ SITE_SYNC_FIELDS,
7
+ USER_PROFILE_SYNC_FIELDS,
6
8
  } = require('@abtnode/constant');
7
9
  const { Joi } = require('@arcblock/validator');
8
10
  const pRetry = require('p-retry');
@@ -21,43 +23,6 @@ const pLimit = require('p-limit');
21
23
  const request = require('./request');
22
24
  const logger = require('../logger');
23
25
 
24
- const USER_PROFILE_SYNC_FIELDS = [
25
- 'action', // 表示对该 user 的操作
26
- 'did',
27
- 'pk',
28
- 'avatar',
29
- 'fullName',
30
- 'email',
31
- 'connectedAccount',
32
- 'disconnectedAccount',
33
- 'sourceAppPid',
34
- 'inviter',
35
- 'generation',
36
- 'emailVerified',
37
- 'phoneVerified',
38
- ];
39
-
40
- const SITE_SYNC_FIELDS = [
41
- 'action',
42
- 'appId',
43
- 'appPid',
44
- 'aliasDid',
45
- 'appName',
46
- 'appDescription',
47
- 'appUrl',
48
- 'aliasDomain',
49
- 'appLogo',
50
- 'appLogoRect',
51
- 'appliedAt',
52
- 'did',
53
- 'pk',
54
- 'serverId',
55
- 'serverVersion',
56
- 'version',
57
- 'isMaster',
58
- 'status',
59
- ];
60
-
61
26
  const federatedEnvSchema = Joi.object({
62
27
  sigVersion: Joi.string().optional().allow('').default(''),
63
28
  }).unknown(true);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.0-beta-20251101-021648-3f521a7e",
6
+ "version": "1.17.0-beta-20251104-112713-e947b159",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,25 +18,25 @@
18
18
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.17.0-beta-20251101-021648-3f521a7e",
22
- "@abtnode/logger": "1.17.0-beta-20251101-021648-3f521a7e",
23
- "@abtnode/util": "1.17.0-beta-20251101-021648-3f521a7e",
24
- "@arcblock/did": "^1.27.0",
25
- "@arcblock/did-connect-js": "^1.27.0",
26
- "@arcblock/did-ext": "^1.27.0",
27
- "@arcblock/did-util": "^1.27.0",
28
- "@arcblock/jwt": "^1.27.0",
21
+ "@abtnode/constant": "1.17.0-beta-20251104-112713-e947b159",
22
+ "@abtnode/logger": "1.17.0-beta-20251104-112713-e947b159",
23
+ "@abtnode/util": "1.17.0-beta-20251104-112713-e947b159",
24
+ "@arcblock/did": "^1.27.1",
25
+ "@arcblock/did-connect-js": "^1.27.1",
26
+ "@arcblock/did-ext": "^1.27.1",
27
+ "@arcblock/did-util": "^1.27.1",
28
+ "@arcblock/jwt": "^1.27.1",
29
29
  "@arcblock/nft-display": "^3.1.54",
30
- "@arcblock/validator": "^1.27.0",
31
- "@arcblock/vc": "^1.27.0",
32
- "@blocklet/constant": "1.17.0-beta-20251101-021648-3f521a7e",
33
- "@blocklet/error": "^0.2.5",
34
- "@blocklet/meta": "1.17.0-beta-20251101-021648-3f521a7e",
35
- "@blocklet/sdk": "1.17.0-beta-20251101-021648-3f521a7e",
36
- "@ocap/client": "^1.27.0",
37
- "@ocap/mcrypto": "^1.27.0",
38
- "@ocap/util": "^1.27.0",
39
- "@ocap/wallet": "^1.27.0",
30
+ "@arcblock/validator": "^1.27.1",
31
+ "@arcblock/vc": "^1.27.1",
32
+ "@blocklet/constant": "1.17.0-beta-20251104-112713-e947b159",
33
+ "@blocklet/error": "^0.3.0",
34
+ "@blocklet/meta": "1.17.0-beta-20251104-112713-e947b159",
35
+ "@blocklet/sdk": "1.17.0-beta-20251104-112713-e947b159",
36
+ "@ocap/client": "^1.27.1",
37
+ "@ocap/mcrypto": "^1.27.1",
38
+ "@ocap/util": "^1.27.1",
39
+ "@ocap/wallet": "^1.27.1",
40
40
  "@simplewebauthn/server": "^13.1.1",
41
41
  "axios": "^1.7.9",
42
42
  "flat": "^5.0.2",
@@ -55,5 +55,5 @@
55
55
  "devDependencies": {
56
56
  "axios-mock-adapter": "^2.1.0"
57
57
  },
58
- "gitHead": "8d60f8efded6ef3b0f9ebeac4262f1738ba40292"
58
+ "gitHead": "66c9180952f1dab415ff16b3ccd8eafd61baabf9"
59
59
  }