New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sphereon/ssi-types

Package Overview
Dependencies
Maintainers
4
Versions
1258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sphereon/ssi-types - npm Package Compare versions

Comparing version 0.9.1-unstable.34 to 0.9.1-unstable.66

2

dist/mapper/credential-mapper.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc