Compare commits

..

No commits in common. "v0.1.0-develop.29" and "v0.1.0-develop.28" have entirely different histories.

4 changed files with 4 additions and 14 deletions

View File

@ -1,10 +1,3 @@
# [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) # [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)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.29", "version": "0.1.0-develop.28",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.29", "version": "0.1.0-develop.28",
"dependencies": { "dependencies": {
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.29", "version": "0.1.0-develop.28",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -194,10 +194,7 @@ export class RegistryService {
} }
async getFromDB(pk: Uint8Array): Promise<SignedRegistryEntry | null> { async getFromDB(pk: Uint8Array): Promise<SignedRegistryEntry | null> {
let val; const val = await this.db?.get(stringifyBytes(pk));
try {
val = await this.db?.get(stringifyBytes(pk));
} catch {}
if (val) { if (val) {
return this.deserializeRegistryEntry(val); return this.deserializeRegistryEntry(val);