applesauce-core 0.0.0-next-20241126192236 → 0.0.0-next-20241126195214

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.
@@ -247,9 +247,9 @@ export class EventStore {
247
247
  for (const pointer of pointers) {
248
248
  const events = this.database.getReplaceable(pointer.kind, pointer.pubkey, pointer.identifier);
249
249
  if (events)
250
- for (const event of events)
251
- handleEvent(event);
250
+ handleEvent(events[0]);
252
251
  }
252
+ observer.next(events);
253
253
  // subscribe to future events
254
254
  const inserted = this.database.inserted.subscribe((event) => {
255
255
  if (isReplaceable(event.kind) && coords.includes(getEventUID(event))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-core",
3
- "version": "0.0.0-next-20241126192236",
3
+ "version": "0.0.0-next-20241126195214",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",