@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/index.js CHANGED
@@ -145529,6 +145529,9 @@ var descriptors_json;
145529
145529
  if (typeof inJson !== "object" || inJson === null) {
145530
145530
  throw new Error("Expected map for parsing");
145531
145531
  }
145532
+ if (Array.isArray(inJson)) {
145533
+ throw new Error("Expected map, got array");
145534
+ }
145532
145535
  const result = new Map();
145533
145536
  for (const [key, value] of Object.entries(inJson)) {
145534
145537
  result.set(parse_parseFromJson(key, K, `${context}.key`), parse_parseFromJson(value, V, `${context}.value`));