@indexing/jiti 0.0.50 → 0.0.52

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/module.js CHANGED
@@ -111,9 +111,10 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
111
111
  const changes = tx.changes;
112
112
  for(let ci = 0; ci < changes.length; ci += 1){
113
113
  if (!changes[ci]?.data) continue;
114
- const { address: accountAddress, data: { data: { balance: balance, metadata: metadata, owner: owner }, type: changeType } } = changes[ci];
114
+ const { address: accountAddress, data: { data: changeData, type: changeType } } = changes[ci];
115
+ const { balance: balance, metadata: metadata, owner: owner } = changeData || {};
115
116
  if (changeType === "0x1::fungible_asset::FungibleStore") {
116
- if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data.data.owner;
117
+ if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data?.data?.owner;
117
118
  const to = accountAddressMap[accountAddress];
118
119
  const tokenAddress = metadata?.inner;
119
120
  if (!to || !tokenAddress || to === sender) continue;
@@ -768,10 +769,13 @@ function $8331f131029dede8$export$146821f89c094be4(evt) {
768
769
  case "MESSAGE_TYPE_USER_DATA_ADD":
769
770
  {
770
771
  processed._dataType = "user_data";
771
- const key = $8331f131029dede8$var$getValueFromObject(data, "user_data_body.type")?.split("_").pop().toLowerCase();
772
- if (key) processed.data = {
773
- [key]: $8331f131029dede8$var$getValueFromObject(data, "user_data_body.value")
774
- };
772
+ let key = $8331f131029dede8$var$getValueFromObject(data, "user_data_body.type");
773
+ if (typeof key === "string") {
774
+ key = key.trim().split("_").pop().toLowerCase();
775
+ processed.data = {
776
+ [key]: $8331f131029dede8$var$getValueFromObject(data, "user_data_body.value")
777
+ };
778
+ }
775
779
  break;
776
780
  }
777
781
  case "MESSAGE_TYPE_USERNAME_PROOF":
@@ -9297,32 +9301,49 @@ const $dc0c078500ed1fea$var$filterValuesTemplate = {
9297
9301
  },
9298
9302
  {
9299
9303
  params: {},
9300
- payload: "https://jiti.indexing.co/networks/cast_protocol/14863292",
9304
+ payload: "https://jiti.indexing.co/networks/cast_protocol/14872632",
9301
9305
  output: [
9302
- "1023860",
9303
- "1039346",
9304
- "1060442",
9305
- "1078023",
9306
- "1100071",
9307
- "1115733",
9308
- "1136215",
9309
- "1149176",
9310
- "1158447",
9311
- "1181611",
9312
- "1190222",
9313
- "1190224",
9314
- "1293795",
9306
+ "1051614",
9307
+ "1066546",
9308
+ "1117909",
9309
+ "1118563",
9310
+ "1125456",
9311
+ "1131909",
9312
+ "1142406",
9313
+ "1148280",
9314
+ "1162854",
9315
+ "1178996",
9316
+ "1197494",
9317
+ "1271844",
9318
+ "1284009",
9319
+ "1306705",
9320
+ "1314738",
9321
+ "1314747",
9322
+ "1315087",
9323
+ "1315140",
9324
+ "1316693",
9325
+ "1318078",
9326
+ "1322250",
9327
+ "1322625",
9328
+ "1326658",
9329
+ "1332646",
9330
+ "1333799",
9331
+ "1336836",
9332
+ "1337581",
9333
+ "1337966",
9334
+ "16353",
9335
+ "199989",
9336
+ "243056",
9337
+ "272115",
9338
+ "283733",
9315
9339
  "285998",
9316
- "291813",
9317
- "308094",
9318
- "315240",
9319
- "516359",
9320
- "549592",
9321
- "7637",
9322
- "773458",
9323
- "832276",
9324
- "957217",
9325
- "968720"
9340
+ "316323",
9341
+ "430267",
9342
+ "456627",
9343
+ "462627",
9344
+ "822718",
9345
+ "960767",
9346
+ "968965"
9326
9347
  ]
9327
9348
  },
9328
9349
  {