@lukso/transaction-decoder 1.3.3-dev.a07a66f → 1.3.3
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/browser.cjs +1 -30
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.js +1 -1
- package/dist/cdn/transaction-decoder.global.js +33 -33
- package/dist/cdn/transaction-decoder.global.js.map +1 -1
- package/dist/{chunk-SSY7TTU2.js → chunk-Z2373EJ6.js} +2 -31
- package/dist/{chunk-SSY7TTU2.js.map → chunk-Z2373EJ6.js.map} +1 -1
- package/dist/index.cjs +1 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -6
- package/dist/index.d.ts +0 -6
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/utils/json-bigint.ts +0 -40
package/dist/browser.cjs
CHANGED
|
@@ -6792,36 +6792,7 @@ var JSONbigString = {
|
|
|
6792
6792
|
}
|
|
6793
6793
|
return value;
|
|
6794
6794
|
});
|
|
6795
|
-
}, "parse")
|
|
6796
|
-
/**
|
|
6797
|
-
* Read an object and convert BigInt string values to actual BigInts
|
|
6798
|
-
* Walks through the object hierarchy looking for strings ending with 'n'
|
|
6799
|
-
* Also passes through existing BigInt values unchanged
|
|
6800
|
-
*/
|
|
6801
|
-
read: /* @__PURE__ */ __name((obj) => {
|
|
6802
|
-
if (obj === null || obj === void 0) {
|
|
6803
|
-
return obj;
|
|
6804
|
-
}
|
|
6805
|
-
if (typeof obj === "bigint") {
|
|
6806
|
-
return obj;
|
|
6807
|
-
}
|
|
6808
|
-
if (typeof obj === "string" && /^\d+n$/.test(obj)) {
|
|
6809
|
-
return BigInt(obj.slice(0, -1));
|
|
6810
|
-
}
|
|
6811
|
-
if (Array.isArray(obj)) {
|
|
6812
|
-
return obj.map((item) => JSONbigString.read(item));
|
|
6813
|
-
}
|
|
6814
|
-
if (typeof obj === "object") {
|
|
6815
|
-
const result = {};
|
|
6816
|
-
for (const key in obj) {
|
|
6817
|
-
if (Object.hasOwn(obj, key)) {
|
|
6818
|
-
result[key] = JSONbigString.read(obj[key]);
|
|
6819
|
-
}
|
|
6820
|
-
}
|
|
6821
|
-
return result;
|
|
6822
|
-
}
|
|
6823
|
-
return obj;
|
|
6824
|
-
}, "read")
|
|
6795
|
+
}, "parse")
|
|
6825
6796
|
};
|
|
6826
6797
|
|
|
6827
6798
|
// src/index.ts
|