@indexing/jiti 0.0.49 → 0.0.51

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 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$defineInteropFlag($7fd98ef3967673b0$exports);
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$var$getMsgTimestamp(msg) {
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$2e2bcd8739ae039(evt) {
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$var$getMsgTimestamp(data).toISOString()
728
+ timestamp: $7fd98ef3967673b0$export$f69db31cc49f73fd(data).toISOString()
734
729
  };
735
730
  switch(data.type){
736
731
  case "MESSAGE_TYPE_CAST_ADD":
@@ -783,10 +778,13 @@ 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").split("_").pop().toLowerCase();
787
- processed.data = {
788
- [key]: $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.value")
789
- };
781
+ let key = $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.type");
782
+ if (typeof key === "string") {
783
+ key = key.trim().split("_").pop().toLowerCase();
784
+ processed.data = {
785
+ [key]: $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.value")
786
+ };
787
+ }
790
788
  break;
791
789
  }
792
790
  case "MESSAGE_TYPE_USERNAME_PROOF":
@@ -2076,7 +2074,7 @@ const $9af31dbb692f94e3$var$filterValuesTemplate = {
2076
2074
  block
2077
2075
  ];
2078
2076
  const messages = shards.map((s)=>s.transactions?.map((t)=>t.user_messages || []).flat()).flat();
2079
- parsed = messages.map((0, $7fd98ef3967673b0$export$2e2bcd8739ae039));
2077
+ parsed = messages.map((0, $7fd98ef3967673b0$export$146821f89c094be4));
2080
2078
  }
2081
2079
  for (const p of parsed){
2082
2080
  if (!p) continue;
@@ -9312,32 +9310,49 @@ const $9af31dbb692f94e3$var$filterValuesTemplate = {
9312
9310
  },
9313
9311
  {
9314
9312
  params: {},
9315
- payload: "https://jiti.indexing.co/networks/cast_protocol/14863292",
9313
+ payload: "https://jiti.indexing.co/networks/cast_protocol/14872632",
9316
9314
  output: [
9317
- "1023860",
9318
- "1039346",
9319
- "1060442",
9320
- "1078023",
9321
- "1100071",
9322
- "1115733",
9323
- "1136215",
9324
- "1149176",
9325
- "1158447",
9326
- "1181611",
9327
- "1190222",
9328
- "1190224",
9329
- "1293795",
9315
+ "1051614",
9316
+ "1066546",
9317
+ "1117909",
9318
+ "1118563",
9319
+ "1125456",
9320
+ "1131909",
9321
+ "1142406",
9322
+ "1148280",
9323
+ "1162854",
9324
+ "1178996",
9325
+ "1197494",
9326
+ "1271844",
9327
+ "1284009",
9328
+ "1306705",
9329
+ "1314738",
9330
+ "1314747",
9331
+ "1315087",
9332
+ "1315140",
9333
+ "1316693",
9334
+ "1318078",
9335
+ "1322250",
9336
+ "1322625",
9337
+ "1326658",
9338
+ "1332646",
9339
+ "1333799",
9340
+ "1336836",
9341
+ "1337581",
9342
+ "1337966",
9343
+ "16353",
9344
+ "199989",
9345
+ "243056",
9346
+ "272115",
9347
+ "283733",
9330
9348
  "285998",
9331
- "291813",
9332
- "308094",
9333
- "315240",
9334
- "516359",
9335
- "549592",
9336
- "7637",
9337
- "773458",
9338
- "832276",
9339
- "957217",
9340
- "968720"
9349
+ "316323",
9350
+ "430267",
9351
+ "456627",
9352
+ "462627",
9353
+ "822718",
9354
+ "960767",
9355
+ "968965"
9341
9356
  ]
9342
9357
  },
9343
9358
  {