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

bedrock-did-io

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bedrock-did-io - npm Package Compare versions

Comparing version 6.0.2 to 6.1.0

10

CHANGELOG.md
# bedrock-did-io ChangeLog
## 6.1.0 - 2022-02-24
### Added
- Add configuration option `methodOverrides.v1.disableFetch` that takes a
boolean and is set to `false` by default. This option will prevent the
veres one driver from fetching a DID document from the veres one ledger,
causing it to only resolve `nym` DIDs. Note that this option is not safe
other than in development or for veres one networks that are known to be
non-operational or out of date.
## 6.0.2 - 2022-02-10

@@ -4,0 +14,0 @@

@@ -18,2 +18,8 @@ /*!

cfg.methodOverrides = {
v1: {
disableFetch: false
}
};
cfg.cache = {

@@ -20,0 +26,0 @@ // store up to 1k DID docs in memory by default

10

lib/main.js

@@ -28,3 +28,11 @@ /*!

// support did:v1
didIo.use(didVeresOne.driver(cfg.methods.v1));
const v1Driver = didVeresOne.driver(cfg.methods.v1);
if(cfg.methodOverrides.v1.disableFetch) {
v1Driver.client.get = async function() {
const error = new Error('Veres one ledger check skipped.');
error.name = 'NotFoundError';
throw error;
};
}
didIo.use(v1Driver);
});

2

package.json
{
"name": "bedrock-did-io",
"version": "6.0.2",
"version": "6.1.0",
"description": "Bedrock DID Client",

@@ -5,0 +5,0 @@ "main": "./lib",

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