@sphereon/ssi-types
Advanced tools
Comparing version 0.9.1-unstable.34 to 0.9.1-unstable.66
@@ -29,3 +29,3 @@ import { DocumentFormat, IPresentation, IVerifiableCredential, IVerifiablePresentation, JwtDecodedVerifiableCredential, JwtDecodedVerifiablePresentation, OriginalVerifiableCredential, OriginalVerifiablePresentation, W3CVerifiableCredential, W3CVerifiablePresentation, WrappedVerifiableCredential, WrappedVerifiablePresentation } from '../types'; | ||
maxTimeSkewInMS?: number; | ||
repairMissingVpContext?: boolean; | ||
addContextIfMissing?: boolean; | ||
}): IVerifiablePresentation; | ||
@@ -32,0 +32,0 @@ static jwtEncodedCredentialToUniformCredential(jwt: string, opts?: { |
@@ -180,3 +180,3 @@ "use strict"; | ||
// At time of writing Velocity Networks does not conform to specification. Adding bare minimum @context section to stop parsers from crashing and whatnot | ||
if ((opts === null || opts === void 0 ? void 0 : opts.repairMissingVpContext) && !uniformPresentation['@context']) { | ||
if ((opts === null || opts === void 0 ? void 0 : opts.addContextIfMissing) && !uniformPresentation['@context']) { | ||
uniformPresentation['@context'] = ['https://www.w3.org/2018/credentials/v1']; | ||
@@ -183,0 +183,0 @@ } |
{ | ||
"name": "@sphereon/ssi-types", | ||
"description": "SSI Common Types", | ||
"version": "0.9.1-unstable.34+0a44ee7", | ||
"version": "0.9.1-unstable.66+61cb806", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc --build --clean && tsc --build" | ||
"build": "tsc --build", | ||
"build:clean": "tsc --build --clean && tsc --build" | ||
}, | ||
@@ -40,3 +41,3 @@ "dependencies": { | ||
], | ||
"gitHead": "0a44ee76d7df4f0a1bd0a7aa092ab1f417269f97" | ||
"gitHead": "61cb806b4909d593791158fee36260b12301d2bc" | ||
} |
@@ -222,3 +222,3 @@ import { | ||
presentation: OriginalVerifiablePresentation, | ||
opts?: { maxTimeSkewInMS?: number; repairMissingVpContext?: boolean } | ||
opts?: { maxTimeSkewInMS?: number; addContextIfMissing?: boolean } | ||
): IVerifiablePresentation { | ||
@@ -235,3 +235,3 @@ const original = presentation | ||
// At time of writing Velocity Networks does not conform to specification. Adding bare minimum @context section to stop parsers from crashing and whatnot | ||
if (opts?.repairMissingVpContext && !uniformPresentation['@context']) { | ||
if (opts?.addContextIfMissing && !uniformPresentation['@context']) { | ||
uniformPresentation['@context'] = ['https://www.w3.org/2018/credentials/v1'] | ||
@@ -238,0 +238,0 @@ } |
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
104327
43000