@highway1/core 0.1.43 → 0.1.44

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.js CHANGED
@@ -1094,7 +1094,7 @@ function createDHTOperations(libp2p) {
1094
1094
  }
1095
1095
  const caps = (card.capabilities ?? []).flatMap((c) => {
1096
1096
  if (typeof c === "string") return [c];
1097
- return [c.name, c.id].filter(Boolean);
1097
+ return [c.name, c.id].filter((v) => typeof v === "string" && v.length > 0);
1098
1098
  });
1099
1099
  caps.push("__all__");
1100
1100
  const importantCaps = ["__all__"];