jsonld-signatures
Advanced tools
Comparing version 3.1.0 to 3.1.1
# jsonld-signatures ChangeLog | ||
## 3.1.1 - 2019-01-08 | ||
### Fixed | ||
- Fix ProofSet proof matching. | ||
- Use 2048-bit RSA keys in tests. | ||
### Changed | ||
- Improve usage of Babel features. | ||
## 3.1.0 - 2019-01-04 | ||
@@ -4,0 +13,0 @@ |
@@ -401,7 +401,8 @@ /*! | ||
// filter out matching proofs | ||
const matches = proofSet.filter(proof => purpose ? purpose.match(proof, { | ||
const result = yield Promise.all(proofSet.map(proof => purpose.match(proof, { | ||
document, | ||
documentLoader, | ||
expansionMap | ||
}) : true); | ||
}))); | ||
const matches = proofSet.filter((value, index) => result[index]); | ||
@@ -408,0 +409,0 @@ if (matches.length === 0) { |
@@ -309,5 +309,5 @@ /*! | ||
// filter out matching proofs | ||
const matches = proofSet.filter(proof => purpose ? | ||
purpose.match(proof, {document, documentLoader, expansionMap}) : | ||
true); | ||
const result = await Promise.all(proofSet.map(proof => | ||
purpose.match(proof, {document, documentLoader, expansionMap}))); | ||
const matches = proofSet.filter((value, index) => result[index]); | ||
if(matches.length === 0) { | ||
@@ -314,0 +314,0 @@ // no matches, nothing to verify |
{ | ||
"name": "jsonld-signatures", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "An implementation of the Linked Data Signatures specifications for JSON-LD in JavaScript.", | ||
@@ -47,5 +47,7 @@ "homepage": "https://github.com/digitalbazaar/jsonld-signatures", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.2.0", | ||
"@babel/plugin-transform-regenerator": "^7.0.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.2.0", | ||
"@babel/plugin-transform-runtime": "^7.2.0", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/register": "^7.0.0", | ||
"@babel/runtime": "^7.2.0", | ||
"babel-loader": "^8.0.4", | ||
@@ -75,3 +77,2 @@ "browserify": "^16.1.0", | ||
"nyc": "^13.1.0", | ||
"regenerator-runtime": "^0.13.1", | ||
"webpack": "^4.28.3", | ||
@@ -78,0 +79,0 @@ "webpack-cli": "^3.2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
7196
666653
35
36
139