@veramo/credential-status 6.0.1-next.40 → 6.0.1-next.48
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-status.d.ts","sourceRoot":"","sources":["../src/credential-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,yBAAyB,EAG1B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAU,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAExD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"credential-status.d.ts","sourceRoot":"","sources":["../src/credential-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,yBAAyB,EAG1B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAU,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAExD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA8BizhK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAogD,CAAC;gCAA6C,CAAC;;;;;;;;;;;;;;;;6BAAkgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAumC,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAA2W,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAAwW,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAAgX,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAAgX,CAAC;;;wCAA6I,CAAC;;;;;;;;qCAA2T,CAAC;;;qCAAkI,CAAC;qCAAkD,CAAC;;;;;;qCAAgQ,CAAC;;;;;;;;;;;;;;;qCAA0iB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAy5M,CAAC;qCAAkD,CAAC;;;;;;oCAA+P,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA9Brh8K;IAClD,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAA;gBAE/B,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAM;YAOzC,qBAAqB;CAmBpC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veramo/credential-status",
|
|
3
3
|
"description": "Veramo plugin for resolving a credential status",
|
|
4
|
-
"version": "6.0.1-next.
|
|
4
|
+
"version": "6.0.1-next.48+af606174a",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"exports": "./build/index.js",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"extract-api": "node ../cli/bin/veramo.js dev extract-api"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@veramo/core-types": "^6.0.1-next.
|
|
14
|
-
"@veramo/utils": "^6.0.1-next.
|
|
13
|
+
"@veramo/core-types": "^6.0.1-next.48+af606174a",
|
|
14
|
+
"@veramo/utils": "^6.0.1-next.48+af606174a",
|
|
15
15
|
"credential-status": "^3.0.0",
|
|
16
16
|
"did-jwt": "^8.0.0",
|
|
17
17
|
"did-resolver": "^4.1.0"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"node_modules",
|
|
55
55
|
"src"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "af606174aa762eec4f28fc2d7d91578cf95d05a9"
|
|
58
58
|
}
|
|
@@ -38,8 +38,8 @@ describe('@veramo/credential-status', () => {
|
|
|
38
38
|
})
|
|
39
39
|
|
|
40
40
|
expect(result).toStrictEqual(expectedResult)
|
|
41
|
-
expect(checkStatus).
|
|
42
|
-
expect(checkStatus).
|
|
41
|
+
expect(checkStatus).toHaveBeenCalledTimes(1)
|
|
42
|
+
expect(checkStatus).toHaveBeenCalledWith(referenceCredential, referenceDoc)
|
|
43
43
|
})
|
|
44
44
|
|
|
45
45
|
it('should check the credential status using DID resolver to get the issuer doc', async () => {
|
|
@@ -71,9 +71,9 @@ describe('@veramo/credential-status', () => {
|
|
|
71
71
|
})
|
|
72
72
|
|
|
73
73
|
expect(result).toStrictEqual(expectedResult)
|
|
74
|
-
expect(checkStatus).
|
|
75
|
-
expect(checkStatus).
|
|
76
|
-
expect(fakeResolver.resolve).
|
|
74
|
+
expect(checkStatus).toHaveBeenCalledTimes(1)
|
|
75
|
+
expect(checkStatus).toHaveBeenCalledWith(referenceCredential, referenceDoc)
|
|
76
|
+
expect(fakeResolver.resolve).toHaveBeenCalledTimes(1)
|
|
77
77
|
})
|
|
78
78
|
|
|
79
79
|
it('should not perform status check if no `credentialStatus` present', async () => {
|
|
@@ -97,7 +97,7 @@ describe('@veramo/credential-status', () => {
|
|
|
97
97
|
message: 'credentialStatus property was not set on the original credential',
|
|
98
98
|
revoked: false,
|
|
99
99
|
})
|
|
100
|
-
expect(checkStatus).
|
|
100
|
+
expect(checkStatus).toHaveBeenCalledTimes(0)
|
|
101
101
|
})
|
|
102
102
|
|
|
103
103
|
it('should throw if unknown status check was provided', async () => {
|