applesauce-core 0.0.0-next-20241126195214 → 0.0.0-next-20241126222927

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.
@@ -6,7 +6,7 @@ import { Database } from "./database.js";
6
6
  import { getEventUID, getReplaceableUID, getTagValue, isReplaceable } from "../helpers/event.js";
7
7
  import { matchFilters } from "../helpers/filter.js";
8
8
  import { addSeenRelay } from "../helpers/relays.js";
9
- import { getDeleteIds } from "../helpers/delete.js";
9
+ import { getDeleteCoordinates, getDeleteIds } from "../helpers/delete.js";
10
10
  export class EventStore {
11
11
  database;
12
12
  /** Whether to keep old versions of replaceable events */
@@ -51,7 +51,7 @@ export class EventStore {
51
51
  if (event)
52
52
  this.database.deleteEvent(event);
53
53
  }
54
- const coords = getDeleteIds(deleteEvent);
54
+ const coords = getDeleteCoordinates(deleteEvent);
55
55
  for (const coord of coords) {
56
56
  this.deletedCoords.set(coord, Math.max(this.deletedCoords.get(coord) ?? 0, deleteEvent.created_at));
57
57
  // remove deleted events in the database
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-core",
3
- "version": "0.0.0-next-20241126195214",
3
+ "version": "0.0.0-next-20241126222927",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",