fiatjaf
1a7cc5f21f
updated readme with nicer examples.
2022-12-19 20:13:08 -03:00
fiatjaf
1162935f58
add a bunch of tests.
2022-12-19 20:02:01 -03:00
fiatjaf
a49d971f6a
reorganize index.ts to use "export *".
2022-12-19 19:51:38 -03:00
fiatjaf
897919be3b
get rid of create-hash, use noble hashes.
2022-12-19 19:50:41 -03:00
fiatjaf
39aca167fb
build for commonjs, esm and a standalone bundle.
2022-12-19 15:46:31 -03:00
fiatjaf
de8bdd8370
fix typescript types everywhere, delete pool.js and refactor relay.js to use event listeners everywhere.
2022-12-18 17:02:19 -03:00
Íñigo Aréjula Aísa
46a0a342db
event fields ( #37 )
2022-12-17 13:09:25 -03:00
Leo Wandersleb
4fe2a9c91a
use default fetch if in service worker ( #23 )
2022-12-17 13:08:59 -03:00
fiatjaf
e62b833464
Merge pull request #41 from monlovesmango/cb-api
...
refactor of cb api
2022-12-17 13:06:30 -03:00
monica
100c77d2aa
finalize cb api
2022-12-07 22:26:51 -06:00
Íñigo Aréjula Aísa
12be5a5338
Fix tag type
...
I realized that tags were an array of array, if it is correct merge, if im wrong just discard
2022-12-05 16:40:47 -03:00
monica
b955ba2a09
initial refactor of cb api
2022-12-04 21:57:15 -06:00
Íñigo Aréjula Aísa
ec805be4ab
expose nip 4 functions to TS ( #39 )
2022-11-30 19:41:10 -03:00
Íñigo Aréjula Aísa
92fb339afb
Update relay.js
2022-11-27 13:57:21 +01:00
Íñigo Aréjula Aísa
f8f125270a
fix return value getRelayList
2022-11-26 11:16:20 -03:00
Íñigo Aréjula Aísa
1b798b2eee
Expose relay funcs ( #31 )
2022-11-25 23:21:33 -03:00
Íñigo Aréjula Aísa
ae717a1a4a
Documentation pool.js ( #30 )
2022-11-25 23:20:22 -03:00
Íñigo Aréjula Aísa
b2015c8fe5
Filter type with optional atributtes
2022-11-25 13:03:45 -03:00
fiatjaf
c5d2e3b037
github action to publish to npm on tag.
2022-11-21 20:26:58 -03:00
fiatjaf
0ef5d1e19c
Merge pull request #27 from monlovesmango/Expose-EOSE-Relay-URL
2022-11-21 20:24:01 -03:00
monlovesmango
7d9d10fdb1
add relay url arg to eoseCb
2022-11-21 16:11:30 -06:00
monlovesmango
a1e1ce131a
include eoseCb in sub
2022-11-21 16:09:23 -06:00
Fred
cdb07bb175
replace micro-bip with @scure/bip, fix #25
2022-10-24 06:16:11 -03:00
Leo Wandersleb
1f1bcff803
EOSE nip-15
2022-09-29 07:23:48 -03:00
fiatjaf
896af30619
release v0.24.1
2022-09-06 15:19:29 -03:00
bjong
a8542c4b56
fix: CJK characters are garbled after decryption
2022-09-06 15:17:50 -03:00
fiatjaf
9f9e822c6d
allow skipping signature verification.
2022-08-05 16:36:27 -03:00
Lennon Day-Reynolds
821a8f7895
TypeScript definitions ( #18 )
2022-07-15 15:49:49 -03:00
fiatjaf
2f7e3f8473
bump version.
2022-06-22 20:08:48 -03:00
monlovesmango
536dbcbffe
Update pool.js
2022-06-22 20:07:25 -03:00
monlovesmango
ed52d2a8d4
updating cb property for subControllers entries
...
when updating subscription or adding new relays, subsequent events that are received have the relay as undefined. by updating cb property for the subControllers entries to be an arrow function (when calling sub.sub or sub.addRelay), subsequent events now return the relay url appropriately
2022-06-22 20:07:25 -03:00
fiatjaf
faf8e62120
maybe fix a bug with calling sub.sub()
2022-06-04 18:34:54 -03:00
fiatjaf
dc489bf387
build esm module that can be imported from browsers.
...
closes https://github.com/fiatjaf/nostr-tools/issues/14
2022-05-08 20:49:36 -03:00
Ricardo Arturo Cabral Mejia
60ce13e17d
chore: bump version to 0.23.0
2022-04-10 19:51:35 -03:00
Ricardo Arturo Cabral Mejia
727bcb05a8
feat: add beforeSend hook to sub()
2022-04-10 19:51:35 -03:00
monlovesmango
c236e41f80
import 'Buffer'
...
'Buffer' wasn't imported initially and was causing issues when I tried to use generatePrivateKey in a client I am building. not sure why Branle has no error, maybe I am doing something wrong?
2022-04-06 18:34:50 -03:00
fiatjaf
f04bc0cee1
fix filter on statusCallback: id -> ids
2022-02-15 21:03:44 -03:00
fiatjaf
e63479ee7f
nip05 more strict. enforce the presence of "_" for domain names.
2022-02-12 20:37:23 -03:00
fiatjaf
c47f091d9b
update noble secp256k1 and ensure we always return hex.
2022-02-11 16:27:23 -03:00
Melvin Carvalho
4c785279bc
remove => from onEvent function in README.md.
2022-02-03 09:31:03 -03:00
fiatjaf
6786641b1d
are you kidding me?
2022-01-25 17:06:26 -03:00
fiatjaf
0396db5ed6
nip04 string key is actually x and y, so we must get only 32 bytes of x.
2022-01-25 16:25:10 -03:00
fiatjaf
0c8e7a74f5
fix previous commit because noble is returning different values depending on [unknown], sometimes uint8array, sometimes hex.
2022-01-25 15:41:49 -03:00
fiatjaf
c66a2acda1
encrypt uint8array to hex.
2022-01-24 21:00:51 -03:00
fiatjaf
6f07c756e5
change nip04 functions interfaces.
2022-01-24 20:21:26 -03:00
fiatjaf
f6bcda8d8d
support _ names in nip05.
2022-01-17 17:12:48 -03:00
fiatjaf
4b666e421b
update nip05 to well-known version.
2022-01-17 16:37:19 -03:00
fiatjaf
454366f6a2
allow signing events with a custom signing function on pool.publish()
2022-01-12 22:32:45 -03:00
fiatjaf
3d6f9a41e0
prevent blocking waiting times on publish (unless "wait" is set in the pool policy).
2022-01-12 17:39:24 -03:00
fiatjaf
e3631ba806
fix and update nip06.
2022-01-06 21:46:34 -03:00