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
fiatjaf_
12147d4fee
Merge pull request #358 from sepehr-safari/mock-relay-class
...
Enhance Mock Relay
2024-01-20 08:36:40 -03:00
Sepehr Safari
c453bc5ec3
revert nip11.test.ts with a todo flag
2024-01-20 11:50:05 +03:30
Sepehr Safari
2017b3cabd
Merge branch 'nbd-wtf:master' into mock-relay-class
2024-01-20 11:41:27 +03:30
Sepehr Safari
fbcfccda01
update nip42.test.ts with new mock relay class
2024-01-20 11:31:18 +03:30
Sepehr Safari
0357e035f4
fix nip11 broken test
2024-01-20 11:29:59 +03:30
Sepehr Safari
dd0014aee3
refactor pool.test.ts and update with new mock relay class
2024-01-20 11:29:46 +03:30
Sepehr Safari
2e9798b8ab
increase random range for mock relay urls
2024-01-20 11:21:29 +03:30
Sepehr Safari
10b800db3a
randomize relay urls in mock relays
2024-01-20 11:14:57 +03:30
Sepehr Safari
dbad25b2fa
use new MockRelay class in relay.test.ts
2024-01-20 10:41:05 +03:30
Sepehr Safari
829633b0d6
inhance mock relay and refactor to a class
2024-01-20 10:40:15 +03:30
Sepehr Safari
b1bbcd6c46
use mock relay in nip42 tests
2024-01-20 09:57:25 +03:30
fiatjaf
6a9940c850
nip29: make relay property mandatory on Group.
2024-01-19 21:23:44 -03:00
fiatjaf
9b08550885
some beginnings of nip29 helpers.
2024-01-19 16:13:00 -03:00
fiatjaf
3b81e5e762
use mock relays on pool tests.
2024-01-19 16:12:02 -03:00
fiatjaf
8b2b050c0d
unify mock-socket interface into a single implementation.
2024-01-19 16:01:06 -03:00