Commit Graph

19 Commits

Author SHA1 Message Date
fiatjaf 57354b9fb4 expose hexToBytes and bytesToHex helpers. 2025-05-28 14:50:25 -03:00
fiatjaf dd603e47d8 some small bugs codebuff found. 2025-04-03 23:31:34 -03:00
Alex Gleason 9c0ade1329 Fix (most) slow types by adding explicit return types 2024-03-07 07:22:44 -03:00
fiatjaf 967d7fe63a
normalizeURL prepends ws:// when necessary. 2024-01-20 12:48:28 -03:00
fiatjaf 1f7378ca49
import from core.ts instead of pure.ts whenever possible. 2023-12-21 17:27:32 -03:00
fiatjaf fe87529646
change tests and nips to use the new api. 2023-12-19 13:58:37 -03:00
fiatjaf 2a7fd83be8
rewrite binarySearch so it doesn't have to compare values of the same type. 2023-12-17 18:13:09 -03:00
fiatjaf 1ebe098805
binarySearch and improve insertEventInto___List() to use that and .splice() 2023-12-17 18:06:58 -03:00
fiatjaf 420a6910e9
fix Queue, tweaks on relay.ts and make relay.test.ts pass. 2023-12-17 00:27:03 -03:00
fiatjaf 7a640092d0
rewrite relay.ts to be much simpler. 2023-12-16 18:56:18 -03:00
fiatjaf 6a07e7c1cc
remove the kind type parameter from events and filters. 2023-12-16 10:10:37 -03:00
Alex Gleason 718032022c
just format 2023-08-31 13:42:15 -05:00
Egge 97287cad74 comply with eslint config 2023-05-13 09:44:41 +02:00
Egge fa21f71ab5 added queue classes 2023-05-12 23:20:03 +02:00
Alex Gleason 08885ab8da Refactor imports: use file extension, improve tree shaking, update tests 2023-05-12 17:03:41 -03:00
Alex Gleason 8a53b3b8b3 Improve event types 2023-05-06 21:00:25 -03:00
fiatjaf cc8e34163d
most simple relay pool. 2023-02-08 08:39:59 -03:00
fiatjaf 312b6fd035
add fast insert-into-sorted-list utils. 2023-01-28 18:07:14 -03:00
fiatjaf 41a1614d89
remove browserify-cipher, use crypto.subtle for nip04. 2022-12-21 16:04:00 -03:00