Fix getCompleteThunkUrls

This commit is contained in:
Jon Staab
2025-09-08 09:42:59 -07:00
parent 8716d1fdb1
commit 9a476d2c30
13 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/app",
"version": "0.4.4",
"version": "0.4.5",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of svelte stores for use in building nostr client applications.",
+5 -1
View File
@@ -10,6 +10,7 @@ import {
sleep,
assoc,
nth,
without,
} from "@welshman/lib"
import {stamp, own, hash} from "@welshman/signer"
import {
@@ -274,7 +275,10 @@ export const getThunkUrlsWithStatus = (
}
export const getCompleteThunkUrls = (thunk: AbstractThunk) =>
getThunkUrlsWithStatus([PublishStatus.Sending, PublishStatus.Pending], thunk)
getThunkUrlsWithStatus(
without([PublishStatus.Sending, PublishStatus.Pending], Object.values(PublishStatus)),
thunk,
)
export const getIncompleteThunkUrls = (thunk: AbstractThunk) =>
getThunkUrlsWithStatus([PublishStatus.Sending, PublishStatus.Pending], thunk)