Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 283b16b3ee chore(release): 0.1.0-develop.29 [skip ci]
# [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](1a3241688c))
2023-09-02 00:29:09 +00:00
Derrick Hammer 0ede0480d4
Merge remote-tracking branch 'origin/develop' into develop 2023-09-01 20:28:27 -04:00
Derrick Hammer 1a3241688c
fix: add try/catch on db.get 2023-09-01 20:27:34 -04:00
4 changed files with 14 additions and 4 deletions

View File

@ -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) # [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.28", "version": "0.1.0-develop.29",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.28", "version": "0.1.0-develop.29",
"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.28", "version": "0.1.0-develop.29",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -194,7 +194,10 @@ export class RegistryService {
} }
async getFromDB(pk: Uint8Array): Promise<SignedRegistryEntry | null> { 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) { if (val) {
return this.deserializeRegistryEntry(val); return this.deserializeRegistryEntry(val);