Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 283b16b3ee | |
Derrick Hammer | 0ede0480d4 | |
Derrick Hammer | 1a3241688c |
|
@ -1,3 +1,10 @@
|
|||
# [0.1.0-develop.29](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.28...v0.1.0-develop.29) (2023-09-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add try/catch on db.get ([1a32416](https://git.lumeweb.com/LumeWeb/libs5/commit/1a3241688c2b92a8c685a6da15ead30c117582ff))
|
||||
|
||||
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2023-09-02)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.28",
|
||||
"version": "0.1.0-develop.29",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.28",
|
||||
"version": "0.1.0-develop.29",
|
||||
"dependencies": {
|
||||
"@noble/curves": "^1.1.0",
|
||||
"@noble/hashes": "^1.3.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.28",
|
||||
"version": "0.1.0-develop.29",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -194,7 +194,10 @@ export class RegistryService {
|
|||
}
|
||||
|
||||
async getFromDB(pk: Uint8Array): Promise<SignedRegistryEntry | null> {
|
||||
const val = await this.db?.get(stringifyBytes(pk));
|
||||
let val;
|
||||
try {
|
||||
val = await this.db?.get(stringifyBytes(pk));
|
||||
} catch {}
|
||||
|
||||
if (val) {
|
||||
return this.deserializeRegistryEntry(val);
|
||||
|
|
Loading…
Reference in New Issue