Commit Graph

20 Commits

Author SHA1 Message Date
sistemd 05605bdf28
`nostr` package: vastly simplify the API (#412)
* vastly simplify the api

* add missing await

* add eose to emitter

* add eose to conn

* add eose to the client

* eose test

* improve test suite, add dm tests

* demonstrate that nostr-rs-relay auth options don't work

* readme files

* cleanup

* fetch relay info

* test readyState

* export fetchRelayInfo

* cleanup

* better async/await linting

* use strictEqual in tests

* additional eslint rules

* allow arbitrary extensions

* saner error handling

* update README

* implement nip-02

---------

Co-authored-by: Kieran <kieran@harkin.me>
2023-03-27 10:09:48 +01:00
ennmichael a7707af756
add direct message event and refactor 2023-03-17 15:30:20 +01:00
ennmichael 191ec8d7f0
allow the client to react to ok 2023-03-08 21:32:42 +01:00
ennmichael 3c78f740e0
implement nip20 ok at the connection level 2023-03-08 21:32:42 +01:00
ennmichael 459f3b98de
prefer string literals to enums when possible 2023-03-08 21:32:42 +01:00
ennmichael a34e6960d2
tiny cleanup 2023-03-02 22:02:43 +01:00
ennmichael 6daa75b21c
fix the test 2023-03-02 22:02:43 +01:00
ennmichael c20dea1dba
add newEvent and removeEvent 2023-03-02 22:02:43 +01:00
ennmichael a32d806532
use EventEmitter 2023-03-02 22:02:43 +01:00
ennmichael 6ef866feb3
handle all errors in error callbacks 2023-03-02 22:02:43 +01:00
ennmichael e5e18ca28c
naming oversight 2023-02-28 22:47:53 +01:00
ennmichael a513408866
more robust message parsing 2023-02-28 21:58:59 +01:00
ennmichael 6565aa6fa0
allow publishing without a private key 2023-02-28 21:46:31 +01:00
ennmichael 53327c641c use filters array 2023-02-28 14:41:36 +01:00
ennmichael 5d66ad9165
changes after self-review 2023-02-27 14:35:36 +01:00
ennmichael 303fa2ff4b
add unixTimestamp() 2023-02-27 14:11:10 +01:00
ennmichael 289dbcd523
finishing touches 2023-02-27 00:25:11 +01:00
ennmichael fe45cb4beb
refactoring from previous pr 2023-02-27 00:00:08 +01:00
ennmichael 408be48082
nostr package part 3 2023-02-26 23:57:43 +01:00
ennmichael 9da110165b
nostr package part 2 2023-02-26 23:45:03 +01:00