Commit Graph

759 Commits

Author SHA1 Message Date
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
Sepehr Safari d4090dae2b refactor relay test cases with mock websocket 2024-01-19 15:32:36 -03:00
Sepehr Safari 49596d24c3 install mock-socket as dev dependency 2024-01-19 15:32:36 -03:00
Sepehr Safari ac83eeff1c format with prettier 2024-01-18 11:51:13 -03:00
Sepehr Safari 85b741b39a suppress eqeqeq eslint rule 2024-01-18 11:50:35 -03:00
fiatjaf_ c69c528ab0
Merge pull request #352 from sepehr-safari/nip99-implementation
Nip99 implementation
2024-01-18 11:00:41 -03:00
fiatjaf_ 1aad9ad0bd
Merge pull request #350 from sepehr-safari/nip98-enhancement
Nip98 enhancement
2024-01-18 11:00:28 -03:00
Sepehr Safari f6ed374f2f remove un-used imports 2024-01-18 17:16:24 +03:30
Sepehr Safari 6d7ad22677 add test cases for nip99 2024-01-18 17:13:39 +03:30
Sepehr Safari 340a4a6799 implement nip99 2024-01-18 17:13:31 +03:30
Sepehr Safari 5ec136a365 refactor and add more test cases 2024-01-17 18:13:10 +03:30
Sepehr Safari 75eb08b170 fix some bugs, refactor to smaller parts, add docs 2024-01-17 17:50:48 +03:30
Alex Gleason 677b679c2c NIP-57: build lnurl in more secure way 2024-01-15 21:26:34 -03:00
fiatjaf 7b79d6a899
nostr-wasm as optional and v2.1.3 2024-01-09 16:58:47 -03:00
Alex Gleason c1efbbd919 Add NIP-40 module for event expiration 2024-01-09 16:16:43 -03:00
Akiomi Kamakura 7d58705e9a Fix typo 2024-01-08 13:50:48 -03:00
Akiomi Kamakura f1d315632c Sort kinds 2024-01-08 13:50:36 -03:00
Alex Gleason 348d118ce4 Add getFilterLimit function 2024-01-04 09:56:02 -03:00