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

jsonld-signatures

Package Overview
Dependencies
Maintainers
6
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 9.1.0 to 9.1.1

6

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

14

lib/contexts.js
/*
* 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",

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