did-jwt-vc
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,8 @@ | ||
## [2.0.2](https://github.com/decentralized-identity/did-jwt-vc/compare/2.0.1...2.0.2) (2021-03-26) | ||
### Bug Fixes | ||
* **deps:** use Resolvable type from did-resolver ([e731e7e](https://github.com/decentralized-identity/did-jwt-vc/commit/e731e7e0549392d14909c1f78fbce343620fdfa3)) | ||
## [2.0.1](https://github.com/decentralized-identity/did-jwt-vc/compare/2.0.0...2.0.1) (2021-03-25) | ||
@@ -2,0 +9,0 @@ |
@@ -1,4 +0,5 @@ | ||
import { JwtCredentialPayload, Issuer, JwtPresentationPayload, JWT, VerifiablePresentation, VerifiableCredential, CredentialPayload, PresentationPayload, Verifiable, W3CCredential, W3CPresentation, VerifiedCredential, VerifiedPresentation, VerifyPresentationOptions, CreatePresentationOptions, CreateCredentialOptions, VerifyCredentialOptions, Resolvable } from './types'; | ||
import { Resolvable } from 'did-resolver'; | ||
import { JwtCredentialPayload, Issuer, JwtPresentationPayload, JWT, VerifiablePresentation, VerifiableCredential, CredentialPayload, PresentationPayload, Verifiable, W3CCredential, W3CPresentation, VerifiedCredential, VerifiedPresentation, VerifyPresentationOptions, CreatePresentationOptions, CreateCredentialOptions, VerifyCredentialOptions } from './types'; | ||
import { transformCredentialInput, transformPresentationInput, normalizeCredential, normalizePresentation } from './converters'; | ||
export { Issuer, CredentialPayload, PresentationPayload, JwtCredentialPayload, JwtPresentationPayload, VerifiableCredential, VerifiablePresentation, VerifiedCredential, VerifiedPresentation, Verifiable, W3CCredential, W3CPresentation, transformCredentialInput, transformPresentationInput, normalizeCredential, normalizePresentation, Resolvable }; | ||
export { Issuer, CredentialPayload, PresentationPayload, JwtCredentialPayload, JwtPresentationPayload, VerifiableCredential, VerifiablePresentation, VerifiedCredential, VerifiedPresentation, Verifiable, W3CCredential, W3CPresentation, transformCredentialInput, transformPresentationInput, normalizeCredential, normalizePresentation }; | ||
/** | ||
@@ -5,0 +6,0 @@ * Creates a VerifiableCredential given a `CredentialPayload` or `JwtCredentialPayload` and an `Issuer`. |
import { Signer, JWTVerified } from 'did-jwt'; | ||
import { DIDResolutionOptions, DIDResolutionResult } from 'did-resolver'; | ||
export declare type Resolvable = { | ||
resolve: (didUrl: string, options: DIDResolutionOptions) => Promise<DIDResolutionResult>; | ||
}; | ||
export interface JwtCredentialSubject { | ||
@@ -7,0 +3,0 @@ [x: string]: any; |
{ | ||
"name": "did-jwt-vc", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Create and verify W3C Verifiable Credentials and Presentations in JWT format", | ||
@@ -28,3 +28,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"did-jwt": "5.1.1" | ||
"did-jwt": "^5.1.2", | ||
"did-resolver": "^3.1.0" | ||
}, | ||
@@ -59,8 +60,7 @@ "repository": { | ||
"@types/faker": "5.1.7", | ||
"@types/jest": "26.0.21", | ||
"@types/node": "14.14.35", | ||
"@types/jest": "26.0.22", | ||
"@types/node": "14.14.36", | ||
"codecov": "3.8.1", | ||
"did-resolver": "3.0.2", | ||
"ethr-did": "1.3.0", | ||
"faker": "5.4.0", | ||
"faker": "5.5.0", | ||
"jest": "26.6.3", | ||
@@ -67,0 +67,0 @@ "prettier": "2.2.1", |
@@ -11,2 +11,3 @@ import EthrDID from 'ethr-did' | ||
import { decodeJWT } from 'did-jwt' | ||
import { Resolvable } from 'did-resolver' | ||
import { DEFAULT_VC_TYPE, DEFAULT_VP_TYPE, DEFAULT_CONTEXT } from '../constants' | ||
@@ -21,3 +22,3 @@ import { | ||
} from '../validators' | ||
import { CreatePresentationOptions, Resolvable, VerifyPresentationOptions } from '../types' | ||
import { CreatePresentationOptions, VerifyPresentationOptions } from '../types' | ||
@@ -24,0 +25,0 @@ jest.mock('../validators') |
import { createJWT, verifyJWT } from 'did-jwt' | ||
import { Resolvable } from 'did-resolver' | ||
import { JWT_ALG } from './constants' | ||
@@ -21,4 +22,3 @@ import * as validators from './validators' | ||
CreateCredentialOptions, | ||
VerifyCredentialOptions, | ||
Resolvable | ||
VerifyCredentialOptions | ||
} from './types' | ||
@@ -49,4 +49,3 @@ import { | ||
normalizeCredential, | ||
normalizePresentation, | ||
Resolvable | ||
normalizePresentation | ||
} | ||
@@ -53,0 +52,0 @@ |
@@ -1,6 +0,3 @@ | ||
import { Signer, JWTVerified, verifyJWT } from 'did-jwt' | ||
import { DIDResolutionOptions, DIDResolutionResult } from 'did-resolver' | ||
import { Signer, JWTVerified } from 'did-jwt' | ||
export type Resolvable = { resolve: (didUrl: string, options: DIDResolutionOptions) => Promise<DIDResolutionResult> } | ||
export interface JwtCredentialSubject { | ||
@@ -7,0 +4,0 @@ [x: string]: any |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16
252579
2
4133
+ Addeddid-resolver@^3.1.0
+ Addedbech32@2.0.0(transitive)
+ Addedcanonicalize@1.0.8(transitive)
+ Addeddid-jwt@5.12.4(transitive)
+ Addeduint8arrays@3.1.1(transitive)
- Removeddid-jwt@5.1.1(transitive)
- Removeduint8arrays@2.1.10(transitive)
Updateddid-jwt@^5.1.2