@cheqd/did-provider-cheqd 3.5.0-develop.2 → 3.5.0-develop.3
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/build/cjs/agent/ICheqd.js +7 -7
- package/build/cjs/agent/ICheqd.js.map +1 -1
- package/build/esm/agent/ICheqd.js +7 -7
- package/build/esm/agent/ICheqd.js.map +1 -1
- package/build/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/tsconfig.esm.tsbuildinfo +1 -1
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/agent/ICheqd.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cheqd/did-provider-cheqd",
|
|
3
|
-
"version": "3.5.0-develop.
|
|
3
|
+
"version": "3.5.0-develop.3",
|
|
4
4
|
"description": "Veramo SDK plugin for the did:cheqd DID method",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Cheqd Foundation Limited (https://github.com/cheqd)",
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@cheqd/sdk": "^3.5.6",
|
|
68
|
-
"@cheqd/ts-proto": "^3.2.
|
|
68
|
+
"@cheqd/ts-proto": "^3.2.1",
|
|
69
69
|
"@cosmjs/amino": "^0.31.0",
|
|
70
70
|
"@cosmjs/crypto": "^0.31.0",
|
|
71
71
|
"@cosmjs/proto-signing": "^0.31.0",
|
|
72
72
|
"@cosmjs/utils": "^0.31.0",
|
|
73
73
|
"@digitalbazaar/vc-status-list": "^7.0.0",
|
|
74
|
-
"@lit-protocol/lit-node-client": "^2.2.
|
|
74
|
+
"@lit-protocol/lit-node-client": "^2.2.39",
|
|
75
75
|
"@veramo/core": "^5.2.0",
|
|
76
76
|
"@veramo/did-manager": "^5.1.2",
|
|
77
77
|
"@veramo/did-provider-key": "^5.2.0",
|
|
@@ -91,21 +91,21 @@
|
|
|
91
91
|
"@semantic-release/git": "^10.0.1",
|
|
92
92
|
"@semantic-release/github": "^9.0.3",
|
|
93
93
|
"@semantic-release/npm": "^10.0.4",
|
|
94
|
-
"@semantic-release/release-notes-generator": "^11.0.
|
|
94
|
+
"@semantic-release/release-notes-generator": "^11.0.4",
|
|
95
95
|
"@types/debug": "^4.1.8",
|
|
96
96
|
"@types/jest": "^29.5.2",
|
|
97
97
|
"@types/uuid": "^9.0.2",
|
|
98
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
99
|
-
"@typescript-eslint/parser": "^5.
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
99
|
+
"@typescript-eslint/parser": "^5.61.0",
|
|
100
100
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
101
|
-
"eslint": "^8.
|
|
101
|
+
"eslint": "^8.44.0",
|
|
102
102
|
"eslint-config-prettier": "^8.8.0",
|
|
103
103
|
"eslint-config-typescript": "^3.0.0",
|
|
104
|
-
"jest": "^29.
|
|
104
|
+
"jest": "^29.6.1",
|
|
105
105
|
"long": "^4.0.0",
|
|
106
106
|
"prettier": "^2.8.8",
|
|
107
|
-
"semantic-release": "^21.0.
|
|
108
|
-
"ts-jest": "^29.1.
|
|
107
|
+
"semantic-release": "^21.0.7",
|
|
108
|
+
"ts-jest": "^29.1.1",
|
|
109
109
|
"typescript": "^4.9.5"
|
|
110
110
|
},
|
|
111
111
|
"publishConfig": {
|
package/src/agent/ICheqd.ts
CHANGED
|
@@ -1639,11 +1639,11 @@ export class Cheqd implements IAgentPlugin {
|
|
|
1639
1639
|
// verify credential status
|
|
1640
1640
|
switch (credential.credentialStatus?.statusPurpose) {
|
|
1641
1641
|
case 'revocation':
|
|
1642
|
-
if (await Cheqd.checkRevoked(credential, { ...args.options, topArgs: args })) return {
|
|
1643
|
-
return {
|
|
1642
|
+
if (await Cheqd.checkRevoked(credential, { ...args.options, topArgs: args })) return { ...verificationResult, revoked: true }
|
|
1643
|
+
return { ...verificationResult, revoked: false }
|
|
1644
1644
|
case 'suspension':
|
|
1645
|
-
if (await Cheqd.checkSuspended(credential, { ...args.options, topArgs: args })) return {
|
|
1646
|
-
return {
|
|
1645
|
+
if (await Cheqd.checkSuspended(credential, { ...args.options, topArgs: args })) return { ...verificationResult, suspended: true }
|
|
1646
|
+
return { ...verificationResult, suspended: false }
|
|
1647
1647
|
default:
|
|
1648
1648
|
throw new Error(`[did-provider-cheqd]: verify credential: Unsupported status purpose: ${credential.credentialStatus?.statusPurpose}`)
|
|
1649
1649
|
}
|
|
@@ -1674,17 +1674,17 @@ export class Cheqd implements IAgentPlugin {
|
|
|
1674
1674
|
|
|
1675
1675
|
switch (credential.credentialStatus?.statusPurpose) {
|
|
1676
1676
|
case 'revocation':
|
|
1677
|
-
if (await Cheqd.checkRevoked(credential, { ...args.options, topArgs: args })) return {
|
|
1677
|
+
if (await Cheqd.checkRevoked(credential, { ...args.options, topArgs: args })) return { ...verificationResult, revoked: true }
|
|
1678
1678
|
break
|
|
1679
1679
|
case 'suspension':
|
|
1680
|
-
if (await Cheqd.checkSuspended(credential, { ...args.options, topArgs: args })) return {
|
|
1680
|
+
if (await Cheqd.checkSuspended(credential, { ...args.options, topArgs: args })) return { ...verificationResult, suspended: true }
|
|
1681
1681
|
break
|
|
1682
1682
|
default:
|
|
1683
1683
|
throw new Error(`[did-provider-cheqd]: verify presentation: Unsupported status purpose: ${credential.credentialStatus?.statusPurpose}`)
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
1686
|
|
|
1687
|
-
return { verified: true }
|
|
1687
|
+
return { ...verificationResult, verified: true }
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
private async CheckCredentialStatusWithStatusList2021(args: ICheqdCheckCredentialStatusWithStatusList2021Args, context: IContext): Promise<StatusCheckResult> {
|