@abtnode/core 1.16.14-beta-c775fe49 → 1.16.14-beta-ab7f615e

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.
@@ -23,13 +23,15 @@ const getServerInfo = (info) => `[${info.name}](${joinUrl(info.routing.adminPath
23
23
  */
24
24
  const getBlockletInfo = (blocklet, info) => `[${getDisplayName(blocklet)}](${joinUrl(info.routing.adminPath, '/blocklets/', blocklet.meta.did, '/overview')})`; // prettier-ignore
25
25
  const componentOrApplication = (componentDids) => (componentDids?.length ? 'component' : 'application');
26
- const getComponentNamesWithVersion = (blocklet, componentDids) =>
26
+ const getComponentNames = (blocklet, componentDids, withVersion) =>
27
27
  uniq(componentDids || [])
28
28
  .map((x) => {
29
29
  const component = blocklet.children.find((y) => y.meta.did === x);
30
- return `${component.meta.title}@${component.meta.version}`;
30
+ const version = withVersion ? `@${component.meta.version}` : '';
31
+ return `${component.meta.title}${version}`;
31
32
  })
32
33
  .join(', ');
34
+ const getComponentNamesWithVersion = (blocklet, componentDids) => getComponentNames(blocklet, componentDids, true);
33
35
  const componentOrApplicationInfo = (app, componentDids) =>
34
36
  `${componentOrApplication(componentDids)} ${getComponentNamesWithVersion(app, componentDids)}`;
35
37
 
@@ -186,7 +188,9 @@ const getLogContent = async (action, args, context, result, info, node) => {
186
188
  case 'login':
187
189
  return `${args.provider} user ${user} logged in with passport ${args.passport.name}`;
188
190
  case 'updateWhoCanAccess':
189
- return `updated access control policy to **${args.whoCanAccess}**`;
191
+ return `updated access control policy of **${
192
+ args.did[1] ? getComponentNames(result, [args.did[1]]) : 'application'
193
+ }** to **${args.whoCanAccess}**`;
190
194
  case 'configPassportIssuance':
191
195
  return `${args.enabled ? 'enabled' : 'disabled'} passport issuance`;
192
196
  case 'createPassportIssuance':
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.14-beta-c775fe49",
6
+ "version": "1.16.14-beta-ab7f615e",
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-c775fe49",
23
- "@abtnode/auth": "1.16.14-beta-c775fe49",
24
- "@abtnode/certificate-manager": "1.16.14-beta-c775fe49",
25
- "@abtnode/constant": "1.16.14-beta-c775fe49",
26
- "@abtnode/cron": "1.16.14-beta-c775fe49",
27
- "@abtnode/logger": "1.16.14-beta-c775fe49",
28
- "@abtnode/models": "1.16.14-beta-c775fe49",
29
- "@abtnode/queue": "1.16.14-beta-c775fe49",
30
- "@abtnode/rbac": "1.16.14-beta-c775fe49",
31
- "@abtnode/router-provider": "1.16.14-beta-c775fe49",
32
- "@abtnode/static-server": "1.16.14-beta-c775fe49",
33
- "@abtnode/timemachine": "1.16.14-beta-c775fe49",
34
- "@abtnode/util": "1.16.14-beta-c775fe49",
22
+ "@abtnode/analytics": "1.16.14-beta-ab7f615e",
23
+ "@abtnode/auth": "1.16.14-beta-ab7f615e",
24
+ "@abtnode/certificate-manager": "1.16.14-beta-ab7f615e",
25
+ "@abtnode/constant": "1.16.14-beta-ab7f615e",
26
+ "@abtnode/cron": "1.16.14-beta-ab7f615e",
27
+ "@abtnode/logger": "1.16.14-beta-ab7f615e",
28
+ "@abtnode/models": "1.16.14-beta-ab7f615e",
29
+ "@abtnode/queue": "1.16.14-beta-ab7f615e",
30
+ "@abtnode/rbac": "1.16.14-beta-ab7f615e",
31
+ "@abtnode/router-provider": "1.16.14-beta-ab7f615e",
32
+ "@abtnode/static-server": "1.16.14-beta-ab7f615e",
33
+ "@abtnode/timemachine": "1.16.14-beta-ab7f615e",
34
+ "@abtnode/util": "1.16.14-beta-ab7f615e",
35
35
  "@arcblock/did": "1.18.88",
36
36
  "@arcblock/did-auth": "1.18.88",
37
37
  "@arcblock/did-ext": "^1.18.88",
@@ -42,10 +42,10 @@
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
43
  "@arcblock/validator": "^1.18.88",
44
44
  "@arcblock/vc": "1.18.88",
45
- "@blocklet/constant": "1.16.14-beta-c775fe49",
46
- "@blocklet/meta": "1.16.14-beta-c775fe49",
47
- "@blocklet/resolver": "1.16.14-beta-c775fe49",
48
- "@blocklet/sdk": "1.16.14-beta-c775fe49",
45
+ "@blocklet/constant": "1.16.14-beta-ab7f615e",
46
+ "@blocklet/meta": "1.16.14-beta-ab7f615e",
47
+ "@blocklet/resolver": "1.16.14-beta-ab7f615e",
48
+ "@blocklet/sdk": "1.16.14-beta-ab7f615e",
49
49
  "@did-space/client": "^0.2.141",
50
50
  "@fidm/x509": "^1.2.1",
51
51
  "@ocap/mcrypto": "1.18.88",
@@ -98,5 +98,5 @@
98
98
  "jest": "^27.5.1",
99
99
  "unzipper": "^0.10.11"
100
100
  },
101
- "gitHead": "8a87fffd7e47a2573d3fec7b8b23559b204726f5"
101
+ "gitHead": "96303e9914a28754ecfd8028780125209c0c6198"
102
102
  }