Fix various repository bugs

This commit is contained in:
Jon Staab
2024-05-14 14:32:21 -07:00
parent c91d02f3ea
commit 5c9b1893ba
14 changed files with 269 additions and 207 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import {uniq, identity, flatten, pushToMapKey, intersection, tryCatch, now} from '@welshman/lib'
import type {Rumor, Filter} from '@welshman/util'
import type {TrustedEvent, Filter} from '@welshman/util'
import {Tags, intersectFilters, getAddress, getIdFilters, unionFilters} from '@welshman/util'
import type {CreatedAtItem, RequestItem, ListItem, WOTItem, DVMItem, Scope, Feed, FeedOptions} from './core'
import {hasSubFeeds, getFeedArgs, feedsFromTags} from './utils'
import {FeedType} from './core'
export class FeedCompiler<E extends Rumor> {
export class FeedCompiler<E extends TrustedEvent> {
constructor(readonly options: FeedOptions<E>) {}
walk(feed: Feed, visit: (feed: Feed) => void) {
+2 -2
View File
@@ -1,5 +1,5 @@
import {inc, max, min, now} from '@welshman/lib'
import type {Rumor, Filter} from '@welshman/util'
import type {TrustedEvent, Filter} from '@welshman/util'
import {EPOCH, guessFilterDelta} from '@welshman/util'
import type {Feed, RequestItem, FeedOptions} from './core'
import {FeedType} from './core'
@@ -12,7 +12,7 @@ export type LoadOpts<E> = {
export type Loader = (limit: number) => Promise<void>
export class FeedLoader<E extends Rumor> {
export class FeedLoader<E extends TrustedEvent> {
compiler: FeedCompiler<E>
constructor(readonly options: FeedOptions<E>) {