bump version
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/app",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of svelte stores for use in building nostr client applications.",
|
||||
@@ -24,7 +24,7 @@
|
||||
"throttle-debounce": "^5.0.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@pomade/core": "^0.0.9",
|
||||
"@pomade/core": "^0.0.12",
|
||||
"@welshman/feeds": "workspace:*",
|
||||
"@welshman/lib": "workspace:*",
|
||||
"@welshman/net": "workspace:*",
|
||||
|
||||
@@ -113,16 +113,7 @@ export const updateSession = (pubkey: string, f: (session: Session) => Session)
|
||||
putSession(f(getSession(pubkey)))
|
||||
|
||||
export const dropSession = (_pubkey: string) => {
|
||||
const $signer = getSigner.pop(getSession(_pubkey))
|
||||
|
||||
if ($signer instanceof Nip46Signer) {
|
||||
$signer.broker.cleanup()
|
||||
}
|
||||
|
||||
if ($signer instanceof PomadeSigner) {
|
||||
$signer.client.rpc.stop()
|
||||
}
|
||||
|
||||
getSigner.pop(getSession(_pubkey))?.cleanup()
|
||||
pubkey.update($pubkey => ($pubkey === _pubkey ? undefined : $pubkey))
|
||||
sessions.update($sessions => omit([_pubkey], $sessions))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user