@veramo/credential-status 3.1.6-next.148 → 3.1.6-next.149

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,EAAiB,YAAY,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAU,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,sBAAsB,EAA8B,MAAM,SAAS,CAAA;AAE5E;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAA;gBAE5B,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAM;YAOzC,qBAAqB;CAGpC"}
1
+ {"version":3,"file":"credential-status.d.ts","sourceRoot":"","sources":["../src/credential-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAwB,MAAM,cAAc,CAAA;AAChF,OAAO,EAA4B,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,sBAAsB,EAA8B,MAAM,SAAS,CAAA;AAE5E;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAA;gBAE5B,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAM;YAOzC,qBAAqB;CAGpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"credential-status.js","sourceRoot":"","sources":["../src/credential-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAwD;AAGxD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,sBAAsB;IAIjC,YAAY,WAAyC,EAAE;QACrD,IAAI,CAAC,MAAM,GAAG,IAAI,0BAAM,CAAC,QAAQ,CAAC,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG;YACb,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC;SAC7D,CAAA;IACH,CAAC;IAEa,qBAAqB,CAAC,IAAgC,EAAE,OAA2B;;YAC/F,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9D,CAAC;KAAA;CACF;AAdD,wDAcC"}
1
+ {"version":3,"file":"credential-status.js","sourceRoot":"","sources":["../src/credential-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAA0E;AAG1E;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,sBAAsB;IAIjC,YAAY,WAAyC,EAAE;QACrD,IAAI,CAAC,MAAM,GAAG,IAAI,0BAAM,CAAC,QAAQ,CAAC,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG;YACb,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC;SAC7D,CAAA;IACH,CAAC;IAEa,qBAAqB,CAAC,IAAgC,EAAE,OAA2B;;YAC/F,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9D,CAAC;KAAA;CACF;AAdD,wDAcC"}
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": "3.1.6-next.148+48b937ee",
4
+ "version": "3.1.6-next.149+877c513a",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
7
7
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@veramo/core": "^3.1.6-next.148+48b937ee",
17
+ "@veramo/core": "^3.1.6-next.149+877c513a",
18
18
  "credential-status": "^2.0.3",
19
19
  "did-jwt": "^6.2.0",
20
20
  "did-resolver": "^3.2.2"
@@ -38,5 +38,5 @@
38
38
  "contributors": [],
39
39
  "license": "Apache-2.0",
40
40
  "keywords": [],
41
- "gitHead": "48b937ee13045736fdc495472847b0b0ee615814"
41
+ "gitHead": "877c513a5bc253ed30c74ace00ce988197d12a2d"
42
42
  }
@@ -59,18 +59,15 @@ describe('@veramo/credential-status', () => {
59
59
  it('should throw if unknown status check was provided', async () => {
60
60
  expect.assertions(1);
61
61
  const agent = createAgent({
62
- plugins: [new CredentialStatusPlugin()],
62
+ plugins: [
63
+ new CredentialStatusPlugin({
64
+ NotCalled: jest.fn()
65
+ })
66
+ ],
63
67
  })
64
68
 
65
- await expect(() =>
66
- agent.checkCredentialStatus({
67
- credential: referenceCredential,
68
- didDoc: referenceDoc,
69
- }),
70
- ).rejects.toThrow(
71
- new Error(
72
- `unknown_method: credentialStatus method ExoticStatusMethod2022 unknown. Validity can not be determined.`,
73
- ),
74
- )
69
+ await expect(agent.checkCredentialStatus({
70
+ credential: referenceCredential
71
+ })).rejects.toThrow(`unknown_method: credentialStatus method ExoticStatusMethod2022 unknown. Validity can not be determined.`)
75
72
  })
76
73
  })
@@ -1,5 +1,5 @@
1
- import { IAgentContext, IAgentPlugin } from '@veramo/core'
2
- import { Status, StatusMethod } from 'credential-status'
1
+ import { IAgentContext, IAgentPlugin, VerifiableCredential } from '@veramo/core'
2
+ import { CredentialStatus, Status, StatusMethod } from 'credential-status'
3
3
  import { ICheckCredentialStatus, ICheckCredentialStatusArgs } from './types'
4
4
 
5
5
  /**
@@ -35,3 +35,4 @@ export class CredentialStatusPlugin implements IAgentPlugin {
35
35
  return this.status.checkStatus(args.credential, args.didDoc)
36
36
  }
37
37
  }
38
+