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.
v2.1.4
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
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
fiatjaf
498c1603b0
nip57: implement "P" tag for sender.
v2.1.2
2024-01-01 11:39:22 -03:00
Shusui MOYATANI
4cfc67e294
fix yieldThread memory leak
2023-12-30 13:50:44 -03:00
fiatjaf
da51418f04
update readme example.
...
fixes https://github.com/nbd-wtf/nostr-tools/issues/337
2023-12-27 11:14:19 -03:00
fiatjaf
75df47421f
v2.1.1
v2.1.1
2023-12-26 07:57:36 -03:00
fiatjaf
1cfe705baf
auth() returns a promise that resolves on OK.
...
fixes https://github.com/nbd-wtf/nostr-tools/issues/336
2023-12-26 07:56:55 -03:00
fiatjaf
566437fe2e
nip19: length 0 on TLV is not forbidden.
2023-12-26 07:56:55 -03:00
fiatjaf
5d6c2b9e5d
nip19: reverse TLV ordering just to keep other implementations honest.
2023-12-26 07:56:55 -03:00
jiftechnify
a43f2a708c
fix problem when required from CommonJS
2023-12-23 08:31:39 -03:00
fiatjaf
f727058a3a
rename benchmark.ts -> benchmarks.ts
v2.1.0
2023-12-22 11:48:07 -03:00
fiatjaf
1de54838d3
changed the relay in the test, must also change the event queried for.
2023-12-22 11:46:02 -03:00