@abtnode/auth 1.8.33 → 1.8.35

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/server.js +1 -1
  2. package/package.json +14 -14
package/lib/server.js CHANGED
@@ -364,7 +364,7 @@ const ensureBlockletPermission = async ({ authMethod, node, userDid, claims, cha
364
364
  const { teamDid, role } = result;
365
365
 
366
366
  const permissions = await node.getPermissionsByRole({ teamDid, role: { name: role } });
367
- if (!permissions.some((item) => ['mutate_blocklet'].includes(item.name))) {
367
+ if (!permissions.some((item) => ['mutate_blockets'].includes(item.name))) {
368
368
  throw new Error(messages.notAuthorized[locale]);
369
369
  }
370
370
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.33",
6
+ "version": "1.8.35",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,18 +20,18 @@
20
20
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.8.33",
24
- "@abtnode/logger": "1.8.33",
25
- "@abtnode/util": "1.8.33",
26
- "@arcblock/did": "1.18.1",
27
- "@arcblock/jwt": "^1.18.1",
28
- "@arcblock/vc": "1.18.1",
29
- "@blocklet/constant": "1.8.33",
30
- "@blocklet/meta": "1.8.33",
31
- "@ocap/client": "1.18.1",
32
- "@ocap/mcrypto": "1.18.1",
33
- "@ocap/util": "1.18.1",
34
- "@ocap/wallet": "1.18.1",
23
+ "@abtnode/constant": "1.8.35",
24
+ "@abtnode/logger": "1.8.35",
25
+ "@abtnode/util": "1.8.35",
26
+ "@arcblock/did": "1.18.15",
27
+ "@arcblock/jwt": "^1.18.15",
28
+ "@arcblock/vc": "1.18.15",
29
+ "@blocklet/constant": "1.8.35",
30
+ "@blocklet/meta": "1.8.35",
31
+ "@ocap/client": "1.18.15",
32
+ "@ocap/mcrypto": "1.18.15",
33
+ "@ocap/util": "1.18.15",
34
+ "@ocap/wallet": "1.18.15",
35
35
  "axios": "^0.27.2",
36
36
  "joi": "17.6.3",
37
37
  "jsonwebtoken": "^8.5.1",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "jest": "^27.5.1"
44
44
  },
45
- "gitHead": "bb8223a5dd84536f2843391c59c0a8ac4398c6f2"
45
+ "gitHead": "dd89e7a61dc8cff64302608ad5ab6545dd903daa"
46
46
  }