@typeberry/jam 0.5.4-472e282 → 0.5.4-61ca416
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bootstrap-network.mjs +3 -0
- package/bootstrap-network.mjs.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/bootstrap-network.mjs
CHANGED
|
@@ -32716,6 +32716,9 @@ var descriptors_json;
|
|
|
32716
32716
|
if (typeof inJson !== "object" || inJson === null) {
|
|
32717
32717
|
throw new Error("Expected map for parsing");
|
|
32718
32718
|
}
|
|
32719
|
+
if (Array.isArray(inJson)) {
|
|
32720
|
+
throw new Error("Expected map, got array");
|
|
32721
|
+
}
|
|
32719
32722
|
const result = new Map();
|
|
32720
32723
|
for (const [key, value] of Object.entries(inJson)) {
|
|
32721
32724
|
result.set(parse_parseFromJson(key, K, `${context}.key`), parse_parseFromJson(value, V, `${context}.value`));
|