bedrock-did-io
Advanced tools
Comparing version 6.0.2 to 6.1.0
# 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 |
@@ -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); | ||
}); |
{ | ||
"name": "bedrock-did-io", | ||
"version": "6.0.2", | ||
"version": "6.1.0", | ||
"description": "Bedrock DID Client", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
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
13021
96