Formatting/linting
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import {get} from "svelte/store"
|
||||
import {uniq} from "@welshman/lib"
|
||||
import {addToListPublicly, EventTemplate, removeFromList, makeList, FOLLOWS, MUTES, PINS} from "@welshman/util"
|
||||
import {
|
||||
addToListPublicly,
|
||||
EventTemplate,
|
||||
removeFromList,
|
||||
makeList,
|
||||
FOLLOWS,
|
||||
MUTES,
|
||||
PINS,
|
||||
} from "@welshman/util"
|
||||
import {Nip59, stamp} from "@welshman/signer"
|
||||
import {Router, addMaximalFallbacks} from "@welshman/router"
|
||||
import {userFollows, userMutes, userPins} from "./user.js"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {derived} from "svelte/store"
|
||||
import {batch, throttle, sortBy, call, fromPairs} from "@welshman/lib"
|
||||
import {batch, sortBy, call, fromPairs} from "@welshman/lib"
|
||||
import {
|
||||
PROFILE,
|
||||
FOLLOWS,
|
||||
|
||||
@@ -27,7 +27,7 @@ const makeUserData = <T>({mapStore, loadItem}: MakeUserDataOptions<T>) =>
|
||||
loadItem($pubkey)
|
||||
|
||||
return $mapStore.get($pubkey)
|
||||
})
|
||||
}),
|
||||
)
|
||||
|
||||
export const userProfile = makeUserData({
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
import {partition, now, nthEq, race} from "@welshman/lib"
|
||||
import {makeEvent, Filter, getPubkeyTagValues, TrustedEvent, asDecryptedEvent, readList, getRelaysFromList, RELAYS} from "@welshman/util"
|
||||
import {
|
||||
makeEvent,
|
||||
Filter,
|
||||
getPubkeyTagValues,
|
||||
TrustedEvent,
|
||||
asDecryptedEvent,
|
||||
readList,
|
||||
getRelaysFromList,
|
||||
RELAYS,
|
||||
} from "@welshman/util"
|
||||
import {Nip01Signer, ISigner} from "@welshman/signer"
|
||||
import {Repository} from "@welshman/relay"
|
||||
import {Router, getFilterSelections, addMinimalFallbacks} from "@welshman/router"
|
||||
|
||||
@@ -215,7 +215,7 @@ export const simplifyFeed = (feed: Feed): Feed => {
|
||||
|
||||
const modified: Feed[] = []
|
||||
|
||||
for (let sub of args.map(simplifyFeed)) {
|
||||
for (const sub of args.map(simplifyFeed)) {
|
||||
if (isUnionFeed(sub)) {
|
||||
modified.push(...getFeedArgs(sub))
|
||||
} else {
|
||||
@@ -233,7 +233,7 @@ export const simplifyFeed = (feed: Feed): Feed => {
|
||||
|
||||
const modified: Feed[] = []
|
||||
|
||||
for (let sub of args.map(simplifyFeed)) {
|
||||
for (const sub of args.map(simplifyFeed)) {
|
||||
if (isIntersectionFeed(sub)) {
|
||||
modified.push(...getFeedArgs(sub))
|
||||
} else {
|
||||
@@ -251,7 +251,7 @@ export const simplifyFeed = (feed: Feed): Feed => {
|
||||
|
||||
const modified: Feed[] = []
|
||||
|
||||
for (let sub of args.map(simplifyFeed)) {
|
||||
for (const sub of args.map(simplifyFeed)) {
|
||||
if (isDifferenceFeed(sub)) {
|
||||
modified.push(...getFeedArgs(sub))
|
||||
} else {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import {Emitter, addToMapKey} from "@welshman/lib"
|
||||
|
||||
|
||||
export class Tracker extends Emitter {
|
||||
relaysById = new Map<string, Set<string>>()
|
||||
idsByRelay = new Map<string, Set<string>>()
|
||||
|
||||
Reference in New Issue
Block a user