futpib
|
0933fba6d5
|
Add .editorconfig
|
2023-04-01 08:18:57 -03:00 |
fiatjaf
|
51b8f42529
|
bump to v1.8.1
|
2023-03-27 10:41:10 -03:00 |
fiatjaf
|
24d885aaeb
|
Revert "earlier `.add()` on pool `_knownIds`."
This reverts commit 687f387385 .
|
2023-03-27 10:27:42 -03:00 |
Sepehr Safari
|
74c77a2e9f
|
add 17 test cases for nip57 (#166)
|
2023-03-26 19:38:33 -03:00 |
fiatjaf
|
ce73b96565
|
bump to v1.8.0
|
2023-03-26 09:45:03 -03:00 |
fiatjaf
|
8818e4f88a
|
add parseReferences() for NIP-10 and NIP-27.
|
2023-03-26 09:44:33 -03:00 |
fiatjaf
|
5a63c75f24
|
nevent author is not mandatory.
|
2023-03-26 09:35:42 -03:00 |
Sepehr Safari
|
60e01a9006
|
edit filter.test.js and add more test cases (#165)
* add more test cases for event file
* add another test case for event file
* edit filter.test.js and add more test cases
|
2023-03-26 07:13:02 -03:00 |
fiatjaf
|
687f387385
|
earlier `.add()` on pool `_knownIds`.
|
2023-03-26 07:10:41 -03:00 |
fiatjaf
|
6d116a2f7f
|
add `author` on nevent TLV.
|
2023-03-26 07:10:13 -03:00 |
Sepehr Safari
|
51c3aec788
|
add another test case for event file
|
2023-03-23 17:56:11 -03:00 |
Sepehr Safari
|
613b2c177f
|
add more test cases for event file
|
2023-03-23 17:56:11 -03:00 |
fiatjaf
|
24f5068fdb
|
bump to v1.7.5
|
2023-03-19 09:09:19 -03:00 |
fiatjaf
|
5733f9c4e4
|
reject promise on WebSocket initiation failure.
|
2023-03-19 09:07:16 -03:00 |
BilligsterUser
|
6b73bbf8a3
|
Type sub event handler (#156)
* RelayEvent allow Promises
* type Sub EventHandler
* Update relay.ts
|
2023-03-12 08:51:38 -03:00 |
BilligsterUser
|
d244b62c7a
|
type Relay EventHandler (#121)
* type Relay EventHandler
* Update relay.ts
|
2023-03-11 15:24:52 -03:00 |
BilligsterUser
|
b00af9a30a
|
call ensurerelay() before calling pool.publish()
fixes #153
|
2023-03-11 14:22:11 -03:00 |
BilligsterUser
|
be7c981c14
|
NIP-39: validate github
|
2023-03-11 08:33:36 -03:00 |
BilligsterUser
|
5539e5cf89
|
Pool: Sub use provided alreadyHaveEvent Fn
|
2023-03-06 13:27:24 -03:00 |
Egge
|
73decbc8e0
|
added connect to ensureRelay if status != 1
|
2023-03-06 11:13:08 -03:00 |
BilligsterUser
|
b3d95cecdd
|
add search field to filter (NIP-50)
|
2023-03-05 08:08:36 -03:00 |
ramigs
|
82228036ef
|
close relay's websocket only if it's in state OPEN
|
2023-03-04 12:57:50 -03:00 |
fiatjaf
|
01435ab9f5
|
test decode nip19 with relays.
closes https://github.com/nbd-wtf/nostr-tools/issues/147
|
2023-03-02 21:32:53 -03:00 |
fiatjaf
|
63cbc4133a
|
nip05 domain must have a dot.
|
2023-03-02 21:32:53 -03:00 |
BilligsterUser
|
049f183d27
|
update actions/checkout to v3
fixes ci warning
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
2023-03-02 09:38:10 -03:00 |
BilligsterUser
|
f9e3119ab4
|
package.json add License field
|
2023-03-02 09:34:54 -03:00 |
fiatjaf
|
f992c9c967
|
cleanup lib/ so we can only publish the esm file under esm/
|
2023-03-02 08:36:43 -03:00 |
fiatjaf
|
dbf625d6ac
|
fix justfile emit-types.
|
2023-03-02 08:27:44 -03:00 |
fiatjaf
|
8622bd11dd
|
replace test relays.
|
2023-03-02 08:24:50 -03:00 |
fiatjaf
|
0970eee70f
|
remove log from test.
|
2023-03-02 08:22:30 -03:00 |
fiatjaf
|
086f8830e3
|
catch fetch error on nip05.
|
2023-03-02 08:21:17 -03:00 |
Egge
|
e48d722227
|
Fixed readme for publishing with pool
|
2023-03-01 15:29:24 -03:00 |
Fernando López Guevara
|
0d77013aab
|
chore(dx): add format script 💅 (#128)
|
2023-02-28 12:19:10 -03:00 |
BilligsterUser
|
4c415280aa
|
ci emit types on publish
|
2023-02-27 22:17:52 -03:00 |
fiatjaf
|
4188aaf7c8
|
just type-check
|
2023-02-27 19:53:12 -03:00 |
BilligsterUser
|
673f4abab8
|
add type definition
fixes #138
|
2023-02-27 19:51:19 -03:00 |
BilligsterUser
|
bcefaa0757
|
update repo url
|
2023-02-27 19:49:00 -03:00 |
fiatjaf
|
649af36a86
|
one more nip19 test.
|
2023-02-27 16:10:26 -03:00 |
Simon
|
96a6f7af87
|
ensure kind has type 'number' in validateEvent
|
2023-02-27 14:22:36 -03:00 |
fiatjaf
|
a4c713efcb
|
fix readme example.
fixes https://github.com/nbd-wtf/nostr-tools/issues/136
|
2023-02-27 12:43:24 -03:00 |
fiatjaf
|
9d345a8f01
|
configurable list and get timeout on relay.
|
2023-02-26 21:23:09 -03:00 |
fiatjaf
|
c362212778
|
make pool.publish() return a single Pub object.
|
2023-02-26 17:44:51 -03:00 |
fiatjaf
|
a8938a3a0f
|
wait a second before failing to send on a not yet connected websocket.
|
2023-02-26 16:53:03 -03:00 |
fiatjaf
|
a21329da3f
|
make timeouts configurable for pool.
|
2023-02-26 16:50:49 -03:00 |
fiatjaf
|
63f4a49a69
|
increase pool timeouts.
|
2023-02-26 15:05:26 -03:00 |
fiatjaf
|
27749d91b8
|
fix nip19: relays TLV items are optional.
|
2023-02-26 07:44:22 -03:00 |
michaelhall923
|
9530849f0a
|
Fix pool sub example
|
2023-02-26 07:43:35 -03:00 |
fiatjaf
|
b8aa75b6e1
|
change a map to a forEach.
|
2023-02-24 09:41:26 -03:00 |
fiatjaf
|
344762820c
|
handle connection failure on pool according to @chmac.
fixes https://github.com/nbd-wtf/nostr-tools/issues/130
|
2023-02-24 09:34:23 -03:00 |
Fernando López Guevara
|
f43d23d344
|
fix(relay): prevent accesing to ws if it is undefined
|
2023-02-23 15:20:10 -03:00 |