Bump versions
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/app",
|
||||
"version": "0.0.22",
|
||||
"version": "0.0.23",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of svelte stores for use in building nostr client applications.",
|
||||
@@ -32,7 +32,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@welshman/lib": "~0.0.24",
|
||||
"@welshman/feeds": "~0.0.22",
|
||||
"@welshman/feeds": "~0.0.23",
|
||||
"@welshman/dvm": "~0.0.10",
|
||||
"@welshman/net": "~0.0.33",
|
||||
"@welshman/signer": "~0.0.11",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {ctx, now} from '@welshman/lib'
|
||||
import {createEvent, getPubkeyTagValues} from '@welshman/util'
|
||||
import {Scope} from '@welshman/feeds'
|
||||
import type {RequestOpts, DVMOpts} from '@welshman/feeds'
|
||||
import {Scope, FeedController} from '@welshman/feeds'
|
||||
import type {RequestOpts, FeedOptions, DVMOpts, Feed} from '@welshman/feeds'
|
||||
import {makeDvmRequest} from '@welshman/dvm'
|
||||
import {makeSecret, Nip01Signer} from '@welshman/signer'
|
||||
import {pubkey, signer} from './session'
|
||||
@@ -68,3 +68,14 @@ export const getPubkeysForWOTRange = (min: number, max: number) => {
|
||||
|
||||
return pubkeys
|
||||
}
|
||||
|
||||
type _FeedOptions = Partial<Omit<FeedOptions, 'feed'>> & {feed: Feed}
|
||||
|
||||
export const createFeedController = (options: _FeedOptions) =>
|
||||
new FeedController({
|
||||
request,
|
||||
requestDVM,
|
||||
getPubkeysForScope,
|
||||
getPubkeysForWOTRange,
|
||||
...options,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user