Commit Graph

791 Commits

Author SHA1 Message Date
Alex Gleason 9c0ade1329 Fix (most) slow types by adding explicit return types 2024-03-07 07:22:44 -03:00
fiatjaf 63ccc8b4c8
v2.3.1 2024-02-19 18:54:40 -03:00
fiatjaf 7cf7df88db
nip46: skip duplicates on fetchBunkerProviders (prev fetchCustodialBunkers). 2024-02-19 18:54:18 -03:00
fiatjaf bded539122
nip46: fix messages being ignored after auth_url. 2024-02-19 18:53:48 -03:00
fiatjaf 3647bbd68a
get rid of the last vestiges of webcrypto dependencies. 2024-02-17 18:29:01 -03:00
fiatjaf fb085ffdf7
v2.3.0 2024-02-17 18:19:52 -03:00
fiatjaf 280d483ef4
adjust expected value in nip11 test. 2024-02-17 18:19:09 -03:00
fiatjaf 54b55b98f1
nip44: get rid of ensureBytes() since it was removed from upstream library. 2024-02-17 18:18:24 -03:00
fiatjaf 84f9881812
use @noble/ciphers instead of webcrypto on nip04. 2024-02-17 18:15:42 -03:00
fiatjaf db6baf2e6b
bump to v2.2.1 2024-02-16 07:43:38 -03:00
fiatjaf bb1e6f4356
nip46: only handle the first auth_url for every command. 2024-02-16 07:43:20 -03:00
fiatjaf 5626d3048b
nip46: remove NostrConnectAdmin wrong kind. 2024-02-16 07:40:21 -03:00
fiatjaf 058d0276e2
nip49: nfkc normalization. 2024-02-16 00:13:58 -03:00
Sepehr Safari 37b046c047 bump to v2.2.0 2024-02-14 19:48:07 -03:00
Sepehr Safari 846654b449 add exports/nip75 to package.json 2024-02-14 19:48:07 -03:00
Sepehr Safari b676dc0987 add tests for nip75 2024-02-14 19:48:07 -03:00
Sepehr Safari b1ce901555 implement nip75 handlers 2024-02-14 19:48:07 -03:00
fiatjaf 62e5730965
call useWebSocketImplementation() on relay and pool tests. 2024-02-14 13:26:38 -03:00
fiatjaf 01f13292bb
useWebSocketImplementation() on relay.ts 2024-02-14 13:19:48 -03:00
fiatjaf 7b0458db72
make the examples on the readme use the new import method. 2024-02-14 13:17:59 -03:00
fiatjaf 3aab7121f7
use a public BunkerPointer property on BunkerSigner class. 2024-02-14 12:29:47 -03:00
fiatjaf ce059d4608
bump to v2.1.8 2024-02-14 12:25:22 -03:00
fiatjaf b72b0dc1f0
nip46: fix typo in fetchCustodialBunkers() function name. 2024-02-14 12:24:47 -03:00
fiatjaf 29e5b71473
nip46: implement the remaining methods. 2024-02-14 12:24:33 -03:00
fiatjaf b4e54d679f
nip46: fix checking event that comes from bunker call sign_event and bump version. 2024-02-12 16:06:20 -03:00
fiatjaf 9d78c90a79
nip46: fix bunker url parsing. 2024-02-12 15:32:50 -03:00
fiatjaf 566a2deea3 nip46: omit custodial bunker providers that don't have relays configured. 2024-02-12 09:04:31 -03:00
fiatjaf 177e673d83 nip46: params for createAccount that get passed into BunkerSigner. 2024-02-12 09:04:06 -03:00
fiatjaf cf766cd835 nip05: fix regex group 2 matching. 2024-02-12 07:41:44 -03:00
fiatjaf 7d332605ee nip46: tweaks. 2024-02-12 00:28:48 -03:00
fiatjaf 72f9b482ef nip46: NostrConnectAdmin kind and handle "auth_url". 2024-02-12 00:28:36 -03:00
fiatjaf d14830a8ff nip46 big implementation adapted from ignition. 2024-02-11 19:14:04 -03:00
fiatjaf 943cc4fb48 nip46 beginnings. 2024-02-11 08:32:08 -03:00
fiatjaf 04252aaaec nip05: improve regex. 2024-02-11 07:48:13 -03:00
Shusui MOYATANI 8c78649d5c ignore HTTP redirect in nip05 2024-02-09 12:00:10 -03:00
Adam Soltys b9435af708 remove tsd package 2024-02-06 08:13:33 -03:00
Quentin ea5d00beed Fix explicit file extension for core.ts 2024-02-04 13:07:17 -03:00
Sepehr Safari 7ec6d127b0 fix unexpected errors 2024-01-28 06:45:37 -03:00
fiatjaf 7a9d432686
add nip49 key encryption and decryption. 2024-01-25 12:14:51 -03:00
fiatjaf 744a930ccf
add missing exports to package.json. 2024-01-25 12:13:59 -03:00
fiatjaf c6a521e73c
some nip29 helpers. 2024-01-24 15:56:44 -03:00
fiatjaf 6aebe0d38c
v2.1.5 2024-01-24 15:42:35 -03:00
fiatjaf 16cdf40112
nip96: type fix. 2024-01-24 12:04:54 -03:00
fiatjaf e36ea11f41
add nip-34 code for contributing. 2024-01-24 09:32:36 -03:00
fiatjaf 31a35a8008
justfile: always emit types on build. 2024-01-24 09:32:36 -03:00
Sepehr Safari 0f5b3f397c
Nip96 implementation (#360)
* add nip96 kind 10096 file server preference

* implement nip96

* refactor nip96 and liftup all type definitions

* install nock as devDep

* fix nip96 throwing errors

* add tests for nip96

* revert installing nock and install msw for mocking apis

* fix trailing slashes in nip96 file deletion

* implement msw in nip96 and add more test cases

* fix fetching server config

* enhance error handling in uploadFile

* add more test cases with mock apis

* add more test cases to reach 90 percent coverage
2024-01-24 09:24:47 -03:00
Sepehr Safari d156f3c0ac add test cases for nip94 2024-01-21 07:32:13 -03:00
Sepehr Safari d656c84ab5 implement nip94 2024-01-21 07:32:13 -03:00
fiatjaf 2f0ef90bd5
delete some unnecessary code from mock-relay implementation. 2024-01-20 12:48:46 -03:00
fiatjaf 967d7fe63a
normalizeURL prepends ws:// when necessary. 2024-01-20 12:48:28 -03:00