@sphereon/ssi-types
Advanced tools
Comparing version 0.8.1-unstable.266 to 0.8.1-unstable.267
@@ -76,8 +76,2 @@ "use strict"; | ||
} | ||
if (typeof vp.type === 'string') { | ||
vp.type = [vp.type]; | ||
} | ||
if (typeof vp['@context'] === 'string') { | ||
vp['@context'] = [vp['@context']]; | ||
} | ||
const vcs = CredentialMapper.toWrappedVerifiableCredentials(vp.verifiableCredential /*.map(value => value.original)*/, opts); | ||
@@ -84,0 +78,0 @@ const presentation = Object.assign(Object.assign({}, vp), { verifiableCredential: vcs }); |
@@ -138,4 +138,4 @@ import { PresentationSubmission } from './pex'; | ||
export interface UniformVerifiablePresentation { | ||
'@context': ICredentialContextType[]; | ||
type: string[]; | ||
'@context': ICredentialContextType | ICredentialContextType[]; | ||
type: string | string[]; | ||
verifiableCredential: WrappedVerifiableCredential[]; | ||
@@ -142,0 +142,0 @@ presentation_submission?: PresentationSubmission; |
{ | ||
"name": "@sphereon/ssi-types", | ||
"description": "SSI Common Types", | ||
"version": "0.8.1-unstable.266+f089ac1", | ||
"version": "0.8.1-unstable.267+3c2b8ed", | ||
"main": "dist/index.js", | ||
@@ -41,3 +41,3 @@ "types": "dist/index.d.ts", | ||
], | ||
"gitHead": "f089ac18dc470f0b8c581b49e70e7eba64d72bc3" | ||
"gitHead": "3c2b8ed171aa196473afedb007ba27e4c1c3e71f" | ||
} |
@@ -29,2 +29,3 @@ import { | ||
const header = jwt_decode(presentation as string, { header: true }) as Record<string, any> | ||
payload.vp.proof = { | ||
@@ -88,9 +89,2 @@ type: IProofType.JwtProof2020, | ||
} | ||
if (typeof vp.type === 'string') { | ||
vp.type = [vp.type] | ||
} | ||
if (typeof vp['@context'] === 'string') { | ||
vp['@context'] = [vp['@context']] | ||
} | ||
const vcs: WrappedVerifiableCredential[] = CredentialMapper.toWrappedVerifiableCredentials(vp.verifiableCredential/*.map(value => value.original)*/, opts) | ||
@@ -97,0 +91,0 @@ |
@@ -169,4 +169,4 @@ import { PresentationSubmission } from './pex' | ||
export interface UniformVerifiablePresentation { | ||
'@context': ICredentialContextType[] | ||
type: string[] | ||
'@context': ICredentialContextType | ICredentialContextType[] | ||
type: string | string[] | ||
verifiableCredential: WrappedVerifiableCredential[] | ||
@@ -173,0 +173,0 @@ presentation_submission?: PresentationSubmission |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
102849
1499