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

View File

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