jsonld-signatures
Advanced tools
Comparing version 11.3.1 to 11.3.2
@@ -227,6 +227,10 @@ /*! | ||
const context = document['@context'] || constants.SECURITY_CONTEXT_URL; | ||
proofSet = proofSet.map(proof => ({ | ||
'@context': context, | ||
...proof | ||
})); | ||
proofSet = proofSet.map(proof => { | ||
const {cryptosuite} = proof; | ||
// JCS Data Integrity Suites require unmodified proofs | ||
if(cryptosuite?.includes?.('-jcs-')) { | ||
return proof; | ||
} | ||
return {'@context': context, ...proof}; | ||
}); | ||
@@ -233,0 +237,0 @@ return proofSet; |
{ | ||
"name": "jsonld-signatures", | ||
"version": "11.3.1", | ||
"version": "11.3.2", | ||
"description": "An implementation of the Linked Data Signatures specifications for JSON-LD in JavaScript.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/digitalbazaar/jsonld-signatures", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
68146
1544
1