Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot 52556bf703 chore(release): 0.1.0-develop.70 [skip ci]
# [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](c1f471e921))
2023-11-18 11:44:54 +00:00
Derrick Hammer 443fdcb14d
Merge remote-tracking branch 'origin/develop' into develop 2023-11-18 06:44:16 -05:00
Derrick Hammer c1f471e921
fix: need to use Object.entries 2023-11-18 06:44:13 -05:00
4 changed files with 19 additions and 4 deletions

View File

@ -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)

4
npm-shrinkwrap.json generated
View File

@ -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",

View File

@ -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": {

View File

@ -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;