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

bedrock-did-context

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bedrock-did-context - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

5

CHANGELOG.md
# bedrock-did-context ChangeLog
## 2.0.2 - 2021-09-15
### Changed
- Refactor constant and context import.
## 2.0.1 - 2021-09-15

@@ -4,0 +9,0 @@

13

lib/index.js

@@ -14,10 +14,9 @@ /*!

for(const module of contextModules) {
const {contexts, constants: contextConstants} = require(module);
for(const c in contextConstants) {
if(c.includes('URL')) {
const contextUrl = contextConstants[c];
bedrockConstants[c] = contextUrl;
jsonLdDocumentLoader.addStatic(contextUrl, contexts.get(contextUrl));
}
const {contexts, constants} = require(module);
for(const [contextUrl, context] of contexts) {
jsonLdDocumentLoader.addStatic(contextUrl, context);
}
for(const constant in constants) {
bedrockConstants[constant] = constants[constant];
}
}
{
"name": "bedrock-did-context",
"version": "2.0.1",
"version": "2.0.2",
"description": "DID Context (Bedrock module)",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md",

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