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