@mastra/memory 1.39.1-alpha.3 → 1.39.1

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.
@@ -27678,7 +27678,7 @@ function formatGapBetweenDates(prevDate, currDate) {
27678
27678
  else if (diffDays < 14) return `[1 week later]`;
27679
27679
  else if (diffDays < 30) return `[${Math.floor(diffDays / 7)} weeks later]`;
27680
27680
  else if (diffDays < 60) return `[1 month later]`;
27681
- else return `[${Math.floor(diffDays / 30)} months later]`;
27681
+ return `[${Math.floor(diffDays / 30)} months later]`;
27682
27682
  }
27683
27683
  const MONTH_INDEX = {
27684
27684
  jan: 0,
@@ -44684,7 +44684,7 @@ Notes:
44684
44684
  messageIds = input.map((item) => {
44685
44685
  if (typeof item === "string") return item;
44686
44686
  else if (item && typeof item === "object" && "id" in item) return item.id;
44687
- else throw new Error("Invalid input: array items must be strings or objects with an id property");
44687
+ throw new Error("Invalid input: array items must be strings or objects with an id property");
44688
44688
  });
44689
44689
  if (messageIds.filter((id) => !id || typeof id !== "string").length > 0) throw new Error("All message IDs must be non-empty strings");
44690
44690
  const span = this.createMemorySpan("delete", observabilityContext, void 0, { messageCount: messageIds.length });
@@ -45644,4 +45644,4 @@ Object.defineProperty(exports, "wrapInObservationGroup", {
45644
45644
  }
45645
45645
  });
45646
45646
 
45647
- //# sourceMappingURL=src-IwP0x4uF.cjs.map
45647
+ //# sourceMappingURL=src-DnCjNqwE.cjs.map