Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot 6f0937fa6f chore(release): 0.1.0-develop.66 [skip ci]
# [0.1.0-develop.66](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.65...v0.1.0-develop.66) (2023-11-18)

### Bug Fixes

* hashQueryRoutingTable is a map not object ([4848236](4848236882))
2023-11-18 09:55:25 +00:00
Derrick Hammer 23e06e9cc4
Merge remote-tracking branch 'origin/develop' into develop 2023-11-18 04:54:45 -05:00
Derrick Hammer 4848236882
fix: hashQueryRoutingTable is a map not object 2023-11-18 04:54:41 -05:00
4 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.66](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.65...v0.1.0-develop.66) (2023-11-18)
### Bug Fixes
* hashQueryRoutingTable is a map not object ([4848236](https://git.lumeweb.com/LumeWeb/libs5/commit/4848236882cf643b05172b1d49893a18f3649e50))
# [0.1.0-develop.65](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.64...v0.1.0-develop.65) (2023-11-18) # [0.1.0-develop.65](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.64...v0.1.0-develop.65) (2023-11-18)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.65", "version": "0.1.0-develop.66",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.65", "version": "0.1.0-develop.66",
"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.65", "version": "0.1.0-develop.66",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -31,8 +31,8 @@ export default async function (
const hashCode = hash.hashCode; const hashCode = hash.hashCode;
if (node.hashQueryRoutingTable.has(hashCode)) { if (node.hashQueryRoutingTable.has(hashCode)) {
if (!node.hashQueryRoutingTable[hashCode].includes(peer.id)) { if (!node.hashQueryRoutingTable.get(hashCode)?.has(peer.id)) {
node.hashQueryRoutingTable[hashCode].push(peer.id); node.hashQueryRoutingTable.get(hashCode)?.add(peer.id);
} }
return; return;
} }