Rename getFilters to getRequestItems

This commit is contained in:
Jon Staab
2024-11-08 09:19:20 -08:00
parent fb93bacb28
commit f9cc3e034b
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -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.",
+4 -4
View File
@@ -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) {