@veramo/credential-eip712
Advanced tools
Comparing version 5.2.1-next.2 to 5.2.1-next.4
@@ -145,3 +145,6 @@ import { extractIssuer, getChainIdForDidEthr, getEthereumAddress, isDefined, MANDATORY_CREDENTIAL_CONTEXT, mapIdentifierKeysToDoc, processEntryToArray, resolveDidOrThrow, } from '@veramo/utils'; | ||
// map JWT credentials to their canonical form | ||
if (typeof cred !== 'string' && cred.proof.jwt) { | ||
if (typeof cred === 'string') { | ||
return cred; | ||
} | ||
else if (cred.proof.jwt) { | ||
return cred.proof.jwt; | ||
@@ -148,0 +151,0 @@ } |
{ | ||
"name": "@veramo/credential-eip712", | ||
"description": "Veramo plugin for working with EIP712 Verifiable Credentials & Presentations.", | ||
"version": "5.2.1-next.2+13294fa8", | ||
"version": "5.2.1-next.4+469dcd9b", | ||
"main": "build/index.js", | ||
@@ -22,4 +22,4 @@ "exports": { | ||
"@metamask/eth-sig-util": "^5.0.0", | ||
"@veramo/core-types": "^5.2.1-next.2+13294fa8", | ||
"@veramo/utils": "^5.2.1-next.2+13294fa8", | ||
"@veramo/core-types": "^5.2.1-next.4+469dcd9b", | ||
"@veramo/utils": "^5.2.1-next.4+469dcd9b", | ||
"debug": "^4.3.3", | ||
@@ -61,3 +61,3 @@ "eip-712-types-generation": "^0.1.6" | ||
], | ||
"gitHead": "13294fa87c347994022e2c34c4941fe681ffa084" | ||
"gitHead": "469dcd9ba008dc73934335f55e9da80152c40371" | ||
} |
@@ -218,3 +218,5 @@ import { | ||
// map JWT credentials to their canonical form | ||
if (typeof cred !== 'string' && cred.proof.jwt) { | ||
if(typeof cred === 'string') { | ||
return cred | ||
} else if (cred.proof.jwt) { | ||
return cred.proof.jwt | ||
@@ -221,0 +223,0 @@ } else { |
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
108338
2014