Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonld-signatures

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonld-signatures - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

9

CHANGELOG.md
# 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 @@

5

dist/node6/lib/ProofSet.js

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

6

lib/ProofSet.js

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

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