Make repository.query sync
This commit is contained in:
@@ -39,11 +39,6 @@ export class FeedLoader<E extends TrustedEvent> {
|
||||
}
|
||||
|
||||
async _getRequestsLoader(requests: RequestItem[], {onEvent, onExhausted}: LoadOpts<E>) {
|
||||
// Empty requests are not a no-op, they're a global feed
|
||||
if (requests.length === 0) {
|
||||
requests = [{}]
|
||||
}
|
||||
|
||||
const seen = new Set()
|
||||
const exhausted = new Set()
|
||||
const loaders = await Promise.all(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/feeds",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "Utilities for building dynamic nostr feeds.",
|
||||
@@ -31,6 +31,6 @@
|
||||
"typescript": "~5.1.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@welshman/util": "0.0.5"
|
||||
"@welshman/util": "0.0.6"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user