@abtnode/auth 1.8.66-beta-7f4224af → 1.8.66

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/auth.js +3 -3
  2. package/package.json +14 -14
package/lib/auth.js CHANGED
@@ -809,9 +809,9 @@ const handleIssuePassportResponse = async ({
809
809
  };
810
810
 
811
811
  const getVCFromClaims = async ({ claims, challenge, trustedIssuers, vcTypes, locale = 'en', vcId }) => {
812
- const credential = claims
813
- .filter(Boolean) // FIXES: https://github.com/ArcBlock/did-connect/issues/74
814
- .find((x) => x.type === 'verifiableCredential' && vcTypes.some((item) => x.item.includes(item)));
812
+ const credential = claims.find(
813
+ (x) => x.type === 'verifiableCredential' && vcTypes.some((item) => x.item.includes(item))
814
+ );
815
815
 
816
816
  if (!credential || !credential.presentation) {
817
817
  return {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.66-beta-7f4224af",
6
+ "version": "1.8.66",
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.66-beta-7f4224af",
24
- "@abtnode/logger": "1.8.66-beta-7f4224af",
25
- "@abtnode/util": "1.8.66-beta-7f4224af",
26
- "@arcblock/did": "1.18.47",
27
- "@arcblock/jwt": "^1.18.47",
28
- "@arcblock/vc": "1.18.47",
29
- "@blocklet/constant": "1.8.66-beta-7f4224af",
30
- "@blocklet/meta": "1.8.66-beta-7f4224af",
31
- "@ocap/client": "1.18.47",
32
- "@ocap/mcrypto": "1.18.47",
33
- "@ocap/util": "1.18.47",
34
- "@ocap/wallet": "1.18.47",
23
+ "@abtnode/constant": "1.8.66",
24
+ "@abtnode/logger": "1.8.66",
25
+ "@abtnode/util": "1.8.66",
26
+ "@arcblock/did": "1.18.42",
27
+ "@arcblock/jwt": "^1.18.42",
28
+ "@arcblock/vc": "1.18.42",
29
+ "@blocklet/constant": "1.8.66",
30
+ "@blocklet/meta": "1.8.66",
31
+ "@ocap/client": "1.18.42",
32
+ "@ocap/mcrypto": "1.18.42",
33
+ "@ocap/util": "1.18.42",
34
+ "@ocap/wallet": "1.18.42",
35
35
  "axios": "^0.27.2",
36
36
  "joi": "17.7.0",
37
37
  "jsonwebtoken": "^9.0.0",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "jest": "^27.5.1"
44
44
  },
45
- "gitHead": "72d418f63ecb76b1d5d62edbcc5f336cb62bf308"
45
+ "gitHead": "282247fd0ce6702e1d6920e90e2b3be0408cf879"
46
46
  }