From eaa14f4b9ac3cc384fc99968d48d846f19b31b3a Mon Sep 17 00:00:00 2001 From: BlowaterNostr Date: Fri, 20 Sep 2024 18:42:15 +0800 Subject: [PATCH 1/2] fix exit condition log --- relay-single.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay-single.ts b/relay-single.ts index 95476bb..773ab67 100644 --- a/relay-single.ts +++ b/relay-single.ts @@ -141,7 +141,7 @@ export class SingleRelayConnection implements Subscriber, SubscriptionCloser, Ev if (messsage.type == "RelayDisconnectedByClient") { this.error = messsage.error; // exit the coroutine - return "RelayDisconnectedByClient"; + return messsage.error } else if ( messsage.type == "WebSocketClosed" || messsage.type == "FailedToLookupAddress" || From ba6c5e624725aa1e3f305419b56ef30b6b938ce6 Mon Sep 17 00:00:00 2001 From: BlowaterNostr Date: Fri, 20 Sep 2024 18:42:26 +0800 Subject: [PATCH 2/2] + --- deno.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deno.json b/deno.json index 59bde46..24142ed 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@blowater/nostr-sdk", - "version": "0.1.1", + "version": "0.1.2", "exports": "./nostr.ts", "fmt": { "indentWidth": 4,