genlayer-js 0.18.13 → 0.18.14
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/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -935,6 +935,7 @@ var decodeTransaction = (tx) => {
|
|
|
935
935
|
var simplifyTransactionReceipt = (tx) => {
|
|
936
936
|
const simplifyObject = (obj, path = "") => {
|
|
937
937
|
if (obj === null || obj === void 0) return obj;
|
|
938
|
+
if (typeof obj !== "object") return obj;
|
|
938
939
|
if (Array.isArray(obj)) {
|
|
939
940
|
return obj.map((item) => simplifyObject(item, path)).filter((item) => item !== void 0);
|
|
940
941
|
}
|
|
@@ -967,7 +968,7 @@ var simplifyTransactionReceipt = (tx) => {
|
|
|
967
968
|
if (receipt.eq_outputs) {
|
|
968
969
|
simplifiedReceipt.eq_outputs = simplifyObject(receipt.eq_outputs, currentPath);
|
|
969
970
|
}
|
|
970
|
-
if (receipt.result) {
|
|
971
|
+
if (receipt.result !== void 0) {
|
|
971
972
|
simplifiedReceipt.result = simplifyObject(receipt.result, currentPath);
|
|
972
973
|
}
|
|
973
974
|
return simplifiedReceipt;
|
package/dist/index.js
CHANGED
|
@@ -935,6 +935,7 @@ var decodeTransaction = (tx) => {
|
|
|
935
935
|
var simplifyTransactionReceipt = (tx) => {
|
|
936
936
|
const simplifyObject = (obj, path = "") => {
|
|
937
937
|
if (obj === null || obj === void 0) return obj;
|
|
938
|
+
if (typeof obj !== "object") return obj;
|
|
938
939
|
if (Array.isArray(obj)) {
|
|
939
940
|
return obj.map((item) => simplifyObject(item, path)).filter((item) => item !== void 0);
|
|
940
941
|
}
|
|
@@ -967,7 +968,7 @@ var simplifyTransactionReceipt = (tx) => {
|
|
|
967
968
|
if (receipt.eq_outputs) {
|
|
968
969
|
simplifiedReceipt.eq_outputs = simplifyObject(receipt.eq_outputs, currentPath);
|
|
969
970
|
}
|
|
970
|
-
if (receipt.result) {
|
|
971
|
+
if (receipt.result !== void 0) {
|
|
971
972
|
simplifiedReceipt.result = simplifyObject(receipt.result, currentPath);
|
|
972
973
|
}
|
|
973
974
|
return simplifiedReceipt;
|