jsonld-signatures
Advanced tools
Comparing version 9.1.0 to 9.1.1
# jsonld-signatures ChangeLog | ||
## 9.1.1 - 2021-06-29 | ||
### Fixed | ||
- Use `Map` to internally represent contexts instead of an object. This | ||
optimizes better w/ v8. | ||
## 9.1.0 - 2021-06-29 | ||
@@ -4,0 +10,0 @@ |
/* | ||
* Copyright (c) 2017-2018 Digital Bazaar, Inc. All rights reserved. | ||
* Copyright (c) 2017-2021 Digital Bazaar, Inc. All rights reserved. | ||
*/ | ||
@@ -9,7 +9,7 @@ 'use strict'; | ||
module.exports = { | ||
[constants.SECURITY_CONTEXT_V1_URL]: | ||
securityContexts.get(constants.SECURITY_CONTEXT_V1_URL), | ||
[constants.SECURITY_CONTEXT_V2_URL]: | ||
securityContexts.get(constants.SECURITY_CONTEXT_V2_URL) | ||
}; | ||
module.exports = new Map([ | ||
[constants.SECURITY_CONTEXT_V1_URL, | ||
securityContexts.get(constants.SECURITY_CONTEXT_V1_URL)], | ||
[constants.SECURITY_CONTEXT_V2_URL, | ||
securityContexts.get(constants.SECURITY_CONTEXT_V2_URL)] | ||
]); |
/*! | ||
* Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved. | ||
* Copyright (c) 2018-2021 Digital Bazaar, Inc. All rights reserved. | ||
*/ | ||
@@ -39,3 +39,3 @@ 'use strict'; | ||
return async url => { | ||
const context = contexts[url]; | ||
const context = contexts.get(url); | ||
if(context !== undefined) { | ||
@@ -42,0 +42,0 @@ return { |
{ | ||
"name": "jsonld-signatures", | ||
"version": "9.1.0", | ||
"version": "9.1.1", | ||
"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", |
66647