Rename getFilters to getRequestItems
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/app",
|
||||
"version": "0.0.23",
|
||||
"version": "0.0.24",
|
||||
"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.23",
|
||||
"@welshman/feeds": "~0.0.24",
|
||||
"@welshman/dvm": "~0.0.10",
|
||||
"@welshman/net": "~0.0.33",
|
||||
"@welshman/signer": "~0.0.11",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/feeds",
|
||||
"version": "0.0.23",
|
||||
"version": "0.0.24",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "Utilities for building dynamic nostr feeds.",
|
||||
|
||||
@@ -12,7 +12,7 @@ export class FeedController {
|
||||
this.compiler = new FeedCompiler(options)
|
||||
}
|
||||
|
||||
getFilters = memoize(async () => {
|
||||
getRequestItems = memoize(async () => {
|
||||
return this.compiler.canCompile(this.options.feed)
|
||||
? this.compiler.compile(this.options.feed)
|
||||
: undefined
|
||||
@@ -20,10 +20,10 @@ export class FeedController {
|
||||
|
||||
getLoader = memoize(async () => {
|
||||
const [type, ...feed] = this.options.feed
|
||||
const filters = await this.getFilters()
|
||||
const requestItems = await this.getRequestItems()
|
||||
|
||||
if (filters) {
|
||||
return this._getRequestsLoader(filters)
|
||||
if (requestItems) {
|
||||
return this._getRequestsLoader(requestItems)
|
||||
}
|
||||
|
||||
switch(type) {
|
||||
|
||||
Reference in New Issue
Block a user