@typeberry/convert 0.5.4-e1cdb43 → 0.5.5-d447af6
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 +4 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4955,7 +4955,7 @@ function isResult(x) {
|
|
|
4955
4955
|
var minimist = __nccwpck_require__(595);
|
|
4956
4956
|
var minimist_default = /*#__PURE__*/__nccwpck_require__.n(minimist);
|
|
4957
4957
|
;// CONCATENATED MODULE: ./bin/convert/package.json
|
|
4958
|
-
const package_namespaceObject = {"rE":"0.5.
|
|
4958
|
+
const package_namespaceObject = {"rE":"0.5.5"};
|
|
4959
4959
|
;// CONCATENATED MODULE: ./packages/core/bytes/bitvec.ts
|
|
4960
4960
|
|
|
4961
4961
|
/**
|
|
@@ -10810,6 +10810,9 @@ var json;
|
|
|
10810
10810
|
if (typeof inJson !== "object" || inJson === null) {
|
|
10811
10811
|
throw new Error("Expected map for parsing");
|
|
10812
10812
|
}
|
|
10813
|
+
if (Array.isArray(inJson)) {
|
|
10814
|
+
throw new Error("Expected map, got array");
|
|
10815
|
+
}
|
|
10813
10816
|
const result = new Map();
|
|
10814
10817
|
for (const [key, value] of Object.entries(inJson)) {
|
|
10815
10818
|
result.set(parse_parseFromJson(key, K, `${context}.key`), parse_parseFromJson(value, V, `${context}.value`));
|