@indexing/jiti 0.0.49 → 0.0.50
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/main.js +8 -13
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -13
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -30,10 +30,6 @@ function $parcel$exportWildcard(dest, source) {
|
|
|
30
30
|
return dest;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function $parcel$defineInteropFlag(a) {
|
|
34
|
-
Object.defineProperty(a, '__esModule', {value: true, configurable: true});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
33
|
$parcel$export(module.exports, "templates", () => $882b6d93070905b3$export$a8fc3402335b0b04);
|
|
38
34
|
$parcel$export(module.exports, "getAllTemplates", () => $882b6d93070905b3$export$cceb5167b935aafb);
|
|
39
35
|
$parcel$export(module.exports, "getTemplateByKey", () => $882b6d93070905b3$export$a07bfd14bbc36e4b);
|
|
@@ -709,9 +705,8 @@ function $414c83047563e72e$export$685b7dc2197cd06c(rawBlock) {
|
|
|
709
705
|
|
|
710
706
|
var $7fd98ef3967673b0$exports = {};
|
|
711
707
|
|
|
712
|
-
$parcel$
|
|
713
|
-
|
|
714
|
-
$parcel$export($7fd98ef3967673b0$exports, "default", () => $7fd98ef3967673b0$export$2e2bcd8739ae039);
|
|
708
|
+
$parcel$export($7fd98ef3967673b0$exports, "snapchainTimestampFromMsg", () => $7fd98ef3967673b0$export$f69db31cc49f73fd);
|
|
709
|
+
$parcel$export($7fd98ef3967673b0$exports, "snapchainParseEvent", () => $7fd98ef3967673b0$export$146821f89c094be4);
|
|
715
710
|
|
|
716
711
|
var $7fd98ef3967673b0$require$Buffer = $8zHUo$buffer.Buffer;
|
|
717
712
|
function $7fd98ef3967673b0$var$getValueFromObject(obj, path) {
|
|
@@ -721,16 +716,16 @@ function $7fd98ef3967673b0$var$getValueFromObject(obj, path) {
|
|
|
721
716
|
if (parts.length === 1) return obj[parts[0]];
|
|
722
717
|
return $7fd98ef3967673b0$var$getValueFromObject(obj[parts[0]], parts.slice(1).join("."));
|
|
723
718
|
}
|
|
724
|
-
function $7fd98ef3967673b0$
|
|
719
|
+
function $7fd98ef3967673b0$export$f69db31cc49f73fd(msg) {
|
|
725
720
|
return new Date(parseInt(msg.timestamp || msg.data?.timestamp) * 1000 + 1609459200000);
|
|
726
721
|
}
|
|
727
|
-
function $7fd98ef3967673b0$export$
|
|
722
|
+
function $7fd98ef3967673b0$export$146821f89c094be4(evt) {
|
|
728
723
|
if (!evt?.data?.type) return null;
|
|
729
724
|
const data = evt.data;
|
|
730
725
|
const processed = {
|
|
731
726
|
fid: data.fid,
|
|
732
727
|
signer: evt.signer,
|
|
733
|
-
timestamp: $7fd98ef3967673b0$
|
|
728
|
+
timestamp: $7fd98ef3967673b0$export$f69db31cc49f73fd(data).toISOString()
|
|
734
729
|
};
|
|
735
730
|
switch(data.type){
|
|
736
731
|
case "MESSAGE_TYPE_CAST_ADD":
|
|
@@ -783,8 +778,8 @@ function $7fd98ef3967673b0$export$2e2bcd8739ae039(evt) {
|
|
|
783
778
|
case "MESSAGE_TYPE_USER_DATA_ADD":
|
|
784
779
|
{
|
|
785
780
|
processed._dataType = "user_data";
|
|
786
|
-
const key = $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.type")
|
|
787
|
-
processed.data = {
|
|
781
|
+
const key = $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.type")?.split("_").pop().toLowerCase();
|
|
782
|
+
if (key) processed.data = {
|
|
788
783
|
[key]: $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.value")
|
|
789
784
|
};
|
|
790
785
|
break;
|
|
@@ -2076,7 +2071,7 @@ const $9af31dbb692f94e3$var$filterValuesTemplate = {
|
|
|
2076
2071
|
block
|
|
2077
2072
|
];
|
|
2078
2073
|
const messages = shards.map((s)=>s.transactions?.map((t)=>t.user_messages || []).flat()).flat();
|
|
2079
|
-
parsed = messages.map((0, $7fd98ef3967673b0$export$
|
|
2074
|
+
parsed = messages.map((0, $7fd98ef3967673b0$export$146821f89c094be4));
|
|
2080
2075
|
}
|
|
2081
2076
|
for (const p of parsed){
|
|
2082
2077
|
if (!p) continue;
|