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))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/content",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of utilities for parsing nostr note content.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/editor",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A batteries-included nostr editor.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/feeds",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "Utilities for building dynamic nostr feeds.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/lib",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of utilities.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/net",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "Utilities for connecting with nostr relays.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/router",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of utilities for nostr relay selection.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/signer",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A nostr signer implemenation supporting several login methods.",
|
||||
|
||||
@@ -512,4 +512,6 @@ export class Nip46Signer implements ISigner {
|
||||
this.getPubkey().then(pubkey => this.broker.signEvent(prep(template, pubkey))),
|
||||
options,
|
||||
)
|
||||
|
||||
cleanup = async () => this.broker.cleanup()
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ export interface ISigner {
|
||||
nip04: EncryptionImplementation
|
||||
nip44: EncryptionImplementation
|
||||
getPubkey: () => Promise<string>
|
||||
cleanup?: () => Promise<void>
|
||||
}
|
||||
|
||||
export const decrypt = async (signer: ISigner, pubkey: string, message: string) =>
|
||||
@@ -83,6 +84,10 @@ export class WrappedSigner extends Emitter implements ISigner {
|
||||
decrypt: async (pubkey: string, message: string) =>
|
||||
this.wrapMethod("nip44.decrypt", () => this.signer.nip44.decrypt(pubkey, message)),
|
||||
}
|
||||
|
||||
async cleanup() {
|
||||
await this.signer.cleanup?.()
|
||||
}
|
||||
}
|
||||
|
||||
export const signWithOptions = (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/store",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of utilities based on svelte/store for use with welshman",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/util",
|
||||
"version": "0.8.0-pre.1",
|
||||
"version": "0.8.0",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of nostr-related utilities.",
|
||||
|
||||
Reference in New Issue
Block a user