Fix connection error, bump versions

This commit is contained in:
Jon Staab
2024-11-18 17:26:13 -08:00
parent 2de2d24e0b
commit 75e0d0603b
6 changed files with 11 additions and 12 deletions
+5 -5
View File
@@ -3635,13 +3635,13 @@
}, },
"packages/app": { "packages/app": {
"name": "@welshman/app", "name": "@welshman/app",
"version": "0.0.27", "version": "0.0.28",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@welshman/dvm": "~0.0.10", "@welshman/dvm": "~0.0.10",
"@welshman/feeds": "~0.0.25", "@welshman/feeds": "~0.0.25",
"@welshman/lib": "~0.0.25", "@welshman/lib": "~0.0.25",
"@welshman/net": "~0.0.36", "@welshman/net": "~0.0.37",
"@welshman/signer": "~0.0.14", "@welshman/signer": "~0.0.14",
"@welshman/store": "~0.0.12", "@welshman/store": "~0.0.12",
"@welshman/util": "~0.0.45", "@welshman/util": "~0.0.45",
@@ -3676,7 +3676,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@welshman/lib": "~0.0.25", "@welshman/lib": "~0.0.25",
"@welshman/net": "~0.0.36", "@welshman/net": "~0.0.37",
"@welshman/util": "~0.0.45", "@welshman/util": "~0.0.45",
"nostr-tools": "^2.7.2" "nostr-tools": "^2.7.2"
}, },
@@ -3726,7 +3726,7 @@
}, },
"packages/net": { "packages/net": {
"name": "@welshman/net", "name": "@welshman/net",
"version": "0.0.36", "version": "0.0.37",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@welshman/lib": "~0.0.25", "@welshman/lib": "~0.0.25",
@@ -3747,7 +3747,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@welshman/lib": "~0.0.25", "@welshman/lib": "~0.0.25",
"@welshman/net": "~0.0.36", "@welshman/net": "~0.0.37",
"@welshman/util": "~0.0.45", "@welshman/util": "~0.0.45",
"nostr-tools": "^2.7.2" "nostr-tools": "^2.7.2"
}, },
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/app", "name": "@welshman/app",
"version": "0.0.27", "version": "0.0.29",
"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.25", "@welshman/lib": "~0.0.25",
"@welshman/feeds": "~0.0.25", "@welshman/feeds": "~0.0.25",
"@welshman/dvm": "~0.0.10", "@welshman/dvm": "~0.0.10",
"@welshman/net": "~0.0.36", "@welshman/net": "~0.0.38",
"@welshman/signer": "~0.0.14", "@welshman/signer": "~0.0.14",
"@welshman/store": "~0.0.12", "@welshman/store": "~0.0.12",
"@welshman/util": "~0.0.45", "@welshman/util": "~0.0.45",
+1 -1
View File
@@ -32,7 +32,7 @@
}, },
"dependencies": { "dependencies": {
"@welshman/lib": "~0.0.25", "@welshman/lib": "~0.0.25",
"@welshman/net": "~0.0.36", "@welshman/net": "~0.0.37",
"@welshman/util": "~0.0.45", "@welshman/util": "~0.0.45",
"nostr-tools": "^2.7.2" "nostr-tools": "^2.7.2"
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/net", "name": "@welshman/net",
"version": "0.0.36", "version": "0.0.38",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "Utilities for connecting with nostr relays.", "description": "Utilities for connecting with nostr relays.",
+1 -2
View File
@@ -55,9 +55,8 @@ export class Socket {
} }
// If we're closed due to an error retry after a delay // If we're closed due to an error retry after a delay
if (Date.now() - this.lastError > 15_000) { if (this.status === Error && Date.now() - this.lastError > 15_000) {
this.status = New this.status = New
this.lastError = 0
this.cxn.emit(ConnectionEvent.Reset) this.cxn.emit(ConnectionEvent.Reset)
} }
+1 -1
View File
@@ -32,7 +32,7 @@
}, },
"dependencies": { "dependencies": {
"@welshman/lib": "~0.0.25", "@welshman/lib": "~0.0.25",
"@welshman/net": "~0.0.36", "@welshman/net": "~0.0.37",
"@welshman/util": "~0.0.45", "@welshman/util": "~0.0.45",
"nostr-tools": "^2.7.2" "nostr-tools": "^2.7.2"
}, },