@abtnode/core 1.16.6-beta-56be9f01 → 1.16.6-beta-593a7a98
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/router/helper.js +2 -2
- package/lib/states/audit-log.js +5 -2
- package/lib/util/blocklet.js +1 -1
- package/package.json +28 -28
package/lib/router/helper.js
CHANGED
|
@@ -252,8 +252,8 @@ const ensureWellknownRule = async (sites = []) => {
|
|
|
252
252
|
const wellknownPort = await getWellknownSitePort();
|
|
253
253
|
|
|
254
254
|
for (const site of sites) {
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
// 不向 default site & ip site & wellknown site 添加 wellknown rule
|
|
256
|
+
if (![DOMAIN_FOR_INTERNAL_SITE, DOMAIN_FOR_IP_SITE, DOMAIN_FOR_DEFAULT_SITE].includes(site.domain)) {
|
|
257
257
|
const isExists = site.rules.find((x) => x.from.pathPrefix === WELLKNOWN_PATH_PREFIX);
|
|
258
258
|
if (!isExists) {
|
|
259
259
|
site.rules.push({
|
package/lib/states/audit-log.js
CHANGED
|
@@ -156,12 +156,14 @@ const getLogContent = async (action, args, context, result, info, node) => {
|
|
|
156
156
|
return `joined team ${team} by ${args.reason}`;
|
|
157
157
|
case 'updateUser':
|
|
158
158
|
return `${args.reason} and received **${args.passport.name}** passport from ${team}`;
|
|
159
|
+
case 'connectAccount':
|
|
160
|
+
return `user ${user} connect with account ${args.connectedAccount.provider}: ${args.connectedAccount.did}`;
|
|
159
161
|
case 'switchProfile':
|
|
160
162
|
return `switched profile to ${args.profile.fullName} for ${team}`;
|
|
161
163
|
case 'switchPassport':
|
|
162
|
-
return
|
|
164
|
+
return `${args.provider} user ${user} switched passport to ${args.passport.name} for ${team}`;
|
|
163
165
|
case 'login':
|
|
164
|
-
return `${user} logged in to ${team} with passport ${args.passport.name}`;
|
|
166
|
+
return `${args.provider} user ${user} logged in to ${team} with passport ${args.passport.name}`;
|
|
165
167
|
case 'updateWhoCanAccess':
|
|
166
168
|
return `updated access control policy to **${args.whoCanAccess}**`;
|
|
167
169
|
case 'configPassportIssuance':
|
|
@@ -321,6 +323,7 @@ const getLogCategory = (action) => {
|
|
|
321
323
|
case 'configTrustedFactories':
|
|
322
324
|
case 'delegateTransferNFT':
|
|
323
325
|
case 'createTransferInvitation':
|
|
326
|
+
case 'connectAccount':
|
|
324
327
|
return 'team';
|
|
325
328
|
|
|
326
329
|
// accessKeys
|
package/lib/util/blocklet.js
CHANGED
|
@@ -339,7 +339,7 @@ const getAppOverwrittenEnvironments = (blocklet, nodeInfo) => {
|
|
|
339
339
|
result[x] = blocklet.configObj[x];
|
|
340
340
|
});
|
|
341
341
|
|
|
342
|
-
const keys = ['BLOCKLET_APP_SK', 'BLOCKLET_APP_CHAIN_TYPE'];
|
|
342
|
+
const keys = ['BLOCKLET_APP_SK', 'BLOCKLET_APP_CHAIN_TYPE', 'BLOCKLET_WALLET_TYPE'];
|
|
343
343
|
const isAppDidRewritten = keys.some((key) => blocklet.configObj[key]);
|
|
344
344
|
if (!isAppDidRewritten) {
|
|
345
345
|
return result;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.6-beta-
|
|
6
|
+
"version": "1.16.6-beta-593a7a98",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,35 +19,35 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/auth": "1.16.6-beta-
|
|
23
|
-
"@abtnode/certificate-manager": "1.16.6-beta-
|
|
24
|
-
"@abtnode/constant": "1.16.6-beta-
|
|
25
|
-
"@abtnode/cron": "1.16.6-beta-
|
|
26
|
-
"@abtnode/db": "1.16.6-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.6-beta-
|
|
28
|
-
"@abtnode/queue": "1.16.6-beta-
|
|
29
|
-
"@abtnode/rbac": "1.16.6-beta-
|
|
30
|
-
"@abtnode/router-provider": "1.16.6-beta-
|
|
31
|
-
"@abtnode/static-server": "1.16.6-beta-
|
|
32
|
-
"@abtnode/timemachine": "1.16.6-beta-
|
|
33
|
-
"@abtnode/util": "1.16.6-beta-
|
|
34
|
-
"@arcblock/did": "1.18.
|
|
35
|
-
"@arcblock/did-auth": "1.18.
|
|
36
|
-
"@arcblock/did-ext": "^1.18.
|
|
22
|
+
"@abtnode/auth": "1.16.6-beta-593a7a98",
|
|
23
|
+
"@abtnode/certificate-manager": "1.16.6-beta-593a7a98",
|
|
24
|
+
"@abtnode/constant": "1.16.6-beta-593a7a98",
|
|
25
|
+
"@abtnode/cron": "1.16.6-beta-593a7a98",
|
|
26
|
+
"@abtnode/db": "1.16.6-beta-593a7a98",
|
|
27
|
+
"@abtnode/logger": "1.16.6-beta-593a7a98",
|
|
28
|
+
"@abtnode/queue": "1.16.6-beta-593a7a98",
|
|
29
|
+
"@abtnode/rbac": "1.16.6-beta-593a7a98",
|
|
30
|
+
"@abtnode/router-provider": "1.16.6-beta-593a7a98",
|
|
31
|
+
"@abtnode/static-server": "1.16.6-beta-593a7a98",
|
|
32
|
+
"@abtnode/timemachine": "1.16.6-beta-593a7a98",
|
|
33
|
+
"@abtnode/util": "1.16.6-beta-593a7a98",
|
|
34
|
+
"@arcblock/did": "1.18.77",
|
|
35
|
+
"@arcblock/did-auth": "1.18.77",
|
|
36
|
+
"@arcblock/did-ext": "^1.18.77",
|
|
37
37
|
"@arcblock/did-motif": "^1.1.10",
|
|
38
|
-
"@arcblock/did-util": "1.18.
|
|
39
|
-
"@arcblock/event-hub": "1.18.
|
|
40
|
-
"@arcblock/jwt": "^1.18.
|
|
38
|
+
"@arcblock/did-util": "1.18.77",
|
|
39
|
+
"@arcblock/event-hub": "1.18.77",
|
|
40
|
+
"@arcblock/jwt": "^1.18.77",
|
|
41
41
|
"@arcblock/pm2-events": "^0.0.5",
|
|
42
|
-
"@arcblock/vc": "1.18.
|
|
43
|
-
"@blocklet/constant": "1.16.6-beta-
|
|
44
|
-
"@blocklet/meta": "1.16.6-beta-
|
|
45
|
-
"@blocklet/sdk": "1.16.6-beta-
|
|
46
|
-
"@did-space/client": "^0.2.
|
|
42
|
+
"@arcblock/vc": "1.18.77",
|
|
43
|
+
"@blocklet/constant": "1.16.6-beta-593a7a98",
|
|
44
|
+
"@blocklet/meta": "1.16.6-beta-593a7a98",
|
|
45
|
+
"@blocklet/sdk": "1.16.6-beta-593a7a98",
|
|
46
|
+
"@did-space/client": "^0.2.88",
|
|
47
47
|
"@fidm/x509": "^1.2.1",
|
|
48
|
-
"@ocap/mcrypto": "1.18.
|
|
49
|
-
"@ocap/util": "1.18.
|
|
50
|
-
"@ocap/wallet": "1.18.
|
|
48
|
+
"@ocap/mcrypto": "1.18.77",
|
|
49
|
+
"@ocap/util": "1.18.77",
|
|
50
|
+
"@ocap/wallet": "1.18.77",
|
|
51
51
|
"@slack/webhook": "^5.0.4",
|
|
52
52
|
"archiver": "^5.3.1",
|
|
53
53
|
"axios": "^0.27.2",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"express": "^4.18.2",
|
|
95
95
|
"jest": "^27.5.1"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "5ea65d1ddc91e997f029741f01ce453464d86666"
|
|
98
98
|
}
|