Formatting/linting

This commit is contained in:
Jon Staab
2025-05-05 11:20:49 -07:00
parent 0e4832a716
commit c538db070a
6 changed files with 24 additions and 8 deletions
+9 -1
View File
@@ -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 -1
View File
@@ -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,
+1 -1
View File
@@ -27,7 +27,7 @@ const makeUserData = <T>({mapStore, loadItem}: MakeUserDataOptions<T>) =>
loadItem($pubkey)
return $mapStore.get($pubkey)
})
}),
)
export const userProfile = makeUserData({
+10 -1
View File
@@ -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"
+3 -3
View File
@@ -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
View File
@@ -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>>()