Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 52556bf703 | |
Derrick Hammer | 443fdcb14d | |
Derrick Hammer | c1f471e921 |
|
@ -1,3 +1,10 @@
|
||||||
|
# [0.1.0-develop.70](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.69...v0.1.0-develop.70) (2023-11-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* need to use Object.entries ([c1f471e](https://git.lumeweb.com/LumeWeb/libs5/commit/c1f471e921930e5f1a1ab9a087b8ea894f985345))
|
||||||
|
|
||||||
# [0.1.0-develop.69](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.68...v0.1.0-develop.69) (2023-11-18)
|
# [0.1.0-develop.69](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.68...v0.1.0-develop.69) (2023-11-18)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/libs5",
|
"name": "@lumeweb/libs5",
|
||||||
"version": "0.1.0-develop.69",
|
"version": "0.1.0-develop.70",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lumeweb/libs5",
|
"name": "@lumeweb/libs5",
|
||||||
"version": "0.1.0-develop.69",
|
"version": "0.1.0-develop.70",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@noble/curves": "^1.1.0",
|
"@noble/curves": "^1.1.0",
|
||||||
"@noble/hashes": "^1.3.1",
|
"@noble/hashes": "^1.3.1",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/libs5",
|
"name": "@lumeweb/libs5",
|
||||||
"version": "0.1.0-develop.69",
|
"version": "0.1.0-develop.70",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
10
src/node.ts
10
src/node.ts
|
@ -161,7 +161,15 @@ export class S5Node {
|
||||||
const innerMapLength = unpacker.unpackMapLength();
|
const innerMapLength = unpacker.unpackMapLength();
|
||||||
for (let j = 0; j < innerMapLength; j++) {
|
for (let j = 0; j < innerMapLength; j++) {
|
||||||
const nodeId = new NodeId(unpacker.unpackBinary());
|
const nodeId = new NodeId(unpacker.unpackBinary());
|
||||||
innerMap.set(nodeId, new Map(unpacker.unpackMap() as [number, any][]));
|
innerMap.set(
|
||||||
|
nodeId,
|
||||||
|
new Map(
|
||||||
|
Object.entries(unpacker.unpackMap()).map(([key, value]) => [
|
||||||
|
Number(key),
|
||||||
|
value,
|
||||||
|
]),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
|
|
Loading…
Reference in New Issue