Compare commits

..

No commits in common. "v0.1.0-develop.63" and "v0.1.0-develop.62" have entirely different histories.

4 changed files with 4 additions and 16 deletions

View File

@ -1,10 +1,3 @@
# [0.1.0-develop.63](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.62...v0.1.0-develop.63) (2023-11-18)
### Bug Fixes
* wrap db.get in a try/catch ([b578a32](https://git.lumeweb.com/LumeWeb/libs5/commit/b578a32a4460c0f26e3d027df038936b4ca818a4))
# [0.1.0-develop.62](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.61...v0.1.0-develop.62) (2023-11-17)

4
npm-shrinkwrap.json generated
View File

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

View File

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

View File

@ -137,12 +137,7 @@ export class S5Node {
hash: Multihash,
): Promise<Map<number, Map<NodeId, Map<number, any>>>> {
const map = new Map<number, Map<NodeId, Map<number, any>>>();
let bytes;
try {
bytes = await this.db.get(stringifyHash(hash));
} catch {
return map;
}
const bytes = await this.db.get(stringifyHash(hash));
if (bytes === null) {
return map;
}