applesauce-core 0.0.0-next-20250314151125 → 0.0.0-next-20250315131629
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.
|
@@ -30,7 +30,7 @@ export declare class EventStore implements IEventStore {
|
|
|
30
30
|
/** Add an event to the store and notifies all subscribes it has updated */
|
|
31
31
|
update(event: NostrEvent): NostrEvent;
|
|
32
32
|
/** Get all events matching a filter */
|
|
33
|
-
getAll(filters: Filter[]): Set<NostrEvent>;
|
|
33
|
+
getAll(filters: Filter | Filter[]): Set<NostrEvent>;
|
|
34
34
|
/** Check if the store has an event */
|
|
35
35
|
hasEvent(id: string): boolean;
|
|
36
36
|
getEvent(id: string): NostrEvent | undefined;
|
|
@@ -129,7 +129,7 @@ export class EventStore {
|
|
|
129
129
|
}
|
|
130
130
|
/** Get all events matching a filter */
|
|
131
131
|
getAll(filters) {
|
|
132
|
-
return this.database.getEventsForFilters(filters);
|
|
132
|
+
return this.database.getEventsForFilters(Array.isArray(filters) ? filters : [filters]);
|
|
133
133
|
}
|
|
134
134
|
/** Check if the store has an event */
|
|
135
135
|
hasEvent(id) {
|