bump versions
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@welshman/app",
|
"name": "@welshman/app",
|
||||||
"version": "0.0.13",
|
"version": "0.0.14",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A collection of svelte stores for use in building nostr client applications.",
|
"description": "A collection of svelte stores for use in building nostr client applications.",
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"@welshman/lib": "~0.0.21",
|
"@welshman/lib": "~0.0.21",
|
||||||
"@welshman/feeds": "~0.0.20",
|
"@welshman/feeds": "~0.0.20",
|
||||||
"@welshman/dvm": "~0.0.10",
|
"@welshman/dvm": "~0.0.10",
|
||||||
"@welshman/net": "~0.0.25",
|
"@welshman/net": "~0.0.26",
|
||||||
"@welshman/signer": "~0.0.8",
|
"@welshman/signer": "~0.0.8",
|
||||||
"@welshman/store": "~0.0.10",
|
"@welshman/store": "~0.0.10",
|
||||||
"@welshman/util": "~0.0.38",
|
"@welshman/util": "~0.0.38",
|
||||||
|
|||||||
@@ -199,3 +199,4 @@ export const storageAdapters = {
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -105,8 +105,6 @@ export type ThunkParams = {
|
|||||||
relays: string[]
|
relays: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const makeThunk = (params: ThunkParams) => params
|
|
||||||
|
|
||||||
export const publishThunk = (params: ThunkParams) =>
|
export const publishThunk = (params: ThunkParams) =>
|
||||||
new Promise<PublishStatusDataByUrl>(resolve => {
|
new Promise<PublishStatusDataByUrl>(resolve => {
|
||||||
const event = prepEvent(params.event)
|
const event = prepEvent(params.event)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@welshman/net",
|
"name": "@welshman/net",
|
||||||
"version": "0.0.25",
|
"version": "0.0.26",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "Utilities for connecting with nostr relays.",
|
"description": "Utilities for connecting with nostr relays.",
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export class Connection extends Emitter {
|
|||||||
this.emit('receive', this, message)
|
this.emit('receive', this, message)
|
||||||
}
|
}
|
||||||
|
|
||||||
ensureConnected = async ({shouldReconnect = true}) => {
|
ensureConnected = async ({shouldReconnect = true} = {}) => {
|
||||||
const isUnhealthy = this.socket.isClosing() || this.socket.isClosed()
|
const isUnhealthy = this.socket.isClosing() || this.socket.isClosed()
|
||||||
const noRecentFault = this.meta.lastFault < Date.now() - 60_000
|
const noRecentFault = this.meta.lastFault < Date.now() - 60_000
|
||||||
|
|
||||||
@@ -107,10 +107,14 @@ export class Connection extends Emitter {
|
|||||||
if (this.socket.isNew()) {
|
if (this.socket.isNew()) {
|
||||||
await this.socket.connect()
|
await this.socket.connect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (this.socket.isConnecting()) {
|
||||||
|
await sleep(100)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ensureAuth = async ({timeout = 3000}) => {
|
ensureAuth = async ({timeout = 3000} = {}) => {
|
||||||
await this.ensureConnected({shouldReconnect: true})
|
await this.ensureConnected()
|
||||||
|
|
||||||
if (this.meta.authStatus === AuthStatus.Pending) {
|
if (this.meta.authStatus === AuthStatus.Pending) {
|
||||||
await Promise.race([
|
await Promise.race([
|
||||||
|
|||||||
Reference in New Issue
Block a user