@abtnode/blocklet-services 1.8.38 → 1.8.39

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.
@@ -119,7 +119,7 @@ const validateRole = async ({ role, authConfig, locale, node, teamDid }) => {
119
119
  );
120
120
  }
121
121
 
122
- if (authConfig.whoCanAccess.startsWith(WHO_CAN_ACCESS_PREFIX_ROLES)) {
122
+ if (authConfig.whoCanAccess && authConfig.whoCanAccess.startsWith(WHO_CAN_ACCESS_PREFIX_ROLES)) {
123
123
  const roles = getRolesFromAuthConfig(authConfig);
124
124
  if (!roles.includes(role)) {
125
125
  const list = roleList.filter((x) => roles.some((y) => y === x.name)).map((x) => x.title);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.38",
6
+ "version": "1.8.39",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
@@ -31,26 +31,26 @@
31
31
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@abtnode/auth": "1.8.38",
35
- "@abtnode/client": "1.8.38",
36
- "@abtnode/constant": "1.8.38",
37
- "@abtnode/core": "1.8.38",
38
- "@abtnode/cron": "1.8.38",
39
- "@abtnode/db": "1.8.38",
40
- "@abtnode/logger": "1.8.38",
41
- "@abtnode/router-adapter": "1.8.38",
42
- "@abtnode/router-templates": "1.8.38",
43
- "@abtnode/util": "1.8.38",
34
+ "@abtnode/auth": "1.8.39",
35
+ "@abtnode/client": "1.8.39",
36
+ "@abtnode/constant": "1.8.39",
37
+ "@abtnode/core": "1.8.39",
38
+ "@abtnode/cron": "1.8.39",
39
+ "@abtnode/db": "1.8.39",
40
+ "@abtnode/logger": "1.8.39",
41
+ "@abtnode/router-adapter": "1.8.39",
42
+ "@abtnode/router-templates": "1.8.39",
43
+ "@abtnode/util": "1.8.39",
44
44
  "@arcblock/did-auth": "1.18.18",
45
45
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
46
46
  "@arcblock/event-hub": "1.18.18",
47
47
  "@arcblock/jwt": "1.18.18",
48
48
  "@arcblock/ws": "1.18.18",
49
- "@blocklet/constant": "1.8.38",
49
+ "@blocklet/constant": "1.8.39",
50
50
  "@blocklet/form-builder": "^0.1.9",
51
51
  "@blocklet/form-collector": "^0.1.5",
52
- "@blocklet/meta": "1.8.38",
53
- "@blocklet/sdk": "1.8.38",
52
+ "@blocklet/meta": "1.8.39",
53
+ "@blocklet/sdk": "1.8.39",
54
54
  "@did-connect/authenticator": "^2.1.26",
55
55
  "@did-connect/relay-adapter-express": "^2.1.26",
56
56
  "@did-connect/storage-nedb": "^2.1.26",
@@ -83,7 +83,7 @@
83
83
  "@nedb/multi": "^2.0.5"
84
84
  },
85
85
  "devDependencies": {
86
- "@abtnode/ux": "1.8.38",
86
+ "@abtnode/ux": "1.8.39",
87
87
  "@arcblock/did-connect": "^2.4.52",
88
88
  "@arcblock/icons": "^2.4.52",
89
89
  "@arcblock/ux": "^2.4.52",
@@ -147,5 +147,5 @@
147
147
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
148
148
  "email": "shijun@arcblock.io"
149
149
  },
150
- "gitHead": "cbb88f107eb6b403c8cd47a765920575860c7bc7"
150
+ "gitHead": "cf2223c4d9a999993b2be1c943dd75b4221593c3"
151
151
  }