bedrock-did-context
Advanced tools
Comparing version 2.0.1 to 2.0.2
# 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 @@ |
@@ -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", |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7414
0
23